blob: d6e6758a3ea3ba70ae8150efae9e485940aa69d6 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Tanya Lattnerf4644302008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000240# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000250fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000260# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000270fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000528else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000531rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
571$*
572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
616 IFS="$lt_save_ifs"
617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000727# include <sys/types.h>
728#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730# include <sys/stat.h>
731#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000732#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000747# include <strings.h>
748#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000749#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000750# include <inttypes.h>
751#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000752#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000753# include <stdint.h>
754#endif
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000755#if HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +0000822ARCH
823ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000830BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
836DEBUG_RUNTIME
837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
841ENABLE_PIC
842TARGETS_TO_BUILD
843ENABLE_CBE_PRINTF_A
844EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000881OCAMLC
882OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000883OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000884OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000885GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000899LLVMGCC
900LLVMGXX
901USE_UDIS86
902HAVE_PTHREAD
Nick Lewycky0235b622009-02-04 06:27:44 +0000903HAVE_FFI
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000904HUGE_VAL_SANITY
905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
910LLVMGCCLIBEXEC
911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
913LLVMGCC_LANGS
914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000925BINDINGS_TO_BUILD
926ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000927OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000928ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000929RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000930RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000931LIBOBJS
932LTLIBOBJS'
933ac_subst_files=''
934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
949projects/privbracket
950projects/llvm-stacker
951projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000952projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
958projects/poolalloc
959projects/llvm-kernel'
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001284 eval with_$ac_package=\$ac_optarg ;;
1285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001293 eval with_$ac_package=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
1344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1349do
1350 eval ac_val=\$$ac_var
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402echo X"$0" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1431fi
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001461\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-optimized
1535 --enable-assertions
1536 --enable-expensive-checks
1537
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001543 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001552 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001554 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001557 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
1559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001569 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001572 --with-binutils-include Specify path to binutils/include/ containing
1573 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001574 --with-tclinclude directory where tcl headers are
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579 --with-udis86=<path> Use udis86 external x86 disassembler library
1580
1581Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to <llvmbugs@cs.uiuc.edu>.
1599_ACEOF
1600ac_status=$?
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" || continue
1607 ac_builddir=.
1608
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
1624
1625case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638esac
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654fi
1655
1656test -n "$ac_init_help" && exit $ac_status
1657if $ac_init_version; then
1658 cat <<\_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001659llvm configure 2.6svn
1660generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001661
1662Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
1666
Tanya Lattnerf4644302008-01-17 05:57:22 +00001667Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001668_ACEOF
1669 exit
1670fi
1671cat >config.log <<_ACEOF
1672This file contains any messages produced by compilers while
1673running configure, to aid debugging if configure makes a mistake.
1674
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001675It was created by llvm $as_me 2.6svn, which was
1676generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001677
1678 $ $0 $@
1679
1680_ACEOF
1681exec 5>>config.log
1682{
1683cat <<_ASUNAME
1684## --------- ##
1685## Platform. ##
1686## --------- ##
1687
1688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696
1697/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704
1705_ASUNAME
1706
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1713done
1714IFS=$as_save_IFS
1715
1716} >&5
1717
1718cat >&5 <<_ACEOF
1719
1720
1721## ----------- ##
1722## Core tests. ##
1723## ----------- ##
1724
1725_ACEOF
1726
1727
1728# Keep a trace of the command line.
1729# Strip out --no-create and --no-recursion so they do not pile up.
1730# Strip out --silent because we don't want to record it for future runs.
1731# Also quote any args containing shell meta-characters.
1732# Make two passes to allow for proper duplicate-argument suppression.
1733ac_configure_args=
1734ac_configure_args0=
1735ac_configure_args1=
1736ac_must_keep_next=false
1737for ac_pass in 1 2
1738do
1739 for ac_arg
1740 do
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
1746 *\'*)
1747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 2)
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1755 else
1756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1764 ;;
1765 -* ) ac_must_keep_next=true ;;
1766 esac
1767 fi
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 ;;
1770 esac
1771 done
1772done
1773$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776# When interrupted or exit'd, cleanup temporary files, and complete
1777# config.log. We remove comments because anyway the quotes in there
1778# would cause problems or look ugly.
1779# WARNING: Use '\'' to represent an apostrophe within the trap.
1780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1783 {
1784 echo
1785
1786 cat <<\_ASBOX
1787## ---------------- ##
1788## Cache variables. ##
1789## ---------------- ##
1790_ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
1793(
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1805 esac ;;
1806 esac
1807 done
1808 (set) 2>&1 |
1809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1811 sed -n \
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
1815 *)
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 ;;
1818 esac |
1819 sort
1820)
1821 echo
1822
1823 cat <<\_ASBOX
1824## ----------------- ##
1825## Output variables. ##
1826## ----------------- ##
1827_ASBOX
1828 echo
1829 for ac_var in $ac_subst_vars
1830 do
1831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 echo "$ac_var='\''$ac_val'\''"
1836 done | sort
1837 echo
1838
1839 if test -n "$ac_subst_files"; then
1840 cat <<\_ASBOX
1841## ------------------- ##
1842## File substitutions. ##
1843## ------------------- ##
1844_ASBOX
1845 echo
1846 for ac_var in $ac_subst_files
1847 do
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 echo "$ac_var='\''$ac_val'\''"
1853 done | sort
1854 echo
1855 fi
1856
1857 if test -s confdefs.h; then
1858 cat <<\_ASBOX
1859## ----------- ##
1860## confdefs.h. ##
1861## ----------- ##
1862_ASBOX
1863 echo
1864 cat confdefs.h
1865 echo
1866 fi
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1870 } >&5
1871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873 exit $exit_status
1874' 0
1875for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877done
1878ac_signal=0
1879
1880# confdefs.h avoids OS command line length limits that DEFS can exceed.
1881rm -f -r conftest* confdefs.h
1882
1883# Predefined preprocessor variables.
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_NAME "$PACKAGE_NAME"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_VERSION "$PACKAGE_VERSION"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_STRING "$PACKAGE_STRING"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907_ACEOF
1908
1909
1910# Let the site file select an alternate cache file if it wants to.
1911# Prefer explicitly selected file to automatically selected ones.
1912if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916else
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
1919fi
1920shift
1921for ac_site_file
1922do
1923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1927 . "$ac_site_file"
1928 fi
1929done
1930
1931if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936echo "$as_me: loading cache $cache_file" >&6;}
1937 case $cache_file in
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
1940 esac
1941 fi
1942else
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944echo "$as_me: creating cache $cache_file" >&6;}
1945 >$cache_file
1946fi
1947
1948# Check that the precious variables saved in the cache have kept the same
1949# value.
1950ac_cache_corrupted=false
1951for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1971echo "$as_me: former value: $ac_old_val" >&2;}
1972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1973echo "$as_me: current value: $ac_new_val" >&2;}
1974 ac_cache_corrupted=:
1975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
1980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 esac
1987 fi
1988done
1989if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
1995fi
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
Tanya Lattnerf4644302008-01-17 05:57:22 +00002029LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002030
2031
2032
2033
2034
2035
2036
2037ac_aux_dir=
2038for ac_dir in autoconf "$srcdir"/autoconf; do
2039 if test -f "$ac_dir/install-sh"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 break
2043 elif test -f "$ac_dir/install.sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 break
2047 elif test -f "$ac_dir/shtool"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 break
2051 fi
2052done
2053if test -z "$ac_aux_dir"; then
2054 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2056 { (exit 1); exit 1; }; }
2057fi
2058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2066
2067
2068
2069if test ${srcdir} != "." ; then
2070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2072echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073 { (exit 1); exit 1; }; }
2074 fi
2075fi
2076
2077for i in `ls ${srcdir}/projects`
2078do
2079 if test -d ${srcdir}/projects/${i} ; then
2080 case ${i} in
2081 CVS) ;;
2082 sample) subdirs="$subdirs projects/sample"
2083 ;;
2084 privbracket) subdirs="$subdirs projects/privbracket"
2085 ;;
2086 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2087 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002088 # llvm-test is the old name of the test-suite, kept here for backwards
2089 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002090 llvm-test) subdirs="$subdirs projects/llvm-test"
2091 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002092 test-suite) subdirs="$subdirs projects/test-suite"
2093 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095;;
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 ;;
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 ;;
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 ;;
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002105 ;;
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2107 ;;
2108 *)
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111 ;;
2112 esac
2113 fi
2114done
2115
2116
2117# Make sure we can run config.sub.
2118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2122
2123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2139
2140fi
2141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
2149build=$ac_cv_build
2150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2175fi
2176
2177fi
2178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
2186host=$ac_cv_host
2187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2212fi
2213
2214fi
2215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
2223target=$ac_cv_target
2224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
2244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 case $host in
2250 *-*-aix*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-cygwin*)
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
2266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-openbsd*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002285 *-*-dragonfly*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="DragonFly"
2289 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002290 *-*-hpux*)
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-interix*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-linux*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-solaris*)
2306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-win32*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2315 *-*-mingw*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2320 *)
2321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
2323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
2325esac
2326fi
2327{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2329
2330if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2333 { (exit 1); exit 1; }; }
2334fi
2335
2336OS=$llvm_cv_os_type
2337
2338
2339LINKALL=$llvm_cv_link_all_option
2340
2341NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
2344case $llvm_cv_platform_type in
2345 Unix)
2346
2347cat >>confdefs.h <<\_ACEOF
2348#define LLVM_ON_UNIX 1
2349_ACEOF
2350
2351 LLVM_ON_UNIX=1
2352
2353 LLVM_ON_WIN32=0
2354
2355 ;;
2356 Win32)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_WIN32 1
2360_ACEOF
2361
2362 LLVM_ON_UNIX=0
2363
2364 LLVM_ON_WIN32=1
2365
2366 ;;
2367esac
2368
2369{ echo "$as_me:$LINENO: checking target architecture" >&5
2370echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2371if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 case $target in
2375 i?86-*) llvm_cv_target_arch="x86" ;;
2376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2380 ia64-*) llvm_cv_target_arch="IA64" ;;
2381 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002382 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002383 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002384 xcore-*) llvm_cv_target_arch="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002385 *) llvm_cv_target_arch="Unknown" ;;
2386esac
2387fi
2388{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2390
2391if test "$llvm_cv_target_arch" = "Unknown" ; then
2392 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394fi
2395
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +00002396if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2397 ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425done
2426IFS=$as_save_IFS
2427
2428fi
2429fi
2430CC=$ac_cv_prog_CC
2431if test -n "$CC"; then
2432 { echo "$as_me:$LINENO: result: $CC" >&5
2433echo "${ECHO_T}$CC" >&6; }
2434else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6; }
2437fi
2438
2439
2440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444set dummy gcc; ac_word=$2
2445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002460 ac_cv_prog_ac_ct_CC="gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473echo "${ECHO_T}$ac_ct_CC" >&6; }
2474else
2475 { echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6; }
2477fi
2478
2479 if test "x$ac_ct_CC" = x; then
2480 CC=""
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483yes:)
2484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485whose name does not start with the host triplet. If you think this
2486configuration is useful to you, please write to autoconf@gnu.org." >&5
2487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488whose name does not start with the host triplet. If you think this
2489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492 CC=$ac_ct_CC
2493 fi
2494else
2495 CC="$ac_cv_prog_CC"
2496fi
2497
2498if test -z "$CC"; then
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501set dummy ${ac_tool_prefix}cc; ac_word=$2
2502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002517 ac_cv_prog_CC="${ac_tool_prefix}cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521done
2522done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527CC=$ac_cv_prog_CC
2528if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530echo "${ECHO_T}$CC" >&6; }
2531else
2532 { echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6; }
2534fi
2535
2536
2537 fi
2538fi
2539if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541set dummy cc; ac_word=$2
2542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550 ac_prog_rejected=no
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2560 continue
2561 fi
2562 ac_cv_prog_CC="cc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566done
2567done
2568IFS=$as_save_IFS
2569
2570if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2573 shift
2574 if test $# != 0; then
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2578 shift
2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 fi
2581fi
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587echo "${ECHO_T}$CC" >&6; }
2588else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6; }
2591fi
2592
2593
2594fi
2595if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in cl.exe
2598 do
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
2630else
2631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
2633fi
2634
2635
2636 test -n "$CC" && break
2637 done
2638fi
2639if test -z "$CC"; then
2640 ac_ct_CC=$CC
2641 for ac_prog in cl.exe
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
2645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002660 ac_cv_prog_ac_ct_CC="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671if test -n "$ac_ct_CC"; then
2672 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673echo "${ECHO_T}$ac_ct_CC" >&6; }
2674else
2675 { echo "$as_me:$LINENO: result: no" >&5
2676echo "${ECHO_T}no" >&6; }
2677fi
2678
2679
2680 test -n "$ac_ct_CC" && break
2681done
2682
2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
2688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689whose name does not start with the host triplet. If you think this
2690configuration is useful to you, please write to autoconf@gnu.org." >&5
2691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692whose name does not start with the host triplet. If you think this
2693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694ac_tool_warned=yes ;;
2695esac
2696 CC=$ac_ct_CC
2697 fi
2698fi
2699
2700fi
2701
2702
2703test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704See \`config.log' for more details." >&5
2705echo "$as_me: error: no acceptable C compiler found in \$PATH
2706See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2708
2709# Provide some information about the compiler.
2710echo "$as_me:$LINENO: checking for C compiler version" >&5
2711ac_compiler=`set X $ac_compile; echo $2`
2712{ (ac_try="$ac_compiler --version >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler --version >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722{ (ac_try="$ac_compiler -v >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732{ (ac_try="$ac_compiler -V >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749
2750int
2751main ()
2752{
2753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758ac_clean_files_save=$ac_clean_files
2759ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760# Try to create an executable without -o first, disregard a.out.
2761# It will help us diagnose broken compilers, and finding out an intuition
2762# of exeext.
2763{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766#
2767# List of possible output files, starting from the most likely.
2768# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769# only as a last resort. b.out is created by i960 compilers.
2770ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771#
2772# The IRIX 6 linker writes into existing files which may not be
2773# executable, retaining their permissions. Remove them first so a
2774# subsequent execution test works.
2775ac_rmfiles=
2776for ac_file in $ac_files
2777do
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781 esac
2782done
2783rm -f $ac_rmfiles
2784
2785if { (ac_try="$ac_link_default"
2786case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_link_default") 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; then
2795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797# in a Makefile. We should not override ac_cv_exeext if it was cached,
2798# so that the user can short-circuit this test for compilers unknown to
2799# Autoconf.
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002800for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002801do
2802 test -f "$ac_file" || continue
2803 case $ac_file in
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2805 ;;
2806 [ab].out )
2807 # We found the default executable, but exeext='' is most
2808 # certainly right.
2809 break;;
2810 *.* )
2811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812 then :; else
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 fi
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2819 # actually working.
2820 break;;
2821 * )
2822 break;;
2823 esac
2824done
2825test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
2827else
2828 echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832See \`config.log' for more details." >&5
2833echo "$as_me: error: C compiler cannot create executables
2834See \`config.log' for more details." >&2;}
2835 { (exit 77); exit 77; }; }
2836fi
2837
2838ac_exeext=$ac_cv_exeext
Tanya Lattner3fa4a442009-01-22 05:17:59 +00002839{ echo "$as_me:$LINENO: result: $ac_file" >&5
2840echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002841
2842# Check that the compiler produces executables we can run. If not, either
2843# the compiler is broken, or we cross compile.
2844{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847# If not cross compiling, check that we can run a simple program.
2848if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 cross_compiling=no
2860 else
2861 if test "$cross_compiling" = maybe; then
2862 cross_compiling=yes
2863 else
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865If you meant to cross compile, use \`--host'.
2866See \`config.log' for more details." >&5
2867echo "$as_me: error: cannot run C compiled programs.
2868If you meant to cross compile, use \`--host'.
2869See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2871 fi
2872 fi
2873fi
2874{ echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6; }
2876
2877rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878ac_clean_files=$ac_clean_files_save
2879# Check that the compiler produces executables we can run. If not, either
2880# the compiler is broken, or we cross compile.
2881{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884echo "${ECHO_T}$cross_compiling" >&6; }
2885
2886{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888if { (ac_try="$ac_link"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900# work properly (i.e., refer to `conftest.exe'), while it won't with
2901# `rm'.
2902for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 break;;
2908 * ) break;;
2909 esac
2910done
2911else
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913See \`config.log' for more details." >&5
2914echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2917fi
2918
2919rm -f conftest$ac_cv_exeext
2920{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922
2923rm -f conftest.$ac_ext
2924EXEEXT=$ac_cv_exeext
2925ac_exeext=$EXEEXT
2926{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931 cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
2937
2938int
2939main ()
2940{
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.o conftest.obj
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2959 case $ac_file in
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962 break;;
2963 esac
2964done
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970See \`config.log' for more details." >&5
2971echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2974fi
2975
2976rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977fi
2978{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979echo "${ECHO_T}$ac_cv_objext" >&6; }
2980OBJEXT=$ac_cv_objext
2981ac_objext=$OBJEXT
2982{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997#ifndef __GNUC__
2998 choke me
2999#endif
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003039 ac_compiler_gnu=yes
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 ac_compiler_gnu=no
3045fi
3046
3047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050fi
3051{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053GCC=`test $ac_compiler_gnu = yes && echo yes`
3054ac_test_CFLAGS=${CFLAGS+set}
3055ac_save_CFLAGS=$CFLAGS
3056{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058if test "${ac_cv_prog_cc_g+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3063 ac_cv_prog_cc_g=no
3064 CFLAGS="-g"
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003114 ac_cv_prog_cc_g=yes
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003169 :
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3175 CFLAGS="-g"
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext
3192if { (ac_try="$ac_compile"
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($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_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003225 ac_cv_prog_cc_g=yes
3226else
3227 echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234fi
3235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3241fi
3242{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3248 CFLAGS="-g -O2"
3249 else
3250 CFLAGS="-g"
3251 fi
3252else
3253 if test "$GCC" = yes; then
3254 CFLAGS="-O2"
3255 else
3256 CFLAGS=
3257 fi
3258fi
3259{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261if test "${ac_cv_prog_cc_c89+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264 ac_cv_prog_cc_c89=no
3265ac_save_CC=$CC
3266cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <stdarg.h>
3273#include <stdio.h>
3274#include <sys/types.h>
3275#include <sys/stat.h>
3276/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277struct buf { int x; };
3278FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279static char *e (p, i)
3280 char **p;
3281 int i;
3282{
3283 return p[i];
3284}
3285static char *f (char * (*g) (char **, int), char **p, ...)
3286{
3287 char *s;
3288 va_list v;
3289 va_start (v,p);
3290 s = g (p, va_arg (v,int));
3291 va_end (v);
3292 return s;
3293}
3294
3295/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
3298 as 'x'. The following induces an error, until -std is added to get
3299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
3301 that's true only with -std. */
3302int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
3304/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3306#define FOO(x) 'x'
3307int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
3309int test (int i, double x);
3310struct s1 {int (*f) (int a);};
3311struct s2 {int (*f) (double a);};
3312int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313int argc;
3314char **argv;
3315int
3316main ()
3317{
3318return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325do
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
3328if { (ac_try="$ac_compile"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003361 ac_cv_prog_cc_c89=$ac_arg
3362else
3363 echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366
3367fi
3368
3369rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3371done
3372rm -f conftest.$ac_ext
3373CC=$ac_save_CC
3374
3375fi
3376# AC_CACHE_VAL
3377case "x$ac_cv_prog_cc_c89" in
3378 x)
3379 { echo "$as_me:$LINENO: result: none needed" >&5
3380echo "${ECHO_T}none needed" >&6; } ;;
3381 xno)
3382 { echo "$as_me:$LINENO: result: unsupported" >&5
3383echo "${ECHO_T}unsupported" >&6; } ;;
3384 *)
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3388esac
3389
3390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +00003398{ echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3399echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3400if test "${llvm_cv_linux_mixed+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#ifndef __x86_64__
3416 error: Not x86-64 even if uname says so!
3417 #endif
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427rm -f conftest.$ac_objext
3428if { (ac_try="$ac_compile"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442 { (case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_try") 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_try") 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 llvm_cv_linux_mixed=no
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 llvm_cv_linux_mixed=yes
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477fi
3478{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3479echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3480
3481 if test "$llvm_cv_linux_mixed" = "yes"; then
3482 llvm_cv_target_arch="x86"
3483 fi
3484fi
3485
3486ARCH=$llvm_cv_target_arch
3487
3488
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003489ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3496# On Suns, sometimes $CPP names a directory.
3497if test -n "$CPP" && test -d "$CPP"; then
3498 CPP=
3499fi
3500if test -z "$CPP"; then
3501 if test "${ac_cv_prog_CPP+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506 do
3507 ac_preproc_ok=false
3508for ac_c_preproc_warn_flag in '' yes
3509do
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
3522#ifdef __STDC__
3523# include <limits.h>
3524#else
3525# include <assert.h>
3526#endif
3527 Syntax error
3528_ACEOF
3529if { (ac_try="$ac_cpp conftest.$ac_ext"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
3534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 else
3546 ac_cpp_err=
3547 fi
3548else
3549 ac_cpp_err=yes
3550fi
3551if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003552 :
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558continue
3559fi
3560
3561rm -f conftest.err conftest.$ac_ext
3562
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h. */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h. */
3571#include <ac_nonexistent.h>
3572_ACEOF
3573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 else
3590 ac_cpp_err=
3591 fi
3592else
3593 ac_cpp_err=yes
3594fi
3595if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003596 # Broken: success on invalid input.
3597continue
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 # Passes both tests.
3603ac_preproc_ok=:
3604break
3605fi
3606
3607rm -f conftest.err conftest.$ac_ext
3608
3609done
3610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611rm -f conftest.err conftest.$ac_ext
3612if $ac_preproc_ok; then
3613 break
3614fi
3615
3616 done
3617 ac_cv_prog_CPP=$CPP
3618
3619fi
3620 CPP=$ac_cv_prog_CPP
3621else
3622 ac_cv_prog_CPP=$CPP
3623fi
3624{ echo "$as_me:$LINENO: result: $CPP" >&5
3625echo "${ECHO_T}$CPP" >&6; }
3626ac_preproc_ok=false
3627for ac_c_preproc_warn_flag in '' yes
3628do
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat >conftest.$ac_ext <<_ACEOF
3636/* confdefs.h. */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h. */
3641#ifdef __STDC__
3642# include <limits.h>
3643#else
3644# include <assert.h>
3645#endif
3646 Syntax error
3647_ACEOF
3648if { (ac_try="$ac_cpp conftest.$ac_ext"
3649case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652esac
3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003660 (exit $ac_status); } >/dev/null; then
3661 if test -s conftest.err; then
3662 ac_cpp_err=$ac_c_preproc_warn_flag
3663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664 else
3665 ac_cpp_err=
3666 fi
3667else
3668 ac_cpp_err=yes
3669fi
3670if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003671 :
3672else
3673 echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Broken: fails on valid input.
3677continue
3678fi
3679
3680rm -f conftest.err conftest.$ac_ext
3681
3682 # OK, works on sane cases. Now check whether nonexistent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690#include <ac_nonexistent.h>
3691_ACEOF
3692if { (ac_try="$ac_cpp conftest.$ac_ext"
3693case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003704 (exit $ac_status); } >/dev/null; then
3705 if test -s conftest.err; then
3706 ac_cpp_err=$ac_c_preproc_warn_flag
3707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708 else
3709 ac_cpp_err=
3710 fi
3711else
3712 ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003715 # Broken: success on invalid input.
3716continue
3717else
3718 echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725
3726rm -f conftest.err conftest.$ac_ext
3727
3728done
3729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730rm -f conftest.err conftest.$ac_ext
3731if $ac_preproc_ok; then
3732 :
3733else
3734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735See \`config.log' for more details." >&5
3736echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&2;}
3738 { (exit 1); exit 1; }; }
3739fi
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 # Extract the first word of "grep ggrep" to use in msg output
3754if test -z "$GREP"; then
3755set dummy grep ggrep; ac_prog_name=$2
3756if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 ac_path_GREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in grep ggrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003769 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772case `"$ac_path_GREP" --version 2>&1` in
3773*GNU*)
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775*)
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3779 do
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
3791 fi
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799 $ac_path_GREP_found && break 3
3800 done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
3807fi
3808
3809GREP="$ac_cv_path_GREP"
3810if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817 ac_cv_path_GREP=$GREP
3818fi
3819
3820
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for egrep" >&5
3828echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3834 else
3835 # Extract the first word of "egrep" to use in msg output
3836if test -z "$EGREP"; then
3837set dummy egrep; ac_prog_name=$2
3838if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 ac_path_EGREP_found=false
3842# Loop through the user's path and test for each of PROGNAME-LIST
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003851 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854case `"$ac_path_EGREP" --version 2>&1` in
3855*GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857*)
3858 ac_count=0
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878esac
3879
3880
3881 $ac_path_EGREP_found && break 3
3882 done
3883done
3884
3885done
3886IFS=$as_save_IFS
3887
3888
3889fi
3890
3891EGREP="$ac_cv_path_EGREP"
3892if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3896fi
3897
3898else
3899 ac_cv_path_EGREP=$EGREP
3900fi
3901
3902
3903 fi
3904fi
3905{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3908
3909
3910{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
3921#include <stdlib.h>
3922#include <stdarg.h>
3923#include <string.h>
3924#include <float.h>
3925
3926int
3927main ()
3928{
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
3934rm -f conftest.$ac_objext
3935if { (ac_try="$ac_compile"
3936case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00003947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003968 ac_cv_header_stdc=yes
3969else
3970 echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 ac_cv_header_stdc=no
3974fi
3975
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977
3978if test $ac_cv_header_stdc = yes; then
3979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3980 cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h. */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */
3986#include <string.h>
3987
3988_ACEOF
3989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 $EGREP "memchr" >/dev/null 2>&1; then
3991 :
3992else
3993 ac_cv_header_stdc=no
3994fi
3995rm -f conftest*
3996
3997fi
3998
3999if test $ac_cv_header_stdc = yes; then
4000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007#include <stdlib.h>
4008
4009_ACEOF
4010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011 $EGREP "free" >/dev/null 2>&1; then
4012 :
4013else
4014 ac_cv_header_stdc=no
4015fi
4016rm -f conftest*
4017
4018fi
4019
4020if test $ac_cv_header_stdc = yes; then
4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022 if test "$cross_compiling" = yes; then
4023 :
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031#include <ctype.h>
4032#include <stdlib.h>
4033#if ((' ' & 0x0FF) == 0x020)
4034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4036#else
4037# define ISLOWER(c) \
4038 (('a' <= (c) && (c) <= 'i') \
4039 || ('j' <= (c) && (c) <= 'r') \
4040 || ('s' <= (c) && (c) <= 'z'))
4041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042#endif
4043
4044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045int
4046main ()
4047{
4048 int i;
4049 for (i = 0; i < 256; i++)
4050 if (XOR (islower (i), ISLOWER (i))
4051 || toupper (i) != TOUPPER (i))
4052 return 2;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest$ac_exeext
4057if { (ac_try="$ac_link"
4058case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 :
4077else
4078 echo "$as_me: program exited with status $ac_status" >&5
4079echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082( exit $ac_status )
4083ac_cv_header_stdc=no
4084fi
4085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4086fi
4087
4088
4089fi
4090fi
4091{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4092echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4093if test $ac_cv_header_stdc = yes; then
4094
4095cat >>confdefs.h <<\_ACEOF
4096#define STDC_HEADERS 1
4097_ACEOF
4098
4099fi
4100
4101# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4112 inttypes.h stdint.h unistd.h
4113do
4114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126$ac_includes_default
4127
4128#include <$ac_header>
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (ac_try="$ac_compile"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004164 eval "$as_ac_Header=yes"
4165else
4166 echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 eval "$as_ac_Header=no"
4170fi
4171
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174ac_res=`eval echo '${'$as_ac_Header'}'`
4175 { echo "$as_me:$LINENO: result: $ac_res" >&5
4176echo "${ECHO_T}$ac_res" >&6; }
4177if test `eval echo '${'$as_ac_Header'}'` = yes; then
4178 cat >>confdefs.h <<_ACEOF
4179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180_ACEOF
4181
4182fi
4183
4184done
4185
4186
4187{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4188echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4189if test "${ac_cv_c_bigendian+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 # See if sys/param.h defines the BYTE_ORDER macro.
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199#include <sys/types.h>
4200#include <sys/param.h>
4201
4202int
4203main ()
4204{
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004205#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004206 bogus endian macros
4207#endif
4208
4209 ;
4210 return 0;
4211}
4212_ACEOF
4213rm -f conftest.$ac_objext
4214if { (ac_try="$ac_compile"
4215case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218esac
4219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254#include <sys/types.h>
4255#include <sys/param.h>
4256
4257int
4258main ()
4259{
4260#if BYTE_ORDER != BIG_ENDIAN
4261 not big endian
4262#endif
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (ac_try="$ac_compile"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004302 ac_cv_c_bigendian=yes
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_c_bigendian=no
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 # It does not; compile a test program.
4316if test "$cross_compiling" = yes; then
4317 # try to guess the endianness by grepping values into an object file
4318 ac_cv_c_bigendian=unknown
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4326short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4327void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4328short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4329short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4330void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4331int
4332main ()
4333{
4334 _ascii (); _ebcdic ();
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4374 ac_cv_c_bigendian=yes
4375fi
4376if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4377 if test "$ac_cv_c_bigendian" = unknown; then
4378 ac_cv_c_bigendian=no
4379 else
4380 # finding both strings is unlikely to happen, but who knows?
4381 ac_cv_c_bigendian=unknown
4382 fi
4383fi
4384else
4385 echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388
4389fi
4390
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392else
4393 cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
4399$ac_includes_default
4400int
4401main ()
4402{
4403
4404 /* Are we little or big endian? From Harbison&Steele. */
4405 union
4406 {
4407 long int l;
4408 char c[sizeof (long int)];
4409 } u;
4410 u.l = 1;
4411 return u.c[sizeof (long int) - 1] == 1;
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417rm -f conftest$ac_exeext
4418if { (ac_try="$ac_link"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_link") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_c_bigendian=no
4438else
4439 echo "$as_me: program exited with status $ac_status" >&5
4440echo "$as_me: failed program was:" >&5
4441sed 's/^/| /' conftest.$ac_ext >&5
4442
4443( exit $ac_status )
4444ac_cv_c_bigendian=yes
4445fi
4446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4447fi
4448
4449
4450fi
4451
4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453fi
4454{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4455echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4456case $ac_cv_c_bigendian in
4457 yes)
4458 ENDIAN=big
4459 ;;
4460 no)
4461 ENDIAN=little
4462 ;;
4463 *)
4464 { { echo "$as_me:$LINENO: error: unknown endianness
4465presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4466echo "$as_me: error: unknown endianness
4467presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4468 { (exit 1); exit 1; }; } ;;
4469esac
4470
4471
4472if test "$cross_compiling" = yes; then
4473 LLVM_CROSS_COMPILING=1
4474
4475
4476{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4477echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4478if test "${ac_cv_build_exeext+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4482 ac_cv_build_exeext=.exe
4483else
4484 ac_build_prefix=${build_alias}-
4485
4486 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4487set dummy ${ac_build_prefix}gcc; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 if test -n "$BUILD_CC"; then
4494 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4495else
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004503 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507done
4508done
4509IFS=$as_save_IFS
4510
4511fi
4512fi
4513BUILD_CC=$ac_cv_prog_BUILD_CC
4514if test -n "$BUILD_CC"; then
4515 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4516echo "${ECHO_T}$BUILD_CC" >&6; }
4517else
4518 { echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6; }
4520fi
4521
4522
4523 if test -z "$BUILD_CC"; then
4524 # Extract the first word of "gcc", so it can be a program name with args.
4525set dummy gcc; ac_word=$2
4526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 if test -n "$BUILD_CC"; then
4532 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004541 ac_cv_prog_BUILD_CC="gcc"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545done
4546done
4547IFS=$as_save_IFS
4548
4549fi
4550fi
4551BUILD_CC=$ac_cv_prog_BUILD_CC
4552if test -n "$BUILD_CC"; then
4553 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4554echo "${ECHO_T}$BUILD_CC" >&6; }
4555else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
4558fi
4559
4560
4561 if test -z "$BUILD_CC"; then
4562 # Extract the first word of "cc", so it can be a program name with args.
4563set dummy cc; ac_word=$2
4564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 if test -n "$BUILD_CC"; then
4570 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4571else
4572 ac_prog_rejected=no
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4581 ac_prog_rejected=yes
4582 continue
4583 fi
4584 ac_cv_prog_BUILD_CC="cc"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592if test $ac_prog_rejected = yes; then
4593 # We found a bogon in the path, so make sure we never use it.
4594 set dummy $ac_cv_prog_BUILD_CC
4595 shift
4596 if test $# != 0; then
4597 # We chose a different compiler from the bogus one.
4598 # However, it has the same basename, so the bogon will be chosen
4599 # first if we set BUILD_CC to just the basename; use the full file name.
4600 shift
4601 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4602 fi
4603fi
4604fi
4605fi
4606BUILD_CC=$ac_cv_prog_BUILD_CC
4607if test -n "$BUILD_CC"; then
4608 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4609echo "${ECHO_T}$BUILD_CC" >&6; }
4610else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6; }
4613fi
4614
4615
4616 fi
4617 fi
4618 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4619echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4620 { (exit 1); exit 1; }; }
4621 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4622 rm -f conftest*
4623 echo 'int main () { return 0; }' > conftest.$ac_ext
4624 ac_cv_build_exeext=
4625 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4626 (eval $ac_build_link) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; then
4630 for file in conftest.*; do
4631 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004632 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004633 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4634 esac
4635 done
4636 else
4637 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4638echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4639 { (exit 1); exit 1; }; }
4640 fi
4641 rm -f conftest*
4642 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4643fi
4644fi
4645
4646BUILD_EXEEXT=""
4647test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4648{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4649echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4650ac_build_exeext=$BUILD_EXEEXT
4651
Jim Grosbache4c032e2008-10-02 22:56:44 +00004652 ac_build_prefix=${build_alias}-
4653 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4654set dummy ${ac_build_prefix}g++; ac_word=$2
4655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 if test -n "$BUILD_CXX"; then
4661 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004670 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680BUILD_CXX=$ac_cv_prog_BUILD_CXX
4681if test -n "$BUILD_CXX"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4683echo "${ECHO_T}$BUILD_CXX" >&6; }
4684else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6; }
4687fi
4688
4689
4690 if test -z "$BUILD_CXX"; then
4691 # Extract the first word of "g++", so it can be a program name with args.
4692set dummy g++; ac_word=$2
4693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 if test -n "$BUILD_CXX"; then
4699 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004708 ac_cv_prog_BUILD_CXX="g++"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718BUILD_CXX=$ac_cv_prog_BUILD_CXX
4719if test -n "$BUILD_CXX"; then
4720 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4721echo "${ECHO_T}$BUILD_CXX" >&6; }
4722else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728 if test -z "$BUILD_CXX"; then
4729 # Extract the first word of "c++", so it can be a program name with args.
4730set dummy c++; ac_word=$2
4731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 if test -n "$BUILD_CXX"; then
4737 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4738else
4739 ac_prog_rejected=no
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00004746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4748 ac_prog_rejected=yes
4749 continue
4750 fi
4751 ac_cv_prog_BUILD_CXX="c++"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756done
4757IFS=$as_save_IFS
4758
4759if test $ac_prog_rejected = yes; then
4760 # We found a bogon in the path, so make sure we never use it.
4761 set dummy $ac_cv_prog_BUILD_CXX
4762 shift
4763 if test $# != 0; then
4764 # We chose a different compiler from the bogus one.
4765 # However, it has the same basename, so the bogon will be chosen
4766 # first if we set BUILD_CXX to just the basename; use the full file name.
4767 shift
4768 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4769 fi
4770fi
4771fi
4772fi
4773BUILD_CXX=$ac_cv_prog_BUILD_CXX
4774if test -n "$BUILD_CXX"; then
4775 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4776echo "${ECHO_T}$BUILD_CXX" >&6; }
4777else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; }
4780fi
4781
4782
4783 fi
4784 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004785else
4786 LLVM_CROSS_COMPILING=0
4787
4788fi
4789
4790if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4791 cvsbuild="yes"
4792 optimize="no"
4793 CVSBUILD=CVSBUILD=1
4794
4795else
4796 cvsbuild="no"
4797 optimize="yes"
4798fi
4799
4800
4801# Check whether --enable-optimized was given.
4802if test "${enable_optimized+set}" = set; then
4803 enableval=$enable_optimized;
4804else
4805 enableval=$optimize
4806fi
4807
4808if test ${enableval} = "no" ; then
4809 ENABLE_OPTIMIZED=
4810
4811else
4812 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4813
4814fi
4815
4816# Check whether --enable-assertions was given.
4817if test "${enable_assertions+set}" = set; then
4818 enableval=$enable_assertions;
4819else
4820 enableval="yes"
4821fi
4822
4823if test ${enableval} = "yes" ; then
4824 DISABLE_ASSERTIONS=
4825
4826else
4827 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4828
4829fi
4830
4831# Check whether --enable-expensive-checks was given.
4832if test "${enable_expensive_checks+set}" = set; then
4833 enableval=$enable_expensive_checks;
4834else
4835 enableval="no"
4836fi
4837
4838if test ${enableval} = "yes" ; then
4839 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4840
4841 EXPENSIVE_CHECKS=yes
4842
4843else
4844 ENABLE_EXPENSIVE_CHECKS=
4845
4846 EXPENSIVE_CHECKS=no
4847
4848fi
4849
4850# Check whether --enable-debug-runtime was given.
4851if test "${enable_debug_runtime+set}" = set; then
4852 enableval=$enable_debug_runtime;
4853else
4854 enableval=no
4855fi
4856
4857if test ${enableval} = "no" ; then
4858 DEBUG_RUNTIME=
4859
4860else
4861 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4862
4863fi
4864
4865# Check whether --enable-jit was given.
4866if test "${enable_jit+set}" = set; then
4867 enableval=$enable_jit;
4868else
4869 enableval=default
4870fi
4871
4872if test ${enableval} = "no"
4873then
4874 JIT=
4875
4876else
4877 case "$llvm_cv_target_arch" in
4878 x86) TARGET_HAS_JIT=1
4879 ;;
4880 Sparc) TARGET_HAS_JIT=0
4881 ;;
4882 PowerPC) TARGET_HAS_JIT=1
4883 ;;
4884 x86_64) TARGET_HAS_JIT=1
4885 ;;
4886 Alpha) TARGET_HAS_JIT=1
4887 ;;
4888 IA64) TARGET_HAS_JIT=0
4889 ;;
4890 ARM) TARGET_HAS_JIT=0
4891 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004892 Mips) TARGET_HAS_JIT=0
4893 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004894 PIC16) TARGET_HAS_JIT=0
4895 ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004896 XCore) TARGET_HAS_JIT=0
4897 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004898 *) TARGET_HAS_JIT=0
4899 ;;
4900 esac
4901fi
4902
4903# Check whether --enable-doxygen was given.
4904if test "${enable_doxygen+set}" = set; then
4905 enableval=$enable_doxygen;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_DOXYGEN=1
4912 ;;
4913 no) ENABLE_DOXYGEN=0
4914 ;;
4915 default) ENABLE_DOXYGEN=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
4922# Check whether --enable-threads was given.
4923if test "${enable_threads+set}" = set; then
4924 enableval=$enable_threads;
4925else
4926 enableval=default
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_THREADS=1
4931 ;;
4932 no) ENABLE_THREADS=0
4933 ;;
4934 default) ENABLE_THREADS=1
4935 ;;
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_THREADS $ENABLE_THREADS
4943_ACEOF
4944
4945
4946# Check whether --enable-pic was given.
4947if test "${enable_pic+set}" = set; then
4948 enableval=$enable_pic;
4949else
4950 enableval=default
4951fi
4952
4953case "$enableval" in
4954 yes) ENABLE_PIC=1
4955 ;;
4956 no) ENABLE_PIC=0
4957 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004958 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004959 ;;
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4961echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4963esac
4964
4965cat >>confdefs.h <<_ACEOF
4966#define ENABLE_PIC $ENABLE_PIC
4967_ACEOF
4968
4969
4970TARGETS_TO_BUILD=""
4971# Check whether --enable-targets was given.
4972if test "${enable_targets+set}" = set; then
4973 enableval=$enable_targets;
4974else
4975 enableval=all
4976fi
4977
4978case "$enableval" in
Richard Osborneab8167a2008-11-07 10:59:00 +00004979 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004980 host-only)
4981 case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86" ;;
4983 x86_64) TARGETS_TO_BUILD="X86" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4987 IA64) TARGETS_TO_BUILD="IA64" ;;
4988 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004989 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004991 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004992 XCore) TARGETS_TO_BUILD="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4996 esac
4997 ;;
4998 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4999 case "$a_target" in
5000 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5002 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5003 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5004 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5005 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
5006 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00005007 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00005008 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00005009 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00005010 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00005011 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00005013 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005014 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5015echo "$as_me: error: Unrecognized target $a_target" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5017 esac
5018 done
5019 ;;
5020esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005021TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5022
5023
5024# Check whether --enable-cbe-printf-a was given.
5025if test "${enable_cbe_printf_a+set}" = set; then
5026 enableval=$enable_cbe_printf_a;
5027else
5028 enableval=default
5029fi
5030
5031case "$enableval" in
5032 yes) ENABLE_CBE_PRINTF_A=1
5033 ;;
5034 no) ENABLE_CBE_PRINTF_A=0
5035 ;;
5036 default) ENABLE_CBE_PRINTF_A=1
5037 ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5039echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
5043cat >>confdefs.h <<_ACEOF
5044#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5045_ACEOF
5046
5047
5048
5049# Check whether --with-llvmgccdir was given.
5050if test "${with_llvmgccdir+set}" = set; then
5051 withval=$with_llvmgccdir;
5052else
5053 withval=default
5054fi
5055
5056case "$withval" in
5057 default) WITH_LLVMGCCDIR=default ;;
5058 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5059 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5060echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5062esac
5063
5064
Devang Pateld84ba7b2007-12-04 22:54:47 +00005065# Check whether --with-llvmgcc was given.
5066if test "${with_llvmgcc+set}" = set; then
5067 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5068 WITH_LLVMGCCDIR=""
5069fi
5070
5071
5072
5073# Check whether --with-llvmgxx was given.
5074if test "${with_llvmgxx+set}" = set; then
5075 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5076 WITH_LLVMGCCDIR=""
5077fi
5078
5079
5080if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5084fi
5085
5086if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5090fi
5091
5092
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005093# Check whether --with-extra-options was given.
5094if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5096else
5097 withval=default
5098fi
5099
5100case "$withval" in
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5103esac
5104EXTRA_OPTIONS=$EXTRA_OPTIONS
5105
5106
Gordon Henriksen016ec472007-10-02 09:50:32 +00005107# Check whether --enable-bindings was given.
5108if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5110else
5111 enableval=default
5112fi
5113
5114BINDINGS_TO_BUILD=""
5115case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125 esac
5126 done
5127 ;;
5128esac
5129
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005130
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005131# Check whether --with-ocaml-libdir was given.
5132if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5134else
5135 withval=auto
5136fi
5137
5138case "$withval" in
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144esac
5145
5146
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005147# Check whether --with-binutils-include was given.
5148if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5150else
5151 withval=default
5152fi
5153
5154case "$withval" in
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5160esac
5161if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5163
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5169 fi
5170fi
5171
5172
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5180# On Suns, sometimes $CPP names a directory.
5181if test -n "$CPP" && test -d "$CPP"; then
5182 CPP=
5183fi
5184if test -z "$CPP"; then
5185 if test "${ac_cv_prog_CPP+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 # Double quotes because CPP needs to be expanded
5189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190 do
5191 ac_preproc_ok=false
5192for ac_c_preproc_warn_flag in '' yes
5193do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211 Syntax error
5212_ACEOF
5213if { (ac_try="$ac_cpp conftest.$ac_ext"
5214case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217esac
5218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005225 (exit $ac_status); } >/dev/null; then
5226 if test -s conftest.err; then
5227 ac_cpp_err=$ac_c_preproc_warn_flag
5228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5229 else
5230 ac_cpp_err=
5231 fi
5232else
5233 ac_cpp_err=yes
5234fi
5235if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005236 :
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Broken: fails on valid input.
5242continue
5243fi
5244
5245rm -f conftest.err conftest.$ac_ext
5246
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#include <ac_nonexistent.h>
5256_ACEOF
5257if { (ac_try="$ac_cpp conftest.$ac_ext"
5258case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273 else
5274 ac_cpp_err=
5275 fi
5276else
5277 ac_cpp_err=yes
5278fi
5279if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005280 # Broken: success on invalid input.
5281continue
5282else
5283 echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 # Passes both tests.
5287ac_preproc_ok=:
5288break
5289fi
5290
5291rm -f conftest.err conftest.$ac_ext
5292
5293done
5294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295rm -f conftest.err conftest.$ac_ext
5296if $ac_preproc_ok; then
5297 break
5298fi
5299
5300 done
5301 ac_cv_prog_CPP=$CPP
5302
5303fi
5304 CPP=$ac_cv_prog_CPP
5305else
5306 ac_cv_prog_CPP=$CPP
5307fi
5308{ echo "$as_me:$LINENO: result: $CPP" >&5
5309echo "${ECHO_T}$CPP" >&6; }
5310ac_preproc_ok=false
5311for ac_c_preproc_warn_flag in '' yes
5312do
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#ifdef __STDC__
5326# include <limits.h>
5327#else
5328# include <assert.h>
5329#endif
5330 Syntax error
5331_ACEOF
5332if { (ac_try="$ac_cpp conftest.$ac_ext"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351else
5352 ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005355 :
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 # Broken: fails on valid input.
5361continue
5362fi
5363
5364rm -f conftest.err conftest.$ac_ext
5365
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#include <ac_nonexistent.h>
5375_ACEOF
5376if { (ac_try="$ac_cpp conftest.$ac_ext"
5377case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5394 fi
5395else
5396 ac_cpp_err=yes
5397fi
5398if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005399 # Broken: success on invalid input.
5400continue
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 :
5417else
5418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419See \`config.log' for more details." >&5
5420echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5423fi
5424
5425ac_ext=c
5426ac_cpp='$CPP $CPPFLAGS'
5427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431ac_ext=c
5432ac_cpp='$CPP $CPPFLAGS'
5433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436if test -n "$ac_tool_prefix"; then
5437 for ac_prog in gcc
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443if test "${ac_cv_prog_CC+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446 if test -n "$CC"; then
5447 ac_cv_prog_CC="$CC" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466CC=$ac_cv_prog_CC
5467if test -n "$CC"; then
5468 { echo "$as_me:$LINENO: result: $CC" >&5
5469echo "${ECHO_T}$CC" >&6; }
5470else
5471 { echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6; }
5473fi
5474
5475
5476 test -n "$CC" && break
5477 done
5478fi
5479if test -z "$CC"; then
5480 ac_ct_CC=$CC
5481 for ac_prog in gcc
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 if test -n "$ac_ct_CC"; then
5491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005500 ac_cv_prog_ac_ct_CC="$ac_prog"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_CC=$ac_cv_prog_ac_ct_CC
5511if test -n "$ac_ct_CC"; then
5512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5513echo "${ECHO_T}$ac_ct_CC" >&6; }
5514else
5515 { echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6; }
5517fi
5518
5519
5520 test -n "$ac_ct_CC" && break
5521done
5522
5523 if test "x$ac_ct_CC" = x; then
5524 CC=""
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529whose name does not start with the host triplet. If you think this
5530configuration is useful to you, please write to autoconf@gnu.org." >&5
5531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532whose name does not start with the host triplet. If you think this
5533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5534ac_tool_warned=yes ;;
5535esac
5536 CC=$ac_ct_CC
5537 fi
5538fi
5539
5540
5541test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5542See \`config.log' for more details." >&5
5543echo "$as_me: error: no acceptable C compiler found in \$PATH
5544See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5546
5547# Provide some information about the compiler.
5548echo "$as_me:$LINENO: checking for C compiler version" >&5
5549ac_compiler=`set X $ac_compile; echo $2`
5550{ (ac_try="$ac_compiler --version >&5"
5551case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compiler --version >&5") 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }
5560{ (ac_try="$ac_compiler -v >&5"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compiler -v >&5") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570{ (ac_try="$ac_compiler -V >&5"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580
5581{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5583if test "${ac_cv_c_compiler_gnu+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592
5593int
5594main ()
5595{
5596#ifndef __GNUC__
5597 choke me
5598#endif
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604rm -f conftest.$ac_objext
5605if { (ac_try="$ac_compile"
5606case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622esac
5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_try") 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_try") 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005638 ac_compiler_gnu=yes
5639else
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_compiler_gnu=no
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647ac_cv_c_compiler_gnu=$ac_compiler_gnu
5648
5649fi
5650{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5652GCC=`test $ac_compiler_gnu = yes && echo yes`
5653ac_test_CFLAGS=${CFLAGS+set}
5654ac_save_CFLAGS=$CFLAGS
5655{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5656echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5657if test "${ac_cv_prog_cc_g+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660 ac_save_c_werror_flag=$ac_c_werror_flag
5661 ac_c_werror_flag=yes
5662 ac_cv_prog_cc_g=no
5663 CFLAGS="-g"
5664 cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670
5671int
5672main ()
5673{
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext
5680if { (ac_try="$ac_compile"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($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_try") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005713 ac_cv_prog_cc_g=yes
5714else
5715 echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 CFLAGS=""
5719 cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725
5726int
5727main ()
5728{
5729
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (ac_try="$ac_compile"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_try") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005768 :
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_c_werror_flag=$ac_save_c_werror_flag
5774 CFLAGS="-g"
5775 cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781
5782int
5783main ()
5784{
5785
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005824 ac_cv_prog_cc_g=yes
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830fi
5831
5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833fi
5834
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_c_werror_flag=$ac_save_c_werror_flag
5840fi
5841{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5842echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5843if test "$ac_test_CFLAGS" = set; then
5844 CFLAGS=$ac_save_CFLAGS
5845elif test $ac_cv_prog_cc_g = yes; then
5846 if test "$GCC" = yes; then
5847 CFLAGS="-g -O2"
5848 else
5849 CFLAGS="-g"
5850 fi
5851else
5852 if test "$GCC" = yes; then
5853 CFLAGS="-O2"
5854 else
5855 CFLAGS=
5856 fi
5857fi
5858{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5859echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5860if test "${ac_cv_prog_cc_c89+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863 ac_cv_prog_cc_c89=no
5864ac_save_CC=$CC
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871#include <stdarg.h>
5872#include <stdio.h>
5873#include <sys/types.h>
5874#include <sys/stat.h>
5875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5876struct buf { int x; };
5877FILE * (*rcsopen) (struct buf *, struct stat *, int);
5878static char *e (p, i)
5879 char **p;
5880 int i;
5881{
5882 return p[i];
5883}
5884static char *f (char * (*g) (char **, int), char **p, ...)
5885{
5886 char *s;
5887 va_list v;
5888 va_start (v,p);
5889 s = g (p, va_arg (v,int));
5890 va_end (v);
5891 return s;
5892}
5893
5894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5895 function prototypes and stuff, but not '\xHH' hex character constants.
5896 These don't provoke an error unfortunately, instead are silently treated
5897 as 'x'. The following induces an error, until -std is added to get
5898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5899 array size at least. It's necessary to write '\x00'==0 to get something
5900 that's true only with -std. */
5901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5902
5903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5904 inside strings and character constants. */
5905#define FOO(x) 'x'
5906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5907
5908int test (int i, double x);
5909struct s1 {int (*f) (int a);};
5910struct s2 {int (*f) (double a);};
5911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5912int argc;
5913char **argv;
5914int
5915main ()
5916{
5917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5924do
5925 CC="$ac_save_CC $ac_arg"
5926 rm -f conftest.$ac_objext
5927if { (ac_try="$ac_compile"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00005939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005960 ac_cv_prog_cc_c89=$ac_arg
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5966fi
5967
5968rm -f core conftest.err conftest.$ac_objext
5969 test "x$ac_cv_prog_cc_c89" != "xno" && break
5970done
5971rm -f conftest.$ac_ext
5972CC=$ac_save_CC
5973
5974fi
5975# AC_CACHE_VAL
5976case "x$ac_cv_prog_cc_c89" in
5977 x)
5978 { echo "$as_me:$LINENO: result: none needed" >&5
5979echo "${ECHO_T}none needed" >&6; } ;;
5980 xno)
5981 { echo "$as_me:$LINENO: result: unsupported" >&5
5982echo "${ECHO_T}unsupported" >&6; } ;;
5983 *)
5984 CC="$CC $ac_cv_prog_cc_c89"
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5986echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5987esac
5988
5989
5990ac_ext=c
5991ac_cpp='$CPP $CPPFLAGS'
5992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996ac_ext=cpp
5997ac_cpp='$CXXCPP $CPPFLAGS'
5998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001if test -z "$CXX"; then
6002 if test -n "$CCC"; then
6003 CXX=$CCC
6004 else
6005 if test -n "$ac_tool_prefix"; then
6006 for ac_prog in g++
6007 do
6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012if test "${ac_cv_prog_CXX+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015 if test -n "$CXX"; then
6016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035CXX=$ac_cv_prog_CXX
6036if test -n "$CXX"; then
6037 { echo "$as_me:$LINENO: result: $CXX" >&5
6038echo "${ECHO_T}$CXX" >&6; }
6039else
6040 { echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6; }
6042fi
6043
6044
6045 test -n "$CXX" && break
6046 done
6047fi
6048if test -z "$CXX"; then
6049 ac_ct_CXX=$CXX
6050 for ac_prog in g++
6051do
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053set dummy $ac_prog; ac_word=$2
6054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059 if test -n "$ac_ct_CXX"; then
6060 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006069 ac_cv_prog_ac_ct_CXX="$ac_prog"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073done
6074done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6080if test -n "$ac_ct_CXX"; then
6081 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6082echo "${ECHO_T}$ac_ct_CXX" >&6; }
6083else
6084 { echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6; }
6086fi
6087
6088
6089 test -n "$ac_ct_CXX" && break
6090done
6091
6092 if test "x$ac_ct_CXX" = x; then
6093 CXX="g++"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096yes:)
6097{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6098whose name does not start with the host triplet. If you think this
6099configuration is useful to you, please write to autoconf@gnu.org." >&5
6100echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6101whose name does not start with the host triplet. If you think this
6102configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6103ac_tool_warned=yes ;;
6104esac
6105 CXX=$ac_ct_CXX
6106 fi
6107fi
6108
6109 fi
6110fi
6111# Provide some information about the compiler.
6112echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6113ac_compiler=`set X $ac_compile; echo $2`
6114{ (ac_try="$ac_compiler --version >&5"
6115case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compiler --version >&5") 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }
6124{ (ac_try="$ac_compiler -v >&5"
6125case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_compiler -v >&5") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }
6134{ (ac_try="$ac_compiler -V >&5"
6135case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compiler -V >&5") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }
6144
6145{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6146echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6147if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156
6157int
6158main ()
6159{
6160#ifndef __GNUC__
6161 choke me
6162#endif
6163
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext
6169if { (ac_try="$ac_compile"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186esac
6187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_try") 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006202 ac_compiler_gnu=yes
6203else
6204 echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_compiler_gnu=no
6208fi
6209
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6212
6213fi
6214{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6215echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6216GXX=`test $ac_compiler_gnu = yes && echo yes`
6217ac_test_CXXFLAGS=${CXXFLAGS+set}
6218ac_save_CXXFLAGS=$CXXFLAGS
6219{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6220echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6221if test "${ac_cv_prog_cxx_g+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6225 ac_cxx_werror_flag=yes
6226 ac_cv_prog_cxx_g=no
6227 CXXFLAGS="-g"
6228 cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234
6235int
6236main ()
6237{
6238
6239 ;
6240 return 0;
6241}
6242_ACEOF
6243rm -f conftest.$ac_objext
6244if { (ac_try="$ac_compile"
6245case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_try") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006277 ac_cv_prog_cxx_g=yes
6278else
6279 echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 CXXFLAGS=""
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289
6290int
6291main ()
6292{
6293
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_try") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006332 :
6333else
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6338 CXXFLAGS="-g"
6339 cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345
6346int
6347main ()
6348{
6349
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (ac_try="$ac_compile"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006388 ac_cv_prog_cxx_g=yes
6389else
6390 echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393
6394fi
6395
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6404fi
6405{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6406echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6407if test "$ac_test_CXXFLAGS" = set; then
6408 CXXFLAGS=$ac_save_CXXFLAGS
6409elif test $ac_cv_prog_cxx_g = yes; then
6410 if test "$GXX" = yes; then
6411 CXXFLAGS="-g -O2"
6412 else
6413 CXXFLAGS="-g"
6414 fi
6415else
6416 if test "$GXX" = yes; then
6417 CXXFLAGS="-O2"
6418 else
6419 CXXFLAGS=
6420 fi
6421fi
6422ac_ext=c
6423ac_cpp='$CPP $CPPFLAGS'
6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006428
6429{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6430echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6431if test "${lt_cv_path_NM+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 if test -n "$NM"; then
6435 # Let the user override the test.
6436 lt_cv_path_NM="$NM"
6437else
6438 lt_nm_to_check="${ac_tool_prefix}nm"
6439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6440 lt_nm_to_check="$lt_nm_to_check nm"
6441 fi
6442 for lt_tmp_nm in $lt_nm_to_check; do
6443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6445 IFS="$lt_save_ifs"
6446 test -z "$ac_dir" && ac_dir=.
6447 tmp_nm="$ac_dir/$lt_tmp_nm"
6448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6449 # Check to see if the nm accepts a BSD-compat flag.
6450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6451 # nm: unknown option "B" ignored
6452 # Tru64's nm complains that /dev/null is an invalid object file
6453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6454 */dev/null* | *'Invalid file or object type'*)
6455 lt_cv_path_NM="$tmp_nm -B"
6456 break
6457 ;;
6458 *)
6459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6460 */dev/null*)
6461 lt_cv_path_NM="$tmp_nm -p"
6462 break
6463 ;;
6464 *)
6465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6466 continue # so that we can try to find one that supports BSD flags
6467 ;;
6468 esac
6469 ;;
6470 esac
6471 fi
6472 done
6473 IFS="$lt_save_ifs"
6474 done
6475 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6476fi
6477fi
6478{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6479echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6480NM="$lt_cv_path_NM"
6481
6482
6483
6484{ echo "$as_me:$LINENO: checking for GNU make" >&5
6485echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6486if test "${llvm_cv_gnu_make_command+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489 llvm_cv_gnu_make_command=''
6490 for a in "$MAKE" make gmake gnumake ; do
6491 if test -z "$a" ; then continue ; fi ;
6492 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6493 then
6494 llvm_cv_gnu_make_command=$a ;
6495 break;
6496 fi
6497 done
6498fi
6499{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6500echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6501 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6502 ifGNUmake='' ;
6503 else
6504 ifGNUmake='#' ;
6505 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6506echo "${ECHO_T}\"Not found\"" >&6; };
6507 fi
6508
6509
6510{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6511echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6512LN_S=$as_ln_s
6513if test "$LN_S" = "ln -s"; then
6514 { echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6; }
6516else
6517 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6518echo "${ECHO_T}no, using $LN_S" >&6; }
6519fi
6520
6521# Extract the first word of "cmp", so it can be a program name with args.
6522set dummy cmp; ac_word=$2
6523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525if test "${ac_cv_path_CMP+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 case $CMP in
6529 [\\/]* | ?:[\\/]*)
6530 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6531 ;;
6532 *)
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006540 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544done
6545done
6546IFS=$as_save_IFS
6547
6548 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6549 ;;
6550esac
6551fi
6552CMP=$ac_cv_path_CMP
6553if test -n "$CMP"; then
6554 { echo "$as_me:$LINENO: result: $CMP" >&5
6555echo "${ECHO_T}$CMP" >&6; }
6556else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559fi
6560
6561
6562# Extract the first word of "cp", so it can be a program name with args.
6563set dummy cp; ac_word=$2
6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_CP+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 case $CP in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006581 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6590 ;;
6591esac
6592fi
6593CP=$ac_cv_path_CP
6594if test -n "$CP"; then
6595 { echo "$as_me:$LINENO: result: $CP" >&5
6596echo "${ECHO_T}$CP" >&6; }
6597else
6598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
6600fi
6601
6602
6603# Extract the first word of "date", so it can be a program name with args.
6604set dummy date; ac_word=$2
6605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_DATE+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 case $DATE in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006622 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6631 ;;
6632esac
6633fi
6634DATE=$ac_cv_path_DATE
6635if test -n "$DATE"; then
6636 { echo "$as_me:$LINENO: result: $DATE" >&5
6637echo "${ECHO_T}$DATE" >&6; }
6638else
6639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
6641fi
6642
6643
6644# Extract the first word of "find", so it can be a program name with args.
6645set dummy find; ac_word=$2
6646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648if test "${ac_cv_path_FIND+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 case $FIND in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006663 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667done
6668done
6669IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6672 ;;
6673esac
6674fi
6675FIND=$ac_cv_path_FIND
6676if test -n "$FIND"; then
6677 { echo "$as_me:$LINENO: result: $FIND" >&5
6678echo "${ECHO_T}$FIND" >&6; }
6679else
6680 { echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6; }
6682fi
6683
6684
6685# Extract the first word of "grep", so it can be a program name with args.
6686set dummy grep; ac_word=$2
6687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_GREP+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 case $GREP in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006704 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6713 ;;
6714esac
6715fi
6716GREP=$ac_cv_path_GREP
6717if test -n "$GREP"; then
6718 { echo "$as_me:$LINENO: result: $GREP" >&5
6719echo "${ECHO_T}$GREP" >&6; }
6720else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
6723fi
6724
6725
6726# Extract the first word of "mkdir", so it can be a program name with args.
6727set dummy mkdir; ac_word=$2
6728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_path_MKDIR+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 case $MKDIR in
6734 [\\/]* | ?:[\\/]*)
6735 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6736 ;;
6737 *)
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006745 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750done
6751IFS=$as_save_IFS
6752
6753 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6754 ;;
6755esac
6756fi
6757MKDIR=$ac_cv_path_MKDIR
6758if test -n "$MKDIR"; then
6759 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6760echo "${ECHO_T}$MKDIR" >&6; }
6761else
6762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
6764fi
6765
6766
6767# Extract the first word of "mv", so it can be a program name with args.
6768set dummy mv; ac_word=$2
6769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_path_MV+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 case $MV in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
6792IFS=$as_save_IFS
6793
6794 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6795 ;;
6796esac
6797fi
6798MV=$ac_cv_path_MV
6799if test -n "$MV"; then
6800 { echo "$as_me:$LINENO: result: $MV" >&5
6801echo "${ECHO_T}$MV" >&6; }
6802else
6803 { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
6805fi
6806
6807
6808if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_prog_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 if test -n "$RANLIB"; then
6817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836RANLIB=$ac_cv_prog_RANLIB
6837if test -n "$RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6839echo "${ECHO_T}$RANLIB" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_RANLIB"; then
6848 ac_ct_RANLIB=$RANLIB
6849 # Extract the first word of "ranlib", so it can be a program name with args.
6850set dummy ranlib; ac_word=$2
6851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006866 ac_cv_prog_ac_ct_RANLIB="ranlib"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877if test -n "$ac_ct_RANLIB"; then
6878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6880else
6881 { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
6883fi
6884
6885 if test "x$ac_ct_RANLIB" = x; then
6886 RANLIB=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891whose name does not start with the host triplet. If you think this
6892configuration is useful to you, please write to autoconf@gnu.org." >&5
6893echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894whose name does not start with the host triplet. If you think this
6895configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898 RANLIB=$ac_ct_RANLIB
6899 fi
6900else
6901 RANLIB="$ac_cv_prog_RANLIB"
6902fi
6903
6904# Extract the first word of "rm", so it can be a program name with args.
6905set dummy rm; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_RM+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 case $RM in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006923 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6932 ;;
6933esac
6934fi
6935RM=$ac_cv_path_RM
6936if test -n "$RM"; then
6937 { echo "$as_me:$LINENO: result: $RM" >&5
6938echo "${ECHO_T}$RM" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945# Extract the first word of "sed", so it can be a program name with args.
6946set dummy sed; ac_word=$2
6947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_SED+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 case $SED in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00006963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006964 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6973 ;;
6974esac
6975fi
6976SED=$ac_cv_path_SED
6977if test -n "$SED"; then
6978 { echo "$as_me:$LINENO: result: $SED" >&5
6979echo "${ECHO_T}$SED" >&6; }
6980else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
6983fi
6984
6985
6986# Extract the first word of "tar", so it can be a program name with args.
6987set dummy tar; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_TAR+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 case $TAR in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007005 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011IFS=$as_save_IFS
7012
7013 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7014 ;;
7015esac
7016fi
7017TAR=$ac_cv_path_TAR
7018if test -n "$TAR"; then
7019 { echo "$as_me:$LINENO: result: $TAR" >&5
7020echo "${ECHO_T}$TAR" >&6; }
7021else
7022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
7024fi
7025
7026
7027# Extract the first word of "pwd", so it can be a program name with args.
7028set dummy pwd; ac_word=$2
7029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031if test "${ac_cv_path_BINPWD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034 case $BINPWD in
7035 [\\/]* | ?:[\\/]*)
7036 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7037 ;;
7038 *)
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007046 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050done
7051done
7052IFS=$as_save_IFS
7053
7054 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7055 ;;
7056esac
7057fi
7058BINPWD=$ac_cv_path_BINPWD
7059if test -n "$BINPWD"; then
7060 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7061echo "${ECHO_T}$BINPWD" >&6; }
7062else
7063 { echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6; }
7065fi
7066
7067
7068
7069# Extract the first word of "Graphviz", so it can be a program name with args.
7070set dummy Graphviz; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $GRAPHVIZ in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007088 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7097 ;;
7098esac
7099fi
7100GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7101if test -n "$GRAPHVIZ"; then
7102 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7103echo "${ECHO_T}$GRAPHVIZ" >&6; }
7104else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6; }
7107fi
7108
7109
7110if test "$GRAPHVIZ" != "echo Graphviz" ; then
7111
7112cat >>confdefs.h <<\_ACEOF
7113#define HAVE_GRAPHVIZ 1
7114_ACEOF
7115
7116 if test "$llvm_cv_os_type" = "MingW" ; then
7117 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7118 fi
7119
7120cat >>confdefs.h <<_ACEOF
7121#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7122_ACEOF
7123
7124fi
7125# Extract the first word of "dot", so it can be a program name with args.
7126set dummy dot; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_DOT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $DOT in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007144 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7153 ;;
7154esac
7155fi
7156DOT=$ac_cv_path_DOT
7157if test -n "$DOT"; then
7158 { echo "$as_me:$LINENO: result: $DOT" >&5
7159echo "${ECHO_T}$DOT" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166if test "$DOT" != "echo dot" ; then
7167
7168cat >>confdefs.h <<\_ACEOF
7169#define HAVE_DOT 1
7170_ACEOF
7171
7172 if test "$llvm_cv_os_type" = "MingW" ; then
7173 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7174 fi
7175
7176cat >>confdefs.h <<_ACEOF
7177#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7178_ACEOF
7179
7180fi
7181for ac_prog in gv gsview32
7182do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184set dummy $ac_prog; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_GV+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 case $GV in
7191 [\\/]* | ?:[\\/]*)
7192 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7193 ;;
7194 *)
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007202 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210 ;;
7211esac
7212fi
7213GV=$ac_cv_path_GV
7214if test -n "$GV"; then
7215 { echo "$as_me:$LINENO: result: $GV" >&5
7216echo "${ECHO_T}$GV" >&6; }
7217else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
7220fi
7221
7222
7223 test -n "$GV" && break
7224done
7225test -n "$GV" || GV="echo gv"
7226
7227if test "$GV" != "echo gv" ; then
7228
7229cat >>confdefs.h <<\_ACEOF
7230#define HAVE_GV 1
7231_ACEOF
7232
7233 if test "$llvm_cv_os_type" = "MingW" ; then
7234 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7235 fi
7236
7237cat >>confdefs.h <<_ACEOF
7238#define LLVM_PATH_GV "$GV${EXEEXT}"
7239_ACEOF
7240
7241fi
7242# Extract the first word of "dotty", so it can be a program name with args.
7243set dummy dotty; ac_word=$2
7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_DOTTY+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 case $DOTTY in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007261 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7270 ;;
7271esac
7272fi
7273DOTTY=$ac_cv_path_DOTTY
7274if test -n "$DOTTY"; then
7275 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7276echo "${ECHO_T}$DOTTY" >&6; }
7277else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282
7283if test "$DOTTY" != "echo dotty" ; then
7284
7285cat >>confdefs.h <<\_ACEOF
7286#define HAVE_DOTTY 1
7287_ACEOF
7288
7289 if test "$llvm_cv_os_type" = "MingW" ; then
7290 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7291 fi
7292
7293cat >>confdefs.h <<_ACEOF
7294#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7295_ACEOF
7296
7297fi
7298
7299
7300# Extract the first word of "perl", so it can be a program name with args.
7301set dummy perl; ac_word=$2
7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_PERL+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 case $PERL in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323done
7324done
7325IFS=$as_save_IFS
7326
7327 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7328 ;;
7329esac
7330fi
7331PERL=$ac_cv_path_PERL
7332if test -n "$PERL"; then
7333 { echo "$as_me:$LINENO: result: $PERL" >&5
7334echo "${ECHO_T}$PERL" >&6; }
7335else
7336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
7338fi
7339
7340
7341if test "$PERL" != "none"; then
7342 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7343echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7344 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7345 { echo "$as_me:$LINENO: result: yes" >&5
7346echo "${ECHO_T}yes" >&6; }
7347 else
7348 PERL=none
7349 { echo "$as_me:$LINENO: result: not found" >&5
7350echo "${ECHO_T}not found" >&6; }
7351 fi
7352fi
7353
7354
7355if test x"$PERL" = xnone; then
7356 HAVE_PERL=0
7357
7358 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7359echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7360 { (exit 1); exit 1; }; }
7361else
7362 HAVE_PERL=1
7363
7364fi
7365
7366# Find a good install program. We prefer a C program (faster),
7367# so one script is as good as another. But avoid the broken or
7368# incompatible versions:
7369# SysV /etc/install, /usr/sbin/install
7370# SunOS /usr/etc/install
7371# IRIX /sbin/install
7372# AIX /bin/install
7373# AmigaOS /C/install, which installs bootblocks on floppy discs
7374# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7375# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7376# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7377# OS/2's system install, which has a completely different semantic
7378# ./install, which can be erroneously created by make from ./install.sh.
7379{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7380echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7381if test -z "$INSTALL"; then
7382if test "${ac_cv_path_install+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 # Account for people who put trailing slashes in PATH elements.
7391case $as_dir/ in
7392 ./ | .// | /cC/* | \
7393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7395 /usr/ucb/* ) ;;
7396 *)
7397 # OSF1 and SCO ODT 3.0 have their own names for install.
7398 # Don't use installbsd from OSF since it installs stuff as root
7399 # by default.
7400 for ac_prog in ginstall scoinst install; do
7401 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007402 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007403 if test $ac_prog = install &&
7404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405 # AIX install. It has an incompatible calling convention.
7406 :
7407 elif test $ac_prog = install &&
7408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7409 # program-specific install script used by HP pwplus--don't use.
7410 :
7411 else
7412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7413 break 3
7414 fi
7415 fi
7416 done
7417 done
7418 ;;
7419esac
7420done
7421IFS=$as_save_IFS
7422
7423
7424fi
7425 if test "${ac_cv_path_install+set}" = set; then
7426 INSTALL=$ac_cv_path_install
7427 else
7428 # As a last resort, use the slow shell script. Don't cache a
7429 # value for INSTALL within a source directory, because that will
7430 # break other packages using the cache if that directory is
7431 # removed, or if the value is a relative name.
7432 INSTALL=$ac_install_sh
7433 fi
7434fi
7435{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7436echo "${ECHO_T}$INSTALL" >&6; }
7437
7438# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7439# It thinks the first close brace ends the variable substitution.
7440test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7441
7442test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7443
7444test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7445
7446
7447# Extract the first word of "bzip2", so it can be a program name with args.
7448set dummy bzip2; ac_word=$2
7449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451if test "${ac_cv_path_BZIP2+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 case $BZIP2 in
7455 [\\/]* | ?:[\\/]*)
7456 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7457 ;;
7458 *)
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007466 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470done
7471done
7472IFS=$as_save_IFS
7473
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007474 ;;
7475esac
7476fi
7477BZIP2=$ac_cv_path_BZIP2
7478if test -n "$BZIP2"; then
7479 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7480echo "${ECHO_T}$BZIP2" >&6; }
7481else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487# Extract the first word of "doxygen", so it can be a program name with args.
7488set dummy doxygen; ac_word=$2
7489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491if test "${ac_cv_path_DOXYGEN+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494 case $DOXYGEN in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7497 ;;
7498 *)
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007506 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511done
7512IFS=$as_save_IFS
7513
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007514 ;;
7515esac
7516fi
7517DOXYGEN=$ac_cv_path_DOXYGEN
7518if test -n "$DOXYGEN"; then
7519 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7520echo "${ECHO_T}$DOXYGEN" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527# Extract the first word of "groff", so it can be a program name with args.
7528set dummy groff; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_GROFF+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 case $GROFF in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007546 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552IFS=$as_save_IFS
7553
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007554 ;;
7555esac
7556fi
7557GROFF=$ac_cv_path_GROFF
7558if test -n "$GROFF"; then
7559 { echo "$as_me:$LINENO: result: $GROFF" >&5
7560echo "${ECHO_T}$GROFF" >&6; }
7561else
7562 { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
7564fi
7565
7566
7567# Extract the first word of "gzip", so it can be a program name with args.
7568set dummy gzip; ac_word=$2
7569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571if test "${ac_cv_path_GZIP+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574 case $GZIP in
7575 [\\/]* | ?:[\\/]*)
7576 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7577 ;;
7578 *)
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007586 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590done
7591done
7592IFS=$as_save_IFS
7593
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007594 ;;
7595esac
7596fi
7597GZIP=$ac_cv_path_GZIP
7598if test -n "$GZIP"; then
7599 { echo "$as_me:$LINENO: result: $GZIP" >&5
7600echo "${ECHO_T}$GZIP" >&6; }
7601else
7602 { echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6; }
7604fi
7605
7606
7607# Extract the first word of "pod2html", so it can be a program name with args.
7608set dummy pod2html; ac_word=$2
7609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611if test "${ac_cv_path_POD2HTML+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 case $POD2HTML in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007626 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630done
7631done
7632IFS=$as_save_IFS
7633
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007634 ;;
7635esac
7636fi
7637POD2HTML=$ac_cv_path_POD2HTML
7638if test -n "$POD2HTML"; then
7639 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7640echo "${ECHO_T}$POD2HTML" >&6; }
7641else
7642 { echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6; }
7644fi
7645
7646
7647# Extract the first word of "pod2man", so it can be a program name with args.
7648set dummy pod2man; ac_word=$2
7649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651if test "${ac_cv_path_POD2MAN+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 case $POD2MAN in
7655 [\\/]* | ?:[\\/]*)
7656 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007666 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671done
7672IFS=$as_save_IFS
7673
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007674 ;;
7675esac
7676fi
7677POD2MAN=$ac_cv_path_POD2MAN
7678if test -n "$POD2MAN"; then
7679 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7680echo "${ECHO_T}$POD2MAN" >&6; }
7681else
7682 { echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6; }
7684fi
7685
7686
7687# Extract the first word of "runtest", so it can be a program name with args.
7688set dummy runtest; ac_word=$2
7689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_RUNTEST+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694 case $RUNTEST in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7697 ;;
7698 *)
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007706 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712IFS=$as_save_IFS
7713
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007714 ;;
7715esac
7716fi
7717RUNTEST=$ac_cv_path_RUNTEST
7718if test -n "$RUNTEST"; then
7719 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7720echo "${ECHO_T}$RUNTEST" >&6; }
7721else
7722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
7724fi
7725
7726
7727
7728no_itcl=true
7729{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7730echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7731
7732# Check whether --with-tclinclude was given.
7733if test "${with_tclinclude+set}" = set; then
7734 withval=$with_tclinclude; with_tclinclude=${withval}
7735else
7736 with_tclinclude=''
7737fi
7738
7739if test "${ac_cv_path_tclsh+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742
7743if test x"${with_tclinclude}" != x ; then
7744 if test -f ${with_tclinclude}/tclsh ; then
7745 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7746 elif test -f ${with_tclinclude}/src/tclsh ; then
7747 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7748 else
7749 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7750echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7751 { (exit 1); exit 1; }; }
7752 fi
7753fi
7754
7755if test x"${ac_cv_path_tclsh}" = x ; then
7756 { echo "$as_me:$LINENO: result: none" >&5
7757echo "${ECHO_T}none" >&6; }
7758 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7759do
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761set dummy $ac_prog; ac_word=$2
7762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764if test "${ac_cv_path_TCLSH+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767 case $TCLSH in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007779 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783done
7784done
7785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790TCLSH=$ac_cv_path_TCLSH
7791if test -n "$TCLSH"; then
7792 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7793echo "${ECHO_T}$TCLSH" >&6; }
7794else
7795 { echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6; }
7797fi
7798
7799
7800 test -n "$TCLSH" && break
7801done
7802
7803 if test x"${TCLSH}" = x ; then
7804 ac_cv_path_tclsh='';
7805 else
7806 ac_cv_path_tclsh="${TCLSH}";
7807 fi
7808else
7809 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7810echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7811 TCLSH="${ac_cv_path_tclsh}"
7812
7813fi
7814
7815fi
7816
7817# Extract the first word of "zip", so it can be a program name with args.
7818set dummy zip; ac_word=$2
7819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821if test "${ac_cv_path_ZIP+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824 case $ZIP in
7825 [\\/]* | ?:[\\/]*)
7826 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7827 ;;
7828 *)
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007836 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841done
7842IFS=$as_save_IFS
7843
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007844 ;;
7845esac
7846fi
7847ZIP=$ac_cv_path_ZIP
7848if test -n "$ZIP"; then
7849 { echo "$as_me:$LINENO: result: $ZIP" >&5
7850echo "${ECHO_T}$ZIP" >&6; }
7851else
7852 { echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6; }
7854fi
7855
7856
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007857for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007858do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_path_OCAMLC+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 case $OCAMLC in
7867 [\\/]* | ?:[\\/]*)
7868 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007878 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884IFS=$as_save_IFS
7885
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007886 ;;
7887esac
7888fi
7889OCAMLC=$ac_cv_path_OCAMLC
7890if test -n "$OCAMLC"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7892echo "${ECHO_T}$OCAMLC" >&6; }
7893else
7894 { echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6; }
7896fi
7897
7898
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007899 test -n "$OCAMLC" && break
7900done
7901
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007902for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007903do
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $OCAMLOPT in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007923 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007931 ;;
7932esac
7933fi
7934OCAMLOPT=$ac_cv_path_OCAMLOPT
7935if test -n "$OCAMLOPT"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7937echo "${ECHO_T}$OCAMLOPT" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007944 test -n "$OCAMLOPT" && break
7945done
7946
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007947for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007948do
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 case $OCAMLDEP in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00007967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007968 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974IFS=$as_save_IFS
7975
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007976 ;;
7977esac
7978fi
7979OCAMLDEP=$ac_cv_path_OCAMLDEP
7980if test -n "$OCAMLDEP"; then
7981 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7982echo "${ECHO_T}$OCAMLDEP" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007989 test -n "$OCAMLDEP" && break
7990done
7991
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007992for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007993do
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995set dummy $ac_prog; ac_word=$2
7996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001 case $OCAMLDOC in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008013 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019IFS=$as_save_IFS
8020
8021 ;;
8022esac
8023fi
8024OCAMLDOC=$ac_cv_path_OCAMLDOC
8025if test -n "$OCAMLDOC"; then
8026 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8027echo "${ECHO_T}$OCAMLDOC" >&6; }
8028else
8029 { echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6; }
8031fi
8032
8033
8034 test -n "$OCAMLDOC" && break
8035done
8036
Edwin Török20176752008-10-22 09:56:27 +00008037for ac_prog in gas as
8038do
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040set dummy $ac_prog; ac_word=$2
8041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043if test "${ac_cv_path_GAS+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 case $GAS in
8047 [\\/]* | ?:[\\/]*)
8048 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8049 ;;
8050 *)
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Török20176752008-10-22 09:56:27 +00008058 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064IFS=$as_save_IFS
8065
8066 ;;
8067esac
8068fi
8069GAS=$ac_cv_path_GAS
8070if test -n "$GAS"; then
8071 { echo "$as_me:$LINENO: result: $GAS" >&5
8072echo "${ECHO_T}$GAS" >&6; }
8073else
8074 { echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6; }
8076fi
8077
8078
8079 test -n "$GAS" && break
8080done
8081
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008082
8083{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8084echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8085if test "${llvm_cv_link_use_r+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_ext=c
8089ac_cpp='$CPP $CPPFLAGS'
8090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092ac_compiler_gnu=$ac_cv_c_compiler_gnu
8093
8094 oldcflags="$CFLAGS"
8095 CFLAGS="$CFLAGS -Wl,-R."
8096 cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h. */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h. */
8102
8103int
8104main ()
8105{
8106int main() { return 0; }
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext conftest$ac_exeext
8112if { (ac_try="$ac_link"
8113case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008145 llvm_cv_link_use_r=yes
8146else
8147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 llvm_cv_link_use_r=no
8151fi
8152
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008153rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008154 conftest$ac_exeext conftest.$ac_ext
8155 CFLAGS="$oldcflags"
8156 ac_ext=c
8157ac_cpp='$CPP $CPPFLAGS'
8158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161
8162
8163fi
8164{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8165echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8166if test "$llvm_cv_link_use_r" = yes ; then
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define HAVE_LINK_R 1
8170_ACEOF
8171
8172 fi
8173
8174
Nick Lewycky6eab6652009-03-05 08:20:44 +00008175{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8176echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8177if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 ac_ext=c
8181ac_cpp='$CPP $CPPFLAGS'
8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186 oldcflags="$CFLAGS"
8187 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8188 cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194
8195int
8196main ()
8197{
8198int main() { return 0; }
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203rm -f conftest.$ac_objext conftest$ac_exeext
8204if { (ac_try="$ac_link"
8205case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_link") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 llvm_cv_link_use_export_dynamic=yes
8238else
8239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 llvm_cv_link_use_export_dynamic=no
8243fi
8244
8245rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 CFLAGS="$oldcflags"
8248 ac_ext=c
8249ac_cpp='$CPP $CPPFLAGS'
8250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255fi
8256{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8257echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8258if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8259
8260cat >>confdefs.h <<\_ACEOF
8261#define HAVE_LINK_EXPORT_DYNAMIC 1
8262_ACEOF
8263
8264 fi
8265
8266
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008267
8268
8269{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8270echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8271if test "${ac_cv_c_const+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280
8281int
8282main ()
8283{
8284/* FIXME: Include the comments suggested by Paul. */
8285#ifndef __cplusplus
8286 /* Ultrix mips cc rejects this. */
8287 typedef int charset[2];
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008288 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008289 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008290 char const *const *ccp;
8291 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008292 /* NEC SVR4.0.2 mips cc rejects this. */
8293 struct point {int x, y;};
8294 static struct point const zero = {0,0};
8295 /* AIX XL C 1.02.0.0 rejects this.
8296 It does not let you subtract one const X* pointer from another in
8297 an arm of an if-expression whose if-part is not a constant
8298 expression */
8299 const char *g = "string";
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008300 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008301 /* HPUX 7.0 cc rejects these. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008302 ++ccp;
8303 p = (char**) ccp;
8304 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008305 { /* SCO 3.2v4 cc rejects this. */
8306 char *t;
8307 char const *s = 0 ? (char *) 0 : (char const *) 0;
8308
8309 *t++ = 0;
8310 if (s) return 0;
8311 }
8312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8313 int x[] = {25, 17};
8314 const int *foo = &x[0];
8315 ++foo;
8316 }
8317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8318 typedef const int *iptr;
8319 iptr p = 0;
8320 ++p;
8321 }
8322 { /* AIX XL C 1.02.0.0 rejects this saying
8323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8324 struct s { int j; const int *ap[3]; };
8325 struct s *b; b->j = 5;
8326 }
8327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8328 const int foo = 10;
8329 if (!foo) return 0;
8330 }
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008331 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008332#endif
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (ac_try="$ac_compile"
8340case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008372 ac_cv_c_const=yes
8373else
8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 ac_cv_c_const=no
8378fi
8379
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8383echo "${ECHO_T}$ac_cv_c_const" >&6; }
8384if test $ac_cv_c_const = no; then
8385
8386cat >>confdefs.h <<\_ACEOF
8387#define const
8388_ACEOF
8389
8390fi
8391
8392
8393
8394
8395
8396
8397ac_header_dirent=no
8398for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8400{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8401echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411#include <sys/types.h>
8412#include <$ac_hdr>
8413
8414int
8415main ()
8416{
8417if ((DIR *) 0)
8418return 0;
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext
8424if { (ac_try="$ac_compile"
8425case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008457 eval "$as_ac_Header=yes"
8458else
8459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 eval "$as_ac_Header=no"
8463fi
8464
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466fi
8467ac_res=`eval echo '${'$as_ac_Header'}'`
8468 { echo "$as_me:$LINENO: result: $ac_res" >&5
8469echo "${ECHO_T}$ac_res" >&6; }
8470if test `eval echo '${'$as_ac_Header'}'` = yes; then
8471 cat >>confdefs.h <<_ACEOF
8472#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8473_ACEOF
8474
8475ac_header_dirent=$ac_hdr; break
8476fi
8477
8478done
8479# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8480if test $ac_header_dirent = dirent.h; then
8481 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8482echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8483if test "${ac_cv_search_opendir+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485else
8486 ac_func_search_save_LIBS=$LIBS
8487cat >conftest.$ac_ext <<_ACEOF
8488/* confdefs.h. */
8489_ACEOF
8490cat confdefs.h >>conftest.$ac_ext
8491cat >>conftest.$ac_ext <<_ACEOF
8492/* end confdefs.h. */
8493
8494/* Override any GCC internal prototype to avoid an error.
8495 Use char because int might match the return type of a GCC
8496 builtin and then its argument prototype would still apply. */
8497#ifdef __cplusplus
8498extern "C"
8499#endif
8500char opendir ();
8501int
8502main ()
8503{
8504return opendir ();
8505 ;
8506 return 0;
8507}
8508_ACEOF
8509for ac_lib in '' dir; do
8510 if test -z "$ac_lib"; then
8511 ac_res="none required"
8512 else
8513 ac_res=-l$ac_lib
8514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8515 fi
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517if { (ac_try="$ac_link"
8518case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521esac
8522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_link") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8531 { (case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534esac
8535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_try") 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008550 ac_cv_search_opendir=$ac_res
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555
8556fi
8557
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008558rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008559 conftest$ac_exeext
8560 if test "${ac_cv_search_opendir+set}" = set; then
8561 break
8562fi
8563done
8564if test "${ac_cv_search_opendir+set}" = set; then
8565 :
8566else
8567 ac_cv_search_opendir=no
8568fi
8569rm conftest.$ac_ext
8570LIBS=$ac_func_search_save_LIBS
8571fi
8572{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8573echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8574ac_res=$ac_cv_search_opendir
8575if test "$ac_res" != no; then
8576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8577
8578fi
8579
8580else
8581 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8582echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8583if test "${ac_cv_search_opendir+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 ac_func_search_save_LIBS=$LIBS
8587cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593
8594/* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8597#ifdef __cplusplus
8598extern "C"
8599#endif
8600char opendir ();
8601int
8602main ()
8603{
8604return opendir ();
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609for ac_lib in '' x; do
8610 if test -z "$ac_lib"; then
8611 ac_res="none required"
8612 else
8613 ac_res=-l$ac_lib
8614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8615 fi
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (ac_try="$ac_link"
8618case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_link") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_try") 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008650 ac_cv_search_opendir=$ac_res
8651else
8652 echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
8655
8656fi
8657
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008658rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008659 conftest$ac_exeext
8660 if test "${ac_cv_search_opendir+set}" = set; then
8661 break
8662fi
8663done
8664if test "${ac_cv_search_opendir+set}" = set; then
8665 :
8666else
8667 ac_cv_search_opendir=no
8668fi
8669rm conftest.$ac_ext
8670LIBS=$ac_func_search_save_LIBS
8671fi
8672{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8673echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8674ac_res=$ac_cv_search_opendir
8675if test "$ac_res" != no; then
8676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8677
8678fi
8679
8680fi
8681
8682
8683for ac_header in dlfcn.h
8684do
8685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691fi
8692ac_res=`eval echo '${'$as_ac_Header'}'`
8693 { echo "$as_me:$LINENO: result: $ac_res" >&5
8694echo "${ECHO_T}$ac_res" >&6; }
8695else
8696 # Is the header compilable?
8697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8699cat >conftest.$ac_ext <<_ACEOF
8700/* confdefs.h. */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */
8705$ac_includes_default
8706#include <$ac_header>
8707_ACEOF
8708rm -f conftest.$ac_objext
8709if { (ac_try="$ac_compile"
8710case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_try") 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008742 ac_header_compiler=yes
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_header_compiler=no
8748fi
8749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752echo "${ECHO_T}$ac_header_compiler" >&6; }
8753
8754# Is the header present?
8755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8757cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763#include <$ac_header>
8764_ACEOF
8765if { (ac_try="$ac_cpp conftest.$ac_ext"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00008777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781 else
8782 ac_cpp_err=
8783 fi
8784else
8785 ac_cpp_err=yes
8786fi
8787if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008788 ac_header_preproc=yes
8789else
8790 echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 ac_header_preproc=no
8794fi
8795
8796rm -f conftest.err conftest.$ac_ext
8797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8798echo "${ECHO_T}$ac_header_preproc" >&6; }
8799
8800# So? What about this header?
8801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8802 yes:no: )
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8807 ac_header_preproc=yes
8808 ;;
8809 no:yes:* )
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8822 ( cat <<\_ASBOX
8823## ----------------------------------- ##
8824## Report this to llvmbugs@cs.uiuc.edu ##
8825## ----------------------------------- ##
8826_ASBOX
8827 ) | sed "s/^/$as_me: WARNING: /" >&2
8828 ;;
8829esac
8830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835 eval "$as_ac_Header=\$ac_header_preproc"
8836fi
8837ac_res=`eval echo '${'$as_ac_Header'}'`
8838 { echo "$as_me:$LINENO: result: $ac_res" >&5
8839echo "${ECHO_T}$ac_res" >&6; }
8840
8841fi
8842if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845_ACEOF
8846
8847fi
8848
8849done
8850
8851# Check whether --enable-ltdl-install was given.
8852if test "${enable_ltdl_install+set}" = set; then
8853 enableval=$enable_ltdl_install;
8854fi
8855
8856
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008857
8858
8859if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008860 INSTALL_LTDL_TRUE=
8861 INSTALL_LTDL_FALSE='#'
8862else
8863 INSTALL_LTDL_TRUE='#'
8864 INSTALL_LTDL_FALSE=
8865fi
8866
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008867
8868
8869if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008870 CONVENIENCE_LTDL_TRUE=
8871 CONVENIENCE_LTDL_FALSE='#'
8872else
8873 CONVENIENCE_LTDL_TRUE='#'
8874 CONVENIENCE_LTDL_FALSE=
8875fi
8876
8877
8878{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8879echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8880library_names_spec=
8881libname_spec='lib$name'
8882soname_spec=
8883shrext_cmds=".so"
8884postinstall_cmds=
8885postuninstall_cmds=
8886finish_cmds=
8887finish_eval=
8888shlibpath_var=
8889shlibpath_overrides_runpath=unknown
8890version_type=none
8891dynamic_linker="$host_os ld.so"
8892sys_lib_dlsearch_path_spec="/lib /usr/lib"
8893if test "$GCC" = yes; then
8894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8895 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8896 # if the path contains ";" then we assume it to be the separator
8897 # otherwise default to the standard path separator (i.e. ":") - it is
8898 # assumed that no part of a normal pathname contains ";" but that should
8899 # okay in the real world where ";" in dirpaths is itself problematic.
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901 else
8902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 fi
8904else
8905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8906fi
8907need_lib_prefix=unknown
8908hardcode_into_libs=no
8909
8910# when you set need_version to no, make sure it does not cause -set_version
8911# flags to be left without arguments
8912need_version=unknown
8913
8914case $host_os in
8915aix3*)
8916 version_type=linux
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8918 shlibpath_var=LIBPATH
8919
8920 # AIX 3 has no versioning support, so we append a major version to the name.
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 ;;
8923
8924aix4* | aix5*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 hardcode_into_libs=yes
8929 if test "$host_cpu" = ia64; then
8930 # AIX 5 supports IA64
8931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 else
8934 # With GCC up to 2.95.x, collect2 would create an import file
8935 # for dependence libraries. The import file would start with
8936 # the line `#! .'. This would cause the generated library to
8937 # depend on `.', always an invalid library. This was fixed in
8938 # development snapshots of GCC prior to 3.0.
8939 case $host_os in
8940 aix4 | aix4.[01] | aix4.[01].*)
8941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8942 echo ' yes '
8943 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8944 :
8945 else
8946 can_build_shared=no
8947 fi
8948 ;;
8949 esac
8950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8951 # soname into executable. Probably we can add versioning support to
8952 # collect2, so additional links can be useful in future.
8953 if test "$aix_use_runtimelinking" = yes; then
8954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8955 # instead of lib<name>.a to let people know that these are not
8956 # typical AIX shared libraries.
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 else
8959 # We preserve .a as extension for shared libraries through AIX4.2
8960 # and later when we are not doing run time linking.
8961 library_names_spec='${libname}${release}.a $libname.a'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 fi
8964 shlibpath_var=LIBPATH
8965 fi
8966 ;;
8967
8968amigaos*)
8969 library_names_spec='$libname.ixlibrary $libname.a'
8970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8971 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'
8972 ;;
8973
8974beos*)
8975 library_names_spec='${libname}${shared_ext}'
8976 dynamic_linker="$host_os ld.so"
8977 shlibpath_var=LIBRARY_PATH
8978 ;;
8979
8980bsdi[45]*)
8981 version_type=linux
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8989 # the default ld.so.conf also contains /usr/contrib/lib and
8990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8991 # libtool to hard-code these into programs
8992 ;;
8993
8994cygwin* | mingw* | pw32*)
8995 version_type=windows
8996 shrext_cmds=".dll"
8997 need_version=no
8998 need_lib_prefix=no
8999
9000 case $GCC,$host_os in
9001 yes,cygwin* | yes,mingw* | yes,pw32*)
9002 library_names_spec='$libname.dll.a'
9003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9004 postinstall_cmds='base_file=`basename \${file}`~
9005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9006 dldir=$destdir/`dirname \$dlpath`~
9007 test -d \$dldir || mkdir -p \$dldir~
9008 $install_prog $dir/$dlname \$dldir/$dlname~
9009 chmod a+x \$dldir/$dlname'
9010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9011 dlpath=$dir/\$dldll~
9012 $rm \$dlpath'
9013 shlibpath_overrides_runpath=yes
9014
9015 case $host_os in
9016 cygwin*)
9017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9020 ;;
9021 mingw*)
9022 # MinGW DLLs use traditional 'lib' prefix
9023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9026 # It is most probably a Windows format PATH printed by
9027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9028 # path with ; separators, and with drive letters. We can handle the
9029 # drive letters (cygwin fileutils understands them), so leave them,
9030 # especially as we might pass files found there to a mingw objdump,
9031 # which wouldn't understand a cygwinified path. Ahh.
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9033 else
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9035 fi
9036 ;;
9037 pw32*)
9038 # pw32 DLLs use 'pw' prefix rather than 'lib'
9039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040 ;;
9041 esac
9042 ;;
9043
9044 *)
9045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9046 ;;
9047 esac
9048 dynamic_linker='Win32 ld.exe'
9049 # FIXME: first we should search . and the directory the executable is in
9050 shlibpath_var=PATH
9051 ;;
9052
9053darwin* | rhapsody*)
9054 dynamic_linker="$host_os dyld"
9055 version_type=darwin
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9059 soname_spec='${libname}${release}${major}$shared_ext'
9060 shlibpath_overrides_runpath=yes
9061 shlibpath_var=DYLD_LIBRARY_PATH
9062 shrext_cmds='.dylib'
9063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9064 if test "$GCC" = yes; then
9065 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"`
9066 else
9067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9068 fi
9069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9070 ;;
9071
9072dgux*)
9073 version_type=linux
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 ;;
9080
9081freebsd1*)
9082 dynamic_linker=no
9083 ;;
9084
9085kfreebsd*-gnu)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 dynamic_linker='GNU ld.so'
9095 ;;
9096
9097freebsd* | dragonfly*)
9098 # DragonFly does not have aout. When/if they implement a new
9099 # versioning mechanism, adjust this.
9100 if test -x /usr/bin/objformat; then
9101 objformat=`/usr/bin/objformat`
9102 else
9103 case $host_os in
9104 freebsd[123]*) objformat=aout ;;
9105 *) objformat=elf ;;
9106 esac
9107 fi
9108 version_type=freebsd-$objformat
9109 case $version_type in
9110 freebsd-elf*)
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112 need_version=no
9113 need_lib_prefix=no
9114 ;;
9115 freebsd-*)
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9117 need_version=yes
9118 ;;
9119 esac
9120 shlibpath_var=LD_LIBRARY_PATH
9121 case $host_os in
9122 freebsd2*)
9123 shlibpath_overrides_runpath=yes
9124 ;;
9125 freebsd3.[01]* | freebsdelf3.[01]*)
9126 shlibpath_overrides_runpath=yes
9127 hardcode_into_libs=yes
9128 ;;
9129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9131 shlibpath_overrides_runpath=no
9132 hardcode_into_libs=yes
9133 ;;
9134 freebsd*) # from 4.6 on
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9137 ;;
9138 esac
9139 ;;
9140
9141gnu*)
9142 version_type=linux
9143 need_lib_prefix=no
9144 need_version=no
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 hardcode_into_libs=yes
9149 ;;
9150
9151hpux9* | hpux10* | hpux11*)
9152 # Give a soname corresponding to the major version so that dld.sl refuses to
9153 # link against other versions.
9154 version_type=sunos
9155 need_lib_prefix=no
9156 need_version=no
9157 case $host_cpu in
9158 ia64*)
9159 shrext_cmds='.so'
9160 hardcode_into_libs=yes
9161 dynamic_linker="$host_os dld.so"
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 if test "X$HPUX_IA64_MODE" = X32; then
9167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9168 else
9169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9170 fi
9171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9172 ;;
9173 hppa*64*)
9174 shrext_cmds='.sl'
9175 hardcode_into_libs=yes
9176 dynamic_linker="$host_os dld.sl"
9177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183 ;;
9184 *)
9185 shrext_cmds='.sl'
9186 dynamic_linker="$host_os dld.sl"
9187 shlibpath_var=SHLIB_PATH
9188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 ;;
9192 esac
9193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9194 postinstall_cmds='chmod 555 $lib'
9195 ;;
9196
9197interix3*)
9198 version_type=linux
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9207 ;;
9208
9209irix5* | irix6* | nonstopux*)
9210 case $host_os in
9211 nonstopux*) version_type=nonstopux ;;
9212 *)
9213 if test "$lt_cv_prog_gnu_ld" = yes; then
9214 version_type=linux
9215 else
9216 version_type=irix
9217 fi ;;
9218 esac
9219 need_lib_prefix=no
9220 need_version=no
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9223 case $host_os in
9224 irix5* | nonstopux*)
9225 libsuff= shlibsuff=
9226 ;;
9227 *)
9228 case $LD in # libtool.m4 will add one of these switches to LD
9229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9230 libsuff= shlibsuff= libmagic=32-bit;;
9231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9232 libsuff=32 shlibsuff=N32 libmagic=N32;;
9233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9235 *) libsuff= shlibsuff= libmagic=never-match;;
9236 esac
9237 ;;
9238 esac
9239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9240 shlibpath_overrides_runpath=no
9241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9243 hardcode_into_libs=yes
9244 ;;
9245
9246# No shared lib support for Linux oldld, aout, or coff.
9247linux*oldld* | linux*aout* | linux*coff*)
9248 dynamic_linker=no
9249 ;;
9250
9251# This must be Linux ELF.
9252linux*)
9253 version_type=linux
9254 need_lib_prefix=no
9255 need_version=no
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=no
9261 # This implies no fast_install, which is unacceptable.
9262 # Some rework will be needed to allow for fast_install
9263 # before this can be enabled.
9264 hardcode_into_libs=yes
9265
9266 # Append ld.so.conf contents to the search path
9267 if test -f /etc/ld.so.conf; then
9268 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' ' '`
9269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270 fi
9271
9272 # We used to test for /lib/ld.so.1 and disable shared libraries on
9273 # powerpc, because MkLinux only supported shared libraries with the
9274 # GNU dynamic linker. Since this was broken with cross compilers,
9275 # most powerpc-linux boxes support dynamic linking these days and
9276 # people can always --disable-shared, the test was removed, and we
9277 # assume the GNU/Linux dynamic linker is in use.
9278 dynamic_linker='GNU/Linux ld.so'
9279 ;;
9280
9281knetbsd*-gnu)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 dynamic_linker='GNU ld.so'
9291 ;;
9292
9293netbsd*)
9294 version_type=sunos
9295 need_lib_prefix=no
9296 need_version=no
9297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300 dynamic_linker='NetBSD (a.out) ld.so'
9301 else
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 dynamic_linker='NetBSD ld.elf_so'
9305 fi
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 hardcode_into_libs=yes
9309 ;;
9310
9311newsos6)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9316 ;;
9317
9318nto-qnx*)
9319 version_type=linux
9320 need_lib_prefix=no
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 ;;
9327
9328openbsd*)
9329 version_type=sunos
9330 sys_lib_dlsearch_path_spec="/usr/lib"
9331 need_lib_prefix=no
9332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9333 case $host_os in
9334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335 *) need_version=no ;;
9336 esac
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9341 case $host_os in
9342 openbsd2.[89] | openbsd2.[89].*)
9343 shlibpath_overrides_runpath=no
9344 ;;
9345 *)
9346 shlibpath_overrides_runpath=yes
9347 ;;
9348 esac
9349 else
9350 shlibpath_overrides_runpath=yes
9351 fi
9352 ;;
9353
9354os2*)
9355 libname_spec='$name'
9356 shrext_cmds=".dll"
9357 need_lib_prefix=no
9358 library_names_spec='$libname${shared_ext} $libname.a'
9359 dynamic_linker='OS/2 ld.exe'
9360 shlibpath_var=LIBPATH
9361 ;;
9362
9363osf3* | osf4* | osf5*)
9364 version_type=osf
9365 need_lib_prefix=no
9366 need_version=no
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372 ;;
9373
9374solaris*)
9375 version_type=linux
9376 need_lib_prefix=no
9377 need_version=no
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes
9382 hardcode_into_libs=yes
9383 # ldd complains unless libraries are executable
9384 postinstall_cmds='chmod +x $lib'
9385 ;;
9386
9387sunos4*)
9388 version_type=sunos
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9393 if test "$with_gnu_ld" = yes; then
9394 need_lib_prefix=no
9395 fi
9396 need_version=yes
9397 ;;
9398
9399sysv4 | sysv4.3*)
9400 version_type=linux
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 case $host_vendor in
9405 sni)
9406 shlibpath_overrides_runpath=no
9407 need_lib_prefix=no
9408 export_dynamic_flag_spec='${wl}-Blargedynsym'
9409 runpath_var=LD_RUN_PATH
9410 ;;
9411 siemens)
9412 need_lib_prefix=no
9413 ;;
9414 motorola)
9415 need_lib_prefix=no
9416 need_version=no
9417 shlibpath_overrides_runpath=no
9418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419 ;;
9420 esac
9421 ;;
9422
9423sysv4*MP*)
9424 if test -d /usr/nec ;then
9425 version_type=linux
9426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9427 soname_spec='$libname${shared_ext}.$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 fi
9430 ;;
9431
9432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9433 version_type=freebsd-elf
9434 need_lib_prefix=no
9435 need_version=no
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 hardcode_into_libs=yes
9440 if test "$with_gnu_ld" = yes; then
9441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9442 shlibpath_overrides_runpath=no
9443 else
9444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9445 shlibpath_overrides_runpath=yes
9446 case $host_os in
9447 sco3.2v5*)
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449 ;;
9450 esac
9451 fi
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9453 ;;
9454
9455uts4*)
9456 version_type=linux
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 ;;
9461
9462*)
9463 dynamic_linker=no
9464 ;;
9465esac
9466{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9467echo "${ECHO_T}$dynamic_linker" >&6; }
9468test "$dynamic_linker" = no && can_build_shared=no
9469
9470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9471if test "$GCC" = yes; then
9472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9473fi
9474
9475
9476{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9477echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9478if test "${libltdl_cv_shlibext+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481
9482module=yes
9483eval libltdl_cv_shlibext=$shrext_cmds
9484
9485fi
9486{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9487echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9488if test -n "$libltdl_cv_shlibext"; then
9489
9490cat >>confdefs.h <<_ACEOF
9491#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9492_ACEOF
9493
9494fi
9495
9496
9497{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9498echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9499if test "${libltdl_cv_shlibpath_var+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502 libltdl_cv_shlibpath_var="$shlibpath_var"
9503fi
9504{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9505echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9506if test -n "$libltdl_cv_shlibpath_var"; then
9507
9508cat >>confdefs.h <<_ACEOF
9509#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9510_ACEOF
9511
9512fi
9513
9514
9515{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9516echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9517if test "${libltdl_cv_sys_search_path+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9521fi
9522{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9523echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9524if test -n "$libltdl_cv_sys_search_path"; then
9525 sys_search_path=
9526 for dir in $libltdl_cv_sys_search_path; do
9527 if test -z "$sys_search_path"; then
9528 sys_search_path="$dir"
9529 else
9530 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9531 fi
9532 done
9533
9534cat >>confdefs.h <<_ACEOF
9535#define LTDL_SYSSEARCHPATH "$sys_search_path"
9536_ACEOF
9537
9538fi
9539
9540{ echo "$as_me:$LINENO: checking for objdir" >&5
9541echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9542if test "${libltdl_cv_objdir+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545 libltdl_cv_objdir="$objdir"
9546 if test -n "$objdir"; then
9547 :
9548 else
9549 rm -f .libs 2>/dev/null
9550 mkdir .libs 2>/dev/null
9551 if test -d .libs; then
9552 libltdl_cv_objdir=.libs
9553 else
9554 # MS-DOS does not allow filenames that begin with a dot.
9555 libltdl_cv_objdir=_libs
9556 fi
9557 rmdir .libs 2>/dev/null
9558 fi
9559
9560fi
9561{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9562echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9563
9564cat >>confdefs.h <<_ACEOF
9565#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9566_ACEOF
9567
9568
9569
9570
9571
9572
9573# Check for command to grab the raw symbol name followed by C symbol from nm.
9574{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9575echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9576if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579
9580# These are sane defaults that work on at least a few old systems.
9581# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9582
9583# Character class describing NM global symbol codes.
9584symcode='[BCDEGRST]'
9585
9586# Regexp to match symbols that can be accessed directly from C.
9587sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9588
9589# Transform an extracted symbol line into a proper C declaration
9590lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9591
9592# Transform an extracted symbol line into symbol name and symbol address
9593lt_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'"
9594
9595# Define system-specific variables.
9596case $host_os in
9597aix*)
9598 symcode='[BCDT]'
9599 ;;
9600cygwin* | mingw* | pw32*)
9601 symcode='[ABCDGISTW]'
9602 ;;
9603hpux*) # Its linker distinguishes data from code symbols
9604 if test "$host_cpu" = ia64; then
9605 symcode='[ABCDEGRST]'
9606 fi
9607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9608 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'"
9609 ;;
9610linux*)
9611 if test "$host_cpu" = ia64; then
9612 symcode='[ABCDGIRSTW]'
9613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614 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'"
9615 fi
9616 ;;
9617irix* | nonstopux*)
9618 symcode='[BCDEGRST]'
9619 ;;
9620osf*)
9621 symcode='[BCDEGQRST]'
9622 ;;
9623solaris*)
9624 symcode='[BDRT]'
9625 ;;
9626sco3.2v5*)
9627 symcode='[DT]'
9628 ;;
9629sysv4.2uw2*)
9630 symcode='[DT]'
9631 ;;
9632sysv5* | sco5v6* | unixware* | OpenUNIX*)
9633 symcode='[ABDT]'
9634 ;;
9635sysv4)
9636 symcode='[DFNSTU]'
9637 ;;
9638esac
9639
9640# Handle CRLF in mingw tool chain
9641opt_cr=
9642case $build_os in
9643mingw*)
9644 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9645 ;;
9646esac
9647
9648# If we're using GNU nm, then use its standard symbol codes.
9649case `$NM -V 2>&1` in
9650*GNU* | *'with BFD'*)
9651 symcode='[ABCDGIRSTW]' ;;
9652esac
9653
9654# Try without a prefix undercore, then with it.
9655for ac_symprfx in "" "_"; do
9656
9657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9658 symxfrm="\\1 $ac_symprfx\\2 \\2"
9659
9660 # Write the raw and C identifiers.
9661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9662
9663 # Check to see that the pipe works correctly.
9664 pipe_works=no
9665
9666 rm -f conftest*
9667 cat > conftest.$ac_ext <<EOF
9668#ifdef __cplusplus
9669extern "C" {
9670#endif
9671char nm_test_var;
9672void nm_test_func(){}
9673#ifdef __cplusplus
9674}
9675#endif
9676int main(){nm_test_var='a';nm_test_func();return(0);}
9677EOF
9678
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; then
9684 # Now try to grab the symbols.
9685 nlist=conftest.nm
9686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && test -s "$nlist"; then
9691 # Try sorting and uniquifying the output.
9692 if sort "$nlist" | uniq > "$nlist"T; then
9693 mv -f "$nlist"T "$nlist"
9694 else
9695 rm -f "$nlist"T
9696 fi
9697
9698 # Make sure that we snagged all the symbols we need.
9699 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9700 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9701 cat <<EOF > conftest.$ac_ext
9702#ifdef __cplusplus
9703extern "C" {
9704#endif
9705
9706EOF
9707 # Now generate the symbol file.
9708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9709
9710 cat <<EOF >> conftest.$ac_ext
9711#if defined (__STDC__) && __STDC__
9712# define lt_ptr_t void *
9713#else
9714# define lt_ptr_t char *
9715# define const
9716#endif
9717
9718/* The mapping between symbol names and symbols. */
9719const struct {
9720 const char *name;
9721 lt_ptr_t address;
9722}
9723lt_preloaded_symbols[] =
9724{
9725EOF
9726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9727 cat <<\EOF >> conftest.$ac_ext
9728 {0, (lt_ptr_t) 0}
9729};
9730
9731#ifdef __cplusplus
9732}
9733#endif
9734EOF
9735 # Now try linking the two files.
9736 mv conftest.$ac_objext conftstm.$ac_objext
9737 lt_save_LIBS="$LIBS"
9738 lt_save_CFLAGS="$CFLAGS"
9739 LIBS="conftstm.$ac_objext"
9740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9746 pipe_works=yes
9747 fi
9748 LIBS="$lt_save_LIBS"
9749 CFLAGS="$lt_save_CFLAGS"
9750 else
9751 echo "cannot find nm_test_func in $nlist" >&5
9752 fi
9753 else
9754 echo "cannot find nm_test_var in $nlist" >&5
9755 fi
9756 else
9757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9758 fi
9759 else
9760 echo "$progname: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 fi
9763 rm -f conftest* conftst*
9764
9765 # Do not use the global_symbol_pipe unless it works.
9766 if test "$pipe_works" = yes; then
9767 break
9768 else
9769 lt_cv_sys_global_symbol_pipe=
9770 fi
9771done
9772
9773fi
9774
9775if test -z "$lt_cv_sys_global_symbol_pipe"; then
9776 lt_cv_sys_global_symbol_to_cdecl=
9777fi
9778if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9779 { echo "$as_me:$LINENO: result: failed" >&5
9780echo "${ECHO_T}failed" >&6; }
9781else
9782 { echo "$as_me:$LINENO: result: ok" >&5
9783echo "${ECHO_T}ok" >&6; }
9784fi
9785
9786
9787{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9788echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9789if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9793 libltdl_cv_preloaded_symbols=yes
9794 else
9795 libltdl_cv_preloaded_symbols=no
9796 fi
9797
9798fi
9799{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9800echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9801if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9802
9803cat >>confdefs.h <<\_ACEOF
9804#define HAVE_PRELOADED_SYMBOLS 1
9805_ACEOF
9806
9807fi
9808
9809LIBADD_DL=
9810
9811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817
9818{ echo "$as_me:$LINENO: checking for shl_load" >&5
9819echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9820if test "${ac_cv_func_shl_load+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
9829/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9831#define shl_load innocuous_shl_load
9832
9833/* System header to define __stub macros and hopefully few prototypes,
9834 which can conflict with char shl_load (); below.
9835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9836 <limits.h> exists even on freestanding compilers. */
9837
9838#ifdef __STDC__
9839# include <limits.h>
9840#else
9841# include <assert.h>
9842#endif
9843
9844#undef shl_load
9845
9846/* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9849#ifdef __cplusplus
9850extern "C"
9851#endif
9852char shl_load ();
9853/* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856#if defined __stub_shl_load || defined __stub___shl_load
9857choke me
9858#endif
9859
9860int
9861main ()
9862{
9863return shl_load ();
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext conftest$ac_exeext
9869if { (ac_try="$ac_link"
9870case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009902 ac_cv_func_shl_load=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_func_shl_load=no
9908fi
9909
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009910rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009911 conftest$ac_exeext conftest.$ac_ext
9912fi
9913{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9914echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9915if test $ac_cv_func_shl_load = yes; then
9916
9917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_SHL_LOAD 1
9919_ACEOF
9920
9921else
9922 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9923echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9924if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-ldld $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935
9936/* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9939#ifdef __cplusplus
9940extern "C"
9941#endif
9942char shl_load ();
9943int
9944main ()
9945{
9946return shl_load ();
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009985 ac_cv_lib_dld_shl_load=yes
9986else
9987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_cv_lib_dld_shl_load=no
9991fi
9992
Tanya Lattner3fa4a442009-01-22 05:17:59 +00009993rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009994 conftest$ac_exeext conftest.$ac_ext
9995LIBS=$ac_check_lib_save_LIBS
9996fi
9997{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9998echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9999if test $ac_cv_lib_dld_shl_load = yes; then
10000
10001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_SHL_LOAD 1
10003_ACEOF
10004
10005 LIBADD_DL="$LIBADD_DL -ldld"
10006else
10007 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10008echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10009if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-ldl $LIBS"
10014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h. */
10020
10021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10024#ifdef __cplusplus
10025extern "C"
10026#endif
10027char dlopen ();
10028int
10029main ()
10030{
10031return dlopen ();
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext conftest$ac_exeext
10037if { (ac_try="$ac_link"
10038case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010070 ac_cv_lib_dl_dlopen=yes
10071else
10072 echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 ac_cv_lib_dl_dlopen=no
10076fi
10077
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010078rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010079 conftest$ac_exeext conftest.$ac_ext
10080LIBS=$ac_check_lib_save_LIBS
10081fi
10082{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10084if test $ac_cv_lib_dl_dlopen = yes; then
10085
10086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_LIBDL 1
10088_ACEOF
10089
10090 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10091else
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098#if HAVE_DLFCN_H
10099# include <dlfcn.h>
10100#endif
10101
10102int
10103main ()
10104{
10105dlopen(0, 0);
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext conftest$ac_exeext
10111if { (ac_try="$ac_link"
10112case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_LIBDL 1
10147_ACEOF
10148 libltdl_cv_func_dlopen="yes"
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10154echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10155if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 ac_check_lib_save_LIBS=$LIBS
10159LIBS="-lsvld $LIBS"
10160cat >conftest.$ac_ext <<_ACEOF
10161/* confdefs.h. */
10162_ACEOF
10163cat confdefs.h >>conftest.$ac_ext
10164cat >>conftest.$ac_ext <<_ACEOF
10165/* end confdefs.h. */
10166
10167/* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10170#ifdef __cplusplus
10171extern "C"
10172#endif
10173char dlopen ();
10174int
10175main ()
10176{
10177return dlopen ();
10178 ;
10179 return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext conftest$ac_exeext
10183if { (ac_try="$ac_link"
10184case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010216 ac_cv_lib_svld_dlopen=yes
10217else
10218 echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 ac_cv_lib_svld_dlopen=no
10222fi
10223
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010224rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010225 conftest$ac_exeext conftest.$ac_ext
10226LIBS=$ac_check_lib_save_LIBS
10227fi
10228{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10229echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10230if test $ac_cv_lib_svld_dlopen = yes; then
10231
10232cat >>confdefs.h <<\_ACEOF
10233#define HAVE_LIBDL 1
10234_ACEOF
10235
10236 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10237else
10238 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10239echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10240if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 ac_check_lib_save_LIBS=$LIBS
10244LIBS="-ldld $LIBS"
10245cat >conftest.$ac_ext <<_ACEOF
10246/* confdefs.h. */
10247_ACEOF
10248cat confdefs.h >>conftest.$ac_ext
10249cat >>conftest.$ac_ext <<_ACEOF
10250/* end confdefs.h. */
10251
10252/* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255#ifdef __cplusplus
10256extern "C"
10257#endif
10258char dld_link ();
10259int
10260main ()
10261{
10262return dld_link ();
10263 ;
10264 return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
10268if { (ac_try="$ac_link"
10269case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010301 ac_cv_lib_dld_dld_link=yes
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ac_cv_lib_dld_dld_link=no
10307fi
10308
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010309rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010310 conftest$ac_exeext conftest.$ac_ext
10311LIBS=$ac_check_lib_save_LIBS
10312fi
10313{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10314echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10315if test $ac_cv_lib_dld_dld_link = yes; then
10316
10317cat >>confdefs.h <<\_ACEOF
10318#define HAVE_DLD 1
10319_ACEOF
10320
10321 LIBADD_DL="$LIBADD_DL -ldld"
10322else
10323 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10324echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10325if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h. */
10334/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10336#define _dyld_func_lookup innocuous__dyld_func_lookup
10337
10338/* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char _dyld_func_lookup (); below.
10340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341 <limits.h> exists even on freestanding compilers. */
10342
10343#ifdef __STDC__
10344# include <limits.h>
10345#else
10346# include <assert.h>
10347#endif
10348
10349#undef _dyld_func_lookup
10350
10351/* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10354#ifdef __cplusplus
10355extern "C"
10356#endif
10357char _dyld_func_lookup ();
10358/* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10362choke me
10363#endif
10364
10365int
10366main ()
10367{
10368return _dyld_func_lookup ();
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext conftest$ac_exeext
10374if { (ac_try="$ac_link"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401esac
10402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010407 ac_cv_func__dyld_func_lookup=yes
10408else
10409 echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_cv_func__dyld_func_lookup=no
10413fi
10414
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010415rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010416 conftest$ac_exeext conftest.$ac_ext
10417fi
10418{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10419echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10420if test $ac_cv_func__dyld_func_lookup = yes; then
10421
10422cat >>confdefs.h <<\_ACEOF
10423#define HAVE_DYLD 1
10424_ACEOF
10425
10426fi
10427
10428
10429fi
10430
10431
10432fi
10433
10434
10435fi
10436
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010437rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010438 conftest$ac_exeext conftest.$ac_ext
10439
10440fi
10441
10442
10443fi
10444
10445
10446fi
10447
10448
10449if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10450then
10451 lt_save_LIBS="$LIBS"
10452 LIBS="$LIBS $LIBADD_DL"
10453
10454for ac_func in dlerror
10455do
10456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462 cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10470#define $ac_func innocuous_$ac_func
10471
10472/* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func (); below.
10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475 <limits.h> exists even on freestanding compilers. */
10476
10477#ifdef __STDC__
10478# include <limits.h>
10479#else
10480# include <assert.h>
10481#endif
10482
10483#undef $ac_func
10484
10485/* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491char $ac_func ();
10492/* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495#if defined __stub_$ac_func || defined __stub___$ac_func
10496choke me
10497#endif
10498
10499int
10500main ()
10501{
10502return $ac_func ();
10503 ;
10504 return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010541 eval "$as_ac_var=yes"
10542else
10543 echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 eval "$as_ac_var=no"
10547fi
10548
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010549rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010550 conftest$ac_exeext conftest.$ac_ext
10551fi
10552ac_res=`eval echo '${'$as_ac_var'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554echo "${ECHO_T}$ac_res" >&6; }
10555if test `eval echo '${'$as_ac_var'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10558_ACEOF
10559
10560fi
10561done
10562
10563 LIBS="$lt_save_LIBS"
10564fi
10565ac_ext=c
10566ac_cpp='$CPP $CPPFLAGS'
10567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570
10571
10572
10573{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10574echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10575if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 ac_cv_sys_symbol_underscore=no
10579 cat > conftest.$ac_ext <<EOF
10580void nm_test_func(){}
10581int main(){nm_test_func;return 0;}
10582EOF
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; then
10588 # Now try to grab the symbols.
10589 ac_nlist=conftest.nm
10590 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10591 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && test -s "$ac_nlist"; then
10595 # See whether the symbols have a leading underscore.
10596 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10597 ac_cv_sys_symbol_underscore=yes
10598 else
10599 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10600 :
10601 else
10602 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10603 fi
10604 fi
10605 else
10606 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10607 fi
10608 else
10609 echo "configure: failed program was:" >&5
10610 cat conftest.c >&5
10611 fi
10612 rm -rf conftest*
10613
10614fi
10615{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10616echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10617
10618
10619if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10620 if test x"$libltdl_cv_func_dlopen" = xyes ||
10621 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10622 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10623echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10624if test "${libltdl_cv_need_uscore+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 libltdl_cv_need_uscore=unknown
10628 save_LIBS="$LIBS"
10629 LIBS="$LIBS $LIBADD_DL"
10630 if test "$cross_compiling" = yes; then :
10631 libltdl_cv_need_uscore=cross
10632else
10633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634 lt_status=$lt_dlunknown
10635 cat > conftest.$ac_ext <<EOF
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000010636#line 10636 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010637#include "confdefs.h"
10638
10639#if HAVE_DLFCN_H
10640#include <dlfcn.h>
10641#endif
10642
10643#include <stdio.h>
10644
10645#ifdef RTLD_GLOBAL
10646# define LT_DLGLOBAL RTLD_GLOBAL
10647#else
10648# ifdef DL_GLOBAL
10649# define LT_DLGLOBAL DL_GLOBAL
10650# else
10651# define LT_DLGLOBAL 0
10652# endif
10653#endif
10654
10655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656 find out it does not work in some platform. */
10657#ifndef LT_DLLAZY_OR_NOW
10658# ifdef RTLD_LAZY
10659# define LT_DLLAZY_OR_NOW RTLD_LAZY
10660# else
10661# ifdef DL_LAZY
10662# define LT_DLLAZY_OR_NOW DL_LAZY
10663# else
10664# ifdef RTLD_NOW
10665# define LT_DLLAZY_OR_NOW RTLD_NOW
10666# else
10667# ifdef DL_NOW
10668# define LT_DLLAZY_OR_NOW DL_NOW
10669# else
10670# define LT_DLLAZY_OR_NOW 0
10671# endif
10672# endif
10673# endif
10674# endif
10675#endif
10676
10677#ifdef __cplusplus
10678extern "C" void exit (int);
10679#endif
10680
10681void fnord() { int i=42;}
10682int main ()
10683{
10684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685 int status = $lt_dlunknown;
10686
10687 if (self)
10688 {
10689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691 /* dlclose (self); */
10692 }
10693 else
10694 puts (dlerror ());
10695
10696 exit (status);
10697}
10698EOF
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10704 (./conftest; exit; ) >&5 2>/dev/null
10705 lt_status=$?
10706 case x$lt_status in
10707 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10708 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10709 x$lt_dlunknown|x*) ;;
10710 esac
10711 else :
10712 # compilation failed
10713
10714 fi
10715fi
10716rm -fr conftest*
10717
10718 LIBS="$save_LIBS"
10719
10720fi
10721{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10722echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10723 fi
10724fi
10725
10726if test x"$libltdl_cv_need_uscore" = xyes; then
10727
10728cat >>confdefs.h <<\_ACEOF
10729#define NEED_USCORE 1
10730_ACEOF
10731
10732fi
10733
10734
10735{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10736echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10737if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 # PORTME does your system automatically load deplibs for dlopen?
10741 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10742 # For now, we just catch OSes we know something about -- in the
10743 # future, we'll try test this programmatically.
10744 libltdl_cv_sys_dlopen_deplibs=unknown
10745 case "$host_os" in
10746 aix3*|aix4.1.*|aix4.2.*)
10747 # Unknown whether this is true for these versions of AIX, but
10748 # we want this `case' here to explicitly catch those versions.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10750 ;;
10751 aix[45]*)
10752 libltdl_cv_sys_dlopen_deplibs=yes
10753 ;;
10754 darwin*)
10755 # Assuming the user has installed a libdl from somewhere, this is true
10756 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10757 libltdl_cv_sys_dlopen_deplibs=yes
10758 ;;
10759 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10760 # GNU and its variants, using gnu ld.so (Glibc)
10761 libltdl_cv_sys_dlopen_deplibs=yes
10762 ;;
10763 hpux10*|hpux11*)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10765 ;;
10766 interix*)
10767 libltdl_cv_sys_dlopen_deplibs=yes
10768 ;;
10769 irix[12345]*|irix6.[01]*)
10770 # Catch all versions of IRIX before 6.2, and indicate that we don't
10771 # know how it worked for any of those versions.
10772 libltdl_cv_sys_dlopen_deplibs=unknown
10773 ;;
10774 irix*)
10775 # The case above catches anything before 6.2, and it's known that
10776 # at 6.2 and later dlopen does load deplibs.
10777 libltdl_cv_sys_dlopen_deplibs=yes
10778 ;;
10779 netbsd*)
10780 libltdl_cv_sys_dlopen_deplibs=yes
10781 ;;
10782 openbsd*)
10783 libltdl_cv_sys_dlopen_deplibs=yes
10784 ;;
10785 osf[1234]*)
10786 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10787 # it did *not* use an RPATH in a shared library to find objects the
10788 # library depends on, so we explictly say `no'.
10789 libltdl_cv_sys_dlopen_deplibs=no
10790 ;;
10791 osf5.0|osf5.0a|osf5.1)
10792 # dlopen *does* load deplibs and with the right loader patch applied
10793 # it even uses RPATH in a shared library to search for shared objects
10794 # that the library depends on, but there's no easy way to know if that
10795 # patch is installed. Since this is the case, all we can really
10796 # say is unknown -- it depends on the patch being installed. If
10797 # it is, this changes to `yes'. Without it, it would be `no'.
10798 libltdl_cv_sys_dlopen_deplibs=unknown
10799 ;;
10800 osf*)
10801 # the two cases above should catch all versions of osf <= 5.1. Read
10802 # the comments above for what we know about them.
10803 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10804 # is used to find them so we can finally say `yes'.
10805 libltdl_cv_sys_dlopen_deplibs=yes
10806 ;;
10807 solaris*)
10808 libltdl_cv_sys_dlopen_deplibs=yes
10809 ;;
10810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10811 libltdl_cv_sys_dlopen_deplibs=yes
10812 ;;
10813 esac
10814
10815fi
10816{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10817echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10818if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10819
10820cat >>confdefs.h <<\_ACEOF
10821#define LTDL_DLOPEN_DEPLIBS 1
10822_ACEOF
10823
10824fi
10825
10826
10827for ac_header in argz.h
10828do
10829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835fi
10836ac_res=`eval echo '${'$as_ac_Header'}'`
10837 { echo "$as_me:$LINENO: result: $ac_res" >&5
10838echo "${ECHO_T}$ac_res" >&6; }
10839else
10840 # Is the header compilable?
10841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849$ac_includes_default
10850#include <$ac_header>
10851_ACEOF
10852rm -f conftest.$ac_objext
10853if { (ac_try="$ac_compile"
10854case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_compile") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867 { (case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_try") 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010886 ac_header_compiler=yes
10887else
10888 echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_header_compiler=no
10892fi
10893
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10896echo "${ECHO_T}$ac_header_compiler" >&6; }
10897
10898# Is the header present?
10899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10901cat >conftest.$ac_ext <<_ACEOF
10902/* confdefs.h. */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h. */
10907#include <$ac_header>
10908_ACEOF
10909if { (ac_try="$ac_cpp conftest.$ac_ext"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000010921 (exit $ac_status); } >/dev/null; then
10922 if test -s conftest.err; then
10923 ac_cpp_err=$ac_c_preproc_warn_flag
10924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10925 else
10926 ac_cpp_err=
10927 fi
10928else
10929 ac_cpp_err=yes
10930fi
10931if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010932 ac_header_preproc=yes
10933else
10934 echo "$as_me: failed program was:" >&5
10935sed 's/^/| /' conftest.$ac_ext >&5
10936
10937 ac_header_preproc=no
10938fi
10939
10940rm -f conftest.err conftest.$ac_ext
10941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942echo "${ECHO_T}$ac_header_preproc" >&6; }
10943
10944# So? What about this header?
10945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946 yes:no: )
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10952 ;;
10953 no:yes:* )
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966 ( cat <<\_ASBOX
10967## ----------------------------------- ##
10968## Report this to llvmbugs@cs.uiuc.edu ##
10969## ----------------------------------- ##
10970_ASBOX
10971 ) | sed "s/^/$as_me: WARNING: /" >&2
10972 ;;
10973esac
10974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 eval "$as_ac_Header=\$ac_header_preproc"
10980fi
10981ac_res=`eval echo '${'$as_ac_Header'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983echo "${ECHO_T}$ac_res" >&6; }
10984
10985fi
10986if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10989_ACEOF
10990
10991fi
10992
10993done
10994
10995
10996{ echo "$as_me:$LINENO: checking for error_t" >&5
10997echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10998if test "${ac_cv_type_error_t+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 cat >conftest.$ac_ext <<_ACEOF
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
11006/* end confdefs.h. */
11007#if HAVE_ARGZ_H
11008# include <argz.h>
11009#endif
11010
11011typedef error_t ac__type_new_;
11012int
11013main ()
11014{
11015if ((ac__type_new_ *) 0)
11016 return 0;
11017if (sizeof (ac__type_new_))
11018 return 0;
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011057 ac_cv_type_error_t=yes
11058else
11059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ac_cv_type_error_t=no
11063fi
11064
11065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066fi
11067{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11068echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11069if test $ac_cv_type_error_t = yes; then
11070
11071cat >>confdefs.h <<_ACEOF
11072#define HAVE_ERROR_T 1
11073_ACEOF
11074
11075
11076else
11077
11078cat >>confdefs.h <<\_ACEOF
11079#define error_t int
11080_ACEOF
11081
11082fi
11083
11084
11085
11086
11087
11088
11089
11090for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11091do
11092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 cat >conftest.$ac_ext <<_ACEOF
11099/* confdefs.h. */
11100_ACEOF
11101cat confdefs.h >>conftest.$ac_ext
11102cat >>conftest.$ac_ext <<_ACEOF
11103/* end confdefs.h. */
11104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106#define $ac_func innocuous_$ac_func
11107
11108/* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11112
11113#ifdef __STDC__
11114# include <limits.h>
11115#else
11116# include <assert.h>
11117#endif
11118
11119#undef $ac_func
11120
11121/* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124#ifdef __cplusplus
11125extern "C"
11126#endif
11127char $ac_func ();
11128/* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131#if defined __stub_$ac_func || defined __stub___$ac_func
11132choke me
11133#endif
11134
11135int
11136main ()
11137{
11138return $ac_func ();
11139 ;
11140 return 0;
11141}
11142_ACEOF
11143rm -f conftest.$ac_objext conftest$ac_exeext
11144if { (ac_try="$ac_link"
11145case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148esac
11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_try") 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11171esac
11172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_try") 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011177 eval "$as_ac_var=yes"
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 eval "$as_ac_var=no"
11183fi
11184
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011185rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011186 conftest$ac_exeext conftest.$ac_ext
11187fi
11188ac_res=`eval echo '${'$as_ac_var'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190echo "${ECHO_T}$ac_res" >&6; }
11191if test `eval echo '${'$as_ac_var'}'` = yes; then
11192 cat >>confdefs.h <<_ACEOF
11193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11194_ACEOF
11195
11196fi
11197done
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11227 stdio.h unistd.h
11228do
11229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235fi
11236ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238echo "${ECHO_T}$ac_res" >&6; }
11239else
11240 # Is the header compilable?
11241{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249$ac_includes_default
11250#include <$ac_header>
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011286 ac_header_compiler=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_header_compiler=no
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298# Is the header present?
11299{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307#include <$ac_header>
11308_ACEOF
11309if { (ac_try="$ac_cpp conftest.$ac_ext"
11310case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 else
11326 ac_cpp_err=
11327 fi
11328else
11329 ac_cpp_err=yes
11330fi
11331if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011332 ac_header_preproc=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_preproc=no
11338fi
11339
11340rm -f conftest.err conftest.$ac_ext
11341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344# So? What about this header?
11345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 yes:no: )
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11352 ;;
11353 no:yes:* )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 ( cat <<\_ASBOX
11367## ----------------------------------- ##
11368## Report this to llvmbugs@cs.uiuc.edu ##
11369## ----------------------------------- ##
11370_ASBOX
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11372 ;;
11373esac
11374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379 eval "$as_ac_Header=\$ac_header_preproc"
11380fi
11381ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383echo "${ECHO_T}$ac_res" >&6; }
11384
11385fi
11386if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389_ACEOF
11390
11391fi
11392
11393done
11394
11395
11396
11397
11398
11399for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11400do
11401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407fi
11408ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410echo "${ECHO_T}$ac_res" >&6; }
11411else
11412 # Is the header compilable?
11413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421$ac_includes_default
11422#include <$ac_header>
11423_ACEOF
11424rm -f conftest.$ac_objext
11425if { (ac_try="$ac_compile"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011458 ac_header_compiler=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_header_compiler=no
11464fi
11465
11466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468echo "${ECHO_T}$ac_header_compiler" >&6; }
11469
11470# Is the header present?
11471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479#include <$ac_header>
11480_ACEOF
11481if { (ac_try="$ac_cpp conftest.$ac_ext"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497 else
11498 ac_cpp_err=
11499 fi
11500else
11501 ac_cpp_err=yes
11502fi
11503if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011504 ac_header_preproc=yes
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_preproc=no
11510fi
11511
11512rm -f conftest.err conftest.$ac_ext
11513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514echo "${ECHO_T}$ac_header_preproc" >&6; }
11515
11516# So? What about this header?
11517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518 yes:no: )
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11524 ;;
11525 no:yes:* )
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538 ( cat <<\_ASBOX
11539## ----------------------------------- ##
11540## Report this to llvmbugs@cs.uiuc.edu ##
11541## ----------------------------------- ##
11542_ASBOX
11543 ) | sed "s/^/$as_me: WARNING: /" >&2
11544 ;;
11545esac
11546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555echo "${ECHO_T}$ac_res" >&6; }
11556
11557fi
11558if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561_ACEOF
11562
11563fi
11564
11565done
11566
11567
11568
11569for ac_header in string.h strings.h
11570do
11571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577fi
11578ac_res=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580echo "${ECHO_T}$ac_res" >&6; }
11581else
11582 # Is the header compilable?
11583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591$ac_includes_default
11592#include <$ac_header>
11593_ACEOF
11594rm -f conftest.$ac_objext
11595if { (ac_try="$ac_compile"
11596case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622esac
11623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_try") 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011628 ac_header_compiler=yes
11629else
11630 echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_header_compiler=no
11634fi
11635
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638echo "${ECHO_T}$ac_header_compiler" >&6; }
11639
11640# Is the header present?
11641{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#include <$ac_header>
11650_ACEOF
11651if { (ac_try="$ac_cpp conftest.$ac_ext"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011663 (exit $ac_status); } >/dev/null; then
11664 if test -s conftest.err; then
11665 ac_cpp_err=$ac_c_preproc_warn_flag
11666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667 else
11668 ac_cpp_err=
11669 fi
11670else
11671 ac_cpp_err=yes
11672fi
11673if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011674 ac_header_preproc=yes
11675else
11676 echo "$as_me: failed program was:" >&5
11677sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_header_preproc=no
11680fi
11681
11682rm -f conftest.err conftest.$ac_ext
11683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684echo "${ECHO_T}$ac_header_preproc" >&6; }
11685
11686# So? What about this header?
11687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 yes:no: )
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11694 ;;
11695 no:yes:* )
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 ( cat <<\_ASBOX
11709## ----------------------------------- ##
11710## Report this to llvmbugs@cs.uiuc.edu ##
11711## ----------------------------------- ##
11712_ASBOX
11713 ) | sed "s/^/$as_me: WARNING: /" >&2
11714 ;;
11715esac
11716{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 eval "$as_ac_Header=\$ac_header_preproc"
11722fi
11723ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725echo "${ECHO_T}$ac_res" >&6; }
11726
11727fi
11728if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11731_ACEOF
11732 break
11733fi
11734
11735done
11736
11737
11738
11739
11740for ac_func in strchr index
11741do
11742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756#define $ac_func innocuous_$ac_func
11757
11758/* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11762
11763#ifdef __STDC__
11764# include <limits.h>
11765#else
11766# include <assert.h>
11767#endif
11768
11769#undef $ac_func
11770
11771/* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11774#ifdef __cplusplus
11775extern "C"
11776#endif
11777char $ac_func ();
11778/* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781#if defined __stub_$ac_func || defined __stub___$ac_func
11782choke me
11783#endif
11784
11785int
11786main ()
11787{
11788return $ac_func ();
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
11794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011827 eval "$as_ac_var=yes"
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 eval "$as_ac_var=no"
11833fi
11834
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011835rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011836 conftest$ac_exeext conftest.$ac_ext
11837fi
11838ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840echo "${ECHO_T}$ac_res" >&6; }
11841if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844_ACEOF
11845 break
11846fi
11847done
11848
11849
11850
11851for ac_func in strrchr rindex
11852do
11853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859 cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867#define $ac_func innocuous_$ac_func
11868
11869/* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11873
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879
11880#undef $ac_func
11881
11882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char $ac_func ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined __stub_$ac_func || defined __stub___$ac_func
11893choke me
11894#endif
11895
11896int
11897main ()
11898{
11899return $ac_func ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
11905if { (ac_try="$ac_link"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011938 eval "$as_ac_var=yes"
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 eval "$as_ac_var=no"
11944fi
11945
Tanya Lattner3fa4a442009-01-22 05:17:59 +000011946rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011947 conftest$ac_exeext conftest.$ac_ext
11948fi
11949ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951echo "${ECHO_T}$ac_res" >&6; }
11952if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955_ACEOF
11956 break
11957fi
11958done
11959
11960
11961
11962for ac_func in memcpy bcopy
11963do
11964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h. */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h. */
11976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978#define $ac_func innocuous_$ac_func
11979
11980/* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11984
11985#ifdef __STDC__
11986# include <limits.h>
11987#else
11988# include <assert.h>
11989#endif
11990
11991#undef $ac_func
11992
11993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char $ac_func ();
12000/* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003#if defined __stub_$ac_func || defined __stub___$ac_func
12004choke me
12005#endif
12006
12007int
12008main ()
12009{
12010return $ac_func ();
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (ac_try="$ac_link"
12017case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012049 eval "$as_ac_var=yes"
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 eval "$as_ac_var=no"
12055fi
12056
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012057rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012058 conftest$ac_exeext conftest.$ac_ext
12059fi
12060ac_res=`eval echo '${'$as_ac_var'}'`
12061 { echo "$as_me:$LINENO: result: $ac_res" >&5
12062echo "${ECHO_T}$ac_res" >&6; }
12063if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066_ACEOF
12067 break
12068fi
12069done
12070
12071
12072
12073for ac_func in memmove strcmp
12074do
12075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12089#define $ac_func innocuous_$ac_func
12090
12091/* System header to define __stub macros and hopefully few prototypes,
12092 which can conflict with char $ac_func (); below.
12093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 <limits.h> exists even on freestanding compilers. */
12095
12096#ifdef __STDC__
12097# include <limits.h>
12098#else
12099# include <assert.h>
12100#endif
12101
12102#undef $ac_func
12103
12104/* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12107#ifdef __cplusplus
12108extern "C"
12109#endif
12110char $ac_func ();
12111/* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114#if defined __stub_$ac_func || defined __stub___$ac_func
12115choke me
12116#endif
12117
12118int
12119main ()
12120{
12121return $ac_func ();
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext conftest$ac_exeext
12127if { (ac_try="$ac_link"
12128case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144esac
12145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_try") 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012160 eval "$as_ac_var=yes"
12161else
12162 echo "$as_me: failed program was:" >&5
12163sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 eval "$as_ac_var=no"
12166fi
12167
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012168rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012169 conftest$ac_exeext conftest.$ac_ext
12170fi
12171ac_res=`eval echo '${'$as_ac_var'}'`
12172 { echo "$as_me:$LINENO: result: $ac_res" >&5
12173echo "${ECHO_T}$ac_res" >&6; }
12174if test `eval echo '${'$as_ac_var'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12177_ACEOF
12178
12179fi
12180done
12181
12182
12183
12184
12185for ac_func in closedir opendir readdir
12186do
12187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201#define $ac_func innocuous_$ac_func
12202
12203/* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12207
12208#ifdef __STDC__
12209# include <limits.h>
12210#else
12211# include <assert.h>
12212#endif
12213
12214#undef $ac_func
12215
12216/* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219#ifdef __cplusplus
12220extern "C"
12221#endif
12222char $ac_func ();
12223/* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
12226#if defined __stub_$ac_func || defined __stub___$ac_func
12227choke me
12228#endif
12229
12230int
12231main ()
12232{
12233return $ac_func ();
12234 ;
12235 return 0;
12236}
12237_ACEOF
12238rm -f conftest.$ac_objext conftest$ac_exeext
12239if { (ac_try="$ac_link"
12240case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243esac
12244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253 { (case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266esac
12267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012272 eval "$as_ac_var=yes"
12273else
12274 echo "$as_me: failed program was:" >&5
12275sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 eval "$as_ac_var=no"
12278fi
12279
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012280rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012281 conftest$ac_exeext conftest.$ac_ext
12282fi
12283ac_res=`eval echo '${'$as_ac_var'}'`
12284 { echo "$as_me:$LINENO: result: $ac_res" >&5
12285echo "${ECHO_T}$ac_res" >&6; }
12286if test `eval echo '${'$as_ac_var'}'` = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289_ACEOF
12290
12291fi
12292done
12293
12294
12295# Check whether --enable-shared was given.
12296if test "${enable_shared+set}" = set; then
12297 enableval=$enable_shared; p=${PACKAGE-default}
12298 case $enableval in
12299 yes) enable_shared=yes ;;
12300 no) enable_shared=no ;;
12301 *)
12302 enable_shared=no
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12306 IFS="$lt_save_ifs"
12307 if test "X$pkg" = "X$p"; then
12308 enable_shared=yes
12309 fi
12310 done
12311 IFS="$lt_save_ifs"
12312 ;;
12313 esac
12314else
12315 enable_shared=yes
12316fi
12317
12318
12319# Check whether --enable-static was given.
12320if test "${enable_static+set}" = set; then
12321 enableval=$enable_static; p=${PACKAGE-default}
12322 case $enableval in
12323 yes) enable_static=yes ;;
12324 no) enable_static=no ;;
12325 *)
12326 enable_static=no
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329 for pkg in $enableval; do
12330 IFS="$lt_save_ifs"
12331 if test "X$pkg" = "X$p"; then
12332 enable_static=yes
12333 fi
12334 done
12335 IFS="$lt_save_ifs"
12336 ;;
12337 esac
12338else
12339 enable_static=yes
12340fi
12341
12342
12343# Check whether --enable-fast-install was given.
12344if test "${enable_fast_install+set}" = set; then
12345 enableval=$enable_fast_install; p=${PACKAGE-default}
12346 case $enableval in
12347 yes) enable_fast_install=yes ;;
12348 no) enable_fast_install=no ;;
12349 *)
12350 enable_fast_install=no
12351 # Look at the argument we got. We use all the common list separators.
12352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12353 for pkg in $enableval; do
12354 IFS="$lt_save_ifs"
12355 if test "X$pkg" = "X$p"; then
12356 enable_fast_install=yes
12357 fi
12358 done
12359 IFS="$lt_save_ifs"
12360 ;;
12361 esac
12362else
12363 enable_fast_install=yes
12364fi
12365
12366
12367{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12368echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12369if test "${lt_cv_path_SED+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
12372 # Loop through the user's path and test for sed and gsed.
12373# Then use that list of sed's as ones to test for truncation.
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for lt_ac_prog in sed gsed; do
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12383 fi
12384 done
12385 done
12386done
12387lt_ac_max=0
12388lt_ac_count=0
12389# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12390# along with /bin/sed that truncates output.
12391for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12392 test ! -f $lt_ac_sed && continue
12393 cat /dev/null > conftest.in
12394 lt_ac_count=0
12395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12396 # Check for GNU sed and select it if it is found.
12397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12398 lt_cv_path_SED=$lt_ac_sed
12399 break
12400 fi
12401 while true; do
12402 cat conftest.in conftest.in >conftest.tmp
12403 mv conftest.tmp conftest.in
12404 cp conftest.in conftest.nl
12405 echo >>conftest.nl
12406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12407 cmp -s conftest.out conftest.nl || break
12408 # 10000 chars as input seems more than enough
12409 test $lt_ac_count -gt 10 && break
12410 lt_ac_count=`expr $lt_ac_count + 1`
12411 if test $lt_ac_count -gt $lt_ac_max; then
12412 lt_ac_max=$lt_ac_count
12413 lt_cv_path_SED=$lt_ac_sed
12414 fi
12415 done
12416done
12417
12418fi
12419
12420SED=$lt_cv_path_SED
12421{ echo "$as_me:$LINENO: result: $SED" >&5
12422echo "${ECHO_T}$SED" >&6; }
12423
12424
12425# Check whether --with-gnu-ld was given.
12426if test "${with_gnu_ld+set}" = set; then
12427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12428else
12429 with_gnu_ld=no
12430fi
12431
12432ac_prog=ld
12433if test "$GCC" = yes; then
12434 # Check if gcc -print-prog-name=ld gives a path.
12435 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12436echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12437 case $host in
12438 *-*-mingw*)
12439 # gcc leaves a trailing carriage return which upsets mingw
12440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12441 *)
12442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12443 esac
12444 case $ac_prog in
12445 # Accept absolute paths.
12446 [\\/]* | ?:[\\/]*)
12447 re_direlt='/[^/][^/]*/\.\./'
12448 # Canonicalize the pathname of ld
12449 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12451 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12452 done
12453 test -z "$LD" && LD="$ac_prog"
12454 ;;
12455 "")
12456 # If it fails, then pretend we aren't using GCC.
12457 ac_prog=ld
12458 ;;
12459 *)
12460 # If it is relative, then search for the first ld in PATH.
12461 with_gnu_ld=unknown
12462 ;;
12463 esac
12464elif test "$with_gnu_ld" = yes; then
12465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12466echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12467else
12468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12469echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12470fi
12471if test "${lt_cv_path_LD+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
12474 if test -z "$LD"; then
12475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12476 for ac_dir in $PATH; do
12477 IFS="$lt_save_ifs"
12478 test -z "$ac_dir" && ac_dir=.
12479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12480 lt_cv_path_LD="$ac_dir/$ac_prog"
12481 # Check to see if the program is GNU ld. I'd rather use --version,
12482 # but apparently some variants of GNU ld only accept -v.
12483 # Break only if it was the GNU/non-GNU ld that we prefer.
12484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12485 *GNU* | *'with BFD'*)
12486 test "$with_gnu_ld" != no && break
12487 ;;
12488 *)
12489 test "$with_gnu_ld" != yes && break
12490 ;;
12491 esac
12492 fi
12493 done
12494 IFS="$lt_save_ifs"
12495else
12496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12497fi
12498fi
12499
12500LD="$lt_cv_path_LD"
12501if test -n "$LD"; then
12502 { echo "$as_me:$LINENO: result: $LD" >&5
12503echo "${ECHO_T}$LD" >&6; }
12504else
12505 { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
12507fi
12508test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12509echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12510 { (exit 1); exit 1; }; }
12511{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12512echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12513if test "${lt_cv_prog_gnu_ld+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12517case `$LD -v 2>&1 </dev/null` in
12518*GNU* | *'with BFD'*)
12519 lt_cv_prog_gnu_ld=yes
12520 ;;
12521*)
12522 lt_cv_prog_gnu_ld=no
12523 ;;
12524esac
12525fi
12526{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12527echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12528with_gnu_ld=$lt_cv_prog_gnu_ld
12529
12530
12531{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12532echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12533if test "${lt_cv_ld_reload_flag+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 lt_cv_ld_reload_flag='-r'
12537fi
12538{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12539echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12540reload_flag=$lt_cv_ld_reload_flag
12541case $reload_flag in
12542"" | " "*) ;;
12543*) reload_flag=" $reload_flag" ;;
12544esac
12545reload_cmds='$LD$reload_flag -o $output$reload_objs'
12546case $host_os in
12547 darwin*)
12548 if test "$GCC" = yes; then
12549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12550 else
12551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552 fi
12553 ;;
12554esac
12555
12556{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12557echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12558if test "${lt_cv_deplibs_check_method+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 lt_cv_file_magic_cmd='$MAGIC_CMD'
12562lt_cv_file_magic_test_file=
12563lt_cv_deplibs_check_method='unknown'
12564# Need to set the preceding variable on all platforms that support
12565# interlibrary dependencies.
12566# 'none' -- dependencies not supported.
12567# `unknown' -- same as none, but documents that we really don't know.
12568# 'pass_all' -- all dependencies passed with no checks.
12569# 'test_compile' -- check by making test program.
12570# 'file_magic [[regex]]' -- check by looking for files in library path
12571# which responds to the $file_magic_cmd with a given extended regex.
12572# If you have `file' or equivalent on your system and you're not sure
12573# whether `pass_all' will *always* work, you probably want this one.
12574
12575case $host_os in
12576aix4* | aix5*)
12577 lt_cv_deplibs_check_method=pass_all
12578 ;;
12579
12580beos*)
12581 lt_cv_deplibs_check_method=pass_all
12582 ;;
12583
12584bsdi[45]*)
12585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12586 lt_cv_file_magic_cmd='/usr/bin/file -L'
12587 lt_cv_file_magic_test_file=/shlib/libc.so
12588 ;;
12589
12590cygwin*)
12591 # func_win32_libid is a shell function defined in ltmain.sh
12592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593 lt_cv_file_magic_cmd='func_win32_libid'
12594 ;;
12595
12596mingw* | pw32*)
12597 # Base MSYS/MinGW do not provide the 'file' command needed by
12598 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12600 lt_cv_file_magic_cmd='$OBJDUMP -f'
12601 ;;
12602
12603darwin* | rhapsody*)
12604 lt_cv_deplibs_check_method=pass_all
12605 ;;
12606
12607freebsd* | kfreebsd*-gnu | dragonfly*)
12608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609 case $host_cpu in
12610 i*86 )
12611 # Not sure whether the presence of OpenBSD here was a mistake.
12612 # Let's accept both of them until this is cleared up.
12613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12614 lt_cv_file_magic_cmd=/usr/bin/file
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12616 ;;
12617 esac
12618 else
12619 lt_cv_deplibs_check_method=pass_all
12620 fi
12621 ;;
12622
12623gnu*)
12624 lt_cv_deplibs_check_method=pass_all
12625 ;;
12626
12627hpux10.20* | hpux11*)
12628 lt_cv_file_magic_cmd=/usr/bin/file
12629 case $host_cpu in
12630 ia64*)
12631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633 ;;
12634 hppa*64*)
12635 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]'
12636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637 ;;
12638 *)
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641 ;;
12642 esac
12643 ;;
12644
12645interix3*)
12646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648 ;;
12649
12650irix5* | irix6* | nonstopux*)
12651 case $LD in
12652 *-32|*"-32 ") libmagic=32-bit;;
12653 *-n32|*"-n32 ") libmagic=N32;;
12654 *-64|*"-64 ") libmagic=64-bit;;
12655 *) libmagic=never-match;;
12656 esac
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
12659
12660# This must be Linux ELF.
12661linux*)
12662 lt_cv_deplibs_check_method=pass_all
12663 ;;
12664
12665netbsd*)
12666 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12668 else
12669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670 fi
12671 ;;
12672
12673newos6*)
12674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675 lt_cv_file_magic_cmd=/usr/bin/file
12676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677 ;;
12678
12679nto-qnx*)
12680 lt_cv_deplibs_check_method=unknown
12681 ;;
12682
12683openbsd*)
12684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12686 else
12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688 fi
12689 ;;
12690
12691osf3* | osf4* | osf5*)
12692 lt_cv_deplibs_check_method=pass_all
12693 ;;
12694
12695solaris*)
12696 lt_cv_deplibs_check_method=pass_all
12697 ;;
12698
12699sysv4 | sysv4.3*)
12700 case $host_vendor in
12701 motorola)
12702 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]'
12703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12704 ;;
12705 ncr)
12706 lt_cv_deplibs_check_method=pass_all
12707 ;;
12708 sequent)
12709 lt_cv_file_magic_cmd='/bin/file'
12710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12711 ;;
12712 sni)
12713 lt_cv_file_magic_cmd='/bin/file'
12714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12715 lt_cv_file_magic_test_file=/lib/libc.so
12716 ;;
12717 siemens)
12718 lt_cv_deplibs_check_method=pass_all
12719 ;;
12720 pc)
12721 lt_cv_deplibs_check_method=pass_all
12722 ;;
12723 esac
12724 ;;
12725
12726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12727 lt_cv_deplibs_check_method=pass_all
12728 ;;
12729esac
12730
12731fi
12732{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12733echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12734file_magic_cmd=$lt_cv_file_magic_cmd
12735deplibs_check_method=$lt_cv_deplibs_check_method
12736test -z "$deplibs_check_method" && deplibs_check_method=unknown
12737
12738
12739
12740# If no C compiler was specified, use CC.
12741LTCC=${LTCC-"$CC"}
12742
12743# If no C compiler flags were specified, use CFLAGS.
12744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12745
12746# Allow CC to be a program name with arguments.
12747compiler=$CC
12748
12749# Check whether --enable-libtool-lock was given.
12750if test "${enable_libtool_lock+set}" = set; then
12751 enableval=$enable_libtool_lock;
12752fi
12753
12754test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12755
12756# Some flags need to be propagated to the compiler or linker for good
12757# libtool support.
12758case $host in
12759ia64-*-hpux*)
12760 # Find out which ABI we are using.
12761 echo 'int i;' > conftest.$ac_ext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; then
12767 case `/usr/bin/file conftest.$ac_objext` in
12768 *ELF-32*)
12769 HPUX_IA64_MODE="32"
12770 ;;
12771 *ELF-64*)
12772 HPUX_IA64_MODE="64"
12773 ;;
12774 esac
12775 fi
12776 rm -rf conftest*
12777 ;;
12778*-*-irix6*)
12779 # Find out which ABI we are using.
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000012780 echo '#line 12780 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; then
12786 if test "$lt_cv_prog_gnu_ld" = yes; then
12787 case `/usr/bin/file conftest.$ac_objext` in
12788 *32-bit*)
12789 LD="${LD-ld} -melf32bsmip"
12790 ;;
12791 *N32*)
12792 LD="${LD-ld} -melf32bmipn32"
12793 ;;
12794 *64-bit*)
12795 LD="${LD-ld} -melf64bmip"
12796 ;;
12797 esac
12798 else
12799 case `/usr/bin/file conftest.$ac_objext` in
12800 *32-bit*)
12801 LD="${LD-ld} -32"
12802 ;;
12803 *N32*)
12804 LD="${LD-ld} -n32"
12805 ;;
12806 *64-bit*)
12807 LD="${LD-ld} -64"
12808 ;;
12809 esac
12810 fi
12811 fi
12812 rm -rf conftest*
12813 ;;
12814
12815x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; then
12823 case `/usr/bin/file conftest.o` in
12824 *32-bit*)
12825 case $host in
12826 x86_64-*linux*)
12827 LD="${LD-ld} -m elf_i386"
12828 ;;
12829 ppc64-*linux*|powerpc64-*linux*)
12830 LD="${LD-ld} -m elf32ppclinux"
12831 ;;
12832 s390x-*linux*)
12833 LD="${LD-ld} -m elf_s390"
12834 ;;
12835 sparc64-*linux*)
12836 LD="${LD-ld} -m elf32_sparc"
12837 ;;
12838 esac
12839 ;;
12840 *64-bit*)
12841 case $host in
12842 x86_64-*linux*)
12843 LD="${LD-ld} -m elf_x86_64"
12844 ;;
12845 ppc*-*linux*|powerpc*-*linux*)
12846 LD="${LD-ld} -m elf64ppc"
12847 ;;
12848 s390*-*linux*)
12849 LD="${LD-ld} -m elf64_s390"
12850 ;;
12851 sparc*-*linux*)
12852 LD="${LD-ld} -m elf64_sparc"
12853 ;;
12854 esac
12855 ;;
12856 esac
12857 fi
12858 rm -rf conftest*
12859 ;;
12860
12861*-*-sco3.2v5*)
12862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12863 SAVE_CFLAGS="$CFLAGS"
12864 CFLAGS="$CFLAGS -belf"
12865 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12866echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12867if test "${lt_cv_cc_needs_belf+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869else
12870 ac_ext=c
12871ac_cpp='$CPP $CPPFLAGS'
12872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
12883int
12884main ()
12885{
12886
12887 ;
12888 return 0;
12889}
12890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
12892if { (ac_try="$ac_link"
12893case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896esac
12897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012925 lt_cv_cc_needs_belf=yes
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 lt_cv_cc_needs_belf=no
12931fi
12932
Tanya Lattner3fa4a442009-01-22 05:17:59 +000012933rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012934 conftest$ac_exeext conftest.$ac_ext
12935 ac_ext=c
12936ac_cpp='$CPP $CPPFLAGS'
12937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940
12941fi
12942{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12943echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12946 CFLAGS="$SAVE_CFLAGS"
12947 fi
12948 ;;
12949sparc*-*solaris*)
12950 # Find out which ABI we are using.
12951 echo 'int i;' > conftest.$ac_ext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; then
12957 case `/usr/bin/file conftest.o` in
12958 *64-bit*)
12959 case $lt_cv_prog_gnu_ld in
12960 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12961 *) LD="${LD-ld} -64" ;;
12962 esac
12963 ;;
12964 esac
12965 fi
12966 rm -rf conftest*
12967 ;;
12968
12969
12970esac
12971
12972need_locks="$enable_libtool_lock"
12973
12974
12975
12976
12977if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12979 (test "X$CXX" != "Xg++"))) ; then
12980 ac_ext=cpp
12981ac_cpp='$CXXCPP $CPPFLAGS'
12982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12985{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12986echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12987if test -z "$CXXCPP"; then
12988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
12991 # Double quotes because CXXCPP needs to be expanded
12992 for CXXCPP in "$CXX -E" "/lib/cpp"
12993 do
12994 ac_preproc_ok=false
12995for ac_cxx_preproc_warn_flag in '' yes
12996do
12997 # Use a header file that comes with gcc, so configuring glibc
12998 # with a fresh cross-compiler works.
12999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 # <limits.h> exists even on freestanding compilers.
13001 # On the NeXT, cc -E runs the code through the compiler's parser,
13002 # not just through cpp. "Syntax error" is here to catch this case.
13003 cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#ifdef __STDC__
13010# include <limits.h>
13011#else
13012# include <assert.h>
13013#endif
13014 Syntax error
13015_ACEOF
13016if { (ac_try="$ac_cpp conftest.$ac_ext"
13017case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013028 (exit $ac_status); } >/dev/null; then
13029 if test -s conftest.err; then
13030 ac_cpp_err=$ac_cxx_preproc_warn_flag
13031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13032 else
13033 ac_cpp_err=
13034 fi
13035else
13036 ac_cpp_err=yes
13037fi
13038if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013039 :
13040else
13041 echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 # Broken: fails on valid input.
13045continue
13046fi
13047
13048rm -f conftest.err conftest.$ac_ext
13049
13050 # OK, works on sane cases. Now check whether nonexistent headers
13051 # can be detected and how.
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058#include <ac_nonexistent.h>
13059_ACEOF
13060if { (ac_try="$ac_cpp conftest.$ac_ext"
13061case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013072 (exit $ac_status); } >/dev/null; then
13073 if test -s conftest.err; then
13074 ac_cpp_err=$ac_cxx_preproc_warn_flag
13075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13076 else
13077 ac_cpp_err=
13078 fi
13079else
13080 ac_cpp_err=yes
13081fi
13082if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013083 # Broken: success on invalid input.
13084continue
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 # Passes both tests.
13090ac_preproc_ok=:
13091break
13092fi
13093
13094rm -f conftest.err conftest.$ac_ext
13095
13096done
13097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13098rm -f conftest.err conftest.$ac_ext
13099if $ac_preproc_ok; then
13100 break
13101fi
13102
13103 done
13104 ac_cv_prog_CXXCPP=$CXXCPP
13105
13106fi
13107 CXXCPP=$ac_cv_prog_CXXCPP
13108else
13109 ac_cv_prog_CXXCPP=$CXXCPP
13110fi
13111{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13112echo "${ECHO_T}$CXXCPP" >&6; }
13113ac_preproc_ok=false
13114for ac_cxx_preproc_warn_flag in '' yes
13115do
13116 # Use a header file that comes with gcc, so configuring glibc
13117 # with a fresh cross-compiler works.
13118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119 # <limits.h> exists even on freestanding compilers.
13120 # On the NeXT, cc -E runs the code through the compiler's parser,
13121 # not just through cpp. "Syntax error" is here to catch this case.
13122 cat >conftest.$ac_ext <<_ACEOF
13123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
13128#ifdef __STDC__
13129# include <limits.h>
13130#else
13131# include <assert.h>
13132#endif
13133 Syntax error
13134_ACEOF
13135if { (ac_try="$ac_cpp conftest.$ac_ext"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013147 (exit $ac_status); } >/dev/null; then
13148 if test -s conftest.err; then
13149 ac_cpp_err=$ac_cxx_preproc_warn_flag
13150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13151 else
13152 ac_cpp_err=
13153 fi
13154else
13155 ac_cpp_err=yes
13156fi
13157if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013158 :
13159else
13160 echo "$as_me: failed program was:" >&5
13161sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 # Broken: fails on valid input.
13164continue
13165fi
13166
13167rm -f conftest.err conftest.$ac_ext
13168
13169 # OK, works on sane cases. Now check whether nonexistent headers
13170 # can be detected and how.
13171 cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177#include <ac_nonexistent.h>
13178_ACEOF
13179if { (ac_try="$ac_cpp conftest.$ac_ext"
13180case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013191 (exit $ac_status); } >/dev/null; then
13192 if test -s conftest.err; then
13193 ac_cpp_err=$ac_cxx_preproc_warn_flag
13194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13195 else
13196 ac_cpp_err=
13197 fi
13198else
13199 ac_cpp_err=yes
13200fi
13201if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013202 # Broken: success on invalid input.
13203continue
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 # Passes both tests.
13209ac_preproc_ok=:
13210break
13211fi
13212
13213rm -f conftest.err conftest.$ac_ext
13214
13215done
13216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217rm -f conftest.err conftest.$ac_ext
13218if $ac_preproc_ok; then
13219 :
13220else
13221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222See \`config.log' for more details." >&5
13223echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13224See \`config.log' for more details." >&2;}
13225 { (exit 1); exit 1; }; }
13226fi
13227
13228ac_ext=cpp
13229ac_cpp='$CXXCPP $CPPFLAGS'
13230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13233
13234fi
13235
13236
13237ac_ext=f
13238ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13239ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13241if test -n "$ac_tool_prefix"; then
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013242 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013243 do
13244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13248if test "${ac_cv_prog_F77+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 if test -n "$F77"; then
13252 ac_cv_prog_F77="$F77" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265done
13266done
13267IFS=$as_save_IFS
13268
13269fi
13270fi
13271F77=$ac_cv_prog_F77
13272if test -n "$F77"; then
13273 { echo "$as_me:$LINENO: result: $F77" >&5
13274echo "${ECHO_T}$F77" >&6; }
13275else
13276 { echo "$as_me:$LINENO: result: no" >&5
13277echo "${ECHO_T}no" >&6; }
13278fi
13279
13280
13281 test -n "$F77" && break
13282 done
13283fi
13284if test -z "$F77"; then
13285 ac_ct_F77=$F77
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013286 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013287do
13288 # Extract the first word of "$ac_prog", so it can be a program name with args.
13289set dummy $ac_prog; ac_word=$2
13290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13292if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 if test -n "$ac_ct_F77"; then
13296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013305 ac_cv_prog_ac_ct_F77="$ac_prog"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309done
13310done
13311IFS=$as_save_IFS
13312
13313fi
13314fi
13315ac_ct_F77=$ac_cv_prog_ac_ct_F77
13316if test -n "$ac_ct_F77"; then
13317 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13318echo "${ECHO_T}$ac_ct_F77" >&6; }
13319else
13320 { echo "$as_me:$LINENO: result: no" >&5
13321echo "${ECHO_T}no" >&6; }
13322fi
13323
13324
13325 test -n "$ac_ct_F77" && break
13326done
13327
13328 if test "x$ac_ct_F77" = x; then
13329 F77=""
13330 else
13331 case $cross_compiling:$ac_tool_warned in
13332yes:)
13333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13334whose name does not start with the host triplet. If you think this
13335configuration is useful to you, please write to autoconf@gnu.org." >&5
13336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13337whose name does not start with the host triplet. If you think this
13338configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13339ac_tool_warned=yes ;;
13340esac
13341 F77=$ac_ct_F77
13342 fi
13343fi
13344
13345
13346# Provide some information about the compiler.
13347echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13348ac_compiler=`set X $ac_compile; echo $2`
13349{ (ac_try="$ac_compiler --version >&5"
13350case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_compiler --version >&5") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }
13359{ (ac_try="$ac_compiler -v >&5"
13360case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compiler -v >&5") 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }
13369{ (ac_try="$ac_compiler -V >&5"
13370case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373esac
13374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compiler -V >&5") 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }
13379rm -f a.out
13380
13381# If we don't use `.F' as extension, the preprocessor is not run on the
13382# input file. (Note that this only needs to work for GNU compilers.)
13383ac_save_ext=$ac_ext
13384ac_ext=F
13385{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13386echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13387if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 cat >conftest.$ac_ext <<_ACEOF
13391 program main
13392#ifndef __GNUC__
13393 choke me
13394#endif
13395
13396 end
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013432 ac_compiler_gnu=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_compiler_gnu=no
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13442
13443fi
13444{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13445echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13446ac_ext=$ac_save_ext
13447ac_test_FFLAGS=${FFLAGS+set}
13448ac_save_FFLAGS=$FFLAGS
13449FFLAGS=
13450{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13451echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13452if test "${ac_cv_prog_f77_g+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 FFLAGS=-g
13456cat >conftest.$ac_ext <<_ACEOF
13457 program main
13458
13459 end
13460_ACEOF
13461rm -f conftest.$ac_objext
13462if { (ac_try="$ac_compile"
13463case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466esac
13467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
13469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489esac
13490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013495 ac_cv_prog_f77_g=yes
13496else
13497 echo "$as_me: failed program was:" >&5
13498sed 's/^/| /' conftest.$ac_ext >&5
13499
13500 ac_cv_prog_f77_g=no
13501fi
13502
13503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504
13505fi
13506{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13507echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13508if test "$ac_test_FFLAGS" = set; then
13509 FFLAGS=$ac_save_FFLAGS
13510elif test $ac_cv_prog_f77_g = yes; then
13511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13512 FFLAGS="-g -O2"
13513 else
13514 FFLAGS="-g"
13515 fi
13516else
13517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13518 FFLAGS="-O2"
13519 else
13520 FFLAGS=
13521 fi
13522fi
13523
13524G77=`test $ac_compiler_gnu = yes && echo yes`
13525ac_ext=c
13526ac_cpp='$CPP $CPPFLAGS'
13527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530
13531
13532
13533# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13534
13535# find the maximum length of command line arguments
13536{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13537echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13538if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 i=0
13542 teststring="ABCD"
13543
13544 case $build_os in
13545 msdosdjgpp*)
13546 # On DJGPP, this test can blow up pretty badly due to problems in libc
13547 # (any single argument exceeding 2000 bytes causes a buffer overrun
13548 # during glob expansion). Even if it were fixed, the result of this
13549 # check would be larger than it should be.
13550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13551 ;;
13552
13553 gnu*)
13554 # Under GNU Hurd, this test is not required because there is
13555 # no limit to the length of command line arguments.
13556 # Libtool will interpret -1 as no limit whatsoever
13557 lt_cv_sys_max_cmd_len=-1;
13558 ;;
13559
13560 cygwin* | mingw*)
13561 # On Win9x/ME, this test blows up -- it succeeds, but takes
13562 # about 5 minutes as the teststring grows exponentially.
13563 # Worse, since 9x/ME are not pre-emptively multitasking,
13564 # you end up with a "frozen" computer, even though with patience
13565 # the test eventually succeeds (with a max line length of 256k).
13566 # Instead, let's just punt: use the minimum linelength reported by
13567 # all of the supported platforms: 8192 (on NT/2K/XP).
13568 lt_cv_sys_max_cmd_len=8192;
13569 ;;
13570
13571 amigaos*)
13572 # On AmigaOS with pdksh, this test takes hours, literally.
13573 # So we just punt and use a minimum line length of 8192.
13574 lt_cv_sys_max_cmd_len=8192;
13575 ;;
13576
13577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13578 # This has been around since 386BSD, at least. Likely further.
13579 if test -x /sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13581 elif test -x /usr/sbin/sysctl; then
13582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13583 else
13584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13585 fi
13586 # And add a safety zone
13587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13589 ;;
13590
13591 interix*)
13592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593 lt_cv_sys_max_cmd_len=196608
13594 ;;
13595
13596 osf*)
13597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599 # nice to cause kernel panics so lets avoid the loop below.
13600 # First set a reasonable default.
13601 lt_cv_sys_max_cmd_len=16384
13602 #
13603 if test -x /sbin/sysconfig; then
13604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13606 esac
13607 fi
13608 ;;
13609 sco3.2v5*)
13610 lt_cv_sys_max_cmd_len=102400
13611 ;;
13612 sysv5* | sco5v6* | sysv4.2uw2*)
13613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614 if test -n "$kargmax"; then
13615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13616 else
13617 lt_cv_sys_max_cmd_len=32768
13618 fi
13619 ;;
13620 *)
13621 # If test is not a shell built-in, we'll probably end up computing a
13622 # maximum length that is only half of the actual maximum length, but
13623 # we can't tell.
13624 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13625 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13626 = "XX$teststring") >/dev/null 2>&1 &&
13627 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13628 lt_cv_sys_max_cmd_len=$new_result &&
13629 test $i != 17 # 1/2 MB should be enough
13630 do
13631 i=`expr $i + 1`
13632 teststring=$teststring$teststring
13633 done
13634 teststring=
13635 # Add a significant safety factor because C++ compilers can tack on massive
13636 # amounts of additional arguments before passing them to the linker.
13637 # It appears as though 1/2 is a usable value.
13638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13639 ;;
13640 esac
13641
13642fi
13643
13644if test -n $lt_cv_sys_max_cmd_len ; then
13645 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13646echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13647else
13648 { echo "$as_me:$LINENO: result: none" >&5
13649echo "${ECHO_T}none" >&6; }
13650fi
13651
13652
13653
13654
13655# Check for command to grab the raw symbol name followed by C symbol from nm.
13656{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13657echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13658if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660else
13661
13662# These are sane defaults that work on at least a few old systems.
13663# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13664
13665# Character class describing NM global symbol codes.
13666symcode='[BCDEGRST]'
13667
13668# Regexp to match symbols that can be accessed directly from C.
13669sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13670
13671# Transform an extracted symbol line into a proper C declaration
13672lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13673
13674# Transform an extracted symbol line into symbol name and symbol address
13675lt_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'"
13676
13677# Define system-specific variables.
13678case $host_os in
13679aix*)
13680 symcode='[BCDT]'
13681 ;;
13682cygwin* | mingw* | pw32*)
13683 symcode='[ABCDGISTW]'
13684 ;;
13685hpux*) # Its linker distinguishes data from code symbols
13686 if test "$host_cpu" = ia64; then
13687 symcode='[ABCDEGRST]'
13688 fi
13689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13690 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'"
13691 ;;
13692linux*)
13693 if test "$host_cpu" = ia64; then
13694 symcode='[ABCDGIRSTW]'
13695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696 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'"
13697 fi
13698 ;;
13699irix* | nonstopux*)
13700 symcode='[BCDEGRST]'
13701 ;;
13702osf*)
13703 symcode='[BCDEGQRST]'
13704 ;;
13705solaris*)
13706 symcode='[BDRT]'
13707 ;;
13708sco3.2v5*)
13709 symcode='[DT]'
13710 ;;
13711sysv4.2uw2*)
13712 symcode='[DT]'
13713 ;;
13714sysv5* | sco5v6* | unixware* | OpenUNIX*)
13715 symcode='[ABDT]'
13716 ;;
13717sysv4)
13718 symcode='[DFNSTU]'
13719 ;;
13720esac
13721
13722# Handle CRLF in mingw tool chain
13723opt_cr=
13724case $build_os in
13725mingw*)
13726 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13727 ;;
13728esac
13729
13730# If we're using GNU nm, then use its standard symbol codes.
13731case `$NM -V 2>&1` in
13732*GNU* | *'with BFD'*)
13733 symcode='[ABCDGIRSTW]' ;;
13734esac
13735
13736# Try without a prefix undercore, then with it.
13737for ac_symprfx in "" "_"; do
13738
13739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13740 symxfrm="\\1 $ac_symprfx\\2 \\2"
13741
13742 # Write the raw and C identifiers.
13743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13744
13745 # Check to see that the pipe works correctly.
13746 pipe_works=no
13747
13748 rm -f conftest*
13749 cat > conftest.$ac_ext <<EOF
13750#ifdef __cplusplus
13751extern "C" {
13752#endif
13753char nm_test_var;
13754void nm_test_func(){}
13755#ifdef __cplusplus
13756}
13757#endif
13758int main(){nm_test_var='a';nm_test_func();return(0);}
13759EOF
13760
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; then
13766 # Now try to grab the symbols.
13767 nlist=conftest.nm
13768 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13769 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && test -s "$nlist"; then
13773 # Try sorting and uniquifying the output.
13774 if sort "$nlist" | uniq > "$nlist"T; then
13775 mv -f "$nlist"T "$nlist"
13776 else
13777 rm -f "$nlist"T
13778 fi
13779
13780 # Make sure that we snagged all the symbols we need.
13781 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13782 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13783 cat <<EOF > conftest.$ac_ext
13784#ifdef __cplusplus
13785extern "C" {
13786#endif
13787
13788EOF
13789 # Now generate the symbol file.
13790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13791
13792 cat <<EOF >> conftest.$ac_ext
13793#if defined (__STDC__) && __STDC__
13794# define lt_ptr_t void *
13795#else
13796# define lt_ptr_t char *
13797# define const
13798#endif
13799
13800/* The mapping between symbol names and symbols. */
13801const struct {
13802 const char *name;
13803 lt_ptr_t address;
13804}
13805lt_preloaded_symbols[] =
13806{
13807EOF
13808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13809 cat <<\EOF >> conftest.$ac_ext
13810 {0, (lt_ptr_t) 0}
13811};
13812
13813#ifdef __cplusplus
13814}
13815#endif
13816EOF
13817 # Now try linking the two files.
13818 mv conftest.$ac_objext conftstm.$ac_objext
13819 lt_save_LIBS="$LIBS"
13820 lt_save_CFLAGS="$CFLAGS"
13821 LIBS="conftstm.$ac_objext"
13822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13828 pipe_works=yes
13829 fi
13830 LIBS="$lt_save_LIBS"
13831 CFLAGS="$lt_save_CFLAGS"
13832 else
13833 echo "cannot find nm_test_func in $nlist" >&5
13834 fi
13835 else
13836 echo "cannot find nm_test_var in $nlist" >&5
13837 fi
13838 else
13839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13840 fi
13841 else
13842 echo "$progname: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 fi
13845 rm -f conftest* conftst*
13846
13847 # Do not use the global_symbol_pipe unless it works.
13848 if test "$pipe_works" = yes; then
13849 break
13850 else
13851 lt_cv_sys_global_symbol_pipe=
13852 fi
13853done
13854
13855fi
13856
13857if test -z "$lt_cv_sys_global_symbol_pipe"; then
13858 lt_cv_sys_global_symbol_to_cdecl=
13859fi
13860if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13861 { echo "$as_me:$LINENO: result: failed" >&5
13862echo "${ECHO_T}failed" >&6; }
13863else
13864 { echo "$as_me:$LINENO: result: ok" >&5
13865echo "${ECHO_T}ok" >&6; }
13866fi
13867
13868{ echo "$as_me:$LINENO: checking for objdir" >&5
13869echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13870if test "${lt_cv_objdir+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 rm -f .libs 2>/dev/null
13874mkdir .libs 2>/dev/null
13875if test -d .libs; then
13876 lt_cv_objdir=.libs
13877else
13878 # MS-DOS does not allow filenames that begin with a dot.
13879 lt_cv_objdir=_libs
13880fi
13881rmdir .libs 2>/dev/null
13882fi
13883{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13884echo "${ECHO_T}$lt_cv_objdir" >&6; }
13885objdir=$lt_cv_objdir
13886
13887
13888
13889
13890
13891case $host_os in
13892aix3*)
13893 # AIX sometimes has problems with the GCC collect2 program. For some
13894 # reason, if we set the COLLECT_NAMES environment variable, the problems
13895 # vanish in a puff of smoke.
13896 if test "X${COLLECT_NAMES+set}" != Xset; then
13897 COLLECT_NAMES=
13898 export COLLECT_NAMES
13899 fi
13900 ;;
13901esac
13902
13903# Sed substitution that helps us do robust quoting. It backslashifies
13904# metacharacters that are still active within double-quoted strings.
13905Xsed='sed -e 1s/^X//'
13906sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13907
13908# Same as above, but do not quote variable references.
13909double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13910
13911# Sed substitution to delay expansion of an escaped shell variable in a
13912# double_quote_subst'ed string.
13913delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13914
13915# Sed substitution to avoid accidental globbing in evaled expressions
13916no_glob_subst='s/\*/\\\*/g'
13917
13918# Constants:
13919rm="rm -f"
13920
13921# Global variables:
13922default_ofile=mklib
13923can_build_shared=yes
13924
13925# All known linkers require a `.a' archive for static linking (except MSVC,
13926# which needs '.lib').
13927libext=a
13928ltmain="$ac_aux_dir/ltmain.sh"
13929ofile="$default_ofile"
13930with_gnu_ld="$lt_cv_prog_gnu_ld"
13931
13932if test -n "$ac_tool_prefix"; then
13933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13934set dummy ${ac_tool_prefix}ar; ac_word=$2
13935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13937if test "${ac_cv_prog_AR+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939else
13940 if test -n "$AR"; then
13941 ac_cv_prog_AR="$AR" # Let the user override the test.
13942else
13943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944for as_dir in $PATH
13945do
13946 IFS=$as_save_IFS
13947 test -z "$as_dir" && as_dir=.
13948 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013950 ac_cv_prog_AR="${ac_tool_prefix}ar"
13951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952 break 2
13953 fi
13954done
13955done
13956IFS=$as_save_IFS
13957
13958fi
13959fi
13960AR=$ac_cv_prog_AR
13961if test -n "$AR"; then
13962 { echo "$as_me:$LINENO: result: $AR" >&5
13963echo "${ECHO_T}$AR" >&6; }
13964else
13965 { echo "$as_me:$LINENO: result: no" >&5
13966echo "${ECHO_T}no" >&6; }
13967fi
13968
13969
13970fi
13971if test -z "$ac_cv_prog_AR"; then
13972 ac_ct_AR=$AR
13973 # Extract the first word of "ar", so it can be a program name with args.
13974set dummy ar; ac_word=$2
13975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13977if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
13980 if test -n "$ac_ct_AR"; then
13981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13982else
13983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984for as_dir in $PATH
13985do
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000013989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013990 ac_cv_prog_ac_ct_AR="ar"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13993 fi
13994done
13995done
13996IFS=$as_save_IFS
13997
13998fi
13999fi
14000ac_ct_AR=$ac_cv_prog_ac_ct_AR
14001if test -n "$ac_ct_AR"; then
14002 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14003echo "${ECHO_T}$ac_ct_AR" >&6; }
14004else
14005 { echo "$as_me:$LINENO: result: no" >&5
14006echo "${ECHO_T}no" >&6; }
14007fi
14008
14009 if test "x$ac_ct_AR" = x; then
14010 AR="false"
14011 else
14012 case $cross_compiling:$ac_tool_warned in
14013yes:)
14014{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14015whose name does not start with the host triplet. If you think this
14016configuration is useful to you, please write to autoconf@gnu.org." >&5
14017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14018whose name does not start with the host triplet. If you think this
14019configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14020ac_tool_warned=yes ;;
14021esac
14022 AR=$ac_ct_AR
14023 fi
14024else
14025 AR="$ac_cv_prog_AR"
14026fi
14027
14028if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14033if test "${ac_cv_prog_RANLIB+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 if test -n "$RANLIB"; then
14037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14038else
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14049 fi
14050done
14051done
14052IFS=$as_save_IFS
14053
14054fi
14055fi
14056RANLIB=$ac_cv_prog_RANLIB
14057if test -n "$RANLIB"; then
14058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14059echo "${ECHO_T}$RANLIB" >&6; }
14060else
14061 { echo "$as_me:$LINENO: result: no" >&5
14062echo "${ECHO_T}no" >&6; }
14063fi
14064
14065
14066fi
14067if test -z "$ac_cv_prog_RANLIB"; then
14068 ac_ct_RANLIB=$RANLIB
14069 # Extract the first word of "ranlib", so it can be a program name with args.
14070set dummy ranlib; ac_word=$2
14071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
14076 if test -n "$ac_ct_RANLIB"; then
14077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14078else
14079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014086 ac_cv_prog_ac_ct_RANLIB="ranlib"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 break 2
14089 fi
14090done
14091done
14092IFS=$as_save_IFS
14093
14094fi
14095fi
14096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14097if test -n "$ac_ct_RANLIB"; then
14098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14099echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14100else
14101 { echo "$as_me:$LINENO: result: no" >&5
14102echo "${ECHO_T}no" >&6; }
14103fi
14104
14105 if test "x$ac_ct_RANLIB" = x; then
14106 RANLIB=":"
14107 else
14108 case $cross_compiling:$ac_tool_warned in
14109yes:)
14110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14111whose name does not start with the host triplet. If you think this
14112configuration is useful to you, please write to autoconf@gnu.org." >&5
14113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14114whose name does not start with the host triplet. If you think this
14115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14116ac_tool_warned=yes ;;
14117esac
14118 RANLIB=$ac_ct_RANLIB
14119 fi
14120else
14121 RANLIB="$ac_cv_prog_RANLIB"
14122fi
14123
14124if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14126set dummy ${ac_tool_prefix}strip; ac_word=$2
14127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14129if test "${ac_cv_prog_STRIP+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 if test -n "$STRIP"; then
14133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14134else
14135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136for as_dir in $PATH
14137do
14138 IFS=$as_save_IFS
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 break 2
14145 fi
14146done
14147done
14148IFS=$as_save_IFS
14149
14150fi
14151fi
14152STRIP=$ac_cv_prog_STRIP
14153if test -n "$STRIP"; then
14154 { echo "$as_me:$LINENO: result: $STRIP" >&5
14155echo "${ECHO_T}$STRIP" >&6; }
14156else
14157 { echo "$as_me:$LINENO: result: no" >&5
14158echo "${ECHO_T}no" >&6; }
14159fi
14160
14161
14162fi
14163if test -z "$ac_cv_prog_STRIP"; then
14164 ac_ct_STRIP=$STRIP
14165 # Extract the first word of "strip", so it can be a program name with args.
14166set dummy strip; ac_word=$2
14167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14169if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 if test -n "$ac_ct_STRIP"; then
14173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14174else
14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176for as_dir in $PATH
14177do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000014181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014182 ac_cv_prog_ac_ct_STRIP="strip"
14183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186done
14187done
14188IFS=$as_save_IFS
14189
14190fi
14191fi
14192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14193if test -n "$ac_ct_STRIP"; then
14194 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14195echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14196else
14197 { echo "$as_me:$LINENO: result: no" >&5
14198echo "${ECHO_T}no" >&6; }
14199fi
14200
14201 if test "x$ac_ct_STRIP" = x; then
14202 STRIP=":"
14203 else
14204 case $cross_compiling:$ac_tool_warned in
14205yes:)
14206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14207whose name does not start with the host triplet. If you think this
14208configuration is useful to you, please write to autoconf@gnu.org." >&5
14209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14210whose name does not start with the host triplet. If you think this
14211configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14212ac_tool_warned=yes ;;
14213esac
14214 STRIP=$ac_ct_STRIP
14215 fi
14216else
14217 STRIP="$ac_cv_prog_STRIP"
14218fi
14219
14220
14221old_CC="$CC"
14222old_CFLAGS="$CFLAGS"
14223
14224# Set sane defaults for various variables
14225test -z "$AR" && AR=ar
14226test -z "$AR_FLAGS" && AR_FLAGS=cru
14227test -z "$AS" && AS=as
14228test -z "$CC" && CC=cc
14229test -z "$LTCC" && LTCC=$CC
14230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14231test -z "$DLLTOOL" && DLLTOOL=dlltool
14232test -z "$LD" && LD=ld
14233test -z "$LN_S" && LN_S="ln -s"
14234test -z "$MAGIC_CMD" && MAGIC_CMD=file
14235test -z "$NM" && NM=nm
14236test -z "$SED" && SED=sed
14237test -z "$OBJDUMP" && OBJDUMP=objdump
14238test -z "$RANLIB" && RANLIB=:
14239test -z "$STRIP" && STRIP=:
14240test -z "$ac_objext" && ac_objext=o
14241
14242# Determine commands to create old-style static archives.
14243old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14244old_postinstall_cmds='chmod 644 $oldlib'
14245old_postuninstall_cmds=
14246
14247if test -n "$RANLIB"; then
14248 case $host_os in
14249 openbsd*)
14250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14251 ;;
14252 *)
14253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14254 ;;
14255 esac
14256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14257fi
14258
14259for cc_temp in $compiler""; do
14260 case $cc_temp in
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 \-*) ;;
14264 *) break;;
14265 esac
14266done
14267cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
14269
14270# Only perform the check for file, if the check method requires it
14271case $deplibs_check_method in
14272file_magic*)
14273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14274 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14275echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 case $MAGIC_CMD in
14280[\\/*] | ?:[\\/]*)
14281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14282 ;;
14283*)
14284 lt_save_MAGIC_CMD="$MAGIC_CMD"
14285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14287 for ac_dir in $ac_dummy; do
14288 IFS="$lt_save_ifs"
14289 test -z "$ac_dir" && ac_dir=.
14290 if test -f $ac_dir/${ac_tool_prefix}file; then
14291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14292 if test -n "$file_magic_test_file"; then
14293 case $deplibs_check_method in
14294 "file_magic "*)
14295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14298 $EGREP "$file_magic_regex" > /dev/null; then
14299 :
14300 else
14301 cat <<EOF 1>&2
14302
14303*** Warning: the command libtool uses to detect shared libraries,
14304*** $file_magic_cmd, produces output that libtool cannot recognize.
14305*** The result is that libtool may fail to recognize shared libraries
14306*** as such. This will affect the creation of libtool libraries that
14307*** depend on shared libraries, but programs linked with such libtool
14308*** libraries will work regardless of this problem. Nevertheless, you
14309*** may want to report the problem to your system manager and/or to
14310*** bug-libtool@gnu.org
14311
14312EOF
14313 fi ;;
14314 esac
14315 fi
14316 break
14317 fi
14318 done
14319 IFS="$lt_save_ifs"
14320 MAGIC_CMD="$lt_save_MAGIC_CMD"
14321 ;;
14322esac
14323fi
14324
14325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14326if test -n "$MAGIC_CMD"; then
14327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14328echo "${ECHO_T}$MAGIC_CMD" >&6; }
14329else
14330 { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
14332fi
14333
14334if test -z "$lt_cv_path_MAGIC_CMD"; then
14335 if test -n "$ac_tool_prefix"; then
14336 { echo "$as_me:$LINENO: checking for file" >&5
14337echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14338if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 case $MAGIC_CMD in
14342[\\/*] | ?:[\\/]*)
14343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14344 ;;
14345*)
14346 lt_save_MAGIC_CMD="$MAGIC_CMD"
14347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14349 for ac_dir in $ac_dummy; do
14350 IFS="$lt_save_ifs"
14351 test -z "$ac_dir" && ac_dir=.
14352 if test -f $ac_dir/file; then
14353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14354 if test -n "$file_magic_test_file"; then
14355 case $deplibs_check_method in
14356 "file_magic "*)
14357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14360 $EGREP "$file_magic_regex" > /dev/null; then
14361 :
14362 else
14363 cat <<EOF 1>&2
14364
14365*** Warning: the command libtool uses to detect shared libraries,
14366*** $file_magic_cmd, produces output that libtool cannot recognize.
14367*** The result is that libtool may fail to recognize shared libraries
14368*** as such. This will affect the creation of libtool libraries that
14369*** depend on shared libraries, but programs linked with such libtool
14370*** libraries will work regardless of this problem. Nevertheless, you
14371*** may want to report the problem to your system manager and/or to
14372*** bug-libtool@gnu.org
14373
14374EOF
14375 fi ;;
14376 esac
14377 fi
14378 break
14379 fi
14380 done
14381 IFS="$lt_save_ifs"
14382 MAGIC_CMD="$lt_save_MAGIC_CMD"
14383 ;;
14384esac
14385fi
14386
14387MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14388if test -n "$MAGIC_CMD"; then
14389 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14390echo "${ECHO_T}$MAGIC_CMD" >&6; }
14391else
14392 { echo "$as_me:$LINENO: result: no" >&5
14393echo "${ECHO_T}no" >&6; }
14394fi
14395
14396 else
14397 MAGIC_CMD=:
14398 fi
14399fi
14400
14401 fi
14402 ;;
14403esac
14404
14405enable_dlopen=yes
14406enable_win32_dll=no
14407
14408# Check whether --enable-libtool-lock was given.
14409if test "${enable_libtool_lock+set}" = set; then
14410 enableval=$enable_libtool_lock;
14411fi
14412
14413test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14414
14415
14416# Check whether --with-pic was given.
14417if test "${with_pic+set}" = set; then
14418 withval=$with_pic; pic_mode="$withval"
14419else
14420 pic_mode=default
14421fi
14422
14423test -z "$pic_mode" && pic_mode=default
14424
14425# Use C for the default configuration in the libtool script
14426tagname=
14427lt_save_CC="$CC"
14428ac_ext=c
14429ac_cpp='$CPP $CPPFLAGS'
14430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14432ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433
14434
14435# Source file extension for C test sources.
14436ac_ext=c
14437
14438# Object file extension for compiled C test sources.
14439objext=o
14440objext=$objext
14441
14442# Code to be used in simple compile tests
14443lt_simple_compile_test_code="int some_variable = 0;\n"
14444
14445# Code to be used in simple link tests
14446lt_simple_link_test_code='int main(){return(0);}\n'
14447
14448
14449# If no C compiler was specified, use CC.
14450LTCC=${LTCC-"$CC"}
14451
14452# If no C compiler flags were specified, use CFLAGS.
14453LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14454
14455# Allow CC to be a program name with arguments.
14456compiler=$CC
14457
14458
14459# save warnings/boilerplate of simple test code
14460ac_outfile=conftest.$ac_objext
14461printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14462eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463_lt_compiler_boilerplate=`cat conftest.err`
14464$rm conftest*
14465
14466ac_outfile=conftest.$ac_objext
14467printf "$lt_simple_link_test_code" >conftest.$ac_ext
14468eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469_lt_linker_boilerplate=`cat conftest.err`
14470$rm conftest*
14471
14472
14473
14474lt_prog_compiler_no_builtin_flag=
14475
14476if test "$GCC" = yes; then
14477 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14478
14479
14480{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14481echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14482if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 lt_cv_prog_compiler_rtti_exceptions=no
14486 ac_outfile=conftest.$ac_objext
14487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14488 lt_compiler_flag="-fno-rtti -fno-exceptions"
14489 # Insert the option either (1) after the last *FLAGS variable, or
14490 # (2) before a word containing "conftest.", or (3) at the end.
14491 # Note that $ac_compile itself does not contain backslashes and begins
14492 # with a dollar sign (not a hyphen), so the echo should work correctly.
14493 # The option is referenced via a variable to avoid confusing sed.
14494 lt_compile=`echo "$ac_compile" | $SED \
14495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014498 (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014499 (eval "$lt_compile" 2>conftest.err)
14500 ac_status=$?
14501 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014502 echo "$as_me:14502: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014503 if (exit $ac_status) && test -s "$ac_outfile"; then
14504 # The compiler can only warn and ignore the option if not recognized
14505 # So say no if there are warnings other than the usual output.
14506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14509 lt_cv_prog_compiler_rtti_exceptions=yes
14510 fi
14511 fi
14512 $rm conftest*
14513
14514fi
14515{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14516echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14517
14518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14520else
14521 :
14522fi
14523
14524fi
14525
14526lt_prog_compiler_wl=
14527lt_prog_compiler_pic=
14528lt_prog_compiler_static=
14529
14530{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14531echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14532
14533 if test "$GCC" = yes; then
14534 lt_prog_compiler_wl='-Wl,'
14535 lt_prog_compiler_static='-static'
14536
14537 case $host_os in
14538 aix*)
14539 # All AIX code is PIC.
14540 if test "$host_cpu" = ia64; then
14541 # AIX 5 now supports IA64 processor
14542 lt_prog_compiler_static='-Bstatic'
14543 fi
14544 ;;
14545
14546 amigaos*)
14547 # FIXME: we need at least 68020 code to build shared libraries, but
14548 # adding the `-m68020' flag to GCC prevents building anything better,
14549 # like `-m68040'.
14550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14551 ;;
14552
14553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14554 # PIC is the default for these OSes.
14555 ;;
14556
14557 mingw* | pw32* | os2*)
14558 # This hack is so that the source file can tell whether it is being
14559 # built for inclusion in a dll (and should export symbols for example).
14560 lt_prog_compiler_pic='-DDLL_EXPORT'
14561 ;;
14562
14563 darwin* | rhapsody*)
14564 # PIC is the default on this platform
14565 # Common symbols not allowed in MH_DYLIB files
14566 lt_prog_compiler_pic='-fno-common'
14567 ;;
14568
14569 interix3*)
14570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14571 # Instead, we relocate shared libraries at runtime.
14572 ;;
14573
14574 msdosdjgpp*)
14575 # Just because we use GCC doesn't mean we suddenly get shared libraries
14576 # on systems that don't support them.
14577 lt_prog_compiler_can_build_shared=no
14578 enable_shared=no
14579 ;;
14580
14581 sysv4*MP*)
14582 if test -d /usr/nec; then
14583 lt_prog_compiler_pic=-Kconform_pic
14584 fi
14585 ;;
14586
14587 hpux*)
14588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589 # not for PA HP-UX.
14590 case $host_cpu in
14591 hppa*64*|ia64*)
14592 # +Z the default
14593 ;;
14594 *)
14595 lt_prog_compiler_pic='-fPIC'
14596 ;;
14597 esac
14598 ;;
14599
14600 *)
14601 lt_prog_compiler_pic='-fPIC'
14602 ;;
14603 esac
14604 else
14605 # PORTME Check for flag to pass linker flags through the system compiler.
14606 case $host_os in
14607 aix*)
14608 lt_prog_compiler_wl='-Wl,'
14609 if test "$host_cpu" = ia64; then
14610 # AIX 5 now supports IA64 processor
14611 lt_prog_compiler_static='-Bstatic'
14612 else
14613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14614 fi
14615 ;;
14616 darwin*)
14617 # PIC is the default on this platform
14618 # Common symbols not allowed in MH_DYLIB files
14619 case $cc_basename in
14620 xlc*)
14621 lt_prog_compiler_pic='-qnocommon'
14622 lt_prog_compiler_wl='-Wl,'
14623 ;;
14624 esac
14625 ;;
14626
14627 mingw* | pw32* | os2*)
14628 # This hack is so that the source file can tell whether it is being
14629 # built for inclusion in a dll (and should export symbols for example).
14630 lt_prog_compiler_pic='-DDLL_EXPORT'
14631 ;;
14632
14633 hpux9* | hpux10* | hpux11*)
14634 lt_prog_compiler_wl='-Wl,'
14635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636 # not for PA HP-UX.
14637 case $host_cpu in
14638 hppa*64*|ia64*)
14639 # +Z the default
14640 ;;
14641 *)
14642 lt_prog_compiler_pic='+Z'
14643 ;;
14644 esac
14645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14646 lt_prog_compiler_static='${wl}-a ${wl}archive'
14647 ;;
14648
14649 irix5* | irix6* | nonstopux*)
14650 lt_prog_compiler_wl='-Wl,'
14651 # PIC (with -KPIC) is the default.
14652 lt_prog_compiler_static='-non_shared'
14653 ;;
14654
14655 newsos6)
14656 lt_prog_compiler_pic='-KPIC'
14657 lt_prog_compiler_static='-Bstatic'
14658 ;;
14659
14660 linux*)
14661 case $cc_basename in
14662 icc* | ecc*)
14663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-static'
14666 ;;
14667 pgcc* | pgf77* | pgf90* | pgf95*)
14668 # Portland Group compilers (*not* the Pentium gcc compiler,
14669 # which looks to be a dead project)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='-fpic'
14672 lt_prog_compiler_static='-Bstatic'
14673 ;;
14674 ccc*)
14675 lt_prog_compiler_wl='-Wl,'
14676 # All Alpha code is PIC.
14677 lt_prog_compiler_static='-non_shared'
14678 ;;
14679 esac
14680 ;;
14681
14682 osf3* | osf4* | osf5*)
14683 lt_prog_compiler_wl='-Wl,'
14684 # All OSF/1 code is PIC.
14685 lt_prog_compiler_static='-non_shared'
14686 ;;
14687
14688 solaris*)
14689 lt_prog_compiler_pic='-KPIC'
14690 lt_prog_compiler_static='-Bstatic'
14691 case $cc_basename in
14692 f77* | f90* | f95*)
14693 lt_prog_compiler_wl='-Qoption ld ';;
14694 *)
14695 lt_prog_compiler_wl='-Wl,';;
14696 esac
14697 ;;
14698
14699 sunos4*)
14700 lt_prog_compiler_wl='-Qoption ld '
14701 lt_prog_compiler_pic='-PIC'
14702 lt_prog_compiler_static='-Bstatic'
14703 ;;
14704
14705 sysv4 | sysv4.2uw2* | sysv4.3*)
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-Bstatic'
14709 ;;
14710
14711 sysv4*MP*)
14712 if test -d /usr/nec ;then
14713 lt_prog_compiler_pic='-Kconform_pic'
14714 lt_prog_compiler_static='-Bstatic'
14715 fi
14716 ;;
14717
14718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-KPIC'
14721 lt_prog_compiler_static='-Bstatic'
14722 ;;
14723
14724 unicos*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_can_build_shared=no
14727 ;;
14728
14729 uts4*)
14730 lt_prog_compiler_pic='-pic'
14731 lt_prog_compiler_static='-Bstatic'
14732 ;;
14733
14734 *)
14735 lt_prog_compiler_can_build_shared=no
14736 ;;
14737 esac
14738 fi
14739
14740{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14741echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14742
14743#
14744# Check to make sure the PIC flag actually works.
14745#
14746if test -n "$lt_prog_compiler_pic"; then
14747
14748{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14750if test "${lt_prog_compiler_pic_works+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 lt_prog_compiler_pic_works=no
14754 ac_outfile=conftest.$ac_objext
14755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14757 # Insert the option either (1) after the last *FLAGS variable, or
14758 # (2) before a word containing "conftest.", or (3) at the end.
14759 # Note that $ac_compile itself does not contain backslashes and begins
14760 # with a dollar sign (not a hyphen), so the echo should work correctly.
14761 # The option is referenced via a variable to avoid confusing sed.
14762 lt_compile=`echo "$ac_compile" | $SED \
14763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014766 (eval echo "\"\$as_me:14766: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014767 (eval "$lt_compile" 2>conftest.err)
14768 ac_status=$?
14769 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014770 echo "$as_me:14770: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014771 if (exit $ac_status) && test -s "$ac_outfile"; then
14772 # The compiler can only warn and ignore the option if not recognized
14773 # So say no if there are warnings other than the usual output.
14774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14777 lt_prog_compiler_pic_works=yes
14778 fi
14779 fi
14780 $rm conftest*
14781
14782fi
14783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14784echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14785
14786if test x"$lt_prog_compiler_pic_works" = xyes; then
14787 case $lt_prog_compiler_pic in
14788 "" | " "*) ;;
14789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14790 esac
14791else
14792 lt_prog_compiler_pic=
14793 lt_prog_compiler_can_build_shared=no
14794fi
14795
14796fi
14797case $host_os in
14798 # For platforms which do not support PIC, -DPIC is meaningless:
14799 *djgpp*)
14800 lt_prog_compiler_pic=
14801 ;;
14802 *)
14803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14804 ;;
14805esac
14806
14807#
14808# Check to make sure the static flag actually works.
14809#
14810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14811{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14812echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14813if test "${lt_prog_compiler_static_works+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 lt_prog_compiler_static_works=no
14817 save_LDFLAGS="$LDFLAGS"
14818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14821 # The linker can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 if test -s conftest.err; then
14824 # Append any errors to the config.log.
14825 cat conftest.err 1>&5
14826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if diff conftest.exp conftest.er2 >/dev/null; then
14829 lt_prog_compiler_static_works=yes
14830 fi
14831 else
14832 lt_prog_compiler_static_works=yes
14833 fi
14834 fi
14835 $rm conftest*
14836 LDFLAGS="$save_LDFLAGS"
14837
14838fi
14839{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14840echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14841
14842if test x"$lt_prog_compiler_static_works" = xyes; then
14843 :
14844else
14845 lt_prog_compiler_static=
14846fi
14847
14848
14849{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14851if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853else
14854 lt_cv_prog_compiler_c_o=no
14855 $rm -r conftest 2>/dev/null
14856 mkdir conftest
14857 cd conftest
14858 mkdir out
14859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14860
14861 lt_compiler_flag="-o out/conftest2.$ac_objext"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 lt_compile=`echo "$ac_compile" | $SED \
14867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014870 (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014871 (eval "$lt_compile" 2>out/conftest.err)
14872 ac_status=$?
14873 cat out/conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000014874 echo "$as_me:14874: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14876 then
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings
14879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_c_o=yes
14883 fi
14884 fi
14885 chmod u+w . 2>&5
14886 $rm conftest*
14887 # SGI C++ compiler will create directory out/ii_files/ for
14888 # template instantiation
14889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14890 $rm out/* && rmdir out
14891 cd ..
14892 rmdir conftest
14893 $rm conftest*
14894
14895fi
14896{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14897echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14898
14899
14900hard_links="nottested"
14901if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14902 # do not overwrite the value of need_locks provided by the user
14903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14905 hard_links=yes
14906 $rm conftest*
14907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908 touch conftest.a
14909 ln conftest.a conftest.b 2>&5 || hard_links=no
14910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911 { echo "$as_me:$LINENO: result: $hard_links" >&5
14912echo "${ECHO_T}$hard_links" >&6; }
14913 if test "$hard_links" = no; then
14914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14916 need_locks=warn
14917 fi
14918else
14919 need_locks=no
14920fi
14921
14922{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14924
14925 runpath_var=
14926 allow_undefined_flag=
14927 enable_shared_with_static_runtimes=no
14928 archive_cmds=
14929 archive_expsym_cmds=
14930 old_archive_From_new_cmds=
14931 old_archive_from_expsyms_cmds=
14932 export_dynamic_flag_spec=
14933 whole_archive_flag_spec=
14934 thread_safe_flag_spec=
14935 hardcode_libdir_flag_spec=
14936 hardcode_libdir_flag_spec_ld=
14937 hardcode_libdir_separator=
14938 hardcode_direct=no
14939 hardcode_minus_L=no
14940 hardcode_shlibpath_var=unsupported
14941 link_all_deplibs=unknown
14942 hardcode_automatic=no
14943 module_cmds=
14944 module_expsym_cmds=
14945 always_export_symbols=no
14946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947 # include_expsyms should be a list of space-separated symbols to be *always*
14948 # included in the symbol list
14949 include_expsyms=
14950 # exclude_expsyms can be an extended regexp of symbols to exclude
14951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14953 # as well as any symbol that contains `d'.
14954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14956 # platforms (ab)use it in PIC code, but their linkers get confused if
14957 # the symbol is explicitly referenced. Since portable code cannot
14958 # rely on this symbol name, it's probably fine to never include it in
14959 # preloaded symbol tables.
14960 extract_expsyms_cmds=
14961 # Just being paranoid about ensuring that cc_basename is set.
14962 for cc_temp in $compiler""; do
14963 case $cc_temp in
14964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14966 \-*) ;;
14967 *) break;;
14968 esac
14969done
14970cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14971
14972 case $host_os in
14973 cygwin* | mingw* | pw32*)
14974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14975 # When not using gcc, we currently assume that we are using
14976 # Microsoft Visual C++.
14977 if test "$GCC" != yes; then
14978 with_gnu_ld=no
14979 fi
14980 ;;
14981 interix*)
14982 # we just hope/assume this is gcc and not c89 (= MSVC++)
14983 with_gnu_ld=yes
14984 ;;
14985 openbsd*)
14986 with_gnu_ld=no
14987 ;;
14988 esac
14989
14990 ld_shlibs=yes
14991 if test "$with_gnu_ld" = yes; then
14992 # If archive_cmds runs LD, not CC, wlarc should be empty
14993 wlarc='${wl}'
14994
14995 # Set some defaults for GNU ld with shared library support. These
14996 # are reset later if shared libraries are not supported. Putting them
14997 # here allows them to be overridden if necessary.
14998 runpath_var=LD_RUN_PATH
14999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15000 export_dynamic_flag_spec='${wl}--export-dynamic'
15001 # ancient GNU ld didn't support --whole-archive et. al.
15002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15004 else
15005 whole_archive_flag_spec=
15006 fi
15007 supports_anon_versioning=no
15008 case `$LD -v 2>/dev/null` in
15009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15012 *\ 2.11.*) ;; # other 2.11 versions
15013 *) supports_anon_versioning=yes ;;
15014 esac
15015
15016 # See if GNU ld supports shared libraries.
15017 case $host_os in
15018 aix3* | aix4* | aix5*)
15019 # On AIX/PPC, the GNU linker is very broken
15020 if test "$host_cpu" != ia64; then
15021 ld_shlibs=no
15022 cat <<EOF 1>&2
15023
15024*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15025*** to be unable to reliably create shared libraries on AIX.
15026*** Therefore, libtool is disabling shared libraries support. If you
15027*** really care for shared libraries, you may want to modify your PATH
15028*** so that a non-GNU linker is found, and then restart.
15029
15030EOF
15031 fi
15032 ;;
15033
15034 amigaos*)
15035 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)'
15036 hardcode_libdir_flag_spec='-L$libdir'
15037 hardcode_minus_L=yes
15038
15039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15040 # that the semantics of dynamic libraries on AmigaOS, at least up
15041 # to version 4, is to share data among multiple programs linked
15042 # with the same dynamic library. Since this doesn't match the
15043 # behavior of shared libraries on other platforms, we can't use
15044 # them.
15045 ld_shlibs=no
15046 ;;
15047
15048 beos*)
15049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050 allow_undefined_flag=unsupported
15051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15052 # support --undefined. This deserves some investigation. FIXME
15053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054 else
15055 ld_shlibs=no
15056 fi
15057 ;;
15058
15059 cygwin* | mingw* | pw32*)
15060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15061 # as there is no search path for DLLs.
15062 hardcode_libdir_flag_spec='-L$libdir'
15063 allow_undefined_flag=unsupported
15064 always_export_symbols=no
15065 enable_shared_with_static_runtimes=yes
15066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15067
15068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15070 # If the export-symbols file already is a .def file (1st line
15071 # is EXPORTS), use it as is; otherwise, prepend...
15072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15073 cp $export_symbols $output_objdir/$soname.def;
15074 else
15075 echo EXPORTS > $output_objdir/$soname.def;
15076 cat $export_symbols >> $output_objdir/$soname.def;
15077 fi~
15078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15079 else
15080 ld_shlibs=no
15081 fi
15082 ;;
15083
15084 interix3*)
15085 hardcode_direct=no
15086 hardcode_shlibpath_var=no
15087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15088 export_dynamic_flag_spec='${wl}-E'
15089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15090 # Instead, shared libraries are loaded at an image base (0x10000000 by
15091 # default) and relocated if they conflict, which is a slow very memory
15092 # consuming and fragmenting process. To avoid this, we pick a random,
15093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15096 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'
15097 ;;
15098
15099 linux*)
15100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15101 tmp_addflag=
15102 case $cc_basename,$host_cpu in
15103 pgcc*) # Portland Group C compiler
15104 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'
15105 tmp_addflag=' $pic_flag'
15106 ;;
15107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15108 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'
15109 tmp_addflag=' $pic_flag -Mnomain' ;;
15110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15111 tmp_addflag=' -i_dynamic' ;;
15112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15113 tmp_addflag=' -i_dynamic -nofor_main' ;;
15114 ifc* | ifort*) # Intel Fortran compiler
15115 tmp_addflag=' -nofor_main' ;;
15116 esac
15117 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118
15119 if test $supports_anon_versioning = yes; then
15120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15122 $echo "local: *; };" >> $output_objdir/$libname.ver~
15123 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15124 fi
15125 else
15126 ld_shlibs=no
15127 fi
15128 ;;
15129
15130 netbsd*)
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15133 wlarc=
15134 else
15135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 fi
15138 ;;
15139
15140 solaris*)
15141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15142 ld_shlibs=no
15143 cat <<EOF 1>&2
15144
15145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15146*** create shared libraries on Solaris systems. Therefore, libtool
15147*** is disabling shared libraries support. We urge you to upgrade GNU
15148*** binutils to release 2.9.1 or newer. Another option is to modify
15149*** your PATH or compiler configuration so that the native linker is
15150*** used, and then restart.
15151
15152EOF
15153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156 else
15157 ld_shlibs=no
15158 fi
15159 ;;
15160
15161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15162 case `$LD -v 2>&1` in
15163 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15164 ld_shlibs=no
15165 cat <<_LT_EOF 1>&2
15166
15167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15168*** reliably create shared libraries on SCO systems. Therefore, libtool
15169*** is disabling shared libraries support. We urge you to upgrade GNU
15170*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15171*** your PATH or compiler configuration so that the native linker is
15172*** used, and then restart.
15173
15174_LT_EOF
15175 ;;
15176 *)
15177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15181 else
15182 ld_shlibs=no
15183 fi
15184 ;;
15185 esac
15186 ;;
15187
15188 sunos4*)
15189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15190 wlarc=
15191 hardcode_direct=yes
15192 hardcode_shlibpath_var=no
15193 ;;
15194
15195 *)
15196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15199 else
15200 ld_shlibs=no
15201 fi
15202 ;;
15203 esac
15204
15205 if test "$ld_shlibs" = no; then
15206 runpath_var=
15207 hardcode_libdir_flag_spec=
15208 export_dynamic_flag_spec=
15209 whole_archive_flag_spec=
15210 fi
15211 else
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15213 case $host_os in
15214 aix3*)
15215 allow_undefined_flag=unsupported
15216 always_export_symbols=yes
15217 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'
15218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L=yes
15221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15222 # Neither direct hardcoding nor static linking is supported with a
15223 # broken collect2.
15224 hardcode_direct=unsupported
15225 fi
15226 ;;
15227
15228 aix4* | aix5*)
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15234 no_entry_flag=""
15235 else
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15240 else
15241 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'
15242 fi
15243 aix_use_runtimelinking=no
15244
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15252 break
15253 fi
15254 done
15255 ;;
15256 esac
15257
15258 exp_sym_flag='-bexport'
15259 no_entry_flag='-bnoentry'
15260 fi
15261
15262 # When large executables or shared objects are built, AIX ld can
15263 # have problems creating the table of contents. If linking a library
15264 # or program results in "error TOC overflow" add -mminimal-toc to
15265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15267
15268 archive_cmds=''
15269 hardcode_direct=yes
15270 hardcode_libdir_separator=':'
15271 link_all_deplibs=yes
15272
15273 if test "$GCC" = yes; then
15274 case $host_os in aix4.[012]|aix4.[012].*)
15275 # We only want to do this on AIX 4.2 and lower, the check
15276 # below for broken collect2 doesn't work under 4.3+
15277 collect2name=`${CC} -print-prog-name=collect2`
15278 if test -f "$collect2name" && \
15279 strings "$collect2name" | grep resolve_lib_name >/dev/null
15280 then
15281 # We have reworked collect2
15282 hardcode_direct=yes
15283 else
15284 # We have old collect2
15285 hardcode_direct=unsupported
15286 # It fails to find uninstalled libraries when the uninstalled
15287 # path is not listed in the libpath. Setting hardcode_minus_L
15288 # to unsupported forces relinking
15289 hardcode_minus_L=yes
15290 hardcode_libdir_flag_spec='-L$libdir'
15291 hardcode_libdir_separator=
15292 fi
15293 ;;
15294 esac
15295 shared_flag='-shared'
15296 if test "$aix_use_runtimelinking" = yes; then
15297 shared_flag="$shared_flag "'${wl}-G'
15298 fi
15299 else
15300 # not using gcc
15301 if test "$host_cpu" = ia64; then
15302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303 # chokes on -Wl,-G. The following line is correct:
15304 shared_flag='-G'
15305 else
15306 if test "$aix_use_runtimelinking" = yes; then
15307 shared_flag='${wl}-G'
15308 else
15309 shared_flag='${wl}-bM:SRE'
15310 fi
15311 fi
15312 fi
15313
15314 # It seems that -bexpall does not export symbols beginning with
15315 # underscore (_), so it is better to generate a list of symbols to export.
15316 always_export_symbols=yes
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # Warning - without using the other runtime loading flags (-brtl),
15319 # -berok will link without error, but may produce a broken library.
15320 allow_undefined_flag='-berok'
15321 # Determine the default libpath from the value encoded in an empty executable.
15322 cat >conftest.$ac_ext <<_ACEOF
15323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
15328
15329int
15330main ()
15331{
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337rm -f conftest.$ac_objext conftest$ac_exeext
15338if { (ac_try="$ac_link"
15339case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015350 (exit $ac_status); } &&
15351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365esac
15366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015371
15372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15373}'`
15374# Check for a 64-bit object if we didn't find anything.
15375if 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; }
15376}'`; fi
15377else
15378 echo "$as_me: failed program was:" >&5
15379sed 's/^/| /' conftest.$ac_ext >&5
15380
15381
15382fi
15383
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015384rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015385 conftest$ac_exeext conftest.$ac_ext
15386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15387
15388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15389 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"
15390 else
15391 if test "$host_cpu" = ia64; then
15392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15393 allow_undefined_flag="-z nodefs"
15394 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"
15395 else
15396 # Determine the default libpath from the value encoded in an empty executable.
15397 cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h. */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h. */
15403
15404int
15405main ()
15406{
15407
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412rm -f conftest.$ac_objext conftest$ac_exeext
15413if { (ac_try="$ac_link"
15414case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417esac
15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_link") 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015425 (exit $ac_status); } &&
15426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15440esac
15441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442 (eval "$ac_try") 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015446
15447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15448}'`
15449# Check for a 64-bit object if we didn't find anything.
15450if 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; }
15451}'`; fi
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456
15457fi
15458
Tanya Lattner3fa4a442009-01-22 05:17:59 +000015459rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015460 conftest$ac_exeext conftest.$ac_ext
15461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 # Warning - without using the other run time loading flags,
15465 # -berok will link without error, but may produce a broken library.
15466 no_undefined_flag=' ${wl}-bernotok'
15467 allow_undefined_flag=' ${wl}-berok'
15468 # Exported symbols can be pulled into shared objects from archives
15469 whole_archive_flag_spec='$convenience'
15470 archive_cmds_need_lc=yes
15471 # This is similar to how AIX traditionally builds its shared libraries.
15472 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'
15473 fi
15474 fi
15475 ;;
15476
15477 amigaos*)
15478 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)'
15479 hardcode_libdir_flag_spec='-L$libdir'
15480 hardcode_minus_L=yes
15481 # see comment about different semantics on the GNU ld section
15482 ld_shlibs=no
15483 ;;
15484
15485 bsdi[45]*)
15486 export_dynamic_flag_spec=-rdynamic
15487 ;;
15488
15489 cygwin* | mingw* | pw32*)
15490 # When not using gcc, we currently assume that we are using
15491 # Microsoft Visual C++.
15492 # hardcode_libdir_flag_spec is actually meaningless, as there is
15493 # no search path for DLLs.
15494 hardcode_libdir_flag_spec=' '
15495 allow_undefined_flag=unsupported
15496 # Tell ltmain to make .lib files, not .a files.
15497 libext=lib
15498 # Tell ltmain to make .dll files, not .so files.
15499 shrext_cmds=".dll"
15500 # FIXME: Setting linknames here is a bad hack.
15501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15502 # The linker will automatically build a .lib file if we build a DLL.
15503 old_archive_From_new_cmds='true'
15504 # FIXME: Should let the user specify the lib program.
15505 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15506 fix_srcfile_path='`cygpath -w "$srcfile"`'
15507 enable_shared_with_static_runtimes=yes
15508 ;;
15509
15510 darwin* | rhapsody*)
15511 case $host_os in
15512 rhapsody* | darwin1.[012])
15513 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15514 ;;
15515 *) # Darwin 1.3 on
15516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15518 else
15519 case ${MACOSX_DEPLOYMENT_TARGET} in
15520 10.[012])
15521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522 ;;
15523 10.*)
15524 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15525 ;;
15526 esac
15527 fi
15528 ;;
15529 esac
15530 archive_cmds_need_lc=no
15531 hardcode_direct=no
15532 hardcode_automatic=yes
15533 hardcode_shlibpath_var=unsupported
15534 whole_archive_flag_spec=''
15535 link_all_deplibs=yes
15536 if test "$GCC" = yes ; then
15537 output_verbose_link_cmd='echo'
15538 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15539 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15541 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}'
15542 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}'
15543 else
15544 case $cc_basename in
15545 xlc*)
15546 output_verbose_link_cmd='echo'
15547 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15548 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15550 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}'
15551 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}'
15552 ;;
15553 *)
15554 ld_shlibs=no
15555 ;;
15556 esac
15557 fi
15558 ;;
15559
15560 dgux*)
15561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_libdir_flag_spec='-L$libdir'
15563 hardcode_shlibpath_var=no
15564 ;;
15565
15566 freebsd1*)
15567 ld_shlibs=no
15568 ;;
15569
15570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15571 # support. Future versions do this automatically, but an explicit c++rt0.o
15572 # does not break anything, and helps significantly (at the cost of a little
15573 # extra space).
15574 freebsd2.2*)
15575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15576 hardcode_libdir_flag_spec='-R$libdir'
15577 hardcode_direct=yes
15578 hardcode_shlibpath_var=no
15579 ;;
15580
15581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15582 freebsd2*)
15583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15584 hardcode_direct=yes
15585 hardcode_minus_L=yes
15586 hardcode_shlibpath_var=no
15587 ;;
15588
15589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15590 freebsd* | kfreebsd*-gnu | dragonfly*)
15591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15592 hardcode_libdir_flag_spec='-R$libdir'
15593 hardcode_direct=yes
15594 hardcode_shlibpath_var=no
15595 ;;
15596
15597 hpux9*)
15598 if test "$GCC" = yes; then
15599 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'
15600 else
15601 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'
15602 fi
15603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604 hardcode_libdir_separator=:
15605 hardcode_direct=yes
15606
15607 # hardcode_minus_L: Not really in the search PATH,
15608 # but as the default location of the library.
15609 hardcode_minus_L=yes
15610 export_dynamic_flag_spec='${wl}-E'
15611 ;;
15612
15613 hpux10*)
15614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15616 else
15617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15618 fi
15619 if test "$with_gnu_ld" = no; then
15620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator=:
15622
15623 hardcode_direct=yes
15624 export_dynamic_flag_spec='${wl}-E'
15625
15626 # hardcode_minus_L: Not really in the search PATH,
15627 # but as the default location of the library.
15628 hardcode_minus_L=yes
15629 fi
15630 ;;
15631
15632 hpux11*)
15633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634 case $host_cpu in
15635 hppa*64*)
15636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 ;;
15638 ia64*)
15639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15640 ;;
15641 *)
15642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15643 ;;
15644 esac
15645 else
15646 case $host_cpu in
15647 hppa*64*)
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15649 ;;
15650 ia64*)
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15652 ;;
15653 *)
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655 ;;
15656 esac
15657 fi
15658 if test "$with_gnu_ld" = no; then
15659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator=:
15661
15662 case $host_cpu in
15663 hppa*64*|ia64*)
15664 hardcode_libdir_flag_spec_ld='+b $libdir'
15665 hardcode_direct=no
15666 hardcode_shlibpath_var=no
15667 ;;
15668 *)
15669 hardcode_direct=yes
15670 export_dynamic_flag_spec='${wl}-E'
15671
15672 # hardcode_minus_L: Not really in the search PATH,
15673 # but as the default location of the library.
15674 hardcode_minus_L=yes
15675 ;;
15676 esac
15677 fi
15678 ;;
15679
15680 irix5* | irix6* | nonstopux*)
15681 if test "$GCC" = yes; then
15682 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'
15683 else
15684 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'
15685 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15686 fi
15687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15688 hardcode_libdir_separator=:
15689 link_all_deplibs=yes
15690 ;;
15691
15692 netbsd*)
15693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15695 else
15696 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15697 fi
15698 hardcode_libdir_flag_spec='-R$libdir'
15699 hardcode_direct=yes
15700 hardcode_shlibpath_var=no
15701 ;;
15702
15703 newsos6)
15704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705 hardcode_direct=yes
15706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15707 hardcode_libdir_separator=:
15708 hardcode_shlibpath_var=no
15709 ;;
15710
15711 openbsd*)
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718 export_dynamic_flag_spec='${wl}-E'
15719 else
15720 case $host_os in
15721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-R$libdir'
15724 ;;
15725 *)
15726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15728 ;;
15729 esac
15730 fi
15731 ;;
15732
15733 os2*)
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 hardcode_minus_L=yes
15736 allow_undefined_flag=unsupported
15737 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'
15738 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15739 ;;
15740
15741 osf3*)
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744 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'
15745 else
15746 allow_undefined_flag=' -expect_unresolved \*'
15747 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'
15748 fi
15749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15750 hardcode_libdir_separator=:
15751 ;;
15752
15753 osf4* | osf5*) # as osf3* with the addition of -msym flag
15754 if test "$GCC" = yes; then
15755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756 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'
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 else
15759 allow_undefined_flag=' -expect_unresolved \*'
15760 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'
15761 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15762 $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'
15763
15764 # Both c and cxx compiler support -rpath directly
15765 hardcode_libdir_flag_spec='-rpath $libdir'
15766 fi
15767 hardcode_libdir_separator=:
15768 ;;
15769
15770 solaris*)
15771 no_undefined_flag=' -z text'
15772 if test "$GCC" = yes; then
15773 wlarc='${wl}'
15774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15777 else
15778 wlarc=''
15779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15782 fi
15783 hardcode_libdir_flag_spec='-R$libdir'
15784 hardcode_shlibpath_var=no
15785 case $host_os in
15786 solaris2.[0-5] | solaris2.[0-5].*) ;;
15787 *)
15788 # The compiler driver will combine linker options so we
15789 # cannot just pass the convience library names through
15790 # without $wl, iff we do not link with $LD.
15791 # Luckily, gcc supports the same syntax we need for Sun Studio.
15792 # Supported since Solaris 2.6 (maybe 2.5.1?)
15793 case $wlarc in
15794 '')
15795 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15796 *)
15797 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' ;;
15798 esac ;;
15799 esac
15800 link_all_deplibs=yes
15801 ;;
15802
15803 sunos4*)
15804 if test "x$host_vendor" = xsequent; then
15805 # Use $CC to link under sequent, because it throws in some extra .o
15806 # files that make .init and .fini sections work.
15807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15808 else
15809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15810 fi
15811 hardcode_libdir_flag_spec='-L$libdir'
15812 hardcode_direct=yes
15813 hardcode_minus_L=yes
15814 hardcode_shlibpath_var=no
15815 ;;
15816
15817 sysv4)
15818 case $host_vendor in
15819 sni)
15820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_direct=yes # is this really true???
15822 ;;
15823 siemens)
15824 ## LD is ld it makes a PLAMLIB
15825 ## CC just makes a GrossModule.
15826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827 reload_cmds='$CC -r -o $output$reload_objs'
15828 hardcode_direct=no
15829 ;;
15830 motorola)
15831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15833 ;;
15834 esac
15835 runpath_var='LD_RUN_PATH'
15836 hardcode_shlibpath_var=no
15837 ;;
15838
15839 sysv4.3*)
15840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841 hardcode_shlibpath_var=no
15842 export_dynamic_flag_spec='-Bexport'
15843 ;;
15844
15845 sysv4*MP*)
15846 if test -d /usr/nec; then
15847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_shlibpath_var=no
15849 runpath_var=LD_RUN_PATH
15850 hardcode_runpath_var=yes
15851 ld_shlibs=yes
15852 fi
15853 ;;
15854
15855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15856 no_undefined_flag='${wl}-z,text'
15857 archive_cmds_need_lc=no
15858 hardcode_shlibpath_var=no
15859 runpath_var='LD_RUN_PATH'
15860
15861 if test "$GCC" = yes; then
15862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 else
15865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867 fi
15868 ;;
15869
15870 sysv5* | sco3.2v5* | sco5v6*)
15871 # Note: We can NOT use -z defs as we might desire, because we do not
15872 # link with -lc, and that would cause any symbols used from libc to
15873 # always be unresolved, which means just about no library would
15874 # ever link correctly. If we're not using GNU ld we use -z text
15875 # though, which does catch some bad symbols but isn't as heavy-handed
15876 # as -z defs.
15877 no_undefined_flag='${wl}-z,text'
15878 allow_undefined_flag='${wl}-z,nodefs'
15879 archive_cmds_need_lc=no
15880 hardcode_shlibpath_var=no
15881 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15882 hardcode_libdir_separator=':'
15883 link_all_deplibs=yes
15884 export_dynamic_flag_spec='${wl}-Bexport'
15885 runpath_var='LD_RUN_PATH'
15886
15887 if test "$GCC" = yes; then
15888 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 else
15891 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 fi
15894 ;;
15895
15896 uts4*)
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_libdir_flag_spec='-L$libdir'
15899 hardcode_shlibpath_var=no
15900 ;;
15901
15902 *)
15903 ld_shlibs=no
15904 ;;
15905 esac
15906 fi
15907
15908{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15909echo "${ECHO_T}$ld_shlibs" >&6; }
15910test "$ld_shlibs" = no && can_build_shared=no
15911
15912#
15913# Do we need to explicitly link libc?
15914#
15915case "x$archive_cmds_need_lc" in
15916x|xyes)
15917 # Assume -lc should be added
15918 archive_cmds_need_lc=yes
15919
15920 if test "$enable_shared" = yes && test "$GCC" = yes; then
15921 case $archive_cmds in
15922 *'~'*)
15923 # FIXME: we may have to deal with multi-command sequences.
15924 ;;
15925 '$CC '*)
15926 # Test whether the compiler implicitly links with -lc since on some
15927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15928 # to ld, don't add -lc before -lgcc.
15929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15931 $rm conftest*
15932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15933
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } 2>conftest.err; then
15939 soname=conftest
15940 lib=conftest
15941 libobjs=conftest.$ac_objext
15942 deplibs=
15943 wl=$lt_prog_compiler_wl
15944 pic_flag=$lt_prog_compiler_pic
15945 compiler_flags=-v
15946 linker_flags=-v
15947 verstring=
15948 output_objdir=.
15949 libname=conftest
15950 lt_save_allow_undefined_flag=$allow_undefined_flag
15951 allow_undefined_flag=
15952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }
15957 then
15958 archive_cmds_need_lc=no
15959 else
15960 archive_cmds_need_lc=yes
15961 fi
15962 allow_undefined_flag=$lt_save_allow_undefined_flag
15963 else
15964 cat conftest.err 1>&5
15965 fi
15966 $rm conftest*
15967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15968echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15969 ;;
15970 esac
15971 fi
15972 ;;
15973esac
15974
15975{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15977library_names_spec=
15978libname_spec='lib$name'
15979soname_spec=
15980shrext_cmds=".so"
15981postinstall_cmds=
15982postuninstall_cmds=
15983finish_cmds=
15984finish_eval=
15985shlibpath_var=
15986shlibpath_overrides_runpath=unknown
15987version_type=none
15988dynamic_linker="$host_os ld.so"
15989sys_lib_dlsearch_path_spec="/lib /usr/lib"
15990if test "$GCC" = yes; then
15991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15993 # if the path contains ";" then we assume it to be the separator
15994 # otherwise default to the standard path separator (i.e. ":") - it is
15995 # assumed that no part of a normal pathname contains ";" but that should
15996 # okay in the real world where ";" in dirpaths is itself problematic.
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15998 else
15999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16000 fi
16001else
16002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16003fi
16004need_lib_prefix=unknown
16005hardcode_into_libs=no
16006
16007# when you set need_version to no, make sure it does not cause -set_version
16008# flags to be left without arguments
16009need_version=unknown
16010
16011case $host_os in
16012aix3*)
16013 version_type=linux
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16015 shlibpath_var=LIBPATH
16016
16017 # AIX 3 has no versioning support, so we append a major version to the name.
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 ;;
16020
16021aix4* | aix5*)
16022 version_type=linux
16023 need_lib_prefix=no
16024 need_version=no
16025 hardcode_into_libs=yes
16026 if test "$host_cpu" = ia64; then
16027 # AIX 5 supports IA64
16028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 else
16031 # With GCC up to 2.95.x, collect2 would create an import file
16032 # for dependence libraries. The import file would start with
16033 # the line `#! .'. This would cause the generated library to
16034 # depend on `.', always an invalid library. This was fixed in
16035 # development snapshots of GCC prior to 3.0.
16036 case $host_os in
16037 aix4 | aix4.[01] | aix4.[01].*)
16038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16039 echo ' yes '
16040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16041 :
16042 else
16043 can_build_shared=no
16044 fi
16045 ;;
16046 esac
16047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16048 # soname into executable. Probably we can add versioning support to
16049 # collect2, so additional links can be useful in future.
16050 if test "$aix_use_runtimelinking" = yes; then
16051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16052 # instead of lib<name>.a to let people know that these are not
16053 # typical AIX shared libraries.
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055 else
16056 # We preserve .a as extension for shared libraries through AIX4.2
16057 # and later when we are not doing run time linking.
16058 library_names_spec='${libname}${release}.a $libname.a'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 fi
16061 shlibpath_var=LIBPATH
16062 fi
16063 ;;
16064
16065amigaos*)
16066 library_names_spec='$libname.ixlibrary $libname.a'
16067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16068 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'
16069 ;;
16070
16071beos*)
16072 library_names_spec='${libname}${shared_ext}'
16073 dynamic_linker="$host_os ld.so"
16074 shlibpath_var=LIBRARY_PATH
16075 ;;
16076
16077bsdi[45]*)
16078 version_type=linux
16079 need_version=no
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16086 # the default ld.so.conf also contains /usr/contrib/lib and
16087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16088 # libtool to hard-code these into programs
16089 ;;
16090
16091cygwin* | mingw* | pw32*)
16092 version_type=windows
16093 shrext_cmds=".dll"
16094 need_version=no
16095 need_lib_prefix=no
16096
16097 case $GCC,$host_os in
16098 yes,cygwin* | yes,mingw* | yes,pw32*)
16099 library_names_spec='$libname.dll.a'
16100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16101 postinstall_cmds='base_file=`basename \${file}`~
16102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16103 dldir=$destdir/`dirname \$dlpath`~
16104 test -d \$dldir || mkdir -p \$dldir~
16105 $install_prog $dir/$dlname \$dldir/$dlname~
16106 chmod a+x \$dldir/$dlname'
16107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108 dlpath=$dir/\$dldll~
16109 $rm \$dlpath'
16110 shlibpath_overrides_runpath=yes
16111
16112 case $host_os in
16113 cygwin*)
16114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16117 ;;
16118 mingw*)
16119 # MinGW DLLs use traditional 'lib' prefix
16120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16123 # It is most probably a Windows format PATH printed by
16124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16125 # path with ; separators, and with drive letters. We can handle the
16126 # drive letters (cygwin fileutils understands them), so leave them,
16127 # especially as we might pass files found there to a mingw objdump,
16128 # which wouldn't understand a cygwinified path. Ahh.
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16130 else
16131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16132 fi
16133 ;;
16134 pw32*)
16135 # pw32 DLLs use 'pw' prefix rather than 'lib'
16136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16137 ;;
16138 esac
16139 ;;
16140
16141 *)
16142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16143 ;;
16144 esac
16145 dynamic_linker='Win32 ld.exe'
16146 # FIXME: first we should search . and the directory the executable is in
16147 shlibpath_var=PATH
16148 ;;
16149
16150darwin* | rhapsody*)
16151 dynamic_linker="$host_os dyld"
16152 version_type=darwin
16153 need_lib_prefix=no
16154 need_version=no
16155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16156 soname_spec='${libname}${release}${major}$shared_ext'
16157 shlibpath_overrides_runpath=yes
16158 shlibpath_var=DYLD_LIBRARY_PATH
16159 shrext_cmds='.dylib'
16160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16161 if test "$GCC" = yes; then
16162 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"`
16163 else
16164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16165 fi
16166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16167 ;;
16168
16169dgux*)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 shlibpath_var=LD_LIBRARY_PATH
16176 ;;
16177
16178freebsd1*)
16179 dynamic_linker=no
16180 ;;
16181
16182kfreebsd*-gnu)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 dynamic_linker='GNU ld.so'
16192 ;;
16193
16194freebsd* | dragonfly*)
16195 # DragonFly does not have aout. When/if they implement a new
16196 # versioning mechanism, adjust this.
16197 if test -x /usr/bin/objformat; then
16198 objformat=`/usr/bin/objformat`
16199 else
16200 case $host_os in
16201 freebsd[123]*) objformat=aout ;;
16202 *) objformat=elf ;;
16203 esac
16204 fi
16205 version_type=freebsd-$objformat
16206 case $version_type in
16207 freebsd-elf*)
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209 need_version=no
16210 need_lib_prefix=no
16211 ;;
16212 freebsd-*)
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16214 need_version=yes
16215 ;;
16216 esac
16217 shlibpath_var=LD_LIBRARY_PATH
16218 case $host_os in
16219 freebsd2*)
16220 shlibpath_overrides_runpath=yes
16221 ;;
16222 freebsd3.[01]* | freebsdelf3.[01]*)
16223 shlibpath_overrides_runpath=yes
16224 hardcode_into_libs=yes
16225 ;;
16226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16228 shlibpath_overrides_runpath=no
16229 hardcode_into_libs=yes
16230 ;;
16231 freebsd*) # from 4.6 on
16232 shlibpath_overrides_runpath=yes
16233 hardcode_into_libs=yes
16234 ;;
16235 esac
16236 ;;
16237
16238gnu*)
16239 version_type=linux
16240 need_lib_prefix=no
16241 need_version=no
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 hardcode_into_libs=yes
16246 ;;
16247
16248hpux9* | hpux10* | hpux11*)
16249 # Give a soname corresponding to the major version so that dld.sl refuses to
16250 # link against other versions.
16251 version_type=sunos
16252 need_lib_prefix=no
16253 need_version=no
16254 case $host_cpu in
16255 ia64*)
16256 shrext_cmds='.so'
16257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.so"
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 if test "X$HPUX_IA64_MODE" = X32; then
16264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16265 else
16266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16267 fi
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 ;;
16270 hppa*64*)
16271 shrext_cmds='.sl'
16272 hardcode_into_libs=yes
16273 dynamic_linker="$host_os dld.sl"
16274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280 ;;
16281 *)
16282 shrext_cmds='.sl'
16283 dynamic_linker="$host_os dld.sl"
16284 shlibpath_var=SHLIB_PATH
16285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 ;;
16289 esac
16290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291 postinstall_cmds='chmod 555 $lib'
16292 ;;
16293
16294interix3*)
16295 version_type=linux
16296 need_lib_prefix=no
16297 need_version=no
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=no
16303 hardcode_into_libs=yes
16304 ;;
16305
16306irix5* | irix6* | nonstopux*)
16307 case $host_os in
16308 nonstopux*) version_type=nonstopux ;;
16309 *)
16310 if test "$lt_cv_prog_gnu_ld" = yes; then
16311 version_type=linux
16312 else
16313 version_type=irix
16314 fi ;;
16315 esac
16316 need_lib_prefix=no
16317 need_version=no
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16320 case $host_os in
16321 irix5* | nonstopux*)
16322 libsuff= shlibsuff=
16323 ;;
16324 *)
16325 case $LD in # libtool.m4 will add one of these switches to LD
16326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327 libsuff= shlibsuff= libmagic=32-bit;;
16328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329 libsuff=32 shlibsuff=N32 libmagic=N32;;
16330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332 *) libsuff= shlibsuff= libmagic=never-match;;
16333 esac
16334 ;;
16335 esac
16336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337 shlibpath_overrides_runpath=no
16338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340 hardcode_into_libs=yes
16341 ;;
16342
16343# No shared lib support for Linux oldld, aout, or coff.
16344linux*oldld* | linux*aout* | linux*coff*)
16345 dynamic_linker=no
16346 ;;
16347
16348# This must be Linux ELF.
16349linux*)
16350 version_type=linux
16351 need_lib_prefix=no
16352 need_version=no
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 shlibpath_overrides_runpath=no
16358 # This implies no fast_install, which is unacceptable.
16359 # Some rework will be needed to allow for fast_install
16360 # before this can be enabled.
16361 hardcode_into_libs=yes
16362
16363 # Append ld.so.conf contents to the search path
16364 if test -f /etc/ld.so.conf; then
16365 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' ' '`
16366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16367 fi
16368
16369 # We used to test for /lib/ld.so.1 and disable shared libraries on
16370 # powerpc, because MkLinux only supported shared libraries with the
16371 # GNU dynamic linker. Since this was broken with cross compilers,
16372 # most powerpc-linux boxes support dynamic linking these days and
16373 # people can always --disable-shared, the test was removed, and we
16374 # assume the GNU/Linux dynamic linker is in use.
16375 dynamic_linker='GNU/Linux ld.so'
16376 ;;
16377
16378knetbsd*-gnu)
16379 version_type=linux
16380 need_lib_prefix=no
16381 need_version=no
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=no
16386 hardcode_into_libs=yes
16387 dynamic_linker='GNU ld.so'
16388 ;;
16389
16390netbsd*)
16391 version_type=sunos
16392 need_lib_prefix=no
16393 need_version=no
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 dynamic_linker='NetBSD (a.out) ld.so'
16398 else
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 dynamic_linker='NetBSD ld.elf_so'
16402 fi
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 hardcode_into_libs=yes
16406 ;;
16407
16408newsos6)
16409 version_type=linux
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 ;;
16414
16415nto-qnx*)
16416 version_type=linux
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 ;;
16424
16425openbsd*)
16426 version_type=sunos
16427 sys_lib_dlsearch_path_spec="/usr/lib"
16428 need_lib_prefix=no
16429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430 case $host_os in
16431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432 *) need_version=no ;;
16433 esac
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16438 case $host_os in
16439 openbsd2.[89] | openbsd2.[89].*)
16440 shlibpath_overrides_runpath=no
16441 ;;
16442 *)
16443 shlibpath_overrides_runpath=yes
16444 ;;
16445 esac
16446 else
16447 shlibpath_overrides_runpath=yes
16448 fi
16449 ;;
16450
16451os2*)
16452 libname_spec='$name'
16453 shrext_cmds=".dll"
16454 need_lib_prefix=no
16455 library_names_spec='$libname${shared_ext} $libname.a'
16456 dynamic_linker='OS/2 ld.exe'
16457 shlibpath_var=LIBPATH
16458 ;;
16459
16460osf3* | osf4* | osf5*)
16461 version_type=osf
16462 need_lib_prefix=no
16463 need_version=no
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16469 ;;
16470
16471solaris*)
16472 version_type=linux
16473 need_lib_prefix=no
16474 need_version=no
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 shlibpath_overrides_runpath=yes
16479 hardcode_into_libs=yes
16480 # ldd complains unless libraries are executable
16481 postinstall_cmds='chmod +x $lib'
16482 ;;
16483
16484sunos4*)
16485 version_type=sunos
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16490 if test "$with_gnu_ld" = yes; then
16491 need_lib_prefix=no
16492 fi
16493 need_version=yes
16494 ;;
16495
16496sysv4 | sysv4.3*)
16497 version_type=linux
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 case $host_vendor in
16502 sni)
16503 shlibpath_overrides_runpath=no
16504 need_lib_prefix=no
16505 export_dynamic_flag_spec='${wl}-Blargedynsym'
16506 runpath_var=LD_RUN_PATH
16507 ;;
16508 siemens)
16509 need_lib_prefix=no
16510 ;;
16511 motorola)
16512 need_lib_prefix=no
16513 need_version=no
16514 shlibpath_overrides_runpath=no
16515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16516 ;;
16517 esac
16518 ;;
16519
16520sysv4*MP*)
16521 if test -d /usr/nec ;then
16522 version_type=linux
16523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16524 soname_spec='$libname${shared_ext}.$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 fi
16527 ;;
16528
16529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16530 version_type=freebsd-elf
16531 need_lib_prefix=no
16532 need_version=no
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 hardcode_into_libs=yes
16537 if test "$with_gnu_ld" = yes; then
16538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16539 shlibpath_overrides_runpath=no
16540 else
16541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16542 shlibpath_overrides_runpath=yes
16543 case $host_os in
16544 sco3.2v5*)
16545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16546 ;;
16547 esac
16548 fi
16549 sys_lib_dlsearch_path_spec='/usr/lib'
16550 ;;
16551
16552uts4*)
16553 version_type=linux
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 ;;
16558
16559*)
16560 dynamic_linker=no
16561 ;;
16562esac
16563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16564echo "${ECHO_T}$dynamic_linker" >&6; }
16565test "$dynamic_linker" = no && can_build_shared=no
16566
16567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568if test "$GCC" = yes; then
16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570fi
16571
16572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16574hardcode_action=
16575if test -n "$hardcode_libdir_flag_spec" || \
16576 test -n "$runpath_var" || \
16577 test "X$hardcode_automatic" = "Xyes" ; then
16578
16579 # We can hardcode non-existant directories.
16580 if test "$hardcode_direct" != no &&
16581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16582 # have to relink, otherwise we might link with an installed library
16583 # when we should be linking with a yet-to-be-installed one
16584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16585 test "$hardcode_minus_L" != no; then
16586 # Linking always hardcodes the temporary library directory.
16587 hardcode_action=relink
16588 else
16589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16590 hardcode_action=immediate
16591 fi
16592else
16593 # We cannot hardcode anything, or else we can only hardcode existing
16594 # directories.
16595 hardcode_action=unsupported
16596fi
16597{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16598echo "${ECHO_T}$hardcode_action" >&6; }
16599
16600if test "$hardcode_action" = relink; then
16601 # Fast installation is not supported
16602 enable_fast_install=no
16603elif test "$shlibpath_overrides_runpath" = yes ||
16604 test "$enable_shared" = no; then
16605 # Fast installation is not necessary
16606 enable_fast_install=needless
16607fi
16608
16609striplib=
16610old_striplib=
16611{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16612echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16613if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16616 { echo "$as_me:$LINENO: result: yes" >&5
16617echo "${ECHO_T}yes" >&6; }
16618else
16619# FIXME - insert some real tests, host_os isn't really good enough
16620 case $host_os in
16621 darwin*)
16622 if test -n "$STRIP" ; then
16623 striplib="$STRIP -x"
16624 { echo "$as_me:$LINENO: result: yes" >&5
16625echo "${ECHO_T}yes" >&6; }
16626 else
16627 { echo "$as_me:$LINENO: result: no" >&5
16628echo "${ECHO_T}no" >&6; }
16629fi
16630 ;;
16631 *)
16632 { echo "$as_me:$LINENO: result: no" >&5
16633echo "${ECHO_T}no" >&6; }
16634 ;;
16635 esac
16636fi
16637
16638if test "x$enable_dlopen" != xyes; then
16639 enable_dlopen=unknown
16640 enable_dlopen_self=unknown
16641 enable_dlopen_self_static=unknown
16642else
16643 lt_cv_dlopen=no
16644 lt_cv_dlopen_libs=
16645
16646 case $host_os in
16647 beos*)
16648 lt_cv_dlopen="load_add_on"
16649 lt_cv_dlopen_libs=
16650 lt_cv_dlopen_self=yes
16651 ;;
16652
16653 mingw* | pw32*)
16654 lt_cv_dlopen="LoadLibrary"
16655 lt_cv_dlopen_libs=
16656 ;;
16657
16658 cygwin*)
16659 lt_cv_dlopen="dlopen"
16660 lt_cv_dlopen_libs=
16661 ;;
16662
16663 darwin*)
16664 # if libdl is installed we need to link against it
16665 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16666echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16667if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669else
16670 ac_check_lib_save_LIBS=$LIBS
16671LIBS="-ldl $LIBS"
16672cat >conftest.$ac_ext <<_ACEOF
16673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
16678
16679/* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16682#ifdef __cplusplus
16683extern "C"
16684#endif
16685char dlopen ();
16686int
16687main ()
16688{
16689return dlopen ();
16690 ;
16691 return 0;
16692}
16693_ACEOF
16694rm -f conftest.$ac_objext conftest$ac_exeext
16695if { (ac_try="$ac_link"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016728 ac_cv_lib_dl_dlopen=yes
16729else
16730 echo "$as_me: failed program was:" >&5
16731sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 ac_cv_lib_dl_dlopen=no
16734fi
16735
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016736rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016737 conftest$ac_exeext conftest.$ac_ext
16738LIBS=$ac_check_lib_save_LIBS
16739fi
16740{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16742if test $ac_cv_lib_dl_dlopen = yes; then
16743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16744else
16745
16746 lt_cv_dlopen="dyld"
16747 lt_cv_dlopen_libs=
16748 lt_cv_dlopen_self=yes
16749
16750fi
16751
16752 ;;
16753
16754 *)
16755 { echo "$as_me:$LINENO: checking for shl_load" >&5
16756echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16757if test "${ac_cv_func_shl_load+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759else
16760 cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h. */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h. */
16766/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768#define shl_load innocuous_shl_load
16769
16770/* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char shl_load (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16774
16775#ifdef __STDC__
16776# include <limits.h>
16777#else
16778# include <assert.h>
16779#endif
16780
16781#undef shl_load
16782
16783/* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
16786#ifdef __cplusplus
16787extern "C"
16788#endif
16789char shl_load ();
16790/* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793#if defined __stub_shl_load || defined __stub___shl_load
16794choke me
16795#endif
16796
16797int
16798main ()
16799{
16800return shl_load ();
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext conftest$ac_exeext
16806if { (ac_try="$ac_link"
16807case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016839 ac_cv_func_shl_load=yes
16840else
16841 echo "$as_me: failed program was:" >&5
16842sed 's/^/| /' conftest.$ac_ext >&5
16843
16844 ac_cv_func_shl_load=no
16845fi
16846
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016847rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016848 conftest$ac_exeext conftest.$ac_ext
16849fi
16850{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16851echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16852if test $ac_cv_func_shl_load = yes; then
16853 lt_cv_dlopen="shl_load"
16854else
16855 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16856echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16857if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860 ac_check_lib_save_LIBS=$LIBS
16861LIBS="-ldld $LIBS"
16862cat >conftest.$ac_ext <<_ACEOF
16863/* confdefs.h. */
16864_ACEOF
16865cat confdefs.h >>conftest.$ac_ext
16866cat >>conftest.$ac_ext <<_ACEOF
16867/* end confdefs.h. */
16868
16869/* Override any GCC internal prototype to avoid an error.
16870 Use char because int might match the return type of a GCC
16871 builtin and then its argument prototype would still apply. */
16872#ifdef __cplusplus
16873extern "C"
16874#endif
16875char shl_load ();
16876int
16877main ()
16878{
16879return shl_load ();
16880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext conftest$ac_exeext
16885if { (ac_try="$ac_link"
16886case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016918 ac_cv_lib_dld_shl_load=yes
16919else
16920 echo "$as_me: failed program was:" >&5
16921sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 ac_cv_lib_dld_shl_load=no
16924fi
16925
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016926rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016927 conftest$ac_exeext conftest.$ac_ext
16928LIBS=$ac_check_lib_save_LIBS
16929fi
16930{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16931echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16932if test $ac_cv_lib_dld_shl_load = yes; then
16933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16934else
16935 { echo "$as_me:$LINENO: checking for dlopen" >&5
16936echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16937if test "${ac_cv_func_dlopen+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 cat >conftest.$ac_ext <<_ACEOF
16941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
16946/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16948#define dlopen innocuous_dlopen
16949
16950/* System header to define __stub macros and hopefully few prototypes,
16951 which can conflict with char dlopen (); below.
16952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16953 <limits.h> exists even on freestanding compilers. */
16954
16955#ifdef __STDC__
16956# include <limits.h>
16957#else
16958# include <assert.h>
16959#endif
16960
16961#undef dlopen
16962
16963/* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16966#ifdef __cplusplus
16967extern "C"
16968#endif
16969char dlopen ();
16970/* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
16973#if defined __stub_dlopen || defined __stub___dlopen
16974choke me
16975#endif
16976
16977int
16978main ()
16979{
16980return dlopen ();
16981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest.$ac_objext conftest$ac_exeext
16986if { (ac_try="$ac_link"
16987case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_link") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000016998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017019 ac_cv_func_dlopen=yes
17020else
17021 echo "$as_me: failed program was:" >&5
17022sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 ac_cv_func_dlopen=no
17025fi
17026
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017027rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017028 conftest$ac_exeext conftest.$ac_ext
17029fi
17030{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17031echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17032if test $ac_cv_func_dlopen = yes; then
17033 lt_cv_dlopen="dlopen"
17034else
17035 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17036echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17037if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 ac_check_lib_save_LIBS=$LIBS
17041LIBS="-ldl $LIBS"
17042cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048
17049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17052#ifdef __cplusplus
17053extern "C"
17054#endif
17055char dlopen ();
17056int
17057main ()
17058{
17059return dlopen ();
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext conftest$ac_exeext
17065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017098 ac_cv_lib_dl_dlopen=yes
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 ac_cv_lib_dl_dlopen=no
17104fi
17105
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017106rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017107 conftest$ac_exeext conftest.$ac_ext
17108LIBS=$ac_check_lib_save_LIBS
17109fi
17110{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17112if test $ac_cv_lib_dl_dlopen = yes; then
17113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17114else
17115 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17116echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17117if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 ac_check_lib_save_LIBS=$LIBS
17121LIBS="-lsvld $LIBS"
17122cat >conftest.$ac_ext <<_ACEOF
17123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
17128
17129/* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
17132#ifdef __cplusplus
17133extern "C"
17134#endif
17135char dlopen ();
17136int
17137main ()
17138{
17139return dlopen ();
17140 ;
17141 return 0;
17142}
17143_ACEOF
17144rm -f conftest.$ac_objext conftest$ac_exeext
17145if { (ac_try="$ac_link"
17146case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017178 ac_cv_lib_svld_dlopen=yes
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_lib_svld_dlopen=no
17184fi
17185
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017186rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017187 conftest$ac_exeext conftest.$ac_ext
17188LIBS=$ac_check_lib_save_LIBS
17189fi
17190{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17191echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17192if test $ac_cv_lib_svld_dlopen = yes; then
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17194else
17195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17196echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17197if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199else
17200 ac_check_lib_save_LIBS=$LIBS
17201LIBS="-ldld $LIBS"
17202cat >conftest.$ac_ext <<_ACEOF
17203/* confdefs.h. */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h. */
17208
17209/* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17212#ifdef __cplusplus
17213extern "C"
17214#endif
17215char dld_link ();
17216int
17217main ()
17218{
17219return dld_link ();
17220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext conftest$ac_exeext
17225if { (ac_try="$ac_link"
17226case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017258 ac_cv_lib_dld_dld_link=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 ac_cv_lib_dld_dld_link=no
17264fi
17265
Tanya Lattner3fa4a442009-01-22 05:17:59 +000017266rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017267 conftest$ac_exeext conftest.$ac_ext
17268LIBS=$ac_check_lib_save_LIBS
17269fi
17270{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17271echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17272if test $ac_cv_lib_dld_dld_link = yes; then
17273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291 ;;
17292 esac
17293
17294 if test "x$lt_cv_dlopen" != xno; then
17295 enable_dlopen=yes
17296 else
17297 enable_dlopen=no
17298 fi
17299
17300 case $lt_cv_dlopen in
17301 dlopen)
17302 save_CPPFLAGS="$CPPFLAGS"
17303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17304
17305 save_LDFLAGS="$LDFLAGS"
17306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17307
17308 save_LIBS="$LIBS"
17309 LIBS="$lt_cv_dlopen_libs $LIBS"
17310
17311 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17312echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17313if test "${lt_cv_dlopen_self+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 if test "$cross_compiling" = yes; then :
17317 lt_cv_dlopen_self=cross
17318else
17319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17320 lt_status=$lt_dlunknown
17321 cat > conftest.$ac_ext <<EOF
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000017322#line 17322 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017323#include "confdefs.h"
17324
17325#if HAVE_DLFCN_H
17326#include <dlfcn.h>
17327#endif
17328
17329#include <stdio.h>
17330
17331#ifdef RTLD_GLOBAL
17332# define LT_DLGLOBAL RTLD_GLOBAL
17333#else
17334# ifdef DL_GLOBAL
17335# define LT_DLGLOBAL DL_GLOBAL
17336# else
17337# define LT_DLGLOBAL 0
17338# endif
17339#endif
17340
17341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342 find out it does not work in some platform. */
17343#ifndef LT_DLLAZY_OR_NOW
17344# ifdef RTLD_LAZY
17345# define LT_DLLAZY_OR_NOW RTLD_LAZY
17346# else
17347# ifdef DL_LAZY
17348# define LT_DLLAZY_OR_NOW DL_LAZY
17349# else
17350# ifdef RTLD_NOW
17351# define LT_DLLAZY_OR_NOW RTLD_NOW
17352# else
17353# ifdef DL_NOW
17354# define LT_DLLAZY_OR_NOW DL_NOW
17355# else
17356# define LT_DLLAZY_OR_NOW 0
17357# endif
17358# endif
17359# endif
17360# endif
17361#endif
17362
17363#ifdef __cplusplus
17364extern "C" void exit (int);
17365#endif
17366
17367void fnord() { int i=42;}
17368int main ()
17369{
17370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17371 int status = $lt_dlunknown;
17372
17373 if (self)
17374 {
17375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17377 /* dlclose (self); */
17378 }
17379 else
17380 puts (dlerror ());
17381
17382 exit (status);
17383}
17384EOF
17385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386 (eval $ac_link) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17390 (./conftest; exit; ) >&5 2>/dev/null
17391 lt_status=$?
17392 case x$lt_status in
17393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17395 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17396 esac
17397 else :
17398 # compilation failed
17399 lt_cv_dlopen_self=no
17400 fi
17401fi
17402rm -fr conftest*
17403
17404
17405fi
17406{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17407echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17408
17409 if test "x$lt_cv_dlopen_self" = xyes; then
17410 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17411 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17412echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17413if test "${lt_cv_dlopen_self_static+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415else
17416 if test "$cross_compiling" = yes; then :
17417 lt_cv_dlopen_self_static=cross
17418else
17419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17420 lt_status=$lt_dlunknown
17421 cat > conftest.$ac_ext <<EOF
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000017422#line 17422 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017423#include "confdefs.h"
17424
17425#if HAVE_DLFCN_H
17426#include <dlfcn.h>
17427#endif
17428
17429#include <stdio.h>
17430
17431#ifdef RTLD_GLOBAL
17432# define LT_DLGLOBAL RTLD_GLOBAL
17433#else
17434# ifdef DL_GLOBAL
17435# define LT_DLGLOBAL DL_GLOBAL
17436# else
17437# define LT_DLGLOBAL 0
17438# endif
17439#endif
17440
17441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17442 find out it does not work in some platform. */
17443#ifndef LT_DLLAZY_OR_NOW
17444# ifdef RTLD_LAZY
17445# define LT_DLLAZY_OR_NOW RTLD_LAZY
17446# else
17447# ifdef DL_LAZY
17448# define LT_DLLAZY_OR_NOW DL_LAZY
17449# else
17450# ifdef RTLD_NOW
17451# define LT_DLLAZY_OR_NOW RTLD_NOW
17452# else
17453# ifdef DL_NOW
17454# define LT_DLLAZY_OR_NOW DL_NOW
17455# else
17456# define LT_DLLAZY_OR_NOW 0
17457# endif
17458# endif
17459# endif
17460# endif
17461#endif
17462
17463#ifdef __cplusplus
17464extern "C" void exit (int);
17465#endif
17466
17467void fnord() { int i=42;}
17468int main ()
17469{
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17472
17473 if (self)
17474 {
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17478 }
17479 else
17480 puts (dlerror ());
17481
17482 exit (status);
17483}
17484EOF
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486 (eval $ac_link) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17490 (./conftest; exit; ) >&5 2>/dev/null
17491 lt_status=$?
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17496 esac
17497 else :
17498 # compilation failed
17499 lt_cv_dlopen_self_static=no
17500 fi
17501fi
17502rm -fr conftest*
17503
17504
17505fi
17506{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17507echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17508 fi
17509
17510 CPPFLAGS="$save_CPPFLAGS"
17511 LDFLAGS="$save_LDFLAGS"
17512 LIBS="$save_LIBS"
17513 ;;
17514 esac
17515
17516 case $lt_cv_dlopen_self in
17517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518 *) enable_dlopen_self=unknown ;;
17519 esac
17520
17521 case $lt_cv_dlopen_self_static in
17522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523 *) enable_dlopen_self_static=unknown ;;
17524 esac
17525fi
17526
17527
17528# Report which library types will actually be built
17529{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17530echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17531{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17532echo "${ECHO_T}$can_build_shared" >&6; }
17533
17534{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17535echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17536test "$can_build_shared" = "no" && enable_shared=no
17537
17538# On AIX, shared libraries and static libraries use the same namespace, and
17539# are all built from PIC.
17540case $host_os in
17541aix3*)
17542 test "$enable_shared" = yes && enable_static=no
17543 if test -n "$RANLIB"; then
17544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17545 postinstall_cmds='$RANLIB $lib'
17546 fi
17547 ;;
17548
17549aix4* | aix5*)
17550 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17551 test "$enable_shared" = yes && enable_static=no
17552 fi
17553 ;;
17554esac
17555{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17556echo "${ECHO_T}$enable_shared" >&6; }
17557
17558{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17559echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17560# Make sure either enable_shared or enable_static is yes.
17561test "$enable_shared" = yes || enable_static=yes
17562{ echo "$as_me:$LINENO: result: $enable_static" >&5
17563echo "${ECHO_T}$enable_static" >&6; }
17564
17565# The else clause should only fire when bootstrapping the
17566# libtool distribution, otherwise you forgot to ship ltmain.sh
17567# with your package, and you will get complaints that there are
17568# no rules to generate ltmain.sh.
17569if test -f "$ltmain"; then
17570 # See if we are running on zsh, and set the options which allow our commands through
17571 # without removal of \ escapes.
17572 if test -n "${ZSH_VERSION+set}" ; then
17573 setopt NO_GLOB_SUBST
17574 fi
17575 # Now quote all the things that may contain metacharacters while being
17576 # careful not to overquote the AC_SUBSTed values. We take copies of the
17577 # variables and quote the copies for generation of the libtool script.
17578 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17579 SED SHELL STRIP \
17580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582 deplibs_check_method reload_flag reload_cmds need_locks \
17583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584 lt_cv_sys_global_symbol_to_c_name_address \
17585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17586 old_postinstall_cmds old_postuninstall_cmds \
17587 compiler \
17588 CC \
17589 LD \
17590 lt_prog_compiler_wl \
17591 lt_prog_compiler_pic \
17592 lt_prog_compiler_static \
17593 lt_prog_compiler_no_builtin_flag \
17594 export_dynamic_flag_spec \
17595 thread_safe_flag_spec \
17596 whole_archive_flag_spec \
17597 enable_shared_with_static_runtimes \
17598 old_archive_cmds \
17599 old_archive_from_new_cmds \
17600 predep_objects \
17601 postdep_objects \
17602 predeps \
17603 postdeps \
17604 compiler_lib_search_path \
17605 archive_cmds \
17606 archive_expsym_cmds \
17607 postinstall_cmds \
17608 postuninstall_cmds \
17609 old_archive_from_expsyms_cmds \
17610 allow_undefined_flag \
17611 no_undefined_flag \
17612 export_symbols_cmds \
17613 hardcode_libdir_flag_spec \
17614 hardcode_libdir_flag_spec_ld \
17615 hardcode_libdir_separator \
17616 hardcode_automatic \
17617 module_cmds \
17618 module_expsym_cmds \
17619 lt_cv_prog_compiler_c_o \
17620 exclude_expsyms \
17621 include_expsyms; do
17622
17623 case $var in
17624 old_archive_cmds | \
17625 old_archive_from_new_cmds | \
17626 archive_cmds | \
17627 archive_expsym_cmds | \
17628 module_cmds | \
17629 module_expsym_cmds | \
17630 old_archive_from_expsyms_cmds | \
17631 export_symbols_cmds | \
17632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17633 postinstall_cmds | postuninstall_cmds | \
17634 old_postinstall_cmds | old_postuninstall_cmds | \
17635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17636 # Double-quote double-evaled strings.
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17638 ;;
17639 *)
17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641 ;;
17642 esac
17643 done
17644
17645 case $lt_echo in
17646 *'\$0 --fallback-echo"')
17647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648 ;;
17649 esac
17650
17651cfgfile="${ofile}T"
17652 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17653 $rm -f "$cfgfile"
17654 { echo "$as_me:$LINENO: creating $ofile" >&5
17655echo "$as_me: creating $ofile" >&6;}
17656
17657 cat <<__EOF__ >> "$cfgfile"
17658#! $SHELL
17659
17660# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17661# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17662# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17663#
17664# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17665# Free Software Foundation, Inc.
17666#
17667# This file is part of GNU Libtool:
17668# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17669#
17670# This program is free software; you can redistribute it and/or modify
17671# it under the terms of the GNU General Public License as published by
17672# the Free Software Foundation; either version 2 of the License, or
17673# (at your option) any later version.
17674#
17675# This program is distributed in the hope that it will be useful, but
17676# WITHOUT ANY WARRANTY; without even the implied warranty of
17677# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17678# General Public License for more details.
17679#
17680# You should have received a copy of the GNU General Public License
17681# along with this program; if not, write to the Free Software
17682# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17683#
17684# As a special exception to the GNU General Public License, if you
17685# distribute this file as part of a program that contains a
17686# configuration script generated by Autoconf, you may include it under
17687# the same distribution terms that you use for the rest of that program.
17688
17689# A sed program that does not truncate output.
17690SED=$lt_SED
17691
17692# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17693Xsed="$SED -e 1s/^X//"
17694
17695# The HP-UX ksh and POSIX shell print the target directory to stdout
17696# if CDPATH is set.
17697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17698
17699# The names of the tagged configurations supported by this script.
17700available_tags=
17701
17702# ### BEGIN LIBTOOL CONFIG
17703
17704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17705
17706# Shell to use when invoking shell scripts.
17707SHELL=$lt_SHELL
17708
17709# Whether or not to build shared libraries.
17710build_libtool_libs=$enable_shared
17711
17712# Whether or not to build static libraries.
17713build_old_libs=$enable_static
17714
17715# Whether or not to add -lc for building shared libraries.
17716build_libtool_need_lc=$archive_cmds_need_lc
17717
17718# Whether or not to disallow shared libs when runtime libs are static
17719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17720
17721# Whether or not to optimize for fast installation.
17722fast_install=$enable_fast_install
17723
17724# The host system.
17725host_alias=$host_alias
17726host=$host
17727host_os=$host_os
17728
17729# The build system.
17730build_alias=$build_alias
17731build=$build
17732build_os=$build_os
17733
17734# An echo program that does not interpret backslashes.
17735echo=$lt_echo
17736
17737# The archiver.
17738AR=$lt_AR
17739AR_FLAGS=$lt_AR_FLAGS
17740
17741# A C compiler.
17742LTCC=$lt_LTCC
17743
17744# LTCC compiler flags.
17745LTCFLAGS=$lt_LTCFLAGS
17746
17747# A language-specific compiler.
17748CC=$lt_compiler
17749
17750# Is the compiler the GNU C compiler?
17751with_gcc=$GCC
17752
17753# An ERE matcher.
17754EGREP=$lt_EGREP
17755
17756# The linker used to build libraries.
17757LD=$lt_LD
17758
17759# Whether we need hard or soft links.
17760LN_S=$lt_LN_S
17761
17762# A BSD-compatible nm program.
17763NM=$lt_NM
17764
17765# A symbol stripping program
17766STRIP=$lt_STRIP
17767
17768# Used to examine libraries when file_magic_cmd begins "file"
17769MAGIC_CMD=$MAGIC_CMD
17770
17771# Used on cygwin: DLL creation program.
17772DLLTOOL="$DLLTOOL"
17773
17774# Used on cygwin: object dumper.
17775OBJDUMP="$OBJDUMP"
17776
17777# Used on cygwin: assembler.
17778AS="$AS"
17779
17780# The name of the directory that contains temporary libtool files.
17781objdir=$objdir
17782
17783# How to create reloadable object files.
17784reload_flag=$lt_reload_flag
17785reload_cmds=$lt_reload_cmds
17786
17787# How to pass a linker flag through the compiler.
17788wl=$lt_lt_prog_compiler_wl
17789
17790# Object file suffix (normally "o").
17791objext="$ac_objext"
17792
17793# Old archive suffix (normally "a").
17794libext="$libext"
17795
17796# Shared library suffix (normally ".so").
17797shrext_cmds='$shrext_cmds'
17798
17799# Executable file suffix (normally "").
17800exeext="$exeext"
17801
17802# Additional compiler flags for building library objects.
17803pic_flag=$lt_lt_prog_compiler_pic
17804pic_mode=$pic_mode
17805
17806# What is the maximum length of a command?
17807max_cmd_len=$lt_cv_sys_max_cmd_len
17808
17809# Does compiler simultaneously support -c and -o options?
17810compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17811
17812# Must we lock files when doing compilation?
17813need_locks=$lt_need_locks
17814
17815# Do we need the lib prefix for modules?
17816need_lib_prefix=$need_lib_prefix
17817
17818# Do we need a version for libraries?
17819need_version=$need_version
17820
17821# Whether dlopen is supported.
17822dlopen_support=$enable_dlopen
17823
17824# Whether dlopen of programs is supported.
17825dlopen_self=$enable_dlopen_self
17826
17827# Whether dlopen of statically linked programs is supported.
17828dlopen_self_static=$enable_dlopen_self_static
17829
17830# Compiler flag to prevent dynamic linking.
17831link_static_flag=$lt_lt_prog_compiler_static
17832
17833# Compiler flag to turn off builtin functions.
17834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17835
17836# Compiler flag to allow reflexive dlopens.
17837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17838
17839# Compiler flag to generate shared objects directly from archives.
17840whole_archive_flag_spec=$lt_whole_archive_flag_spec
17841
17842# Compiler flag to generate thread-safe objects.
17843thread_safe_flag_spec=$lt_thread_safe_flag_spec
17844
17845# Library versioning type.
17846version_type=$version_type
17847
17848# Format of library name prefix.
17849libname_spec=$lt_libname_spec
17850
17851# List of archive names. First name is the real one, the rest are links.
17852# The last name is the one that the linker finds with -lNAME.
17853library_names_spec=$lt_library_names_spec
17854
17855# The coded name of the library, if different from the real name.
17856soname_spec=$lt_soname_spec
17857
17858# Commands used to build and install an old-style archive.
17859RANLIB=$lt_RANLIB
17860old_archive_cmds=$lt_old_archive_cmds
17861old_postinstall_cmds=$lt_old_postinstall_cmds
17862old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864# Create an old-style archive from a shared archive.
17865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17866
17867# Create a temporary old-style archive to link instead of a shared archive.
17868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17869
17870# Commands used to build and install a shared archive.
17871archive_cmds=$lt_archive_cmds
17872archive_expsym_cmds=$lt_archive_expsym_cmds
17873postinstall_cmds=$lt_postinstall_cmds
17874postuninstall_cmds=$lt_postuninstall_cmds
17875
17876# Commands used to build a loadable module (assumed same as above if empty)
17877module_cmds=$lt_module_cmds
17878module_expsym_cmds=$lt_module_expsym_cmds
17879
17880# Commands to strip libraries.
17881old_striplib=$lt_old_striplib
17882striplib=$lt_striplib
17883
17884# Dependencies to place before the objects being linked to create a
17885# shared library.
17886predep_objects=$lt_predep_objects
17887
17888# Dependencies to place after the objects being linked to create a
17889# shared library.
17890postdep_objects=$lt_postdep_objects
17891
17892# Dependencies to place before the objects being linked to create a
17893# shared library.
17894predeps=$lt_predeps
17895
17896# Dependencies to place after the objects being linked to create a
17897# shared library.
17898postdeps=$lt_postdeps
17899
17900# The library search path used internally by the compiler when linking
17901# a shared library.
17902compiler_lib_search_path=$lt_compiler_lib_search_path
17903
17904# Method to check whether dependent libraries are shared objects.
17905deplibs_check_method=$lt_deplibs_check_method
17906
17907# Command to use when deplibs_check_method == file_magic.
17908file_magic_cmd=$lt_file_magic_cmd
17909
17910# Flag that allows shared libraries with undefined symbols to be built.
17911allow_undefined_flag=$lt_allow_undefined_flag
17912
17913# Flag that forces no undefined symbols.
17914no_undefined_flag=$lt_no_undefined_flag
17915
17916# Commands used to finish a libtool library installation in a directory.
17917finish_cmds=$lt_finish_cmds
17918
17919# Same as above, but a single script fragment to be evaled but not shown.
17920finish_eval=$lt_finish_eval
17921
17922# Take the output of nm and produce a listing of raw symbols and C names.
17923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924
17925# Transform the output of nm in a proper C declaration
17926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927
17928# Transform the output of nm in a C name address pair
17929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930
17931# This is the shared library runtime path variable.
17932runpath_var=$runpath_var
17933
17934# This is the shared library path variable.
17935shlibpath_var=$shlibpath_var
17936
17937# Is shlibpath searched before the hard-coded library search path?
17938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940# How to hardcode a shared library path into an executable.
17941hardcode_action=$hardcode_action
17942
17943# Whether we should hardcode library paths into libraries.
17944hardcode_into_libs=$hardcode_into_libs
17945
17946# Flag to hardcode \$libdir into a binary during linking.
17947# This must work even if \$libdir does not exist.
17948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17949
17950# If ld is used when linking, flag to hardcode \$libdir into
17951# a binary during linking. This must work even if \$libdir does
17952# not exist.
17953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17954
17955# Whether we need a single -rpath flag with a separated argument.
17956hardcode_libdir_separator=$lt_hardcode_libdir_separator
17957
17958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959# resulting binary.
17960hardcode_direct=$hardcode_direct
17961
17962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963# resulting binary.
17964hardcode_minus_L=$hardcode_minus_L
17965
17966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967# the resulting binary.
17968hardcode_shlibpath_var=$hardcode_shlibpath_var
17969
17970# Set to yes if building a shared library automatically hardcodes DIR into the library
17971# and all subsequent libraries and executables linked against it.
17972hardcode_automatic=$hardcode_automatic
17973
17974# Variables whose values should be saved in libtool wrapper scripts and
17975# restored at relink time.
17976variables_saved_for_relink="$variables_saved_for_relink"
17977
17978# Whether libtool must link a program against all its dependency libraries.
17979link_all_deplibs=$link_all_deplibs
17980
17981# Compile-time system search path for libraries
17982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984# Run-time system search path for libraries
17985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987# Fix the shell variable \$srcfile for the compiler.
17988fix_srcfile_path="$fix_srcfile_path"
17989
17990# Set to yes if exported symbols are required.
17991always_export_symbols=$always_export_symbols
17992
17993# The commands to list exported symbols.
17994export_symbols_cmds=$lt_export_symbols_cmds
17995
17996# The commands to extract the exported symbol list from a shared archive.
17997extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999# Symbols that should not be listed in the preloaded symbols.
18000exclude_expsyms=$lt_exclude_expsyms
18001
18002# Symbols that must always be exported.
18003include_expsyms=$lt_include_expsyms
18004
18005# ### END LIBTOOL CONFIG
18006
18007__EOF__
18008
18009
18010 case $host_os in
18011 aix3*)
18012 cat <<\EOF >> "$cfgfile"
18013
18014# AIX sometimes has problems with the GCC collect2 program. For some
18015# reason, if we set the COLLECT_NAMES environment variable, the problems
18016# vanish in a puff of smoke.
18017if test "X${COLLECT_NAMES+set}" != Xset; then
18018 COLLECT_NAMES=
18019 export COLLECT_NAMES
18020fi
18021EOF
18022 ;;
18023 esac
18024
18025 # We use sed instead of cat because bash on DJGPP gets confused if
18026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18027 # text mode, it properly converts lines to CR/LF. This bash problem
18028 # is reportedly fixed, but why not run on old versions too?
18029 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18030
18031 mv -f "$cfgfile" "$ofile" || \
18032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18033 chmod +x "$ofile"
18034
18035else
18036 # If there is no Makefile yet, we rely on a make rule to execute
18037 # `config.status --recheck' to rerun these tests and create the
18038 # libtool script then.
18039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18040 if test -f "$ltmain_in"; then
18041 test -f Makefile && make "$ltmain"
18042 fi
18043fi
18044
18045
18046ac_ext=c
18047ac_cpp='$CPP $CPPFLAGS'
18048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051
18052CC="$lt_save_CC"
18053
18054
18055# Check whether --with-tags was given.
18056if test "${with_tags+set}" = set; then
18057 withval=$with_tags; tagnames="$withval"
18058fi
18059
18060
18061if test -f "$ltmain" && test -n "$tagnames"; then
18062 if test ! -f "${ofile}"; then
18063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18064echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18065 fi
18066
18067 if test -z "$LTCC"; then
18068 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18069 if test -z "$LTCC"; then
18070 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18071echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18072 else
18073 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18074echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18075 fi
18076 fi
18077 if test -z "$LTCFLAGS"; then
18078 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18079 fi
18080
18081 # Extract list of available tagged configurations in $ofile.
18082 # Note that this assumes the entire list is on one line.
18083 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18084
18085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18086 for tagname in $tagnames; do
18087 IFS="$lt_save_ifs"
18088 # Check whether tagname contains only valid characters
18089 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18090 "") ;;
18091 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18092echo "$as_me: error: invalid tag name: $tagname" >&2;}
18093 { (exit 1); exit 1; }; }
18094 ;;
18095 esac
18096
18097 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18098 then
18099 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18100echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18101 { (exit 1); exit 1; }; }
18102 fi
18103
18104 # Update the list of available tags.
18105 if test -n "$tagname"; then
18106 echo appending configuration tag \"$tagname\" to $ofile
18107
18108 case $tagname in
18109 CXX)
18110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18112 (test "X$CXX" != "Xg++"))) ; then
18113 ac_ext=cpp
18114ac_cpp='$CXXCPP $CPPFLAGS'
18115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118
18119
18120
18121
18122archive_cmds_need_lc_CXX=no
18123allow_undefined_flag_CXX=
18124always_export_symbols_CXX=no
18125archive_expsym_cmds_CXX=
18126export_dynamic_flag_spec_CXX=
18127hardcode_direct_CXX=no
18128hardcode_libdir_flag_spec_CXX=
18129hardcode_libdir_flag_spec_ld_CXX=
18130hardcode_libdir_separator_CXX=
18131hardcode_minus_L_CXX=no
18132hardcode_shlibpath_var_CXX=unsupported
18133hardcode_automatic_CXX=no
18134module_cmds_CXX=
18135module_expsym_cmds_CXX=
18136link_all_deplibs_CXX=unknown
18137old_archive_cmds_CXX=$old_archive_cmds
18138no_undefined_flag_CXX=
18139whole_archive_flag_spec_CXX=
18140enable_shared_with_static_runtimes_CXX=no
18141
18142# Dependencies to place before and after the object being linked:
18143predep_objects_CXX=
18144postdep_objects_CXX=
18145predeps_CXX=
18146postdeps_CXX=
18147compiler_lib_search_path_CXX=
18148
18149# Source file extension for C++ test sources.
18150ac_ext=cpp
18151
18152# Object file extension for compiled C++ test sources.
18153objext=o
18154objext_CXX=$objext
18155
18156# Code to be used in simple compile tests
18157lt_simple_compile_test_code="int some_variable = 0;\n"
18158
18159# Code to be used in simple link tests
18160lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18161
18162# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18163
18164# If no C compiler was specified, use CC.
18165LTCC=${LTCC-"$CC"}
18166
18167# If no C compiler flags were specified, use CFLAGS.
18168LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18169
18170# Allow CC to be a program name with arguments.
18171compiler=$CC
18172
18173
18174# save warnings/boilerplate of simple test code
18175ac_outfile=conftest.$ac_objext
18176printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178_lt_compiler_boilerplate=`cat conftest.err`
18179$rm conftest*
18180
18181ac_outfile=conftest.$ac_objext
18182printf "$lt_simple_link_test_code" >conftest.$ac_ext
18183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184_lt_linker_boilerplate=`cat conftest.err`
18185$rm conftest*
18186
18187
18188# Allow CC to be a program name with arguments.
18189lt_save_CC=$CC
18190lt_save_LD=$LD
18191lt_save_GCC=$GCC
18192GCC=$GXX
18193lt_save_with_gnu_ld=$with_gnu_ld
18194lt_save_path_LD=$lt_cv_path_LD
18195if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18196 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18197else
18198 $as_unset lt_cv_prog_gnu_ld
18199fi
18200if test -n "${lt_cv_path_LDCXX+set}"; then
18201 lt_cv_path_LD=$lt_cv_path_LDCXX
18202else
18203 $as_unset lt_cv_path_LD
18204fi
18205test -z "${LDCXX+set}" || LD=$LDCXX
18206CC=${CXX-"c++"}
18207compiler=$CC
18208compiler_CXX=$CC
18209for cc_temp in $compiler""; do
18210 case $cc_temp in
18211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18213 \-*) ;;
18214 *) break;;
18215 esac
18216done
18217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18218
18219
18220# We don't want -fno-exception wen compiling C++ code, so set the
18221# no_builtin_flag separately
18222if test "$GXX" = yes; then
18223 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18224else
18225 lt_prog_compiler_no_builtin_flag_CXX=
18226fi
18227
18228if test "$GXX" = yes; then
18229 # Set up default GNU C++ configuration
18230
18231
18232# Check whether --with-gnu-ld was given.
18233if test "${with_gnu_ld+set}" = set; then
18234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18235else
18236 with_gnu_ld=no
18237fi
18238
18239ac_prog=ld
18240if test "$GCC" = yes; then
18241 # Check if gcc -print-prog-name=ld gives a path.
18242 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18243echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18244 case $host in
18245 *-*-mingw*)
18246 # gcc leaves a trailing carriage return which upsets mingw
18247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18248 *)
18249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18250 esac
18251 case $ac_prog in
18252 # Accept absolute paths.
18253 [\\/]* | ?:[\\/]*)
18254 re_direlt='/[^/][^/]*/\.\./'
18255 # Canonicalize the pathname of ld
18256 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18257 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18258 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18259 done
18260 test -z "$LD" && LD="$ac_prog"
18261 ;;
18262 "")
18263 # If it fails, then pretend we aren't using GCC.
18264 ac_prog=ld
18265 ;;
18266 *)
18267 # If it is relative, then search for the first ld in PATH.
18268 with_gnu_ld=unknown
18269 ;;
18270 esac
18271elif test "$with_gnu_ld" = yes; then
18272 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18273echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18274else
18275 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18276echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18277fi
18278if test "${lt_cv_path_LD+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280else
18281 if test -z "$LD"; then
18282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18283 for ac_dir in $PATH; do
18284 IFS="$lt_save_ifs"
18285 test -z "$ac_dir" && ac_dir=.
18286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18287 lt_cv_path_LD="$ac_dir/$ac_prog"
18288 # Check to see if the program is GNU ld. I'd rather use --version,
18289 # but apparently some variants of GNU ld only accept -v.
18290 # Break only if it was the GNU/non-GNU ld that we prefer.
18291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18292 *GNU* | *'with BFD'*)
18293 test "$with_gnu_ld" != no && break
18294 ;;
18295 *)
18296 test "$with_gnu_ld" != yes && break
18297 ;;
18298 esac
18299 fi
18300 done
18301 IFS="$lt_save_ifs"
18302else
18303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18304fi
18305fi
18306
18307LD="$lt_cv_path_LD"
18308if test -n "$LD"; then
18309 { echo "$as_me:$LINENO: result: $LD" >&5
18310echo "${ECHO_T}$LD" >&6; }
18311else
18312 { echo "$as_me:$LINENO: result: no" >&5
18313echo "${ECHO_T}no" >&6; }
18314fi
18315test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18316echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18317 { (exit 1); exit 1; }; }
18318{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18319echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18320if test "${lt_cv_prog_gnu_ld+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322else
18323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18324case `$LD -v 2>&1 </dev/null` in
18325*GNU* | *'with BFD'*)
18326 lt_cv_prog_gnu_ld=yes
18327 ;;
18328*)
18329 lt_cv_prog_gnu_ld=no
18330 ;;
18331esac
18332fi
18333{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18334echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18335with_gnu_ld=$lt_cv_prog_gnu_ld
18336
18337
18338
18339 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18340 # archiving commands below assume that GNU ld is being used.
18341 if test "$with_gnu_ld" = yes; then
18342 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 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'
18344
18345 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18347
18348 # If archive_cmds runs LD, not CC, wlarc should be empty
18349 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18350 # investigate it a little bit more. (MM)
18351 wlarc='${wl}'
18352
18353 # ancient GNU ld didn't support --whole-archive et. al.
18354 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18355 grep 'no-whole-archive' > /dev/null; then
18356 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18357 else
18358 whole_archive_flag_spec_CXX=
18359 fi
18360 else
18361 with_gnu_ld=no
18362 wlarc=
18363
18364 # A generic and very simple default shared library creation
18365 # command for GNU C++ for the case where it uses the native
18366 # linker, instead of GNU ld. If possible, this setting should
18367 # overridden to take advantage of the native linker features on
18368 # the platform it is being used on.
18369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18370 fi
18371
18372 # Commands to make compiler produce verbose output that lists
18373 # what "hidden" libraries, object files and flags are used when
18374 # linking a shared library.
18375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18376
18377else
18378 GXX=no
18379 with_gnu_ld=no
18380 wlarc=
18381fi
18382
18383# PORTME: fill in a description of your system's C++ link characteristics
18384{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18385echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18386ld_shlibs_CXX=yes
18387case $host_os in
18388 aix3*)
18389 # FIXME: insert proper C++ library support
18390 ld_shlibs_CXX=no
18391 ;;
18392 aix4* | aix5*)
18393 if test "$host_cpu" = ia64; then
18394 # On IA64, the linker does run time linking by default, so we don't
18395 # have to do anything special.
18396 aix_use_runtimelinking=no
18397 exp_sym_flag='-Bexport'
18398 no_entry_flag=""
18399 else
18400 aix_use_runtimelinking=no
18401
18402 # Test if we are trying to use run time linking or normal
18403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18404 # need to do runtime linking.
18405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18406 for ld_flag in $LDFLAGS; do
18407 case $ld_flag in
18408 *-brtl*)
18409 aix_use_runtimelinking=yes
18410 break
18411 ;;
18412 esac
18413 done
18414 ;;
18415 esac
18416
18417 exp_sym_flag='-bexport'
18418 no_entry_flag='-bnoentry'
18419 fi
18420
18421 # When large executables or shared objects are built, AIX ld can
18422 # have problems creating the table of contents. If linking a library
18423 # or program results in "error TOC overflow" add -mminimal-toc to
18424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18426
18427 archive_cmds_CXX=''
18428 hardcode_direct_CXX=yes
18429 hardcode_libdir_separator_CXX=':'
18430 link_all_deplibs_CXX=yes
18431
18432 if test "$GXX" = yes; then
18433 case $host_os in aix4.[012]|aix4.[012].*)
18434 # We only want to do this on AIX 4.2 and lower, the check
18435 # below for broken collect2 doesn't work under 4.3+
18436 collect2name=`${CC} -print-prog-name=collect2`
18437 if test -f "$collect2name" && \
18438 strings "$collect2name" | grep resolve_lib_name >/dev/null
18439 then
18440 # We have reworked collect2
18441 hardcode_direct_CXX=yes
18442 else
18443 # We have old collect2
18444 hardcode_direct_CXX=unsupported
18445 # It fails to find uninstalled libraries when the uninstalled
18446 # path is not listed in the libpath. Setting hardcode_minus_L
18447 # to unsupported forces relinking
18448 hardcode_minus_L_CXX=yes
18449 hardcode_libdir_flag_spec_CXX='-L$libdir'
18450 hardcode_libdir_separator_CXX=
18451 fi
18452 ;;
18453 esac
18454 shared_flag='-shared'
18455 if test "$aix_use_runtimelinking" = yes; then
18456 shared_flag="$shared_flag "'${wl}-G'
18457 fi
18458 else
18459 # not using gcc
18460 if test "$host_cpu" = ia64; then
18461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18462 # chokes on -Wl,-G. The following line is correct:
18463 shared_flag='-G'
18464 else
18465 if test "$aix_use_runtimelinking" = yes; then
18466 shared_flag='${wl}-G'
18467 else
18468 shared_flag='${wl}-bM:SRE'
18469 fi
18470 fi
18471 fi
18472
18473 # It seems that -bexpall does not export symbols beginning with
18474 # underscore (_), so it is better to generate a list of symbols to export.
18475 always_export_symbols_CXX=yes
18476 if test "$aix_use_runtimelinking" = yes; then
18477 # Warning - without using the other runtime loading flags (-brtl),
18478 # -berok will link without error, but may produce a broken library.
18479 allow_undefined_flag_CXX='-berok'
18480 # Determine the default libpath from the value encoded in an empty executable.
18481 cat >conftest.$ac_ext <<_ACEOF
18482/* confdefs.h. */
18483_ACEOF
18484cat confdefs.h >>conftest.$ac_ext
18485cat >>conftest.$ac_ext <<_ACEOF
18486/* end confdefs.h. */
18487
18488int
18489main ()
18490{
18491
18492 ;
18493 return 0;
18494}
18495_ACEOF
18496rm -f conftest.$ac_objext conftest$ac_exeext
18497if { (ac_try="$ac_link"
18498case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18504 ac_status=$?
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524esac
18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018530
18531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18532}'`
18533# Check for a 64-bit object if we didn't find anything.
18534if 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; }
18535}'`; fi
18536else
18537 echo "$as_me: failed program was:" >&5
18538sed 's/^/| /' conftest.$ac_ext >&5
18539
18540
18541fi
18542
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018543rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018544 conftest$ac_exeext conftest.$ac_ext
18545if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18546
18547 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18548
18549 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"
18550 else
18551 if test "$host_cpu" = ia64; then
18552 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18553 allow_undefined_flag_CXX="-z nodefs"
18554 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"
18555 else
18556 # Determine the default libpath from the value encoded in an empty executable.
18557 cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
18563
18564int
18565main ()
18566{
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext conftest$ac_exeext
18573if { (ac_try="$ac_link"
18574case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577esac
18578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest$ac_exeext'
18597 { (case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18600esac
18601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_try") 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018606
18607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18608}'`
18609# Check for a 64-bit object if we didn't find anything.
18610if 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; }
18611}'`; fi
18612else
18613 echo "$as_me: failed program was:" >&5
18614sed 's/^/| /' conftest.$ac_ext >&5
18615
18616
18617fi
18618
Tanya Lattner3fa4a442009-01-22 05:17:59 +000018619rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018620 conftest$ac_exeext conftest.$ac_ext
18621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18622
18623 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18624 # Warning - without using the other run time loading flags,
18625 # -berok will link without error, but may produce a broken library.
18626 no_undefined_flag_CXX=' ${wl}-bernotok'
18627 allow_undefined_flag_CXX=' ${wl}-berok'
18628 # Exported symbols can be pulled into shared objects from archives
18629 whole_archive_flag_spec_CXX='$convenience'
18630 archive_cmds_need_lc_CXX=yes
18631 # This is similar to how AIX traditionally builds its shared libraries.
18632 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'
18633 fi
18634 fi
18635 ;;
18636
18637 beos*)
18638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639 allow_undefined_flag_CXX=unsupported
18640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18641 # support --undefined. This deserves some investigation. FIXME
18642 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 else
18644 ld_shlibs_CXX=no
18645 fi
18646 ;;
18647
18648 chorus*)
18649 case $cc_basename in
18650 *)
18651 # FIXME: insert proper C++ library support
18652 ld_shlibs_CXX=no
18653 ;;
18654 esac
18655 ;;
18656
18657 cygwin* | mingw* | pw32*)
18658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18659 # as there is no search path for DLLs.
18660 hardcode_libdir_flag_spec_CXX='-L$libdir'
18661 allow_undefined_flag_CXX=unsupported
18662 always_export_symbols_CXX=no
18663 enable_shared_with_static_runtimes_CXX=yes
18664
18665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18666 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'
18667 # If the export-symbols file already is a .def file (1st line
18668 # is EXPORTS), use it as is; otherwise, prepend...
18669 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18670 cp $export_symbols $output_objdir/$soname.def;
18671 else
18672 echo EXPORTS > $output_objdir/$soname.def;
18673 cat $export_symbols >> $output_objdir/$soname.def;
18674 fi~
18675 $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'
18676 else
18677 ld_shlibs_CXX=no
18678 fi
18679 ;;
18680 darwin* | rhapsody*)
18681 case $host_os in
18682 rhapsody* | darwin1.[012])
18683 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18684 ;;
18685 *) # Darwin 1.3 on
18686 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18687 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18688 else
18689 case ${MACOSX_DEPLOYMENT_TARGET} in
18690 10.[012])
18691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18692 ;;
18693 10.*)
18694 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18695 ;;
18696 esac
18697 fi
18698 ;;
18699 esac
18700 archive_cmds_need_lc_CXX=no
18701 hardcode_direct_CXX=no
18702 hardcode_automatic_CXX=yes
18703 hardcode_shlibpath_var_CXX=unsupported
18704 whole_archive_flag_spec_CXX=''
18705 link_all_deplibs_CXX=yes
18706
18707 if test "$GXX" = yes ; then
18708 lt_int_apple_cc_single_mod=no
18709 output_verbose_link_cmd='echo'
18710 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18711 lt_int_apple_cc_single_mod=yes
18712 fi
18713 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18714 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18715 else
18716 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'
18717 fi
18718 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18720 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18721 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}'
18722 else
18723 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}'
18724 fi
18725 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}'
18726 else
18727 case $cc_basename in
18728 xlc*)
18729 output_verbose_link_cmd='echo'
18730 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'
18731 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18732 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18733 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}'
18734 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}'
18735 ;;
18736 *)
18737 ld_shlibs_CXX=no
18738 ;;
18739 esac
18740 fi
18741 ;;
18742
18743 dgux*)
18744 case $cc_basename in
18745 ec++*)
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 ;;
18749 ghcx*)
18750 # Green Hills C++ Compiler
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 *)
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 ;;
18758 esac
18759 ;;
18760 freebsd[12]*)
18761 # C++ shared libraries reported to be fairly broken before switch to ELF
18762 ld_shlibs_CXX=no
18763 ;;
18764 freebsd-elf*)
18765 archive_cmds_need_lc_CXX=no
18766 ;;
18767 freebsd* | kfreebsd*-gnu | dragonfly*)
18768 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18769 # conventions
18770 ld_shlibs_CXX=yes
18771 ;;
18772 gnu*)
18773 ;;
18774 hpux9*)
18775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18777 export_dynamic_flag_spec_CXX='${wl}-E'
18778 hardcode_direct_CXX=yes
18779 hardcode_minus_L_CXX=yes # Not in the search PATH,
18780 # but as the default
18781 # location of the library.
18782
18783 case $cc_basename in
18784 CC*)
18785 # FIXME: insert proper C++ library support
18786 ld_shlibs_CXX=no
18787 ;;
18788 aCC*)
18789 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'
18790 # Commands to make compiler produce verbose output that lists
18791 # what "hidden" libraries, object files and flags are used when
18792 # linking a shared library.
18793 #
18794 # There doesn't appear to be a way to prevent this compiler from
18795 # explicitly linking system object files so we need to strip them
18796 # from the output so that they don't get included in the library
18797 # dependencies.
18798 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'
18799 ;;
18800 *)
18801 if test "$GXX" = yes; then
18802 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'
18803 else
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 fi
18807 ;;
18808 esac
18809 ;;
18810 hpux10*|hpux11*)
18811 if test $with_gnu_ld = no; then
18812 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18813 hardcode_libdir_separator_CXX=:
18814
18815 case $host_cpu in
18816 hppa*64*|ia64*)
18817 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18818 ;;
18819 *)
18820 export_dynamic_flag_spec_CXX='${wl}-E'
18821 ;;
18822 esac
18823 fi
18824 case $host_cpu in
18825 hppa*64*|ia64*)
18826 hardcode_direct_CXX=no
18827 hardcode_shlibpath_var_CXX=no
18828 ;;
18829 *)
18830 hardcode_direct_CXX=yes
18831 hardcode_minus_L_CXX=yes # Not in the search PATH,
18832 # but as the default
18833 # location of the library.
18834 ;;
18835 esac
18836
18837 case $cc_basename in
18838 CC*)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 aCC*)
18843 case $host_cpu in
18844 hppa*64*)
18845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846 ;;
18847 ia64*)
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849 ;;
18850 *)
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 ;;
18853 esac
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18857 #
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18861 # dependencies.
18862 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'
18863 ;;
18864 *)
18865 if test "$GXX" = yes; then
18866 if test $with_gnu_ld = no; then
18867 case $host_cpu in
18868 hppa*64*)
18869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870 ;;
18871 ia64*)
18872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873 ;;
18874 *)
18875 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'
18876 ;;
18877 esac
18878 fi
18879 else
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 fi
18883 ;;
18884 esac
18885 ;;
18886 interix3*)
18887 hardcode_direct_CXX=no
18888 hardcode_shlibpath_var_CXX=no
18889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18890 export_dynamic_flag_spec_CXX='${wl}-E'
18891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18892 # Instead, shared libraries are loaded at an image base (0x10000000 by
18893 # default) and relocated if they conflict, which is a slow very memory
18894 # consuming and fragmenting process. To avoid this, we pick a random,
18895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18897 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'
18898 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'
18899 ;;
18900 irix5* | irix6*)
18901 case $cc_basename in
18902 CC*)
18903 # SGI C++
18904 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'
18905
18906 # Archives containing C++ object files must be created using
18907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18908 # necessary to make sure instantiated templates are included
18909 # in the archive.
18910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18911 ;;
18912 *)
18913 if test "$GXX" = yes; then
18914 if test "$with_gnu_ld" = no; then
18915 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'
18916 else
18917 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'
18918 fi
18919 fi
18920 link_all_deplibs_CXX=yes
18921 ;;
18922 esac
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925 ;;
18926 linux*)
18927 case $cc_basename in
18928 KCC*)
18929 # Kuck and Associates, Inc. (KAI) C++ Compiler
18930
18931 # KCC will only create a shared library if the output file
18932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18933 # to its proper name (with version) after linking.
18934 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'
18935 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'
18936 # Commands to make compiler produce verbose output that lists
18937 # what "hidden" libraries, object files and flags are used when
18938 # linking a shared library.
18939 #
18940 # There doesn't appear to be a way to prevent this compiler from
18941 # explicitly linking system object files so we need to strip them
18942 # from the output so that they don't get included in the library
18943 # dependencies.
18944 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'
18945
18946 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18948
18949 # Archives containing C++ object files must be created using
18950 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18951 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18952 ;;
18953 icpc*)
18954 # Intel C++
18955 with_gnu_ld=yes
18956 # version 8.0 and above of icpc choke on multiply defined symbols
18957 # if we add $predep_objects and $postdep_objects, however 7.1 and
18958 # earlier do not add the objects themselves.
18959 case `$CC -V 2>&1` in
18960 *"Version 7."*)
18961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18962 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'
18963 ;;
18964 *) # Version 8.0 or newer
18965 tmp_idyn=
18966 case $host_cpu in
18967 ia64*) tmp_idyn=' -i_dynamic';;
18968 esac
18969 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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'
18971 ;;
18972 esac
18973 archive_cmds_need_lc_CXX=no
18974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18976 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18977 ;;
18978 pgCC*)
18979 # Portland Group C++ compiler
18980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18981 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'
18982
18983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18985 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'
18986 ;;
18987 cxx*)
18988 # Compaq C++
18989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18990 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'
18991
18992 runpath_var=LD_RUN_PATH
18993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18994 hardcode_libdir_separator_CXX=:
18995
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 #
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
19004 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'
19005 ;;
19006 esac
19007 ;;
19008 lynxos*)
19009 # FIXME: insert proper C++ library support
19010 ld_shlibs_CXX=no
19011 ;;
19012 m88k*)
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
19016 mvs*)
19017 case $cc_basename in
19018 cxx*)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 *)
19023 # FIXME: insert proper C++ library support
19024 ld_shlibs_CXX=no
19025 ;;
19026 esac
19027 ;;
19028 netbsd*)
19029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19031 wlarc=
19032 hardcode_libdir_flag_spec_CXX='-R$libdir'
19033 hardcode_direct_CXX=yes
19034 hardcode_shlibpath_var_CXX=no
19035 fi
19036 # Workaround some broken pre-1.5 toolchains
19037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19038 ;;
19039 openbsd2*)
19040 # C++ shared libraries are fairly broken
19041 ld_shlibs_CXX=no
19042 ;;
19043 openbsd*)
19044 hardcode_direct_CXX=yes
19045 hardcode_shlibpath_var_CXX=no
19046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19050 export_dynamic_flag_spec_CXX='${wl}-E'
19051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19052 fi
19053 output_verbose_link_cmd='echo'
19054 ;;
19055 osf3*)
19056 case $cc_basename in
19057 KCC*)
19058 # Kuck and Associates, Inc. (KAI) C++ Compiler
19059
19060 # KCC will only create a shared library if the output file
19061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19062 # to its proper name (with version) after linking.
19063 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'
19064
19065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19066 hardcode_libdir_separator_CXX=:
19067
19068 # Archives containing C++ object files must be created using
19069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19071
19072 ;;
19073 RCC*)
19074 # Rational C++ 2.4.1
19075 # FIXME: insert proper C++ library support
19076 ld_shlibs_CXX=no
19077 ;;
19078 cxx*)
19079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19080 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'
19081
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19083 hardcode_libdir_separator_CXX=:
19084
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19088 #
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19092 # dependencies.
19093 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'
19094 ;;
19095 *)
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098 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'
19099
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19102
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108 else
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 fi
19112 ;;
19113 esac
19114 ;;
19115 osf4* | osf5*)
19116 case $cc_basename in
19117 KCC*)
19118 # Kuck and Associates, Inc. (KAI) C++ Compiler
19119
19120 # KCC will only create a shared library if the output file
19121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122 # to its proper name (with version) after linking.
19123 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'
19124
19125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19126 hardcode_libdir_separator_CXX=:
19127
19128 # Archives containing C++ object files must be created using
19129 # the KAI C++ compiler.
19130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19131 ;;
19132 RCC*)
19133 # Rational C++ 2.4.1
19134 # FIXME: insert proper C++ library support
19135 ld_shlibs_CXX=no
19136 ;;
19137 cxx*)
19138 allow_undefined_flag_CXX=' -expect_unresolved \*'
19139 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'
19140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19141 echo "-hidden">> $lib.exp~
19142 $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~
19143 $rm $lib.exp'
19144
19145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19146 hardcode_libdir_separator_CXX=:
19147
19148 # Commands to make compiler produce verbose output that lists
19149 # what "hidden" libraries, object files and flags are used when
19150 # linking a shared library.
19151 #
19152 # There doesn't appear to be a way to prevent this compiler from
19153 # explicitly linking system object files so we need to strip them
19154 # from the output so that they don't get included in the library
19155 # dependencies.
19156 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'
19157 ;;
19158 *)
19159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19161 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'
19162
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19164 hardcode_libdir_separator_CXX=:
19165
19166 # Commands to make compiler produce verbose output that lists
19167 # what "hidden" libraries, object files and flags are used when
19168 # linking a shared library.
19169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19170
19171 else
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 fi
19175 ;;
19176 esac
19177 ;;
19178 psos*)
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19181 ;;
19182 sunos4*)
19183 case $cc_basename in
19184 CC*)
19185 # Sun C++ 4.x
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189 lcc*)
19190 # Lucid
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 *)
19195 # FIXME: insert proper C++ library support
19196 ld_shlibs_CXX=no
19197 ;;
19198 esac
19199 ;;
19200 solaris*)
19201 case $cc_basename in
19202 CC*)
19203 # Sun C++ 4.2, 5.x and Centerline C++
19204 archive_cmds_need_lc_CXX=yes
19205 no_undefined_flag_CXX=' -zdefs'
19206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19208 $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'
19209
19210 hardcode_libdir_flag_spec_CXX='-R$libdir'
19211 hardcode_shlibpath_var_CXX=no
19212 case $host_os in
19213 solaris2.[0-5] | solaris2.[0-5].*) ;;
19214 *)
19215 # The C++ compiler is used as linker so we must use $wl
19216 # flag to pass the commands to the underlying system
19217 # linker. We must also pass each convience library through
19218 # to the system linker between allextract/defaultextract.
19219 # The C++ compiler will combine linker options so we
19220 # cannot just pass the convience library names through
19221 # without $wl.
19222 # Supported since Solaris 2.6 (maybe 2.5.1?)
19223 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'
19224 ;;
19225 esac
19226 link_all_deplibs_CXX=yes
19227
19228 output_verbose_link_cmd='echo'
19229
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19233 # in the archive.
19234 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235 ;;
19236 gcx*)
19237 # Green Hills C++ Compiler
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19239
19240 # The C++ compiler must be used to create the archive.
19241 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242 ;;
19243 *)
19244 # GNU C++ compiler with Solaris linker
19245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19246 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19247 if $CC --version | grep -v '^2\.7' > /dev/null; then
19248 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19251
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
19255 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19256 else
19257 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19258 # platform.
19259 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19260 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19261 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19262
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
19266 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19267 fi
19268
19269 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19270 fi
19271 ;;
19272 esac
19273 ;;
19274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19275 no_undefined_flag_CXX='${wl}-z,text'
19276 archive_cmds_need_lc_CXX=no
19277 hardcode_shlibpath_var_CXX=no
19278 runpath_var='LD_RUN_PATH'
19279
19280 case $cc_basename in
19281 CC*)
19282 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 ;;
19285 *)
19286 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288 ;;
19289 esac
19290 ;;
19291 sysv5* | sco3.2v5* | sco5v6*)
19292 # Note: We can NOT use -z defs as we might desire, because we do not
19293 # link with -lc, and that would cause any symbols used from libc to
19294 # always be unresolved, which means just about no library would
19295 # ever link correctly. If we're not using GNU ld we use -z text
19296 # though, which does catch some bad symbols but isn't as heavy-handed
19297 # as -z defs.
19298 # For security reasons, it is highly recommended that you always
19299 # use absolute paths for naming shared libraries, and exclude the
19300 # DT_RUNPATH tag from executables and libraries. But doing so
19301 # requires that you compile everything twice, which is a pain.
19302 # So that behaviour is only enabled if SCOABSPATH is set to a
19303 # non-empty value in the environment. Most likely only useful for
19304 # creating official distributions of packages.
19305 # This is a hack until libtool officially supports absolute path
19306 # names for shared libraries.
19307 no_undefined_flag_CXX='${wl}-z,text'
19308 allow_undefined_flag_CXX='${wl}-z,nodefs'
19309 archive_cmds_need_lc_CXX=no
19310 hardcode_shlibpath_var_CXX=no
19311 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19312 hardcode_libdir_separator_CXX=':'
19313 link_all_deplibs_CXX=yes
19314 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19315 runpath_var='LD_RUN_PATH'
19316
19317 case $cc_basename in
19318 CC*)
19319 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 ;;
19322 *)
19323 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 ;;
19326 esac
19327 ;;
19328 tandem*)
19329 case $cc_basename in
19330 NCC*)
19331 # NonStop-UX NCC 3.20
19332 # FIXME: insert proper C++ library support
19333 ld_shlibs_CXX=no
19334 ;;
19335 *)
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339 esac
19340 ;;
19341 vxworks*)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345 *)
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19348 ;;
19349esac
19350{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19351echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19352test "$ld_shlibs_CXX" = no && can_build_shared=no
19353
19354GCC_CXX="$GXX"
19355LD_CXX="$LD"
19356
19357
19358cat > conftest.$ac_ext <<EOF
19359class Foo
19360{
19361public:
19362 Foo (void) { a = 0; }
19363private:
19364 int a;
19365};
19366EOF
19367
19368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; then
19373 # Parse the compiler output and extract the necessary
19374 # objects, libraries and library flags.
19375
19376 # Sentinel used to keep track of whether or not we are before
19377 # the conftest object file.
19378 pre_test_object_deps_done=no
19379
19380 # The `*' in the case matches for architectures that use `case' in
19381 # $output_verbose_cmd can trigger glob expansion during the loop
19382 # eval without this substitution.
19383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19384
19385 for p in `eval $output_verbose_link_cmd`; do
19386 case $p in
19387
19388 -L* | -R* | -l*)
19389 # Some compilers place space between "-{L,R}" and the path.
19390 # Remove the space.
19391 if test $p = "-L" \
19392 || test $p = "-R"; then
19393 prev=$p
19394 continue
19395 else
19396 prev=
19397 fi
19398
19399 if test "$pre_test_object_deps_done" = no; then
19400 case $p in
19401 -L* | -R*)
19402 # Internal compiler library paths should come after those
19403 # provided the user. The postdeps already come after the
19404 # user supplied libs so there is no need to process them.
19405 if test -z "$compiler_lib_search_path_CXX"; then
19406 compiler_lib_search_path_CXX="${prev}${p}"
19407 else
19408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19409 fi
19410 ;;
19411 # The "-l" case would never come before the object being
19412 # linked, so don't bother handling this case.
19413 esac
19414 else
19415 if test -z "$postdeps_CXX"; then
19416 postdeps_CXX="${prev}${p}"
19417 else
19418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19419 fi
19420 fi
19421 ;;
19422
19423 *.$objext)
19424 # This assumes that the test object file only shows up
19425 # once in the compiler output.
19426 if test "$p" = "conftest.$objext"; then
19427 pre_test_object_deps_done=yes
19428 continue
19429 fi
19430
19431 if test "$pre_test_object_deps_done" = no; then
19432 if test -z "$predep_objects_CXX"; then
19433 predep_objects_CXX="$p"
19434 else
19435 predep_objects_CXX="$predep_objects_CXX $p"
19436 fi
19437 else
19438 if test -z "$postdep_objects_CXX"; then
19439 postdep_objects_CXX="$p"
19440 else
19441 postdep_objects_CXX="$postdep_objects_CXX $p"
19442 fi
19443 fi
19444 ;;
19445
19446 *) ;; # Ignore the rest.
19447
19448 esac
19449 done
19450
19451 # Clean up.
19452 rm -f a.out a.exe
19453else
19454 echo "libtool.m4: error: problem compiling CXX test program"
19455fi
19456
19457$rm -f confest.$objext
19458
19459# PORTME: override above test on systems where it is broken
19460case $host_os in
19461interix3*)
19462 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19463 # hack all around it, let's just trust "g++" to DTRT.
19464 predep_objects_CXX=
19465 postdep_objects_CXX=
19466 postdeps_CXX=
19467 ;;
19468
19469solaris*)
19470 case $cc_basename in
19471 CC*)
19472 # Adding this requires a known-good setup of shared libraries for
19473 # Sun compiler versions before 5.6, else PIC objects from an old
19474 # archive will be linked into the output, leading to subtle bugs.
19475 postdeps_CXX='-lCstd -lCrun'
19476 ;;
19477 esac
19478 ;;
19479esac
19480
19481
19482case " $postdeps_CXX " in
19483*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19484esac
19485
19486lt_prog_compiler_wl_CXX=
19487lt_prog_compiler_pic_CXX=
19488lt_prog_compiler_static_CXX=
19489
19490{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19491echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19492
19493 # C++ specific cases for pic, static, wl, etc.
19494 if test "$GXX" = yes; then
19495 lt_prog_compiler_wl_CXX='-Wl,'
19496 lt_prog_compiler_static_CXX='-static'
19497
19498 case $host_os in
19499 aix*)
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19504 fi
19505 ;;
19506 amigaos*)
19507 # FIXME: we need at least 68020 code to build shared libraries, but
19508 # adding the `-m68020' flag to GCC prevents building anything better,
19509 # like `-m68040'.
19510 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19511 ;;
19512 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19513 # PIC is the default for these OSes.
19514 ;;
19515 mingw* | os2* | pw32*)
19516 # This hack is so that the source file can tell whether it is being
19517 # built for inclusion in a dll (and should export symbols for example).
19518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19519 ;;
19520 darwin* | rhapsody*)
19521 # PIC is the default on this platform
19522 # Common symbols not allowed in MH_DYLIB files
19523 lt_prog_compiler_pic_CXX='-fno-common'
19524 ;;
19525 *djgpp*)
19526 # DJGPP does not support shared libraries at all
19527 lt_prog_compiler_pic_CXX=
19528 ;;
19529 interix3*)
19530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19531 # Instead, we relocate shared libraries at runtime.
19532 ;;
19533 sysv4*MP*)
19534 if test -d /usr/nec; then
19535 lt_prog_compiler_pic_CXX=-Kconform_pic
19536 fi
19537 ;;
19538 hpux*)
19539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19540 # not for PA HP-UX.
19541 case $host_cpu in
19542 hppa*64*|ia64*)
19543 ;;
19544 *)
19545 lt_prog_compiler_pic_CXX='-fPIC'
19546 ;;
19547 esac
19548 ;;
19549 *)
19550 lt_prog_compiler_pic_CXX='-fPIC'
19551 ;;
19552 esac
19553 else
19554 case $host_os in
19555 aix4* | aix5*)
19556 # All AIX code is PIC.
19557 if test "$host_cpu" = ia64; then
19558 # AIX 5 now supports IA64 processor
19559 lt_prog_compiler_static_CXX='-Bstatic'
19560 else
19561 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19562 fi
19563 ;;
19564 chorus*)
19565 case $cc_basename in
19566 cxch68*)
19567 # Green Hills C++ Compiler
19568 # _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"
19569 ;;
19570 esac
19571 ;;
19572 darwin*)
19573 # PIC is the default on this platform
19574 # Common symbols not allowed in MH_DYLIB files
19575 case $cc_basename in
19576 xlc*)
19577 lt_prog_compiler_pic_CXX='-qnocommon'
19578 lt_prog_compiler_wl_CXX='-Wl,'
19579 ;;
19580 esac
19581 ;;
19582 dgux*)
19583 case $cc_basename in
19584 ec++*)
19585 lt_prog_compiler_pic_CXX='-KPIC'
19586 ;;
19587 ghcx*)
19588 # Green Hills C++ Compiler
19589 lt_prog_compiler_pic_CXX='-pic'
19590 ;;
19591 *)
19592 ;;
19593 esac
19594 ;;
19595 freebsd* | kfreebsd*-gnu | dragonfly*)
19596 # FreeBSD uses GNU C++
19597 ;;
19598 hpux9* | hpux10* | hpux11*)
19599 case $cc_basename in
19600 CC*)
19601 lt_prog_compiler_wl_CXX='-Wl,'
19602 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19603 if test "$host_cpu" != ia64; then
19604 lt_prog_compiler_pic_CXX='+Z'
19605 fi
19606 ;;
19607 aCC*)
19608 lt_prog_compiler_wl_CXX='-Wl,'
19609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19610 case $host_cpu in
19611 hppa*64*|ia64*)
19612 # +Z the default
19613 ;;
19614 *)
19615 lt_prog_compiler_pic_CXX='+Z'
19616 ;;
19617 esac
19618 ;;
19619 *)
19620 ;;
19621 esac
19622 ;;
19623 interix*)
19624 # This is c89, which is MS Visual C++ (no shared libs)
19625 # Anyone wants to do a port?
19626 ;;
19627 irix5* | irix6* | nonstopux*)
19628 case $cc_basename in
19629 CC*)
19630 lt_prog_compiler_wl_CXX='-Wl,'
19631 lt_prog_compiler_static_CXX='-non_shared'
19632 # CC pic flag -KPIC is the default.
19633 ;;
19634 *)
19635 ;;
19636 esac
19637 ;;
19638 linux*)
19639 case $cc_basename in
19640 KCC*)
19641 # KAI C++ Compiler
19642 lt_prog_compiler_wl_CXX='--backend -Wl,'
19643 lt_prog_compiler_pic_CXX='-fPIC'
19644 ;;
19645 icpc* | ecpc*)
19646 # Intel C++
19647 lt_prog_compiler_wl_CXX='-Wl,'
19648 lt_prog_compiler_pic_CXX='-KPIC'
19649 lt_prog_compiler_static_CXX='-static'
19650 ;;
19651 pgCC*)
19652 # Portland Group C++ compiler.
19653 lt_prog_compiler_wl_CXX='-Wl,'
19654 lt_prog_compiler_pic_CXX='-fpic'
19655 lt_prog_compiler_static_CXX='-Bstatic'
19656 ;;
19657 cxx*)
19658 # Compaq C++
19659 # Make sure the PIC flag is empty. It appears that all Alpha
19660 # Linux and Compaq Tru64 Unix objects are PIC.
19661 lt_prog_compiler_pic_CXX=
19662 lt_prog_compiler_static_CXX='-non_shared'
19663 ;;
19664 *)
19665 ;;
19666 esac
19667 ;;
19668 lynxos*)
19669 ;;
19670 m88k*)
19671 ;;
19672 mvs*)
19673 case $cc_basename in
19674 cxx*)
19675 lt_prog_compiler_pic_CXX='-W c,exportall'
19676 ;;
19677 *)
19678 ;;
19679 esac
19680 ;;
19681 netbsd*)
19682 ;;
19683 osf3* | osf4* | osf5*)
19684 case $cc_basename in
19685 KCC*)
19686 lt_prog_compiler_wl_CXX='--backend -Wl,'
19687 ;;
19688 RCC*)
19689 # Rational C++ 2.4.1
19690 lt_prog_compiler_pic_CXX='-pic'
19691 ;;
19692 cxx*)
19693 # Digital/Compaq C++
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 # Make sure the PIC flag is empty. It appears that all Alpha
19696 # Linux and Compaq Tru64 Unix objects are PIC.
19697 lt_prog_compiler_pic_CXX=
19698 lt_prog_compiler_static_CXX='-non_shared'
19699 ;;
19700 *)
19701 ;;
19702 esac
19703 ;;
19704 psos*)
19705 ;;
19706 solaris*)
19707 case $cc_basename in
19708 CC*)
19709 # Sun C++ 4.2, 5.x and Centerline C++
19710 lt_prog_compiler_pic_CXX='-KPIC'
19711 lt_prog_compiler_static_CXX='-Bstatic'
19712 lt_prog_compiler_wl_CXX='-Qoption ld '
19713 ;;
19714 gcx*)
19715 # Green Hills C++ Compiler
19716 lt_prog_compiler_pic_CXX='-PIC'
19717 ;;
19718 *)
19719 ;;
19720 esac
19721 ;;
19722 sunos4*)
19723 case $cc_basename in
19724 CC*)
19725 # Sun C++ 4.x
19726 lt_prog_compiler_pic_CXX='-pic'
19727 lt_prog_compiler_static_CXX='-Bstatic'
19728 ;;
19729 lcc*)
19730 # Lucid
19731 lt_prog_compiler_pic_CXX='-pic'
19732 ;;
19733 *)
19734 ;;
19735 esac
19736 ;;
19737 tandem*)
19738 case $cc_basename in
19739 NCC*)
19740 # NonStop-UX NCC 3.20
19741 lt_prog_compiler_pic_CXX='-KPIC'
19742 ;;
19743 *)
19744 ;;
19745 esac
19746 ;;
19747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19748 case $cc_basename in
19749 CC*)
19750 lt_prog_compiler_wl_CXX='-Wl,'
19751 lt_prog_compiler_pic_CXX='-KPIC'
19752 lt_prog_compiler_static_CXX='-Bstatic'
19753 ;;
19754 esac
19755 ;;
19756 vxworks*)
19757 ;;
19758 *)
19759 lt_prog_compiler_can_build_shared_CXX=no
19760 ;;
19761 esac
19762 fi
19763
19764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19765echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19766
19767#
19768# Check to make sure the PIC flag actually works.
19769#
19770if test -n "$lt_prog_compiler_pic_CXX"; then
19771
19772{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19773echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19774if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 lt_prog_compiler_pic_works_CXX=no
19778 ac_outfile=conftest.$ac_objext
19779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19780 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19781 # Insert the option either (1) after the last *FLAGS variable, or
19782 # (2) before a word containing "conftest.", or (3) at the end.
19783 # Note that $ac_compile itself does not contain backslashes and begins
19784 # with a dollar sign (not a hyphen), so the echo should work correctly.
19785 # The option is referenced via a variable to avoid confusing sed.
19786 lt_compile=`echo "$ac_compile" | $SED \
19787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19789 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000019790 (eval echo "\"\$as_me:19790: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019791 (eval "$lt_compile" 2>conftest.err)
19792 ac_status=$?
19793 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000019794 echo "$as_me:19794: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019795 if (exit $ac_status) && test -s "$ac_outfile"; then
19796 # The compiler can only warn and ignore the option if not recognized
19797 # So say no if there are warnings other than the usual output.
19798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19801 lt_prog_compiler_pic_works_CXX=yes
19802 fi
19803 fi
19804 $rm conftest*
19805
19806fi
19807{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19808echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19809
19810if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19811 case $lt_prog_compiler_pic_CXX in
19812 "" | " "*) ;;
19813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19814 esac
19815else
19816 lt_prog_compiler_pic_CXX=
19817 lt_prog_compiler_can_build_shared_CXX=no
19818fi
19819
19820fi
19821case $host_os in
19822 # For platforms which do not support PIC, -DPIC is meaningless:
19823 *djgpp*)
19824 lt_prog_compiler_pic_CXX=
19825 ;;
19826 *)
19827 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19828 ;;
19829esac
19830
19831#
19832# Check to make sure the static flag actually works.
19833#
19834wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19835{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19836echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19837if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839else
19840 lt_prog_compiler_static_works_CXX=no
19841 save_LDFLAGS="$LDFLAGS"
19842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19843 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19845 # The linker can only warn and ignore the option if not recognized
19846 # So say no if there are warnings
19847 if test -s conftest.err; then
19848 # Append any errors to the config.log.
19849 cat conftest.err 1>&5
19850 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19852 if diff conftest.exp conftest.er2 >/dev/null; then
19853 lt_prog_compiler_static_works_CXX=yes
19854 fi
19855 else
19856 lt_prog_compiler_static_works_CXX=yes
19857 fi
19858 fi
19859 $rm conftest*
19860 LDFLAGS="$save_LDFLAGS"
19861
19862fi
19863{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19864echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19865
19866if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19867 :
19868else
19869 lt_prog_compiler_static_CXX=
19870fi
19871
19872
19873{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19874echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19875if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 lt_cv_prog_compiler_c_o_CXX=no
19879 $rm -r conftest 2>/dev/null
19880 mkdir conftest
19881 cd conftest
19882 mkdir out
19883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19884
19885 lt_compiler_flag="-o out/conftest2.$ac_objext"
19886 # Insert the option either (1) after the last *FLAGS variable, or
19887 # (2) before a word containing "conftest.", or (3) at the end.
19888 # Note that $ac_compile itself does not contain backslashes and begins
19889 # with a dollar sign (not a hyphen), so the echo should work correctly.
19890 lt_compile=`echo "$ac_compile" | $SED \
19891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19893 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000019894 (eval echo "\"\$as_me:19894: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019895 (eval "$lt_compile" 2>out/conftest.err)
19896 ac_status=$?
19897 cat out/conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000019898 echo "$as_me:19898: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19900 then
19901 # The compiler can only warn and ignore the option if not recognized
19902 # So say no if there are warnings
19903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19906 lt_cv_prog_compiler_c_o_CXX=yes
19907 fi
19908 fi
19909 chmod u+w . 2>&5
19910 $rm conftest*
19911 # SGI C++ compiler will create directory out/ii_files/ for
19912 # template instantiation
19913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19914 $rm out/* && rmdir out
19915 cd ..
19916 rmdir conftest
19917 $rm conftest*
19918
19919fi
19920{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19921echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19922
19923
19924hard_links="nottested"
19925if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19926 # do not overwrite the value of need_locks provided by the user
19927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19928echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19929 hard_links=yes
19930 $rm conftest*
19931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19932 touch conftest.a
19933 ln conftest.a conftest.b 2>&5 || hard_links=no
19934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19935 { echo "$as_me:$LINENO: result: $hard_links" >&5
19936echo "${ECHO_T}$hard_links" >&6; }
19937 if test "$hard_links" = no; then
19938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19939echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19940 need_locks=warn
19941 fi
19942else
19943 need_locks=no
19944fi
19945
19946{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19947echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19948
19949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19950 case $host_os in
19951 aix4* | aix5*)
19952 # If we're using GNU nm, then we don't want the "-C" option.
19953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19955 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'
19956 else
19957 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'
19958 fi
19959 ;;
19960 pw32*)
19961 export_symbols_cmds_CXX="$ltdll_cmds"
19962 ;;
19963 cygwin* | mingw*)
19964 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'
19965 ;;
19966 *)
19967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19968 ;;
19969 esac
19970
19971{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19972echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19973test "$ld_shlibs_CXX" = no && can_build_shared=no
19974
19975#
19976# Do we need to explicitly link libc?
19977#
19978case "x$archive_cmds_need_lc_CXX" in
19979x|xyes)
19980 # Assume -lc should be added
19981 archive_cmds_need_lc_CXX=yes
19982
19983 if test "$enable_shared" = yes && test "$GCC" = yes; then
19984 case $archive_cmds_CXX in
19985 *'~'*)
19986 # FIXME: we may have to deal with multi-command sequences.
19987 ;;
19988 '$CC '*)
19989 # Test whether the compiler implicitly links with -lc since on some
19990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991 # to ld, don't add -lc before -lgcc.
19992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19994 $rm conftest*
19995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19996
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } 2>conftest.err; then
20002 soname=conftest
20003 lib=conftest
20004 libobjs=conftest.$ac_objext
20005 deplibs=
20006 wl=$lt_prog_compiler_wl_CXX
20007 pic_flag=$lt_prog_compiler_pic_CXX
20008 compiler_flags=-v
20009 linker_flags=-v
20010 verstring=
20011 output_objdir=.
20012 libname=conftest
20013 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20014 allow_undefined_flag_CXX=
20015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20016 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }
20020 then
20021 archive_cmds_need_lc_CXX=no
20022 else
20023 archive_cmds_need_lc_CXX=yes
20024 fi
20025 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20026 else
20027 cat conftest.err 1>&5
20028 fi
20029 $rm conftest*
20030 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20031echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20032 ;;
20033 esac
20034 fi
20035 ;;
20036esac
20037
20038{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20039echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20040library_names_spec=
20041libname_spec='lib$name'
20042soname_spec=
20043shrext_cmds=".so"
20044postinstall_cmds=
20045postuninstall_cmds=
20046finish_cmds=
20047finish_eval=
20048shlibpath_var=
20049shlibpath_overrides_runpath=unknown
20050version_type=none
20051dynamic_linker="$host_os ld.so"
20052sys_lib_dlsearch_path_spec="/lib /usr/lib"
20053if test "$GCC" = yes; then
20054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20056 # if the path contains ";" then we assume it to be the separator
20057 # otherwise default to the standard path separator (i.e. ":") - it is
20058 # assumed that no part of a normal pathname contains ";" but that should
20059 # okay in the real world where ";" in dirpaths is itself problematic.
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061 else
20062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20063 fi
20064else
20065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20066fi
20067need_lib_prefix=unknown
20068hardcode_into_libs=no
20069
20070# when you set need_version to no, make sure it does not cause -set_version
20071# flags to be left without arguments
20072need_version=unknown
20073
20074case $host_os in
20075aix3*)
20076 version_type=linux
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20078 shlibpath_var=LIBPATH
20079
20080 # AIX 3 has no versioning support, so we append a major version to the name.
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 ;;
20083
20084aix4* | aix5*)
20085 version_type=linux
20086 need_lib_prefix=no
20087 need_version=no
20088 hardcode_into_libs=yes
20089 if test "$host_cpu" = ia64; then
20090 # AIX 5 supports IA64
20091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20092 shlibpath_var=LD_LIBRARY_PATH
20093 else
20094 # With GCC up to 2.95.x, collect2 would create an import file
20095 # for dependence libraries. The import file would start with
20096 # the line `#! .'. This would cause the generated library to
20097 # depend on `.', always an invalid library. This was fixed in
20098 # development snapshots of GCC prior to 3.0.
20099 case $host_os in
20100 aix4 | aix4.[01] | aix4.[01].*)
20101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20102 echo ' yes '
20103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20104 :
20105 else
20106 can_build_shared=no
20107 fi
20108 ;;
20109 esac
20110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20111 # soname into executable. Probably we can add versioning support to
20112 # collect2, so additional links can be useful in future.
20113 if test "$aix_use_runtimelinking" = yes; then
20114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20115 # instead of lib<name>.a to let people know that these are not
20116 # typical AIX shared libraries.
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 else
20119 # We preserve .a as extension for shared libraries through AIX4.2
20120 # and later when we are not doing run time linking.
20121 library_names_spec='${libname}${release}.a $libname.a'
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 fi
20124 shlibpath_var=LIBPATH
20125 fi
20126 ;;
20127
20128amigaos*)
20129 library_names_spec='$libname.ixlibrary $libname.a'
20130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20131 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'
20132 ;;
20133
20134beos*)
20135 library_names_spec='${libname}${shared_ext}'
20136 dynamic_linker="$host_os ld.so"
20137 shlibpath_var=LIBRARY_PATH
20138 ;;
20139
20140bsdi[45]*)
20141 version_type=linux
20142 need_version=no
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20144 soname_spec='${libname}${release}${shared_ext}$major'
20145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20146 shlibpath_var=LD_LIBRARY_PATH
20147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20149 # the default ld.so.conf also contains /usr/contrib/lib and
20150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20151 # libtool to hard-code these into programs
20152 ;;
20153
20154cygwin* | mingw* | pw32*)
20155 version_type=windows
20156 shrext_cmds=".dll"
20157 need_version=no
20158 need_lib_prefix=no
20159
20160 case $GCC,$host_os in
20161 yes,cygwin* | yes,mingw* | yes,pw32*)
20162 library_names_spec='$libname.dll.a'
20163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20164 postinstall_cmds='base_file=`basename \${file}`~
20165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20166 dldir=$destdir/`dirname \$dlpath`~
20167 test -d \$dldir || mkdir -p \$dldir~
20168 $install_prog $dir/$dlname \$dldir/$dlname~
20169 chmod a+x \$dldir/$dlname'
20170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20171 dlpath=$dir/\$dldll~
20172 $rm \$dlpath'
20173 shlibpath_overrides_runpath=yes
20174
20175 case $host_os in
20176 cygwin*)
20177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20178 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20180 ;;
20181 mingw*)
20182 # MinGW DLLs use traditional 'lib' prefix
20183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20185 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20186 # It is most probably a Windows format PATH printed by
20187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20188 # path with ; separators, and with drive letters. We can handle the
20189 # drive letters (cygwin fileutils understands them), so leave them,
20190 # especially as we might pass files found there to a mingw objdump,
20191 # which wouldn't understand a cygwinified path. Ahh.
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20193 else
20194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20195 fi
20196 ;;
20197 pw32*)
20198 # pw32 DLLs use 'pw' prefix rather than 'lib'
20199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20200 ;;
20201 esac
20202 ;;
20203
20204 *)
20205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20206 ;;
20207 esac
20208 dynamic_linker='Win32 ld.exe'
20209 # FIXME: first we should search . and the directory the executable is in
20210 shlibpath_var=PATH
20211 ;;
20212
20213darwin* | rhapsody*)
20214 dynamic_linker="$host_os dyld"
20215 version_type=darwin
20216 need_lib_prefix=no
20217 need_version=no
20218 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20219 soname_spec='${libname}${release}${major}$shared_ext'
20220 shlibpath_overrides_runpath=yes
20221 shlibpath_var=DYLD_LIBRARY_PATH
20222 shrext_cmds='.dylib'
20223 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20224 if test "$GCC" = yes; then
20225 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"`
20226 else
20227 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20228 fi
20229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20230 ;;
20231
20232dgux*)
20233 version_type=linux
20234 need_lib_prefix=no
20235 need_version=no
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 shlibpath_var=LD_LIBRARY_PATH
20239 ;;
20240
20241freebsd1*)
20242 dynamic_linker=no
20243 ;;
20244
20245kfreebsd*-gnu)
20246 version_type=linux
20247 need_lib_prefix=no
20248 need_version=no
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 shlibpath_overrides_runpath=no
20253 hardcode_into_libs=yes
20254 dynamic_linker='GNU ld.so'
20255 ;;
20256
20257freebsd* | dragonfly*)
20258 # DragonFly does not have aout. When/if they implement a new
20259 # versioning mechanism, adjust this.
20260 if test -x /usr/bin/objformat; then
20261 objformat=`/usr/bin/objformat`
20262 else
20263 case $host_os in
20264 freebsd[123]*) objformat=aout ;;
20265 *) objformat=elf ;;
20266 esac
20267 fi
20268 version_type=freebsd-$objformat
20269 case $version_type in
20270 freebsd-elf*)
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20272 need_version=no
20273 need_lib_prefix=no
20274 ;;
20275 freebsd-*)
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20277 need_version=yes
20278 ;;
20279 esac
20280 shlibpath_var=LD_LIBRARY_PATH
20281 case $host_os in
20282 freebsd2*)
20283 shlibpath_overrides_runpath=yes
20284 ;;
20285 freebsd3.[01]* | freebsdelf3.[01]*)
20286 shlibpath_overrides_runpath=yes
20287 hardcode_into_libs=yes
20288 ;;
20289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20291 shlibpath_overrides_runpath=no
20292 hardcode_into_libs=yes
20293 ;;
20294 freebsd*) # from 4.6 on
20295 shlibpath_overrides_runpath=yes
20296 hardcode_into_libs=yes
20297 ;;
20298 esac
20299 ;;
20300
20301gnu*)
20302 version_type=linux
20303 need_lib_prefix=no
20304 need_version=no
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20306 soname_spec='${libname}${release}${shared_ext}$major'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 hardcode_into_libs=yes
20309 ;;
20310
20311hpux9* | hpux10* | hpux11*)
20312 # Give a soname corresponding to the major version so that dld.sl refuses to
20313 # link against other versions.
20314 version_type=sunos
20315 need_lib_prefix=no
20316 need_version=no
20317 case $host_cpu in
20318 ia64*)
20319 shrext_cmds='.so'
20320 hardcode_into_libs=yes
20321 dynamic_linker="$host_os dld.so"
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 if test "X$HPUX_IA64_MODE" = X32; then
20327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20328 else
20329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20330 fi
20331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20332 ;;
20333 hppa*64*)
20334 shrext_cmds='.sl'
20335 hardcode_into_libs=yes
20336 dynamic_linker="$host_os dld.sl"
20337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 soname_spec='${libname}${release}${shared_ext}$major'
20341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20343 ;;
20344 *)
20345 shrext_cmds='.sl'
20346 dynamic_linker="$host_os dld.sl"
20347 shlibpath_var=SHLIB_PATH
20348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 ;;
20352 esac
20353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20354 postinstall_cmds='chmod 555 $lib'
20355 ;;
20356
20357interix3*)
20358 version_type=linux
20359 need_lib_prefix=no
20360 need_version=no
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362 soname_spec='${libname}${release}${shared_ext}$major'
20363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 shlibpath_overrides_runpath=no
20366 hardcode_into_libs=yes
20367 ;;
20368
20369irix5* | irix6* | nonstopux*)
20370 case $host_os in
20371 nonstopux*) version_type=nonstopux ;;
20372 *)
20373 if test "$lt_cv_prog_gnu_ld" = yes; then
20374 version_type=linux
20375 else
20376 version_type=irix
20377 fi ;;
20378 esac
20379 need_lib_prefix=no
20380 need_version=no
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20383 case $host_os in
20384 irix5* | nonstopux*)
20385 libsuff= shlibsuff=
20386 ;;
20387 *)
20388 case $LD in # libtool.m4 will add one of these switches to LD
20389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20390 libsuff= shlibsuff= libmagic=32-bit;;
20391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20392 libsuff=32 shlibsuff=N32 libmagic=N32;;
20393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20395 *) libsuff= shlibsuff= libmagic=never-match;;
20396 esac
20397 ;;
20398 esac
20399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20400 shlibpath_overrides_runpath=no
20401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20403 hardcode_into_libs=yes
20404 ;;
20405
20406# No shared lib support for Linux oldld, aout, or coff.
20407linux*oldld* | linux*aout* | linux*coff*)
20408 dynamic_linker=no
20409 ;;
20410
20411# This must be Linux ELF.
20412linux*)
20413 version_type=linux
20414 need_lib_prefix=no
20415 need_version=no
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20419 shlibpath_var=LD_LIBRARY_PATH
20420 shlibpath_overrides_runpath=no
20421 # This implies no fast_install, which is unacceptable.
20422 # Some rework will be needed to allow for fast_install
20423 # before this can be enabled.
20424 hardcode_into_libs=yes
20425
20426 # Append ld.so.conf contents to the search path
20427 if test -f /etc/ld.so.conf; then
20428 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' ' '`
20429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20430 fi
20431
20432 # We used to test for /lib/ld.so.1 and disable shared libraries on
20433 # powerpc, because MkLinux only supported shared libraries with the
20434 # GNU dynamic linker. Since this was broken with cross compilers,
20435 # most powerpc-linux boxes support dynamic linking these days and
20436 # people can always --disable-shared, the test was removed, and we
20437 # assume the GNU/Linux dynamic linker is in use.
20438 dynamic_linker='GNU/Linux ld.so'
20439 ;;
20440
20441knetbsd*-gnu)
20442 version_type=linux
20443 need_lib_prefix=no
20444 need_version=no
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 shlibpath_overrides_runpath=no
20449 hardcode_into_libs=yes
20450 dynamic_linker='GNU ld.so'
20451 ;;
20452
20453netbsd*)
20454 version_type=sunos
20455 need_lib_prefix=no
20456 need_version=no
20457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460 dynamic_linker='NetBSD (a.out) ld.so'
20461 else
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 dynamic_linker='NetBSD ld.elf_so'
20465 fi
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20468 hardcode_into_libs=yes
20469 ;;
20470
20471newsos6)
20472 version_type=linux
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 ;;
20477
20478nto-qnx*)
20479 version_type=linux
20480 need_lib_prefix=no
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 shlibpath_var=LD_LIBRARY_PATH
20485 shlibpath_overrides_runpath=yes
20486 ;;
20487
20488openbsd*)
20489 version_type=sunos
20490 sys_lib_dlsearch_path_spec="/usr/lib"
20491 need_lib_prefix=no
20492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20493 case $host_os in
20494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20495 *) need_version=no ;;
20496 esac
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20501 case $host_os in
20502 openbsd2.[89] | openbsd2.[89].*)
20503 shlibpath_overrides_runpath=no
20504 ;;
20505 *)
20506 shlibpath_overrides_runpath=yes
20507 ;;
20508 esac
20509 else
20510 shlibpath_overrides_runpath=yes
20511 fi
20512 ;;
20513
20514os2*)
20515 libname_spec='$name'
20516 shrext_cmds=".dll"
20517 need_lib_prefix=no
20518 library_names_spec='$libname${shared_ext} $libname.a'
20519 dynamic_linker='OS/2 ld.exe'
20520 shlibpath_var=LIBPATH
20521 ;;
20522
20523osf3* | osf4* | osf5*)
20524 version_type=osf
20525 need_lib_prefix=no
20526 need_version=no
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20532 ;;
20533
20534solaris*)
20535 version_type=linux
20536 need_lib_prefix=no
20537 need_version=no
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 shlibpath_overrides_runpath=yes
20542 hardcode_into_libs=yes
20543 # ldd complains unless libraries are executable
20544 postinstall_cmds='chmod +x $lib'
20545 ;;
20546
20547sunos4*)
20548 version_type=sunos
20549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes
20553 if test "$with_gnu_ld" = yes; then
20554 need_lib_prefix=no
20555 fi
20556 need_version=yes
20557 ;;
20558
20559sysv4 | sysv4.3*)
20560 version_type=linux
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 case $host_vendor in
20565 sni)
20566 shlibpath_overrides_runpath=no
20567 need_lib_prefix=no
20568 export_dynamic_flag_spec='${wl}-Blargedynsym'
20569 runpath_var=LD_RUN_PATH
20570 ;;
20571 siemens)
20572 need_lib_prefix=no
20573 ;;
20574 motorola)
20575 need_lib_prefix=no
20576 need_version=no
20577 shlibpath_overrides_runpath=no
20578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579 ;;
20580 esac
20581 ;;
20582
20583sysv4*MP*)
20584 if test -d /usr/nec ;then
20585 version_type=linux
20586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20587 soname_spec='$libname${shared_ext}.$major'
20588 shlibpath_var=LD_LIBRARY_PATH
20589 fi
20590 ;;
20591
20592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20593 version_type=freebsd-elf
20594 need_lib_prefix=no
20595 need_version=no
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20597 soname_spec='${libname}${release}${shared_ext}$major'
20598 shlibpath_var=LD_LIBRARY_PATH
20599 hardcode_into_libs=yes
20600 if test "$with_gnu_ld" = yes; then
20601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20602 shlibpath_overrides_runpath=no
20603 else
20604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20605 shlibpath_overrides_runpath=yes
20606 case $host_os in
20607 sco3.2v5*)
20608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20609 ;;
20610 esac
20611 fi
20612 sys_lib_dlsearch_path_spec='/usr/lib'
20613 ;;
20614
20615uts4*)
20616 version_type=linux
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 ;;
20621
20622*)
20623 dynamic_linker=no
20624 ;;
20625esac
20626{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20627echo "${ECHO_T}$dynamic_linker" >&6; }
20628test "$dynamic_linker" = no && can_build_shared=no
20629
20630variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20631if test "$GCC" = yes; then
20632 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20633fi
20634
20635{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20636echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20637hardcode_action_CXX=
20638if test -n "$hardcode_libdir_flag_spec_CXX" || \
20639 test -n "$runpath_var_CXX" || \
20640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20641
20642 # We can hardcode non-existant directories.
20643 if test "$hardcode_direct_CXX" != no &&
20644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20645 # have to relink, otherwise we might link with an installed library
20646 # when we should be linking with a yet-to-be-installed one
20647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20648 test "$hardcode_minus_L_CXX" != no; then
20649 # Linking always hardcodes the temporary library directory.
20650 hardcode_action_CXX=relink
20651 else
20652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20653 hardcode_action_CXX=immediate
20654 fi
20655else
20656 # We cannot hardcode anything, or else we can only hardcode existing
20657 # directories.
20658 hardcode_action_CXX=unsupported
20659fi
20660{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20661echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20662
20663if test "$hardcode_action_CXX" = relink; then
20664 # Fast installation is not supported
20665 enable_fast_install=no
20666elif test "$shlibpath_overrides_runpath" = yes ||
20667 test "$enable_shared" = no; then
20668 # Fast installation is not necessary
20669 enable_fast_install=needless
20670fi
20671
20672
20673# The else clause should only fire when bootstrapping the
20674# libtool distribution, otherwise you forgot to ship ltmain.sh
20675# with your package, and you will get complaints that there are
20676# no rules to generate ltmain.sh.
20677if test -f "$ltmain"; then
20678 # See if we are running on zsh, and set the options which allow our commands through
20679 # without removal of \ escapes.
20680 if test -n "${ZSH_VERSION+set}" ; then
20681 setopt NO_GLOB_SUBST
20682 fi
20683 # Now quote all the things that may contain metacharacters while being
20684 # careful not to overquote the AC_SUBSTed values. We take copies of the
20685 # variables and quote the copies for generation of the libtool script.
20686 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20687 SED SHELL STRIP \
20688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20690 deplibs_check_method reload_flag reload_cmds need_locks \
20691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20692 lt_cv_sys_global_symbol_to_c_name_address \
20693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20694 old_postinstall_cmds old_postuninstall_cmds \
20695 compiler_CXX \
20696 CC_CXX \
20697 LD_CXX \
20698 lt_prog_compiler_wl_CXX \
20699 lt_prog_compiler_pic_CXX \
20700 lt_prog_compiler_static_CXX \
20701 lt_prog_compiler_no_builtin_flag_CXX \
20702 export_dynamic_flag_spec_CXX \
20703 thread_safe_flag_spec_CXX \
20704 whole_archive_flag_spec_CXX \
20705 enable_shared_with_static_runtimes_CXX \
20706 old_archive_cmds_CXX \
20707 old_archive_from_new_cmds_CXX \
20708 predep_objects_CXX \
20709 postdep_objects_CXX \
20710 predeps_CXX \
20711 postdeps_CXX \
20712 compiler_lib_search_path_CXX \
20713 archive_cmds_CXX \
20714 archive_expsym_cmds_CXX \
20715 postinstall_cmds_CXX \
20716 postuninstall_cmds_CXX \
20717 old_archive_from_expsyms_cmds_CXX \
20718 allow_undefined_flag_CXX \
20719 no_undefined_flag_CXX \
20720 export_symbols_cmds_CXX \
20721 hardcode_libdir_flag_spec_CXX \
20722 hardcode_libdir_flag_spec_ld_CXX \
20723 hardcode_libdir_separator_CXX \
20724 hardcode_automatic_CXX \
20725 module_cmds_CXX \
20726 module_expsym_cmds_CXX \
20727 lt_cv_prog_compiler_c_o_CXX \
20728 exclude_expsyms_CXX \
20729 include_expsyms_CXX; do
20730
20731 case $var in
20732 old_archive_cmds_CXX | \
20733 old_archive_from_new_cmds_CXX | \
20734 archive_cmds_CXX | \
20735 archive_expsym_cmds_CXX | \
20736 module_cmds_CXX | \
20737 module_expsym_cmds_CXX | \
20738 old_archive_from_expsyms_cmds_CXX | \
20739 export_symbols_cmds_CXX | \
20740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20741 postinstall_cmds | postuninstall_cmds | \
20742 old_postinstall_cmds | old_postuninstall_cmds | \
20743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20744 # Double-quote double-evaled strings.
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20746 ;;
20747 *)
20748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20749 ;;
20750 esac
20751 done
20752
20753 case $lt_echo in
20754 *'\$0 --fallback-echo"')
20755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20756 ;;
20757 esac
20758
20759cfgfile="$ofile"
20760
20761 cat <<__EOF__ >> "$cfgfile"
20762# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20763
20764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20765
20766# Shell to use when invoking shell scripts.
20767SHELL=$lt_SHELL
20768
20769# Whether or not to build shared libraries.
20770build_libtool_libs=$enable_shared
20771
20772# Whether or not to build static libraries.
20773build_old_libs=$enable_static
20774
20775# Whether or not to add -lc for building shared libraries.
20776build_libtool_need_lc=$archive_cmds_need_lc_CXX
20777
20778# Whether or not to disallow shared libs when runtime libs are static
20779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20780
20781# Whether or not to optimize for fast installation.
20782fast_install=$enable_fast_install
20783
20784# The host system.
20785host_alias=$host_alias
20786host=$host
20787host_os=$host_os
20788
20789# The build system.
20790build_alias=$build_alias
20791build=$build
20792build_os=$build_os
20793
20794# An echo program that does not interpret backslashes.
20795echo=$lt_echo
20796
20797# The archiver.
20798AR=$lt_AR
20799AR_FLAGS=$lt_AR_FLAGS
20800
20801# A C compiler.
20802LTCC=$lt_LTCC
20803
20804# LTCC compiler flags.
20805LTCFLAGS=$lt_LTCFLAGS
20806
20807# A language-specific compiler.
20808CC=$lt_compiler_CXX
20809
20810# Is the compiler the GNU C compiler?
20811with_gcc=$GCC_CXX
20812
20813# An ERE matcher.
20814EGREP=$lt_EGREP
20815
20816# The linker used to build libraries.
20817LD=$lt_LD_CXX
20818
20819# Whether we need hard or soft links.
20820LN_S=$lt_LN_S
20821
20822# A BSD-compatible nm program.
20823NM=$lt_NM
20824
20825# A symbol stripping program
20826STRIP=$lt_STRIP
20827
20828# Used to examine libraries when file_magic_cmd begins "file"
20829MAGIC_CMD=$MAGIC_CMD
20830
20831# Used on cygwin: DLL creation program.
20832DLLTOOL="$DLLTOOL"
20833
20834# Used on cygwin: object dumper.
20835OBJDUMP="$OBJDUMP"
20836
20837# Used on cygwin: assembler.
20838AS="$AS"
20839
20840# The name of the directory that contains temporary libtool files.
20841objdir=$objdir
20842
20843# How to create reloadable object files.
20844reload_flag=$lt_reload_flag
20845reload_cmds=$lt_reload_cmds
20846
20847# How to pass a linker flag through the compiler.
20848wl=$lt_lt_prog_compiler_wl_CXX
20849
20850# Object file suffix (normally "o").
20851objext="$ac_objext"
20852
20853# Old archive suffix (normally "a").
20854libext="$libext"
20855
20856# Shared library suffix (normally ".so").
20857shrext_cmds='$shrext_cmds'
20858
20859# Executable file suffix (normally "").
20860exeext="$exeext"
20861
20862# Additional compiler flags for building library objects.
20863pic_flag=$lt_lt_prog_compiler_pic_CXX
20864pic_mode=$pic_mode
20865
20866# What is the maximum length of a command?
20867max_cmd_len=$lt_cv_sys_max_cmd_len
20868
20869# Does compiler simultaneously support -c and -o options?
20870compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20871
20872# Must we lock files when doing compilation?
20873need_locks=$lt_need_locks
20874
20875# Do we need the lib prefix for modules?
20876need_lib_prefix=$need_lib_prefix
20877
20878# Do we need a version for libraries?
20879need_version=$need_version
20880
20881# Whether dlopen is supported.
20882dlopen_support=$enable_dlopen
20883
20884# Whether dlopen of programs is supported.
20885dlopen_self=$enable_dlopen_self
20886
20887# Whether dlopen of statically linked programs is supported.
20888dlopen_self_static=$enable_dlopen_self_static
20889
20890# Compiler flag to prevent dynamic linking.
20891link_static_flag=$lt_lt_prog_compiler_static_CXX
20892
20893# Compiler flag to turn off builtin functions.
20894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20895
20896# Compiler flag to allow reflexive dlopens.
20897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20898
20899# Compiler flag to generate shared objects directly from archives.
20900whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20901
20902# Compiler flag to generate thread-safe objects.
20903thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20904
20905# Library versioning type.
20906version_type=$version_type
20907
20908# Format of library name prefix.
20909libname_spec=$lt_libname_spec
20910
20911# List of archive names. First name is the real one, the rest are links.
20912# The last name is the one that the linker finds with -lNAME.
20913library_names_spec=$lt_library_names_spec
20914
20915# The coded name of the library, if different from the real name.
20916soname_spec=$lt_soname_spec
20917
20918# Commands used to build and install an old-style archive.
20919RANLIB=$lt_RANLIB
20920old_archive_cmds=$lt_old_archive_cmds_CXX
20921old_postinstall_cmds=$lt_old_postinstall_cmds
20922old_postuninstall_cmds=$lt_old_postuninstall_cmds
20923
20924# Create an old-style archive from a shared archive.
20925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20926
20927# Create a temporary old-style archive to link instead of a shared archive.
20928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20929
20930# Commands used to build and install a shared archive.
20931archive_cmds=$lt_archive_cmds_CXX
20932archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20933postinstall_cmds=$lt_postinstall_cmds
20934postuninstall_cmds=$lt_postuninstall_cmds
20935
20936# Commands used to build a loadable module (assumed same as above if empty)
20937module_cmds=$lt_module_cmds_CXX
20938module_expsym_cmds=$lt_module_expsym_cmds_CXX
20939
20940# Commands to strip libraries.
20941old_striplib=$lt_old_striplib
20942striplib=$lt_striplib
20943
20944# Dependencies to place before the objects being linked to create a
20945# shared library.
20946predep_objects=$lt_predep_objects_CXX
20947
20948# Dependencies to place after the objects being linked to create a
20949# shared library.
20950postdep_objects=$lt_postdep_objects_CXX
20951
20952# Dependencies to place before the objects being linked to create a
20953# shared library.
20954predeps=$lt_predeps_CXX
20955
20956# Dependencies to place after the objects being linked to create a
20957# shared library.
20958postdeps=$lt_postdeps_CXX
20959
20960# The library search path used internally by the compiler when linking
20961# a shared library.
20962compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20963
20964# Method to check whether dependent libraries are shared objects.
20965deplibs_check_method=$lt_deplibs_check_method
20966
20967# Command to use when deplibs_check_method == file_magic.
20968file_magic_cmd=$lt_file_magic_cmd
20969
20970# Flag that allows shared libraries with undefined symbols to be built.
20971allow_undefined_flag=$lt_allow_undefined_flag_CXX
20972
20973# Flag that forces no undefined symbols.
20974no_undefined_flag=$lt_no_undefined_flag_CXX
20975
20976# Commands used to finish a libtool library installation in a directory.
20977finish_cmds=$lt_finish_cmds
20978
20979# Same as above, but a single script fragment to be evaled but not shown.
20980finish_eval=$lt_finish_eval
20981
20982# Take the output of nm and produce a listing of raw symbols and C names.
20983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20984
20985# Transform the output of nm in a proper C declaration
20986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20987
20988# Transform the output of nm in a C name address pair
20989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20990
20991# This is the shared library runtime path variable.
20992runpath_var=$runpath_var
20993
20994# This is the shared library path variable.
20995shlibpath_var=$shlibpath_var
20996
20997# Is shlibpath searched before the hard-coded library search path?
20998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20999
21000# How to hardcode a shared library path into an executable.
21001hardcode_action=$hardcode_action_CXX
21002
21003# Whether we should hardcode library paths into libraries.
21004hardcode_into_libs=$hardcode_into_libs
21005
21006# Flag to hardcode \$libdir into a binary during linking.
21007# This must work even if \$libdir does not exist.
21008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21009
21010# If ld is used when linking, flag to hardcode \$libdir into
21011# a binary during linking. This must work even if \$libdir does
21012# not exist.
21013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21014
21015# Whether we need a single -rpath flag with a separated argument.
21016hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21017
21018# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21019# resulting binary.
21020hardcode_direct=$hardcode_direct_CXX
21021
21022# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21023# resulting binary.
21024hardcode_minus_L=$hardcode_minus_L_CXX
21025
21026# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21027# the resulting binary.
21028hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21029
21030# Set to yes if building a shared library automatically hardcodes DIR into the library
21031# and all subsequent libraries and executables linked against it.
21032hardcode_automatic=$hardcode_automatic_CXX
21033
21034# Variables whose values should be saved in libtool wrapper scripts and
21035# restored at relink time.
21036variables_saved_for_relink="$variables_saved_for_relink"
21037
21038# Whether libtool must link a program against all its dependency libraries.
21039link_all_deplibs=$link_all_deplibs_CXX
21040
21041# Compile-time system search path for libraries
21042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21043
21044# Run-time system search path for libraries
21045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21046
21047# Fix the shell variable \$srcfile for the compiler.
21048fix_srcfile_path="$fix_srcfile_path_CXX"
21049
21050# Set to yes if exported symbols are required.
21051always_export_symbols=$always_export_symbols_CXX
21052
21053# The commands to list exported symbols.
21054export_symbols_cmds=$lt_export_symbols_cmds_CXX
21055
21056# The commands to extract the exported symbol list from a shared archive.
21057extract_expsyms_cmds=$lt_extract_expsyms_cmds
21058
21059# Symbols that should not be listed in the preloaded symbols.
21060exclude_expsyms=$lt_exclude_expsyms_CXX
21061
21062# Symbols that must always be exported.
21063include_expsyms=$lt_include_expsyms_CXX
21064
21065# ### END LIBTOOL TAG CONFIG: $tagname
21066
21067__EOF__
21068
21069
21070else
21071 # If there is no Makefile yet, we rely on a make rule to execute
21072 # `config.status --recheck' to rerun these tests and create the
21073 # libtool script then.
21074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21075 if test -f "$ltmain_in"; then
21076 test -f Makefile && make "$ltmain"
21077 fi
21078fi
21079
21080
21081ac_ext=c
21082ac_cpp='$CPP $CPPFLAGS'
21083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086
21087CC=$lt_save_CC
21088LDCXX=$LD
21089LD=$lt_save_LD
21090GCC=$lt_save_GCC
21091with_gnu_ldcxx=$with_gnu_ld
21092with_gnu_ld=$lt_save_with_gnu_ld
21093lt_cv_path_LDCXX=$lt_cv_path_LD
21094lt_cv_path_LD=$lt_save_path_LD
21095lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21096lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21097
21098 else
21099 tagname=""
21100 fi
21101 ;;
21102
21103 F77)
21104 if test -n "$F77" && test "X$F77" != "Xno"; then
21105
21106ac_ext=f
21107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21110
21111
21112archive_cmds_need_lc_F77=no
21113allow_undefined_flag_F77=
21114always_export_symbols_F77=no
21115archive_expsym_cmds_F77=
21116export_dynamic_flag_spec_F77=
21117hardcode_direct_F77=no
21118hardcode_libdir_flag_spec_F77=
21119hardcode_libdir_flag_spec_ld_F77=
21120hardcode_libdir_separator_F77=
21121hardcode_minus_L_F77=no
21122hardcode_automatic_F77=no
21123module_cmds_F77=
21124module_expsym_cmds_F77=
21125link_all_deplibs_F77=unknown
21126old_archive_cmds_F77=$old_archive_cmds
21127no_undefined_flag_F77=
21128whole_archive_flag_spec_F77=
21129enable_shared_with_static_runtimes_F77=no
21130
21131# Source file extension for f77 test sources.
21132ac_ext=f
21133
21134# Object file extension for compiled f77 test sources.
21135objext=o
21136objext_F77=$objext
21137
21138# Code to be used in simple compile tests
21139lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21140
21141# Code to be used in simple link tests
21142lt_simple_link_test_code=" program t\n end\n"
21143
21144# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21145
21146# If no C compiler was specified, use CC.
21147LTCC=${LTCC-"$CC"}
21148
21149# If no C compiler flags were specified, use CFLAGS.
21150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21151
21152# Allow CC to be a program name with arguments.
21153compiler=$CC
21154
21155
21156# save warnings/boilerplate of simple test code
21157ac_outfile=conftest.$ac_objext
21158printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21160_lt_compiler_boilerplate=`cat conftest.err`
21161$rm conftest*
21162
21163ac_outfile=conftest.$ac_objext
21164printf "$lt_simple_link_test_code" >conftest.$ac_ext
21165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166_lt_linker_boilerplate=`cat conftest.err`
21167$rm conftest*
21168
21169
21170# Allow CC to be a program name with arguments.
21171lt_save_CC="$CC"
21172CC=${F77-"f77"}
21173compiler=$CC
21174compiler_F77=$CC
21175for cc_temp in $compiler""; do
21176 case $cc_temp in
21177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21179 \-*) ;;
21180 *) break;;
21181 esac
21182done
21183cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21184
21185
21186{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21187echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21188{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21189echo "${ECHO_T}$can_build_shared" >&6; }
21190
21191{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21192echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21193test "$can_build_shared" = "no" && enable_shared=no
21194
21195# On AIX, shared libraries and static libraries use the same namespace, and
21196# are all built from PIC.
21197case $host_os in
21198aix3*)
21199 test "$enable_shared" = yes && enable_static=no
21200 if test -n "$RANLIB"; then
21201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21202 postinstall_cmds='$RANLIB $lib'
21203 fi
21204 ;;
21205aix4* | aix5*)
21206 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21207 test "$enable_shared" = yes && enable_static=no
21208 fi
21209 ;;
21210esac
21211{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21212echo "${ECHO_T}$enable_shared" >&6; }
21213
21214{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21215echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21216# Make sure either enable_shared or enable_static is yes.
21217test "$enable_shared" = yes || enable_static=yes
21218{ echo "$as_me:$LINENO: result: $enable_static" >&5
21219echo "${ECHO_T}$enable_static" >&6; }
21220
21221GCC_F77="$G77"
21222LD_F77="$LD"
21223
21224lt_prog_compiler_wl_F77=
21225lt_prog_compiler_pic_F77=
21226lt_prog_compiler_static_F77=
21227
21228{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21229echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21230
21231 if test "$GCC" = yes; then
21232 lt_prog_compiler_wl_F77='-Wl,'
21233 lt_prog_compiler_static_F77='-static'
21234
21235 case $host_os in
21236 aix*)
21237 # All AIX code is PIC.
21238 if test "$host_cpu" = ia64; then
21239 # AIX 5 now supports IA64 processor
21240 lt_prog_compiler_static_F77='-Bstatic'
21241 fi
21242 ;;
21243
21244 amigaos*)
21245 # FIXME: we need at least 68020 code to build shared libraries, but
21246 # adding the `-m68020' flag to GCC prevents building anything better,
21247 # like `-m68040'.
21248 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21249 ;;
21250
21251 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21252 # PIC is the default for these OSes.
21253 ;;
21254
21255 mingw* | pw32* | os2*)
21256 # This hack is so that the source file can tell whether it is being
21257 # built for inclusion in a dll (and should export symbols for example).
21258 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21259 ;;
21260
21261 darwin* | rhapsody*)
21262 # PIC is the default on this platform
21263 # Common symbols not allowed in MH_DYLIB files
21264 lt_prog_compiler_pic_F77='-fno-common'
21265 ;;
21266
21267 interix3*)
21268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21269 # Instead, we relocate shared libraries at runtime.
21270 ;;
21271
21272 msdosdjgpp*)
21273 # Just because we use GCC doesn't mean we suddenly get shared libraries
21274 # on systems that don't support them.
21275 lt_prog_compiler_can_build_shared_F77=no
21276 enable_shared=no
21277 ;;
21278
21279 sysv4*MP*)
21280 if test -d /usr/nec; then
21281 lt_prog_compiler_pic_F77=-Kconform_pic
21282 fi
21283 ;;
21284
21285 hpux*)
21286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21287 # not for PA HP-UX.
21288 case $host_cpu in
21289 hppa*64*|ia64*)
21290 # +Z the default
21291 ;;
21292 *)
21293 lt_prog_compiler_pic_F77='-fPIC'
21294 ;;
21295 esac
21296 ;;
21297
21298 *)
21299 lt_prog_compiler_pic_F77='-fPIC'
21300 ;;
21301 esac
21302 else
21303 # PORTME Check for flag to pass linker flags through the system compiler.
21304 case $host_os in
21305 aix*)
21306 lt_prog_compiler_wl_F77='-Wl,'
21307 if test "$host_cpu" = ia64; then
21308 # AIX 5 now supports IA64 processor
21309 lt_prog_compiler_static_F77='-Bstatic'
21310 else
21311 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21312 fi
21313 ;;
21314 darwin*)
21315 # PIC is the default on this platform
21316 # Common symbols not allowed in MH_DYLIB files
21317 case $cc_basename in
21318 xlc*)
21319 lt_prog_compiler_pic_F77='-qnocommon'
21320 lt_prog_compiler_wl_F77='-Wl,'
21321 ;;
21322 esac
21323 ;;
21324
21325 mingw* | pw32* | os2*)
21326 # This hack is so that the source file can tell whether it is being
21327 # built for inclusion in a dll (and should export symbols for example).
21328 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21329 ;;
21330
21331 hpux9* | hpux10* | hpux11*)
21332 lt_prog_compiler_wl_F77='-Wl,'
21333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21334 # not for PA HP-UX.
21335 case $host_cpu in
21336 hppa*64*|ia64*)
21337 # +Z the default
21338 ;;
21339 *)
21340 lt_prog_compiler_pic_F77='+Z'
21341 ;;
21342 esac
21343 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21344 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21345 ;;
21346
21347 irix5* | irix6* | nonstopux*)
21348 lt_prog_compiler_wl_F77='-Wl,'
21349 # PIC (with -KPIC) is the default.
21350 lt_prog_compiler_static_F77='-non_shared'
21351 ;;
21352
21353 newsos6)
21354 lt_prog_compiler_pic_F77='-KPIC'
21355 lt_prog_compiler_static_F77='-Bstatic'
21356 ;;
21357
21358 linux*)
21359 case $cc_basename in
21360 icc* | ecc*)
21361 lt_prog_compiler_wl_F77='-Wl,'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-static'
21364 ;;
21365 pgcc* | pgf77* | pgf90* | pgf95*)
21366 # Portland Group compilers (*not* the Pentium gcc compiler,
21367 # which looks to be a dead project)
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 lt_prog_compiler_pic_F77='-fpic'
21370 lt_prog_compiler_static_F77='-Bstatic'
21371 ;;
21372 ccc*)
21373 lt_prog_compiler_wl_F77='-Wl,'
21374 # All Alpha code is PIC.
21375 lt_prog_compiler_static_F77='-non_shared'
21376 ;;
21377 esac
21378 ;;
21379
21380 osf3* | osf4* | osf5*)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 # All OSF/1 code is PIC.
21383 lt_prog_compiler_static_F77='-non_shared'
21384 ;;
21385
21386 solaris*)
21387 lt_prog_compiler_pic_F77='-KPIC'
21388 lt_prog_compiler_static_F77='-Bstatic'
21389 case $cc_basename in
21390 f77* | f90* | f95*)
21391 lt_prog_compiler_wl_F77='-Qoption ld ';;
21392 *)
21393 lt_prog_compiler_wl_F77='-Wl,';;
21394 esac
21395 ;;
21396
21397 sunos4*)
21398 lt_prog_compiler_wl_F77='-Qoption ld '
21399 lt_prog_compiler_pic_F77='-PIC'
21400 lt_prog_compiler_static_F77='-Bstatic'
21401 ;;
21402
21403 sysv4 | sysv4.2uw2* | sysv4.3*)
21404 lt_prog_compiler_wl_F77='-Wl,'
21405 lt_prog_compiler_pic_F77='-KPIC'
21406 lt_prog_compiler_static_F77='-Bstatic'
21407 ;;
21408
21409 sysv4*MP*)
21410 if test -d /usr/nec ;then
21411 lt_prog_compiler_pic_F77='-Kconform_pic'
21412 lt_prog_compiler_static_F77='-Bstatic'
21413 fi
21414 ;;
21415
21416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21417 lt_prog_compiler_wl_F77='-Wl,'
21418 lt_prog_compiler_pic_F77='-KPIC'
21419 lt_prog_compiler_static_F77='-Bstatic'
21420 ;;
21421
21422 unicos*)
21423 lt_prog_compiler_wl_F77='-Wl,'
21424 lt_prog_compiler_can_build_shared_F77=no
21425 ;;
21426
21427 uts4*)
21428 lt_prog_compiler_pic_F77='-pic'
21429 lt_prog_compiler_static_F77='-Bstatic'
21430 ;;
21431
21432 *)
21433 lt_prog_compiler_can_build_shared_F77=no
21434 ;;
21435 esac
21436 fi
21437
21438{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21439echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21440
21441#
21442# Check to make sure the PIC flag actually works.
21443#
21444if test -n "$lt_prog_compiler_pic_F77"; then
21445
21446{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21447echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21448if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451 lt_prog_compiler_pic_works_F77=no
21452 ac_outfile=conftest.$ac_objext
21453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21454 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21455 # Insert the option either (1) after the last *FLAGS variable, or
21456 # (2) before a word containing "conftest.", or (3) at the end.
21457 # Note that $ac_compile itself does not contain backslashes and begins
21458 # with a dollar sign (not a hyphen), so the echo should work correctly.
21459 # The option is referenced via a variable to avoid confusing sed.
21460 lt_compile=`echo "$ac_compile" | $SED \
21461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21463 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000021464 (eval echo "\"\$as_me:21464: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021465 (eval "$lt_compile" 2>conftest.err)
21466 ac_status=$?
21467 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000021468 echo "$as_me:21468: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021469 if (exit $ac_status) && test -s "$ac_outfile"; then
21470 # The compiler can only warn and ignore the option if not recognized
21471 # So say no if there are warnings other than the usual output.
21472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21475 lt_prog_compiler_pic_works_F77=yes
21476 fi
21477 fi
21478 $rm conftest*
21479
21480fi
21481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21482echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21483
21484if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21485 case $lt_prog_compiler_pic_F77 in
21486 "" | " "*) ;;
21487 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21488 esac
21489else
21490 lt_prog_compiler_pic_F77=
21491 lt_prog_compiler_can_build_shared_F77=no
21492fi
21493
21494fi
21495case $host_os in
21496 # For platforms which do not support PIC, -DPIC is meaningless:
21497 *djgpp*)
21498 lt_prog_compiler_pic_F77=
21499 ;;
21500 *)
21501 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21502 ;;
21503esac
21504
21505#
21506# Check to make sure the static flag actually works.
21507#
21508wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21509{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21510echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21511if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513else
21514 lt_prog_compiler_static_works_F77=no
21515 save_LDFLAGS="$LDFLAGS"
21516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21517 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21519 # The linker can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 if test -s conftest.err; then
21522 # Append any errors to the config.log.
21523 cat conftest.err 1>&5
21524 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21526 if diff conftest.exp conftest.er2 >/dev/null; then
21527 lt_prog_compiler_static_works_F77=yes
21528 fi
21529 else
21530 lt_prog_compiler_static_works_F77=yes
21531 fi
21532 fi
21533 $rm conftest*
21534 LDFLAGS="$save_LDFLAGS"
21535
21536fi
21537{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21538echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21539
21540if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21541 :
21542else
21543 lt_prog_compiler_static_F77=
21544fi
21545
21546
21547{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21549if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551else
21552 lt_cv_prog_compiler_c_o_F77=no
21553 $rm -r conftest 2>/dev/null
21554 mkdir conftest
21555 cd conftest
21556 mkdir out
21557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558
21559 lt_compiler_flag="-o out/conftest2.$ac_objext"
21560 # Insert the option either (1) after the last *FLAGS variable, or
21561 # (2) before a word containing "conftest.", or (3) at the end.
21562 # Note that $ac_compile itself does not contain backslashes and begins
21563 # with a dollar sign (not a hyphen), so the echo should work correctly.
21564 lt_compile=`echo "$ac_compile" | $SED \
21565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000021568 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021569 (eval "$lt_compile" 2>out/conftest.err)
21570 ac_status=$?
21571 cat out/conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000021572 echo "$as_me:21572: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21574 then
21575 # The compiler can only warn and ignore the option if not recognized
21576 # So say no if there are warnings
21577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21580 lt_cv_prog_compiler_c_o_F77=yes
21581 fi
21582 fi
21583 chmod u+w . 2>&5
21584 $rm conftest*
21585 # SGI C++ compiler will create directory out/ii_files/ for
21586 # template instantiation
21587 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21588 $rm out/* && rmdir out
21589 cd ..
21590 rmdir conftest
21591 $rm conftest*
21592
21593fi
21594{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21595echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21596
21597
21598hard_links="nottested"
21599if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21600 # do not overwrite the value of need_locks provided by the user
21601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21603 hard_links=yes
21604 $rm conftest*
21605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21606 touch conftest.a
21607 ln conftest.a conftest.b 2>&5 || hard_links=no
21608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21609 { echo "$as_me:$LINENO: result: $hard_links" >&5
21610echo "${ECHO_T}$hard_links" >&6; }
21611 if test "$hard_links" = no; then
21612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21614 need_locks=warn
21615 fi
21616else
21617 need_locks=no
21618fi
21619
21620{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21621echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21622
21623 runpath_var=
21624 allow_undefined_flag_F77=
21625 enable_shared_with_static_runtimes_F77=no
21626 archive_cmds_F77=
21627 archive_expsym_cmds_F77=
21628 old_archive_From_new_cmds_F77=
21629 old_archive_from_expsyms_cmds_F77=
21630 export_dynamic_flag_spec_F77=
21631 whole_archive_flag_spec_F77=
21632 thread_safe_flag_spec_F77=
21633 hardcode_libdir_flag_spec_F77=
21634 hardcode_libdir_flag_spec_ld_F77=
21635 hardcode_libdir_separator_F77=
21636 hardcode_direct_F77=no
21637 hardcode_minus_L_F77=no
21638 hardcode_shlibpath_var_F77=unsupported
21639 link_all_deplibs_F77=unknown
21640 hardcode_automatic_F77=no
21641 module_cmds_F77=
21642 module_expsym_cmds_F77=
21643 always_export_symbols_F77=no
21644 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21645 # include_expsyms should be a list of space-separated symbols to be *always*
21646 # included in the symbol list
21647 include_expsyms_F77=
21648 # exclude_expsyms can be an extended regexp of symbols to exclude
21649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21651 # as well as any symbol that contains `d'.
21652 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21654 # platforms (ab)use it in PIC code, but their linkers get confused if
21655 # the symbol is explicitly referenced. Since portable code cannot
21656 # rely on this symbol name, it's probably fine to never include it in
21657 # preloaded symbol tables.
21658 extract_expsyms_cmds=
21659 # Just being paranoid about ensuring that cc_basename is set.
21660 for cc_temp in $compiler""; do
21661 case $cc_temp in
21662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21664 \-*) ;;
21665 *) break;;
21666 esac
21667done
21668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21669
21670 case $host_os in
21671 cygwin* | mingw* | pw32*)
21672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21673 # When not using gcc, we currently assume that we are using
21674 # Microsoft Visual C++.
21675 if test "$GCC" != yes; then
21676 with_gnu_ld=no
21677 fi
21678 ;;
21679 interix*)
21680 # we just hope/assume this is gcc and not c89 (= MSVC++)
21681 with_gnu_ld=yes
21682 ;;
21683 openbsd*)
21684 with_gnu_ld=no
21685 ;;
21686 esac
21687
21688 ld_shlibs_F77=yes
21689 if test "$with_gnu_ld" = yes; then
21690 # If archive_cmds runs LD, not CC, wlarc should be empty
21691 wlarc='${wl}'
21692
21693 # Set some defaults for GNU ld with shared library support. These
21694 # are reset later if shared libraries are not supported. Putting them
21695 # here allows them to be overridden if necessary.
21696 runpath_var=LD_RUN_PATH
21697 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21698 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21699 # ancient GNU ld didn't support --whole-archive et. al.
21700 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21701 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21702 else
21703 whole_archive_flag_spec_F77=
21704 fi
21705 supports_anon_versioning=no
21706 case `$LD -v 2>/dev/null` in
21707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21710 *\ 2.11.*) ;; # other 2.11 versions
21711 *) supports_anon_versioning=yes ;;
21712 esac
21713
21714 # See if GNU ld supports shared libraries.
21715 case $host_os in
21716 aix3* | aix4* | aix5*)
21717 # On AIX/PPC, the GNU linker is very broken
21718 if test "$host_cpu" != ia64; then
21719 ld_shlibs_F77=no
21720 cat <<EOF 1>&2
21721
21722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21723*** to be unable to reliably create shared libraries on AIX.
21724*** Therefore, libtool is disabling shared libraries support. If you
21725*** really care for shared libraries, you may want to modify your PATH
21726*** so that a non-GNU linker is found, and then restart.
21727
21728EOF
21729 fi
21730 ;;
21731
21732 amigaos*)
21733 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)'
21734 hardcode_libdir_flag_spec_F77='-L$libdir'
21735 hardcode_minus_L_F77=yes
21736
21737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21738 # that the semantics of dynamic libraries on AmigaOS, at least up
21739 # to version 4, is to share data among multiple programs linked
21740 # with the same dynamic library. Since this doesn't match the
21741 # behavior of shared libraries on other platforms, we can't use
21742 # them.
21743 ld_shlibs_F77=no
21744 ;;
21745
21746 beos*)
21747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21748 allow_undefined_flag_F77=unsupported
21749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21750 # support --undefined. This deserves some investigation. FIXME
21751 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21752 else
21753 ld_shlibs_F77=no
21754 fi
21755 ;;
21756
21757 cygwin* | mingw* | pw32*)
21758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21759 # as there is no search path for DLLs.
21760 hardcode_libdir_flag_spec_F77='-L$libdir'
21761 allow_undefined_flag_F77=unsupported
21762 always_export_symbols_F77=no
21763 enable_shared_with_static_runtimes_F77=yes
21764 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21765
21766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21767 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21768 # If the export-symbols file already is a .def file (1st line
21769 # is EXPORTS), use it as is; otherwise, prepend...
21770 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21771 cp $export_symbols $output_objdir/$soname.def;
21772 else
21773 echo EXPORTS > $output_objdir/$soname.def;
21774 cat $export_symbols >> $output_objdir/$soname.def;
21775 fi~
21776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21777 else
21778 ld_shlibs_F77=no
21779 fi
21780 ;;
21781
21782 interix3*)
21783 hardcode_direct_F77=no
21784 hardcode_shlibpath_var_F77=no
21785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21786 export_dynamic_flag_spec_F77='${wl}-E'
21787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21788 # Instead, shared libraries are loaded at an image base (0x10000000 by
21789 # default) and relocated if they conflict, which is a slow very memory
21790 # consuming and fragmenting process. To avoid this, we pick a random,
21791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21793 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'
21794 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'
21795 ;;
21796
21797 linux*)
21798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21799 tmp_addflag=
21800 case $cc_basename,$host_cpu in
21801 pgcc*) # Portland Group C compiler
21802 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'
21803 tmp_addflag=' $pic_flag'
21804 ;;
21805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21806 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'
21807 tmp_addflag=' $pic_flag -Mnomain' ;;
21808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21809 tmp_addflag=' -i_dynamic' ;;
21810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21811 tmp_addflag=' -i_dynamic -nofor_main' ;;
21812 ifc* | ifort*) # Intel Fortran compiler
21813 tmp_addflag=' -nofor_main' ;;
21814 esac
21815 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21816
21817 if test $supports_anon_versioning = yes; then
21818 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21820 $echo "local: *; };" >> $output_objdir/$libname.ver~
21821 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21822 fi
21823 else
21824 ld_shlibs_F77=no
21825 fi
21826 ;;
21827
21828 netbsd*)
21829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21830 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21831 wlarc=
21832 else
21833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21835 fi
21836 ;;
21837
21838 solaris*)
21839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21840 ld_shlibs_F77=no
21841 cat <<EOF 1>&2
21842
21843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21844*** create shared libraries on Solaris systems. Therefore, libtool
21845*** is disabling shared libraries support. We urge you to upgrade GNU
21846*** binutils to release 2.9.1 or newer. Another option is to modify
21847*** your PATH or compiler configuration so that the native linker is
21848*** used, and then restart.
21849
21850EOF
21851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21853 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21854 else
21855 ld_shlibs_F77=no
21856 fi
21857 ;;
21858
21859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21860 case `$LD -v 2>&1` in
21861 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21862 ld_shlibs_F77=no
21863 cat <<_LT_EOF 1>&2
21864
21865*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21866*** reliably create shared libraries on SCO systems. Therefore, libtool
21867*** is disabling shared libraries support. We urge you to upgrade GNU
21868*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21869*** your PATH or compiler configuration so that the native linker is
21870*** used, and then restart.
21871
21872_LT_EOF
21873 ;;
21874 *)
21875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21876 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21879 else
21880 ld_shlibs_F77=no
21881 fi
21882 ;;
21883 esac
21884 ;;
21885
21886 sunos4*)
21887 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21888 wlarc=
21889 hardcode_direct_F77=yes
21890 hardcode_shlibpath_var_F77=no
21891 ;;
21892
21893 *)
21894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21897 else
21898 ld_shlibs_F77=no
21899 fi
21900 ;;
21901 esac
21902
21903 if test "$ld_shlibs_F77" = no; then
21904 runpath_var=
21905 hardcode_libdir_flag_spec_F77=
21906 export_dynamic_flag_spec_F77=
21907 whole_archive_flag_spec_F77=
21908 fi
21909 else
21910 # PORTME fill in a description of your system's linker (not GNU ld)
21911 case $host_os in
21912 aix3*)
21913 allow_undefined_flag_F77=unsupported
21914 always_export_symbols_F77=yes
21915 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'
21916 # Note: this linker hardcodes the directories in LIBPATH if there
21917 # are no directories specified by -L.
21918 hardcode_minus_L_F77=yes
21919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21920 # Neither direct hardcoding nor static linking is supported with a
21921 # broken collect2.
21922 hardcode_direct_F77=unsupported
21923 fi
21924 ;;
21925
21926 aix4* | aix5*)
21927 if test "$host_cpu" = ia64; then
21928 # On IA64, the linker does run time linking by default, so we don't
21929 # have to do anything special.
21930 aix_use_runtimelinking=no
21931 exp_sym_flag='-Bexport'
21932 no_entry_flag=""
21933 else
21934 # If we're using GNU nm, then we don't want the "-C" option.
21935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21937 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'
21938 else
21939 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'
21940 fi
21941 aix_use_runtimelinking=no
21942
21943 # Test if we are trying to use run time linking or normal
21944 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21945 # need to do runtime linking.
21946 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21947 for ld_flag in $LDFLAGS; do
21948 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21949 aix_use_runtimelinking=yes
21950 break
21951 fi
21952 done
21953 ;;
21954 esac
21955
21956 exp_sym_flag='-bexport'
21957 no_entry_flag='-bnoentry'
21958 fi
21959
21960 # When large executables or shared objects are built, AIX ld can
21961 # have problems creating the table of contents. If linking a library
21962 # or program results in "error TOC overflow" add -mminimal-toc to
21963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21965
21966 archive_cmds_F77=''
21967 hardcode_direct_F77=yes
21968 hardcode_libdir_separator_F77=':'
21969 link_all_deplibs_F77=yes
21970
21971 if test "$GCC" = yes; then
21972 case $host_os in aix4.[012]|aix4.[012].*)
21973 # We only want to do this on AIX 4.2 and lower, the check
21974 # below for broken collect2 doesn't work under 4.3+
21975 collect2name=`${CC} -print-prog-name=collect2`
21976 if test -f "$collect2name" && \
21977 strings "$collect2name" | grep resolve_lib_name >/dev/null
21978 then
21979 # We have reworked collect2
21980 hardcode_direct_F77=yes
21981 else
21982 # We have old collect2
21983 hardcode_direct_F77=unsupported
21984 # It fails to find uninstalled libraries when the uninstalled
21985 # path is not listed in the libpath. Setting hardcode_minus_L
21986 # to unsupported forces relinking
21987 hardcode_minus_L_F77=yes
21988 hardcode_libdir_flag_spec_F77='-L$libdir'
21989 hardcode_libdir_separator_F77=
21990 fi
21991 ;;
21992 esac
21993 shared_flag='-shared'
21994 if test "$aix_use_runtimelinking" = yes; then
21995 shared_flag="$shared_flag "'${wl}-G'
21996 fi
21997 else
21998 # not using gcc
21999 if test "$host_cpu" = ia64; then
22000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22001 # chokes on -Wl,-G. The following line is correct:
22002 shared_flag='-G'
22003 else
22004 if test "$aix_use_runtimelinking" = yes; then
22005 shared_flag='${wl}-G'
22006 else
22007 shared_flag='${wl}-bM:SRE'
22008 fi
22009 fi
22010 fi
22011
22012 # It seems that -bexpall does not export symbols beginning with
22013 # underscore (_), so it is better to generate a list of symbols to export.
22014 always_export_symbols_F77=yes
22015 if test "$aix_use_runtimelinking" = yes; then
22016 # Warning - without using the other runtime loading flags (-brtl),
22017 # -berok will link without error, but may produce a broken library.
22018 allow_undefined_flag_F77='-berok'
22019 # Determine the default libpath from the value encoded in an empty executable.
22020 cat >conftest.$ac_ext <<_ACEOF
22021 program main
22022
22023 end
22024_ACEOF
22025rm -f conftest.$ac_objext conftest$ac_exeext
22026if { (ac_try="$ac_link"
22027case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030esac
22031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_link") 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22040 { (case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043esac
22044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_try") 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest$ac_exeext'
22050 { (case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22053esac
22054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_try") 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022059
22060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22061}'`
22062# Check for a 64-bit object if we didn't find anything.
22063if 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; }
22064}'`; fi
22065else
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069
22070fi
22071
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022072rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022073 conftest$ac_exeext conftest.$ac_ext
22074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22075
22076 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22077 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"
22078 else
22079 if test "$host_cpu" = ia64; then
22080 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22081 allow_undefined_flag_F77="-z nodefs"
22082 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"
22083 else
22084 # Determine the default libpath from the value encoded in an empty executable.
22085 cat >conftest.$ac_ext <<_ACEOF
22086 program main
22087
22088 end
22089_ACEOF
22090rm -f conftest.$ac_objext conftest$ac_exeext
22091if { (ac_try="$ac_link"
22092case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22095esac
22096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_link") 2>conftest.er1
22098 ac_status=$?
22099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022103 (exit $ac_status); } &&
22104 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22105 { (case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108esac
22109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_try") 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest$ac_exeext'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118esac
22119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022124
22125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22126}'`
22127# Check for a 64-bit object if we didn't find anything.
22128if 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; }
22129}'`; fi
22130else
22131 echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134
22135fi
22136
Tanya Lattner3fa4a442009-01-22 05:17:59 +000022137rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022138 conftest$ac_exeext conftest.$ac_ext
22139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22140
22141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22142 # Warning - without using the other run time loading flags,
22143 # -berok will link without error, but may produce a broken library.
22144 no_undefined_flag_F77=' ${wl}-bernotok'
22145 allow_undefined_flag_F77=' ${wl}-berok'
22146 # Exported symbols can be pulled into shared objects from archives
22147 whole_archive_flag_spec_F77='$convenience'
22148 archive_cmds_need_lc_F77=yes
22149 # This is similar to how AIX traditionally builds its shared libraries.
22150 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'
22151 fi
22152 fi
22153 ;;
22154
22155 amigaos*)
22156 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)'
22157 hardcode_libdir_flag_spec_F77='-L$libdir'
22158 hardcode_minus_L_F77=yes
22159 # see comment about different semantics on the GNU ld section
22160 ld_shlibs_F77=no
22161 ;;
22162
22163 bsdi[45]*)
22164 export_dynamic_flag_spec_F77=-rdynamic
22165 ;;
22166
22167 cygwin* | mingw* | pw32*)
22168 # When not using gcc, we currently assume that we are using
22169 # Microsoft Visual C++.
22170 # hardcode_libdir_flag_spec is actually meaningless, as there is
22171 # no search path for DLLs.
22172 hardcode_libdir_flag_spec_F77=' '
22173 allow_undefined_flag_F77=unsupported
22174 # Tell ltmain to make .lib files, not .a files.
22175 libext=lib
22176 # Tell ltmain to make .dll files, not .so files.
22177 shrext_cmds=".dll"
22178 # FIXME: Setting linknames here is a bad hack.
22179 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22180 # The linker will automatically build a .lib file if we build a DLL.
22181 old_archive_From_new_cmds_F77='true'
22182 # FIXME: Should let the user specify the lib program.
22183 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22184 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22185 enable_shared_with_static_runtimes_F77=yes
22186 ;;
22187
22188 darwin* | rhapsody*)
22189 case $host_os in
22190 rhapsody* | darwin1.[012])
22191 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22192 ;;
22193 *) # Darwin 1.3 on
22194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22196 else
22197 case ${MACOSX_DEPLOYMENT_TARGET} in
22198 10.[012])
22199 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22200 ;;
22201 10.*)
22202 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22203 ;;
22204 esac
22205 fi
22206 ;;
22207 esac
22208 archive_cmds_need_lc_F77=no
22209 hardcode_direct_F77=no
22210 hardcode_automatic_F77=yes
22211 hardcode_shlibpath_var_F77=unsupported
22212 whole_archive_flag_spec_F77=''
22213 link_all_deplibs_F77=yes
22214 if test "$GCC" = yes ; then
22215 output_verbose_link_cmd='echo'
22216 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22217 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22219 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}'
22220 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}'
22221 else
22222 case $cc_basename in
22223 xlc*)
22224 output_verbose_link_cmd='echo'
22225 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22226 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22228 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}'
22229 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}'
22230 ;;
22231 *)
22232 ld_shlibs_F77=no
22233 ;;
22234 esac
22235 fi
22236 ;;
22237
22238 dgux*)
22239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_libdir_flag_spec_F77='-L$libdir'
22241 hardcode_shlibpath_var_F77=no
22242 ;;
22243
22244 freebsd1*)
22245 ld_shlibs_F77=no
22246 ;;
22247
22248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22249 # support. Future versions do this automatically, but an explicit c++rt0.o
22250 # does not break anything, and helps significantly (at the cost of a little
22251 # extra space).
22252 freebsd2.2*)
22253 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22254 hardcode_libdir_flag_spec_F77='-R$libdir'
22255 hardcode_direct_F77=yes
22256 hardcode_shlibpath_var_F77=no
22257 ;;
22258
22259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22260 freebsd2*)
22261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22262 hardcode_direct_F77=yes
22263 hardcode_minus_L_F77=yes
22264 hardcode_shlibpath_var_F77=no
22265 ;;
22266
22267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22268 freebsd* | kfreebsd*-gnu | dragonfly*)
22269 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22270 hardcode_libdir_flag_spec_F77='-R$libdir'
22271 hardcode_direct_F77=yes
22272 hardcode_shlibpath_var_F77=no
22273 ;;
22274
22275 hpux9*)
22276 if test "$GCC" = yes; then
22277 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'
22278 else
22279 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'
22280 fi
22281 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282 hardcode_libdir_separator_F77=:
22283 hardcode_direct_F77=yes
22284
22285 # hardcode_minus_L: Not really in the search PATH,
22286 # but as the default location of the library.
22287 hardcode_minus_L_F77=yes
22288 export_dynamic_flag_spec_F77='${wl}-E'
22289 ;;
22290
22291 hpux10*)
22292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22293 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22294 else
22295 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22296 fi
22297 if test "$with_gnu_ld" = no; then
22298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299 hardcode_libdir_separator_F77=:
22300
22301 hardcode_direct_F77=yes
22302 export_dynamic_flag_spec_F77='${wl}-E'
22303
22304 # hardcode_minus_L: Not really in the search PATH,
22305 # but as the default location of the library.
22306 hardcode_minus_L_F77=yes
22307 fi
22308 ;;
22309
22310 hpux11*)
22311 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22312 case $host_cpu in
22313 hppa*64*)
22314 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22315 ;;
22316 ia64*)
22317 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22318 ;;
22319 *)
22320 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22321 ;;
22322 esac
22323 else
22324 case $host_cpu in
22325 hppa*64*)
22326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327 ;;
22328 ia64*)
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22330 ;;
22331 *)
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22333 ;;
22334 esac
22335 fi
22336 if test "$with_gnu_ld" = no; then
22337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22338 hardcode_libdir_separator_F77=:
22339
22340 case $host_cpu in
22341 hppa*64*|ia64*)
22342 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22343 hardcode_direct_F77=no
22344 hardcode_shlibpath_var_F77=no
22345 ;;
22346 *)
22347 hardcode_direct_F77=yes
22348 export_dynamic_flag_spec_F77='${wl}-E'
22349
22350 # hardcode_minus_L: Not really in the search PATH,
22351 # but as the default location of the library.
22352 hardcode_minus_L_F77=yes
22353 ;;
22354 esac
22355 fi
22356 ;;
22357
22358 irix5* | irix6* | nonstopux*)
22359 if test "$GCC" = yes; then
22360 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'
22361 else
22362 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'
22363 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22364 fi
22365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22366 hardcode_libdir_separator_F77=:
22367 link_all_deplibs_F77=yes
22368 ;;
22369
22370 netbsd*)
22371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22373 else
22374 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22375 fi
22376 hardcode_libdir_flag_spec_F77='-R$libdir'
22377 hardcode_direct_F77=yes
22378 hardcode_shlibpath_var_F77=no
22379 ;;
22380
22381 newsos6)
22382 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22383 hardcode_direct_F77=yes
22384 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22385 hardcode_libdir_separator_F77=:
22386 hardcode_shlibpath_var_F77=no
22387 ;;
22388
22389 openbsd*)
22390 hardcode_direct_F77=yes
22391 hardcode_shlibpath_var_F77=no
22392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22393 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22394 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22395 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22396 export_dynamic_flag_spec_F77='${wl}-E'
22397 else
22398 case $host_os in
22399 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22400 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_F77='-R$libdir'
22402 ;;
22403 *)
22404 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22406 ;;
22407 esac
22408 fi
22409 ;;
22410
22411 os2*)
22412 hardcode_libdir_flag_spec_F77='-L$libdir'
22413 hardcode_minus_L_F77=yes
22414 allow_undefined_flag_F77=unsupported
22415 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'
22416 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22417 ;;
22418
22419 osf3*)
22420 if test "$GCC" = yes; then
22421 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22422 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'
22423 else
22424 allow_undefined_flag_F77=' -expect_unresolved \*'
22425 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'
22426 fi
22427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22428 hardcode_libdir_separator_F77=:
22429 ;;
22430
22431 osf4* | osf5*) # as osf3* with the addition of -msym flag
22432 if test "$GCC" = yes; then
22433 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22434 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'
22435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436 else
22437 allow_undefined_flag_F77=' -expect_unresolved \*'
22438 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'
22439 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~
22440 $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'
22441
22442 # Both c and cxx compiler support -rpath directly
22443 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22444 fi
22445 hardcode_libdir_separator_F77=:
22446 ;;
22447
22448 solaris*)
22449 no_undefined_flag_F77=' -z text'
22450 if test "$GCC" = yes; then
22451 wlarc='${wl}'
22452 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22455 else
22456 wlarc=''
22457 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22458 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22460 fi
22461 hardcode_libdir_flag_spec_F77='-R$libdir'
22462 hardcode_shlibpath_var_F77=no
22463 case $host_os in
22464 solaris2.[0-5] | solaris2.[0-5].*) ;;
22465 *)
22466 # The compiler driver will combine linker options so we
22467 # cannot just pass the convience library names through
22468 # without $wl, iff we do not link with $LD.
22469 # Luckily, gcc supports the same syntax we need for Sun Studio.
22470 # Supported since Solaris 2.6 (maybe 2.5.1?)
22471 case $wlarc in
22472 '')
22473 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22474 *)
22475 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' ;;
22476 esac ;;
22477 esac
22478 link_all_deplibs_F77=yes
22479 ;;
22480
22481 sunos4*)
22482 if test "x$host_vendor" = xsequent; then
22483 # Use $CC to link under sequent, because it throws in some extra .o
22484 # files that make .init and .fini sections work.
22485 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22486 else
22487 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22488 fi
22489 hardcode_libdir_flag_spec_F77='-L$libdir'
22490 hardcode_direct_F77=yes
22491 hardcode_minus_L_F77=yes
22492 hardcode_shlibpath_var_F77=no
22493 ;;
22494
22495 sysv4)
22496 case $host_vendor in
22497 sni)
22498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22499 hardcode_direct_F77=yes # is this really true???
22500 ;;
22501 siemens)
22502 ## LD is ld it makes a PLAMLIB
22503 ## CC just makes a GrossModule.
22504 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22505 reload_cmds_F77='$CC -r -o $output$reload_objs'
22506 hardcode_direct_F77=no
22507 ;;
22508 motorola)
22509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22510 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22511 ;;
22512 esac
22513 runpath_var='LD_RUN_PATH'
22514 hardcode_shlibpath_var_F77=no
22515 ;;
22516
22517 sysv4.3*)
22518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22519 hardcode_shlibpath_var_F77=no
22520 export_dynamic_flag_spec_F77='-Bexport'
22521 ;;
22522
22523 sysv4*MP*)
22524 if test -d /usr/nec; then
22525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22526 hardcode_shlibpath_var_F77=no
22527 runpath_var=LD_RUN_PATH
22528 hardcode_runpath_var=yes
22529 ld_shlibs_F77=yes
22530 fi
22531 ;;
22532
22533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22534 no_undefined_flag_F77='${wl}-z,text'
22535 archive_cmds_need_lc_F77=no
22536 hardcode_shlibpath_var_F77=no
22537 runpath_var='LD_RUN_PATH'
22538
22539 if test "$GCC" = yes; then
22540 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542 else
22543 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22545 fi
22546 ;;
22547
22548 sysv5* | sco3.2v5* | sco5v6*)
22549 # Note: We can NOT use -z defs as we might desire, because we do not
22550 # link with -lc, and that would cause any symbols used from libc to
22551 # always be unresolved, which means just about no library would
22552 # ever link correctly. If we're not using GNU ld we use -z text
22553 # though, which does catch some bad symbols but isn't as heavy-handed
22554 # as -z defs.
22555 no_undefined_flag_F77='${wl}-z,text'
22556 allow_undefined_flag_F77='${wl}-z,nodefs'
22557 archive_cmds_need_lc_F77=no
22558 hardcode_shlibpath_var_F77=no
22559 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22560 hardcode_libdir_separator_F77=':'
22561 link_all_deplibs_F77=yes
22562 export_dynamic_flag_spec_F77='${wl}-Bexport'
22563 runpath_var='LD_RUN_PATH'
22564
22565 if test "$GCC" = yes; then
22566 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568 else
22569 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571 fi
22572 ;;
22573
22574 uts4*)
22575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22576 hardcode_libdir_flag_spec_F77='-L$libdir'
22577 hardcode_shlibpath_var_F77=no
22578 ;;
22579
22580 *)
22581 ld_shlibs_F77=no
22582 ;;
22583 esac
22584 fi
22585
22586{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22587echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22588test "$ld_shlibs_F77" = no && can_build_shared=no
22589
22590#
22591# Do we need to explicitly link libc?
22592#
22593case "x$archive_cmds_need_lc_F77" in
22594x|xyes)
22595 # Assume -lc should be added
22596 archive_cmds_need_lc_F77=yes
22597
22598 if test "$enable_shared" = yes && test "$GCC" = yes; then
22599 case $archive_cmds_F77 in
22600 *'~'*)
22601 # FIXME: we may have to deal with multi-command sequences.
22602 ;;
22603 '$CC '*)
22604 # Test whether the compiler implicitly links with -lc since on some
22605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22606 # to ld, don't add -lc before -lgcc.
22607 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22609 $rm conftest*
22610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22611
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } 2>conftest.err; then
22617 soname=conftest
22618 lib=conftest
22619 libobjs=conftest.$ac_objext
22620 deplibs=
22621 wl=$lt_prog_compiler_wl_F77
22622 pic_flag=$lt_prog_compiler_pic_F77
22623 compiler_flags=-v
22624 linker_flags=-v
22625 verstring=
22626 output_objdir=.
22627 libname=conftest
22628 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22629 allow_undefined_flag_F77=
22630 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22631 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }
22635 then
22636 archive_cmds_need_lc_F77=no
22637 else
22638 archive_cmds_need_lc_F77=yes
22639 fi
22640 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22641 else
22642 cat conftest.err 1>&5
22643 fi
22644 $rm conftest*
22645 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22646echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22647 ;;
22648 esac
22649 fi
22650 ;;
22651esac
22652
22653{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22654echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22655library_names_spec=
22656libname_spec='lib$name'
22657soname_spec=
22658shrext_cmds=".so"
22659postinstall_cmds=
22660postuninstall_cmds=
22661finish_cmds=
22662finish_eval=
22663shlibpath_var=
22664shlibpath_overrides_runpath=unknown
22665version_type=none
22666dynamic_linker="$host_os ld.so"
22667sys_lib_dlsearch_path_spec="/lib /usr/lib"
22668if test "$GCC" = yes; then
22669 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22670 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22671 # if the path contains ";" then we assume it to be the separator
22672 # otherwise default to the standard path separator (i.e. ":") - it is
22673 # assumed that no part of a normal pathname contains ";" but that should
22674 # okay in the real world where ";" in dirpaths is itself problematic.
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22676 else
22677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22678 fi
22679else
22680 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22681fi
22682need_lib_prefix=unknown
22683hardcode_into_libs=no
22684
22685# when you set need_version to no, make sure it does not cause -set_version
22686# flags to be left without arguments
22687need_version=unknown
22688
22689case $host_os in
22690aix3*)
22691 version_type=linux
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22693 shlibpath_var=LIBPATH
22694
22695 # AIX 3 has no versioning support, so we append a major version to the name.
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 ;;
22698
22699aix4* | aix5*)
22700 version_type=linux
22701 need_lib_prefix=no
22702 need_version=no
22703 hardcode_into_libs=yes
22704 if test "$host_cpu" = ia64; then
22705 # AIX 5 supports IA64
22706 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 else
22709 # With GCC up to 2.95.x, collect2 would create an import file
22710 # for dependence libraries. The import file would start with
22711 # the line `#! .'. This would cause the generated library to
22712 # depend on `.', always an invalid library. This was fixed in
22713 # development snapshots of GCC prior to 3.0.
22714 case $host_os in
22715 aix4 | aix4.[01] | aix4.[01].*)
22716 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22717 echo ' yes '
22718 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22719 :
22720 else
22721 can_build_shared=no
22722 fi
22723 ;;
22724 esac
22725 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22726 # soname into executable. Probably we can add versioning support to
22727 # collect2, so additional links can be useful in future.
22728 if test "$aix_use_runtimelinking" = yes; then
22729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22730 # instead of lib<name>.a to let people know that these are not
22731 # typical AIX shared libraries.
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 else
22734 # We preserve .a as extension for shared libraries through AIX4.2
22735 # and later when we are not doing run time linking.
22736 library_names_spec='${libname}${release}.a $libname.a'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 fi
22739 shlibpath_var=LIBPATH
22740 fi
22741 ;;
22742
22743amigaos*)
22744 library_names_spec='$libname.ixlibrary $libname.a'
22745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22746 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'
22747 ;;
22748
22749beos*)
22750 library_names_spec='${libname}${shared_ext}'
22751 dynamic_linker="$host_os ld.so"
22752 shlibpath_var=LIBRARY_PATH
22753 ;;
22754
22755bsdi[45]*)
22756 version_type=linux
22757 need_version=no
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22761 shlibpath_var=LD_LIBRARY_PATH
22762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22764 # the default ld.so.conf also contains /usr/contrib/lib and
22765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22766 # libtool to hard-code these into programs
22767 ;;
22768
22769cygwin* | mingw* | pw32*)
22770 version_type=windows
22771 shrext_cmds=".dll"
22772 need_version=no
22773 need_lib_prefix=no
22774
22775 case $GCC,$host_os in
22776 yes,cygwin* | yes,mingw* | yes,pw32*)
22777 library_names_spec='$libname.dll.a'
22778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22779 postinstall_cmds='base_file=`basename \${file}`~
22780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22781 dldir=$destdir/`dirname \$dlpath`~
22782 test -d \$dldir || mkdir -p \$dldir~
22783 $install_prog $dir/$dlname \$dldir/$dlname~
22784 chmod a+x \$dldir/$dlname'
22785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22786 dlpath=$dir/\$dldll~
22787 $rm \$dlpath'
22788 shlibpath_overrides_runpath=yes
22789
22790 case $host_os in
22791 cygwin*)
22792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22795 ;;
22796 mingw*)
22797 # MinGW DLLs use traditional 'lib' prefix
22798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22800 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22801 # It is most probably a Windows format PATH printed by
22802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22803 # path with ; separators, and with drive letters. We can handle the
22804 # drive letters (cygwin fileutils understands them), so leave them,
22805 # especially as we might pass files found there to a mingw objdump,
22806 # which wouldn't understand a cygwinified path. Ahh.
22807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22808 else
22809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22810 fi
22811 ;;
22812 pw32*)
22813 # pw32 DLLs use 'pw' prefix rather than 'lib'
22814 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22815 ;;
22816 esac
22817 ;;
22818
22819 *)
22820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22821 ;;
22822 esac
22823 dynamic_linker='Win32 ld.exe'
22824 # FIXME: first we should search . and the directory the executable is in
22825 shlibpath_var=PATH
22826 ;;
22827
22828darwin* | rhapsody*)
22829 dynamic_linker="$host_os dyld"
22830 version_type=darwin
22831 need_lib_prefix=no
22832 need_version=no
22833 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22834 soname_spec='${libname}${release}${major}$shared_ext'
22835 shlibpath_overrides_runpath=yes
22836 shlibpath_var=DYLD_LIBRARY_PATH
22837 shrext_cmds='.dylib'
22838 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22839 if test "$GCC" = yes; then
22840 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"`
22841 else
22842 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22843 fi
22844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22845 ;;
22846
22847dgux*)
22848 version_type=linux
22849 need_lib_prefix=no
22850 need_version=no
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22854 ;;
22855
22856freebsd1*)
22857 dynamic_linker=no
22858 ;;
22859
22860kfreebsd*-gnu)
22861 version_type=linux
22862 need_lib_prefix=no
22863 need_version=no
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 shlibpath_overrides_runpath=no
22868 hardcode_into_libs=yes
22869 dynamic_linker='GNU ld.so'
22870 ;;
22871
22872freebsd* | dragonfly*)
22873 # DragonFly does not have aout. When/if they implement a new
22874 # versioning mechanism, adjust this.
22875 if test -x /usr/bin/objformat; then
22876 objformat=`/usr/bin/objformat`
22877 else
22878 case $host_os in
22879 freebsd[123]*) objformat=aout ;;
22880 *) objformat=elf ;;
22881 esac
22882 fi
22883 version_type=freebsd-$objformat
22884 case $version_type in
22885 freebsd-elf*)
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22887 need_version=no
22888 need_lib_prefix=no
22889 ;;
22890 freebsd-*)
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22892 need_version=yes
22893 ;;
22894 esac
22895 shlibpath_var=LD_LIBRARY_PATH
22896 case $host_os in
22897 freebsd2*)
22898 shlibpath_overrides_runpath=yes
22899 ;;
22900 freebsd3.[01]* | freebsdelf3.[01]*)
22901 shlibpath_overrides_runpath=yes
22902 hardcode_into_libs=yes
22903 ;;
22904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22906 shlibpath_overrides_runpath=no
22907 hardcode_into_libs=yes
22908 ;;
22909 freebsd*) # from 4.6 on
22910 shlibpath_overrides_runpath=yes
22911 hardcode_into_libs=yes
22912 ;;
22913 esac
22914 ;;
22915
22916gnu*)
22917 version_type=linux
22918 need_lib_prefix=no
22919 need_version=no
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22921 soname_spec='${libname}${release}${shared_ext}$major'
22922 shlibpath_var=LD_LIBRARY_PATH
22923 hardcode_into_libs=yes
22924 ;;
22925
22926hpux9* | hpux10* | hpux11*)
22927 # Give a soname corresponding to the major version so that dld.sl refuses to
22928 # link against other versions.
22929 version_type=sunos
22930 need_lib_prefix=no
22931 need_version=no
22932 case $host_cpu in
22933 ia64*)
22934 shrext_cmds='.so'
22935 hardcode_into_libs=yes
22936 dynamic_linker="$host_os dld.so"
22937 shlibpath_var=LD_LIBRARY_PATH
22938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 if test "X$HPUX_IA64_MODE" = X32; then
22942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22943 else
22944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22945 fi
22946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22947 ;;
22948 hppa*64*)
22949 shrext_cmds='.sl'
22950 hardcode_into_libs=yes
22951 dynamic_linker="$host_os dld.sl"
22952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955 soname_spec='${libname}${release}${shared_ext}$major'
22956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22958 ;;
22959 *)
22960 shrext_cmds='.sl'
22961 dynamic_linker="$host_os dld.sl"
22962 shlibpath_var=SHLIB_PATH
22963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 ;;
22967 esac
22968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22969 postinstall_cmds='chmod 555 $lib'
22970 ;;
22971
22972interix3*)
22973 version_type=linux
22974 need_lib_prefix=no
22975 need_version=no
22976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22977 soname_spec='${libname}${release}${shared_ext}$major'
22978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22979 shlibpath_var=LD_LIBRARY_PATH
22980 shlibpath_overrides_runpath=no
22981 hardcode_into_libs=yes
22982 ;;
22983
22984irix5* | irix6* | nonstopux*)
22985 case $host_os in
22986 nonstopux*) version_type=nonstopux ;;
22987 *)
22988 if test "$lt_cv_prog_gnu_ld" = yes; then
22989 version_type=linux
22990 else
22991 version_type=irix
22992 fi ;;
22993 esac
22994 need_lib_prefix=no
22995 need_version=no
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22998 case $host_os in
22999 irix5* | nonstopux*)
23000 libsuff= shlibsuff=
23001 ;;
23002 *)
23003 case $LD in # libtool.m4 will add one of these switches to LD
23004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23005 libsuff= shlibsuff= libmagic=32-bit;;
23006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23007 libsuff=32 shlibsuff=N32 libmagic=N32;;
23008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23010 *) libsuff= shlibsuff= libmagic=never-match;;
23011 esac
23012 ;;
23013 esac
23014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23015 shlibpath_overrides_runpath=no
23016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23018 hardcode_into_libs=yes
23019 ;;
23020
23021# No shared lib support for Linux oldld, aout, or coff.
23022linux*oldld* | linux*aout* | linux*coff*)
23023 dynamic_linker=no
23024 ;;
23025
23026# This must be Linux ELF.
23027linux*)
23028 version_type=linux
23029 need_lib_prefix=no
23030 need_version=no
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=no
23036 # This implies no fast_install, which is unacceptable.
23037 # Some rework will be needed to allow for fast_install
23038 # before this can be enabled.
23039 hardcode_into_libs=yes
23040
23041 # Append ld.so.conf contents to the search path
23042 if test -f /etc/ld.so.conf; then
23043 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' ' '`
23044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23045 fi
23046
23047 # We used to test for /lib/ld.so.1 and disable shared libraries on
23048 # powerpc, because MkLinux only supported shared libraries with the
23049 # GNU dynamic linker. Since this was broken with cross compilers,
23050 # most powerpc-linux boxes support dynamic linking these days and
23051 # people can always --disable-shared, the test was removed, and we
23052 # assume the GNU/Linux dynamic linker is in use.
23053 dynamic_linker='GNU/Linux ld.so'
23054 ;;
23055
23056knetbsd*-gnu)
23057 version_type=linux
23058 need_lib_prefix=no
23059 need_version=no
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23061 soname_spec='${libname}${release}${shared_ext}$major'
23062 shlibpath_var=LD_LIBRARY_PATH
23063 shlibpath_overrides_runpath=no
23064 hardcode_into_libs=yes
23065 dynamic_linker='GNU ld.so'
23066 ;;
23067
23068netbsd*)
23069 version_type=sunos
23070 need_lib_prefix=no
23071 need_version=no
23072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075 dynamic_linker='NetBSD (a.out) ld.so'
23076 else
23077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23078 soname_spec='${libname}${release}${shared_ext}$major'
23079 dynamic_linker='NetBSD ld.elf_so'
23080 fi
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes
23083 hardcode_into_libs=yes
23084 ;;
23085
23086newsos6)
23087 version_type=linux
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 shlibpath_overrides_runpath=yes
23091 ;;
23092
23093nto-qnx*)
23094 version_type=linux
23095 need_lib_prefix=no
23096 need_version=no
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 shlibpath_overrides_runpath=yes
23101 ;;
23102
23103openbsd*)
23104 version_type=sunos
23105 sys_lib_dlsearch_path_spec="/usr/lib"
23106 need_lib_prefix=no
23107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23108 case $host_os in
23109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23110 *) need_version=no ;;
23111 esac
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23116 case $host_os in
23117 openbsd2.[89] | openbsd2.[89].*)
23118 shlibpath_overrides_runpath=no
23119 ;;
23120 *)
23121 shlibpath_overrides_runpath=yes
23122 ;;
23123 esac
23124 else
23125 shlibpath_overrides_runpath=yes
23126 fi
23127 ;;
23128
23129os2*)
23130 libname_spec='$name'
23131 shrext_cmds=".dll"
23132 need_lib_prefix=no
23133 library_names_spec='$libname${shared_ext} $libname.a'
23134 dynamic_linker='OS/2 ld.exe'
23135 shlibpath_var=LIBPATH
23136 ;;
23137
23138osf3* | osf4* | osf5*)
23139 version_type=osf
23140 need_lib_prefix=no
23141 need_version=no
23142 soname_spec='${libname}${release}${shared_ext}$major'
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 shlibpath_var=LD_LIBRARY_PATH
23145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23147 ;;
23148
23149solaris*)
23150 version_type=linux
23151 need_lib_prefix=no
23152 need_version=no
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 shlibpath_var=LD_LIBRARY_PATH
23156 shlibpath_overrides_runpath=yes
23157 hardcode_into_libs=yes
23158 # ldd complains unless libraries are executable
23159 postinstall_cmds='chmod +x $lib'
23160 ;;
23161
23162sunos4*)
23163 version_type=sunos
23164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23166 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes
23168 if test "$with_gnu_ld" = yes; then
23169 need_lib_prefix=no
23170 fi
23171 need_version=yes
23172 ;;
23173
23174sysv4 | sysv4.3*)
23175 version_type=linux
23176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 case $host_vendor in
23180 sni)
23181 shlibpath_overrides_runpath=no
23182 need_lib_prefix=no
23183 export_dynamic_flag_spec='${wl}-Blargedynsym'
23184 runpath_var=LD_RUN_PATH
23185 ;;
23186 siemens)
23187 need_lib_prefix=no
23188 ;;
23189 motorola)
23190 need_lib_prefix=no
23191 need_version=no
23192 shlibpath_overrides_runpath=no
23193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23194 ;;
23195 esac
23196 ;;
23197
23198sysv4*MP*)
23199 if test -d /usr/nec ;then
23200 version_type=linux
23201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23202 soname_spec='$libname${shared_ext}.$major'
23203 shlibpath_var=LD_LIBRARY_PATH
23204 fi
23205 ;;
23206
23207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23208 version_type=freebsd-elf
23209 need_lib_prefix=no
23210 need_version=no
23211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23212 soname_spec='${libname}${release}${shared_ext}$major'
23213 shlibpath_var=LD_LIBRARY_PATH
23214 hardcode_into_libs=yes
23215 if test "$with_gnu_ld" = yes; then
23216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23217 shlibpath_overrides_runpath=no
23218 else
23219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23220 shlibpath_overrides_runpath=yes
23221 case $host_os in
23222 sco3.2v5*)
23223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23224 ;;
23225 esac
23226 fi
23227 sys_lib_dlsearch_path_spec='/usr/lib'
23228 ;;
23229
23230uts4*)
23231 version_type=linux
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233 soname_spec='${libname}${release}${shared_ext}$major'
23234 shlibpath_var=LD_LIBRARY_PATH
23235 ;;
23236
23237*)
23238 dynamic_linker=no
23239 ;;
23240esac
23241{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23242echo "${ECHO_T}$dynamic_linker" >&6; }
23243test "$dynamic_linker" = no && can_build_shared=no
23244
23245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23246if test "$GCC" = yes; then
23247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23248fi
23249
23250{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23252hardcode_action_F77=
23253if test -n "$hardcode_libdir_flag_spec_F77" || \
23254 test -n "$runpath_var_F77" || \
23255 test "X$hardcode_automatic_F77" = "Xyes" ; then
23256
23257 # We can hardcode non-existant directories.
23258 if test "$hardcode_direct_F77" != no &&
23259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23260 # have to relink, otherwise we might link with an installed library
23261 # when we should be linking with a yet-to-be-installed one
23262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23263 test "$hardcode_minus_L_F77" != no; then
23264 # Linking always hardcodes the temporary library directory.
23265 hardcode_action_F77=relink
23266 else
23267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23268 hardcode_action_F77=immediate
23269 fi
23270else
23271 # We cannot hardcode anything, or else we can only hardcode existing
23272 # directories.
23273 hardcode_action_F77=unsupported
23274fi
23275{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23276echo "${ECHO_T}$hardcode_action_F77" >&6; }
23277
23278if test "$hardcode_action_F77" = relink; then
23279 # Fast installation is not supported
23280 enable_fast_install=no
23281elif test "$shlibpath_overrides_runpath" = yes ||
23282 test "$enable_shared" = no; then
23283 # Fast installation is not necessary
23284 enable_fast_install=needless
23285fi
23286
23287
23288# The else clause should only fire when bootstrapping the
23289# libtool distribution, otherwise you forgot to ship ltmain.sh
23290# with your package, and you will get complaints that there are
23291# no rules to generate ltmain.sh.
23292if test -f "$ltmain"; then
23293 # See if we are running on zsh, and set the options which allow our commands through
23294 # without removal of \ escapes.
23295 if test -n "${ZSH_VERSION+set}" ; then
23296 setopt NO_GLOB_SUBST
23297 fi
23298 # Now quote all the things that may contain metacharacters while being
23299 # careful not to overquote the AC_SUBSTed values. We take copies of the
23300 # variables and quote the copies for generation of the libtool script.
23301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23302 SED SHELL STRIP \
23303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23305 deplibs_check_method reload_flag reload_cmds need_locks \
23306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23307 lt_cv_sys_global_symbol_to_c_name_address \
23308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23309 old_postinstall_cmds old_postuninstall_cmds \
23310 compiler_F77 \
23311 CC_F77 \
23312 LD_F77 \
23313 lt_prog_compiler_wl_F77 \
23314 lt_prog_compiler_pic_F77 \
23315 lt_prog_compiler_static_F77 \
23316 lt_prog_compiler_no_builtin_flag_F77 \
23317 export_dynamic_flag_spec_F77 \
23318 thread_safe_flag_spec_F77 \
23319 whole_archive_flag_spec_F77 \
23320 enable_shared_with_static_runtimes_F77 \
23321 old_archive_cmds_F77 \
23322 old_archive_from_new_cmds_F77 \
23323 predep_objects_F77 \
23324 postdep_objects_F77 \
23325 predeps_F77 \
23326 postdeps_F77 \
23327 compiler_lib_search_path_F77 \
23328 archive_cmds_F77 \
23329 archive_expsym_cmds_F77 \
23330 postinstall_cmds_F77 \
23331 postuninstall_cmds_F77 \
23332 old_archive_from_expsyms_cmds_F77 \
23333 allow_undefined_flag_F77 \
23334 no_undefined_flag_F77 \
23335 export_symbols_cmds_F77 \
23336 hardcode_libdir_flag_spec_F77 \
23337 hardcode_libdir_flag_spec_ld_F77 \
23338 hardcode_libdir_separator_F77 \
23339 hardcode_automatic_F77 \
23340 module_cmds_F77 \
23341 module_expsym_cmds_F77 \
23342 lt_cv_prog_compiler_c_o_F77 \
23343 exclude_expsyms_F77 \
23344 include_expsyms_F77; do
23345
23346 case $var in
23347 old_archive_cmds_F77 | \
23348 old_archive_from_new_cmds_F77 | \
23349 archive_cmds_F77 | \
23350 archive_expsym_cmds_F77 | \
23351 module_cmds_F77 | \
23352 module_expsym_cmds_F77 | \
23353 old_archive_from_expsyms_cmds_F77 | \
23354 export_symbols_cmds_F77 | \
23355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23356 postinstall_cmds | postuninstall_cmds | \
23357 old_postinstall_cmds | old_postuninstall_cmds | \
23358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23359 # Double-quote double-evaled strings.
23360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23361 ;;
23362 *)
23363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23364 ;;
23365 esac
23366 done
23367
23368 case $lt_echo in
23369 *'\$0 --fallback-echo"')
23370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23371 ;;
23372 esac
23373
23374cfgfile="$ofile"
23375
23376 cat <<__EOF__ >> "$cfgfile"
23377# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23378
23379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23380
23381# Shell to use when invoking shell scripts.
23382SHELL=$lt_SHELL
23383
23384# Whether or not to build shared libraries.
23385build_libtool_libs=$enable_shared
23386
23387# Whether or not to build static libraries.
23388build_old_libs=$enable_static
23389
23390# Whether or not to add -lc for building shared libraries.
23391build_libtool_need_lc=$archive_cmds_need_lc_F77
23392
23393# Whether or not to disallow shared libs when runtime libs are static
23394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23395
23396# Whether or not to optimize for fast installation.
23397fast_install=$enable_fast_install
23398
23399# The host system.
23400host_alias=$host_alias
23401host=$host
23402host_os=$host_os
23403
23404# The build system.
23405build_alias=$build_alias
23406build=$build
23407build_os=$build_os
23408
23409# An echo program that does not interpret backslashes.
23410echo=$lt_echo
23411
23412# The archiver.
23413AR=$lt_AR
23414AR_FLAGS=$lt_AR_FLAGS
23415
23416# A C compiler.
23417LTCC=$lt_LTCC
23418
23419# LTCC compiler flags.
23420LTCFLAGS=$lt_LTCFLAGS
23421
23422# A language-specific compiler.
23423CC=$lt_compiler_F77
23424
23425# Is the compiler the GNU C compiler?
23426with_gcc=$GCC_F77
23427
23428# An ERE matcher.
23429EGREP=$lt_EGREP
23430
23431# The linker used to build libraries.
23432LD=$lt_LD_F77
23433
23434# Whether we need hard or soft links.
23435LN_S=$lt_LN_S
23436
23437# A BSD-compatible nm program.
23438NM=$lt_NM
23439
23440# A symbol stripping program
23441STRIP=$lt_STRIP
23442
23443# Used to examine libraries when file_magic_cmd begins "file"
23444MAGIC_CMD=$MAGIC_CMD
23445
23446# Used on cygwin: DLL creation program.
23447DLLTOOL="$DLLTOOL"
23448
23449# Used on cygwin: object dumper.
23450OBJDUMP="$OBJDUMP"
23451
23452# Used on cygwin: assembler.
23453AS="$AS"
23454
23455# The name of the directory that contains temporary libtool files.
23456objdir=$objdir
23457
23458# How to create reloadable object files.
23459reload_flag=$lt_reload_flag
23460reload_cmds=$lt_reload_cmds
23461
23462# How to pass a linker flag through the compiler.
23463wl=$lt_lt_prog_compiler_wl_F77
23464
23465# Object file suffix (normally "o").
23466objext="$ac_objext"
23467
23468# Old archive suffix (normally "a").
23469libext="$libext"
23470
23471# Shared library suffix (normally ".so").
23472shrext_cmds='$shrext_cmds'
23473
23474# Executable file suffix (normally "").
23475exeext="$exeext"
23476
23477# Additional compiler flags for building library objects.
23478pic_flag=$lt_lt_prog_compiler_pic_F77
23479pic_mode=$pic_mode
23480
23481# What is the maximum length of a command?
23482max_cmd_len=$lt_cv_sys_max_cmd_len
23483
23484# Does compiler simultaneously support -c and -o options?
23485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23486
23487# Must we lock files when doing compilation?
23488need_locks=$lt_need_locks
23489
23490# Do we need the lib prefix for modules?
23491need_lib_prefix=$need_lib_prefix
23492
23493# Do we need a version for libraries?
23494need_version=$need_version
23495
23496# Whether dlopen is supported.
23497dlopen_support=$enable_dlopen
23498
23499# Whether dlopen of programs is supported.
23500dlopen_self=$enable_dlopen_self
23501
23502# Whether dlopen of statically linked programs is supported.
23503dlopen_self_static=$enable_dlopen_self_static
23504
23505# Compiler flag to prevent dynamic linking.
23506link_static_flag=$lt_lt_prog_compiler_static_F77
23507
23508# Compiler flag to turn off builtin functions.
23509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23510
23511# Compiler flag to allow reflexive dlopens.
23512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23513
23514# Compiler flag to generate shared objects directly from archives.
23515whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23516
23517# Compiler flag to generate thread-safe objects.
23518thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23519
23520# Library versioning type.
23521version_type=$version_type
23522
23523# Format of library name prefix.
23524libname_spec=$lt_libname_spec
23525
23526# List of archive names. First name is the real one, the rest are links.
23527# The last name is the one that the linker finds with -lNAME.
23528library_names_spec=$lt_library_names_spec
23529
23530# The coded name of the library, if different from the real name.
23531soname_spec=$lt_soname_spec
23532
23533# Commands used to build and install an old-style archive.
23534RANLIB=$lt_RANLIB
23535old_archive_cmds=$lt_old_archive_cmds_F77
23536old_postinstall_cmds=$lt_old_postinstall_cmds
23537old_postuninstall_cmds=$lt_old_postuninstall_cmds
23538
23539# Create an old-style archive from a shared archive.
23540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23541
23542# Create a temporary old-style archive to link instead of a shared archive.
23543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23544
23545# Commands used to build and install a shared archive.
23546archive_cmds=$lt_archive_cmds_F77
23547archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23548postinstall_cmds=$lt_postinstall_cmds
23549postuninstall_cmds=$lt_postuninstall_cmds
23550
23551# Commands used to build a loadable module (assumed same as above if empty)
23552module_cmds=$lt_module_cmds_F77
23553module_expsym_cmds=$lt_module_expsym_cmds_F77
23554
23555# Commands to strip libraries.
23556old_striplib=$lt_old_striplib
23557striplib=$lt_striplib
23558
23559# Dependencies to place before the objects being linked to create a
23560# shared library.
23561predep_objects=$lt_predep_objects_F77
23562
23563# Dependencies to place after the objects being linked to create a
23564# shared library.
23565postdep_objects=$lt_postdep_objects_F77
23566
23567# Dependencies to place before the objects being linked to create a
23568# shared library.
23569predeps=$lt_predeps_F77
23570
23571# Dependencies to place after the objects being linked to create a
23572# shared library.
23573postdeps=$lt_postdeps_F77
23574
23575# The library search path used internally by the compiler when linking
23576# a shared library.
23577compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23578
23579# Method to check whether dependent libraries are shared objects.
23580deplibs_check_method=$lt_deplibs_check_method
23581
23582# Command to use when deplibs_check_method == file_magic.
23583file_magic_cmd=$lt_file_magic_cmd
23584
23585# Flag that allows shared libraries with undefined symbols to be built.
23586allow_undefined_flag=$lt_allow_undefined_flag_F77
23587
23588# Flag that forces no undefined symbols.
23589no_undefined_flag=$lt_no_undefined_flag_F77
23590
23591# Commands used to finish a libtool library installation in a directory.
23592finish_cmds=$lt_finish_cmds
23593
23594# Same as above, but a single script fragment to be evaled but not shown.
23595finish_eval=$lt_finish_eval
23596
23597# Take the output of nm and produce a listing of raw symbols and C names.
23598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23599
23600# Transform the output of nm in a proper C declaration
23601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23602
23603# Transform the output of nm in a C name address pair
23604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23605
23606# This is the shared library runtime path variable.
23607runpath_var=$runpath_var
23608
23609# This is the shared library path variable.
23610shlibpath_var=$shlibpath_var
23611
23612# Is shlibpath searched before the hard-coded library search path?
23613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23614
23615# How to hardcode a shared library path into an executable.
23616hardcode_action=$hardcode_action_F77
23617
23618# Whether we should hardcode library paths into libraries.
23619hardcode_into_libs=$hardcode_into_libs
23620
23621# Flag to hardcode \$libdir into a binary during linking.
23622# This must work even if \$libdir does not exist.
23623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23624
23625# If ld is used when linking, flag to hardcode \$libdir into
23626# a binary during linking. This must work even if \$libdir does
23627# not exist.
23628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23629
23630# Whether we need a single -rpath flag with a separated argument.
23631hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23632
23633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23634# resulting binary.
23635hardcode_direct=$hardcode_direct_F77
23636
23637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23638# resulting binary.
23639hardcode_minus_L=$hardcode_minus_L_F77
23640
23641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23642# the resulting binary.
23643hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23644
23645# Set to yes if building a shared library automatically hardcodes DIR into the library
23646# and all subsequent libraries and executables linked against it.
23647hardcode_automatic=$hardcode_automatic_F77
23648
23649# Variables whose values should be saved in libtool wrapper scripts and
23650# restored at relink time.
23651variables_saved_for_relink="$variables_saved_for_relink"
23652
23653# Whether libtool must link a program against all its dependency libraries.
23654link_all_deplibs=$link_all_deplibs_F77
23655
23656# Compile-time system search path for libraries
23657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23658
23659# Run-time system search path for libraries
23660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23661
23662# Fix the shell variable \$srcfile for the compiler.
23663fix_srcfile_path="$fix_srcfile_path_F77"
23664
23665# Set to yes if exported symbols are required.
23666always_export_symbols=$always_export_symbols_F77
23667
23668# The commands to list exported symbols.
23669export_symbols_cmds=$lt_export_symbols_cmds_F77
23670
23671# The commands to extract the exported symbol list from a shared archive.
23672extract_expsyms_cmds=$lt_extract_expsyms_cmds
23673
23674# Symbols that should not be listed in the preloaded symbols.
23675exclude_expsyms=$lt_exclude_expsyms_F77
23676
23677# Symbols that must always be exported.
23678include_expsyms=$lt_include_expsyms_F77
23679
23680# ### END LIBTOOL TAG CONFIG: $tagname
23681
23682__EOF__
23683
23684
23685else
23686 # If there is no Makefile yet, we rely on a make rule to execute
23687 # `config.status --recheck' to rerun these tests and create the
23688 # libtool script then.
23689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23690 if test -f "$ltmain_in"; then
23691 test -f Makefile && make "$ltmain"
23692 fi
23693fi
23694
23695
23696ac_ext=c
23697ac_cpp='$CPP $CPPFLAGS'
23698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700ac_compiler_gnu=$ac_cv_c_compiler_gnu
23701
23702CC="$lt_save_CC"
23703
23704 else
23705 tagname=""
23706 fi
23707 ;;
23708
23709 GCJ)
23710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23711 ac_ext=c
23712ac_cpp='$CPP $CPPFLAGS'
23713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716
23717
23718# Source file extension for Java test sources.
23719ac_ext=java
23720
23721# Object file extension for compiled Java test sources.
23722objext=o
23723objext_GCJ=$objext
23724
23725# Code to be used in simple compile tests
23726lt_simple_compile_test_code="class foo {}\n"
23727
23728# Code to be used in simple link tests
23729lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23730
23731# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23732
23733# If no C compiler was specified, use CC.
23734LTCC=${LTCC-"$CC"}
23735
23736# If no C compiler flags were specified, use CFLAGS.
23737LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23738
23739# Allow CC to be a program name with arguments.
23740compiler=$CC
23741
23742
23743# save warnings/boilerplate of simple test code
23744ac_outfile=conftest.$ac_objext
23745printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23747_lt_compiler_boilerplate=`cat conftest.err`
23748$rm conftest*
23749
23750ac_outfile=conftest.$ac_objext
23751printf "$lt_simple_link_test_code" >conftest.$ac_ext
23752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753_lt_linker_boilerplate=`cat conftest.err`
23754$rm conftest*
23755
23756
23757# Allow CC to be a program name with arguments.
23758lt_save_CC="$CC"
23759CC=${GCJ-"gcj"}
23760compiler=$CC
23761compiler_GCJ=$CC
23762for cc_temp in $compiler""; do
23763 case $cc_temp in
23764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23766 \-*) ;;
23767 *) break;;
23768 esac
23769done
23770cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23771
23772
23773# GCJ did not exist at the time GCC didn't implicitly link libc in.
23774archive_cmds_need_lc_GCJ=no
23775
23776old_archive_cmds_GCJ=$old_archive_cmds
23777
23778
23779lt_prog_compiler_no_builtin_flag_GCJ=
23780
23781if test "$GCC" = yes; then
23782 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23783
23784
23785{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23786echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23787if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789else
23790 lt_cv_prog_compiler_rtti_exceptions=no
23791 ac_outfile=conftest.$ac_objext
23792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23793 lt_compiler_flag="-fno-rtti -fno-exceptions"
23794 # Insert the option either (1) after the last *FLAGS variable, or
23795 # (2) before a word containing "conftest.", or (3) at the end.
23796 # Note that $ac_compile itself does not contain backslashes and begins
23797 # with a dollar sign (not a hyphen), so the echo should work correctly.
23798 # The option is referenced via a variable to avoid confusing sed.
23799 lt_compile=`echo "$ac_compile" | $SED \
23800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23802 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000023803 (eval echo "\"\$as_me:23803: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023804 (eval "$lt_compile" 2>conftest.err)
23805 ac_status=$?
23806 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000023807 echo "$as_me:23807: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023808 if (exit $ac_status) && test -s "$ac_outfile"; then
23809 # The compiler can only warn and ignore the option if not recognized
23810 # So say no if there are warnings other than the usual output.
23811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23814 lt_cv_prog_compiler_rtti_exceptions=yes
23815 fi
23816 fi
23817 $rm conftest*
23818
23819fi
23820{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23821echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23822
23823if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23824 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23825else
23826 :
23827fi
23828
23829fi
23830
23831lt_prog_compiler_wl_GCJ=
23832lt_prog_compiler_pic_GCJ=
23833lt_prog_compiler_static_GCJ=
23834
23835{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23837
23838 if test "$GCC" = yes; then
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23840 lt_prog_compiler_static_GCJ='-static'
23841
23842 case $host_os in
23843 aix*)
23844 # All AIX code is PIC.
23845 if test "$host_cpu" = ia64; then
23846 # AIX 5 now supports IA64 processor
23847 lt_prog_compiler_static_GCJ='-Bstatic'
23848 fi
23849 ;;
23850
23851 amigaos*)
23852 # FIXME: we need at least 68020 code to build shared libraries, but
23853 # adding the `-m68020' flag to GCC prevents building anything better,
23854 # like `-m68040'.
23855 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23856 ;;
23857
23858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23859 # PIC is the default for these OSes.
23860 ;;
23861
23862 mingw* | pw32* | os2*)
23863 # This hack is so that the source file can tell whether it is being
23864 # built for inclusion in a dll (and should export symbols for example).
23865 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23866 ;;
23867
23868 darwin* | rhapsody*)
23869 # PIC is the default on this platform
23870 # Common symbols not allowed in MH_DYLIB files
23871 lt_prog_compiler_pic_GCJ='-fno-common'
23872 ;;
23873
23874 interix3*)
23875 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23876 # Instead, we relocate shared libraries at runtime.
23877 ;;
23878
23879 msdosdjgpp*)
23880 # Just because we use GCC doesn't mean we suddenly get shared libraries
23881 # on systems that don't support them.
23882 lt_prog_compiler_can_build_shared_GCJ=no
23883 enable_shared=no
23884 ;;
23885
23886 sysv4*MP*)
23887 if test -d /usr/nec; then
23888 lt_prog_compiler_pic_GCJ=-Kconform_pic
23889 fi
23890 ;;
23891
23892 hpux*)
23893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23894 # not for PA HP-UX.
23895 case $host_cpu in
23896 hppa*64*|ia64*)
23897 # +Z the default
23898 ;;
23899 *)
23900 lt_prog_compiler_pic_GCJ='-fPIC'
23901 ;;
23902 esac
23903 ;;
23904
23905 *)
23906 lt_prog_compiler_pic_GCJ='-fPIC'
23907 ;;
23908 esac
23909 else
23910 # PORTME Check for flag to pass linker flags through the system compiler.
23911 case $host_os in
23912 aix*)
23913 lt_prog_compiler_wl_GCJ='-Wl,'
23914 if test "$host_cpu" = ia64; then
23915 # AIX 5 now supports IA64 processor
23916 lt_prog_compiler_static_GCJ='-Bstatic'
23917 else
23918 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23919 fi
23920 ;;
23921 darwin*)
23922 # PIC is the default on this platform
23923 # Common symbols not allowed in MH_DYLIB files
23924 case $cc_basename in
23925 xlc*)
23926 lt_prog_compiler_pic_GCJ='-qnocommon'
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23928 ;;
23929 esac
23930 ;;
23931
23932 mingw* | pw32* | os2*)
23933 # This hack is so that the source file can tell whether it is being
23934 # built for inclusion in a dll (and should export symbols for example).
23935 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23936 ;;
23937
23938 hpux9* | hpux10* | hpux11*)
23939 lt_prog_compiler_wl_GCJ='-Wl,'
23940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23941 # not for PA HP-UX.
23942 case $host_cpu in
23943 hppa*64*|ia64*)
23944 # +Z the default
23945 ;;
23946 *)
23947 lt_prog_compiler_pic_GCJ='+Z'
23948 ;;
23949 esac
23950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23951 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23952 ;;
23953
23954 irix5* | irix6* | nonstopux*)
23955 lt_prog_compiler_wl_GCJ='-Wl,'
23956 # PIC (with -KPIC) is the default.
23957 lt_prog_compiler_static_GCJ='-non_shared'
23958 ;;
23959
23960 newsos6)
23961 lt_prog_compiler_pic_GCJ='-KPIC'
23962 lt_prog_compiler_static_GCJ='-Bstatic'
23963 ;;
23964
23965 linux*)
23966 case $cc_basename in
23967 icc* | ecc*)
23968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-static'
23971 ;;
23972 pgcc* | pgf77* | pgf90* | pgf95*)
23973 # Portland Group compilers (*not* the Pentium gcc compiler,
23974 # which looks to be a dead project)
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 lt_prog_compiler_pic_GCJ='-fpic'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23978 ;;
23979 ccc*)
23980 lt_prog_compiler_wl_GCJ='-Wl,'
23981 # All Alpha code is PIC.
23982 lt_prog_compiler_static_GCJ='-non_shared'
23983 ;;
23984 esac
23985 ;;
23986
23987 osf3* | osf4* | osf5*)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 # All OSF/1 code is PIC.
23990 lt_prog_compiler_static_GCJ='-non_shared'
23991 ;;
23992
23993 solaris*)
23994 lt_prog_compiler_pic_GCJ='-KPIC'
23995 lt_prog_compiler_static_GCJ='-Bstatic'
23996 case $cc_basename in
23997 f77* | f90* | f95*)
23998 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23999 *)
24000 lt_prog_compiler_wl_GCJ='-Wl,';;
24001 esac
24002 ;;
24003
24004 sunos4*)
24005 lt_prog_compiler_wl_GCJ='-Qoption ld '
24006 lt_prog_compiler_pic_GCJ='-PIC'
24007 lt_prog_compiler_static_GCJ='-Bstatic'
24008 ;;
24009
24010 sysv4 | sysv4.2uw2* | sysv4.3*)
24011 lt_prog_compiler_wl_GCJ='-Wl,'
24012 lt_prog_compiler_pic_GCJ='-KPIC'
24013 lt_prog_compiler_static_GCJ='-Bstatic'
24014 ;;
24015
24016 sysv4*MP*)
24017 if test -d /usr/nec ;then
24018 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24019 lt_prog_compiler_static_GCJ='-Bstatic'
24020 fi
24021 ;;
24022
24023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24024 lt_prog_compiler_wl_GCJ='-Wl,'
24025 lt_prog_compiler_pic_GCJ='-KPIC'
24026 lt_prog_compiler_static_GCJ='-Bstatic'
24027 ;;
24028
24029 unicos*)
24030 lt_prog_compiler_wl_GCJ='-Wl,'
24031 lt_prog_compiler_can_build_shared_GCJ=no
24032 ;;
24033
24034 uts4*)
24035 lt_prog_compiler_pic_GCJ='-pic'
24036 lt_prog_compiler_static_GCJ='-Bstatic'
24037 ;;
24038
24039 *)
24040 lt_prog_compiler_can_build_shared_GCJ=no
24041 ;;
24042 esac
24043 fi
24044
24045{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24046echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24047
24048#
24049# Check to make sure the PIC flag actually works.
24050#
24051if test -n "$lt_prog_compiler_pic_GCJ"; then
24052
24053{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24054echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24055if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057else
24058 lt_prog_compiler_pic_works_GCJ=no
24059 ac_outfile=conftest.$ac_objext
24060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24061 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24062 # Insert the option either (1) after the last *FLAGS variable, or
24063 # (2) before a word containing "conftest.", or (3) at the end.
24064 # Note that $ac_compile itself does not contain backslashes and begins
24065 # with a dollar sign (not a hyphen), so the echo should work correctly.
24066 # The option is referenced via a variable to avoid confusing sed.
24067 lt_compile=`echo "$ac_compile" | $SED \
24068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24070 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000024071 (eval echo "\"\$as_me:24071: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024072 (eval "$lt_compile" 2>conftest.err)
24073 ac_status=$?
24074 cat conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000024075 echo "$as_me:24075: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024076 if (exit $ac_status) && test -s "$ac_outfile"; then
24077 # The compiler can only warn and ignore the option if not recognized
24078 # So say no if there are warnings other than the usual output.
24079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24082 lt_prog_compiler_pic_works_GCJ=yes
24083 fi
24084 fi
24085 $rm conftest*
24086
24087fi
24088{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24089echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24090
24091if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24092 case $lt_prog_compiler_pic_GCJ in
24093 "" | " "*) ;;
24094 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24095 esac
24096else
24097 lt_prog_compiler_pic_GCJ=
24098 lt_prog_compiler_can_build_shared_GCJ=no
24099fi
24100
24101fi
24102case $host_os in
24103 # For platforms which do not support PIC, -DPIC is meaningless:
24104 *djgpp*)
24105 lt_prog_compiler_pic_GCJ=
24106 ;;
24107 *)
24108 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24109 ;;
24110esac
24111
24112#
24113# Check to make sure the static flag actually works.
24114#
24115wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24116{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24117echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24118if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120else
24121 lt_prog_compiler_static_works_GCJ=no
24122 save_LDFLAGS="$LDFLAGS"
24123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24124 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24126 # The linker can only warn and ignore the option if not recognized
24127 # So say no if there are warnings
24128 if test -s conftest.err; then
24129 # Append any errors to the config.log.
24130 cat conftest.err 1>&5
24131 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24133 if diff conftest.exp conftest.er2 >/dev/null; then
24134 lt_prog_compiler_static_works_GCJ=yes
24135 fi
24136 else
24137 lt_prog_compiler_static_works_GCJ=yes
24138 fi
24139 fi
24140 $rm conftest*
24141 LDFLAGS="$save_LDFLAGS"
24142
24143fi
24144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24145echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24146
24147if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24148 :
24149else
24150 lt_prog_compiler_static_GCJ=
24151fi
24152
24153
24154{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24155echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24156if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 lt_cv_prog_compiler_c_o_GCJ=no
24160 $rm -r conftest 2>/dev/null
24161 mkdir conftest
24162 cd conftest
24163 mkdir out
24164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24165
24166 lt_compiler_flag="-o out/conftest2.$ac_objext"
24167 # Insert the option either (1) after the last *FLAGS variable, or
24168 # (2) before a word containing "conftest.", or (3) at the end.
24169 # Note that $ac_compile itself does not contain backslashes and begins
24170 # with a dollar sign (not a hyphen), so the echo should work correctly.
24171 lt_compile=`echo "$ac_compile" | $SED \
24172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24174 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000024175 (eval echo "\"\$as_me:24175: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024176 (eval "$lt_compile" 2>out/conftest.err)
24177 ac_status=$?
24178 cat out/conftest.err >&5
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000024179 echo "$as_me:24179: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24181 then
24182 # The compiler can only warn and ignore the option if not recognized
24183 # So say no if there are warnings
24184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24187 lt_cv_prog_compiler_c_o_GCJ=yes
24188 fi
24189 fi
24190 chmod u+w . 2>&5
24191 $rm conftest*
24192 # SGI C++ compiler will create directory out/ii_files/ for
24193 # template instantiation
24194 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24195 $rm out/* && rmdir out
24196 cd ..
24197 rmdir conftest
24198 $rm conftest*
24199
24200fi
24201{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24202echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24203
24204
24205hard_links="nottested"
24206if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24207 # do not overwrite the value of need_locks provided by the user
24208 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24209echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24210 hard_links=yes
24211 $rm conftest*
24212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24213 touch conftest.a
24214 ln conftest.a conftest.b 2>&5 || hard_links=no
24215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24216 { echo "$as_me:$LINENO: result: $hard_links" >&5
24217echo "${ECHO_T}$hard_links" >&6; }
24218 if test "$hard_links" = no; then
24219 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24220echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24221 need_locks=warn
24222 fi
24223else
24224 need_locks=no
24225fi
24226
24227{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24228echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24229
24230 runpath_var=
24231 allow_undefined_flag_GCJ=
24232 enable_shared_with_static_runtimes_GCJ=no
24233 archive_cmds_GCJ=
24234 archive_expsym_cmds_GCJ=
24235 old_archive_From_new_cmds_GCJ=
24236 old_archive_from_expsyms_cmds_GCJ=
24237 export_dynamic_flag_spec_GCJ=
24238 whole_archive_flag_spec_GCJ=
24239 thread_safe_flag_spec_GCJ=
24240 hardcode_libdir_flag_spec_GCJ=
24241 hardcode_libdir_flag_spec_ld_GCJ=
24242 hardcode_libdir_separator_GCJ=
24243 hardcode_direct_GCJ=no
24244 hardcode_minus_L_GCJ=no
24245 hardcode_shlibpath_var_GCJ=unsupported
24246 link_all_deplibs_GCJ=unknown
24247 hardcode_automatic_GCJ=no
24248 module_cmds_GCJ=
24249 module_expsym_cmds_GCJ=
24250 always_export_symbols_GCJ=no
24251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24252 # include_expsyms should be a list of space-separated symbols to be *always*
24253 # included in the symbol list
24254 include_expsyms_GCJ=
24255 # exclude_expsyms can be an extended regexp of symbols to exclude
24256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24258 # as well as any symbol that contains `d'.
24259 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24261 # platforms (ab)use it in PIC code, but their linkers get confused if
24262 # the symbol is explicitly referenced. Since portable code cannot
24263 # rely on this symbol name, it's probably fine to never include it in
24264 # preloaded symbol tables.
24265 extract_expsyms_cmds=
24266 # Just being paranoid about ensuring that cc_basename is set.
24267 for cc_temp in $compiler""; do
24268 case $cc_temp in
24269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24271 \-*) ;;
24272 *) break;;
24273 esac
24274done
24275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24276
24277 case $host_os in
24278 cygwin* | mingw* | pw32*)
24279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24280 # When not using gcc, we currently assume that we are using
24281 # Microsoft Visual C++.
24282 if test "$GCC" != yes; then
24283 with_gnu_ld=no
24284 fi
24285 ;;
24286 interix*)
24287 # we just hope/assume this is gcc and not c89 (= MSVC++)
24288 with_gnu_ld=yes
24289 ;;
24290 openbsd*)
24291 with_gnu_ld=no
24292 ;;
24293 esac
24294
24295 ld_shlibs_GCJ=yes
24296 if test "$with_gnu_ld" = yes; then
24297 # If archive_cmds runs LD, not CC, wlarc should be empty
24298 wlarc='${wl}'
24299
24300 # Set some defaults for GNU ld with shared library support. These
24301 # are reset later if shared libraries are not supported. Putting them
24302 # here allows them to be overridden if necessary.
24303 runpath_var=LD_RUN_PATH
24304 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24306 # ancient GNU ld didn't support --whole-archive et. al.
24307 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24308 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24309 else
24310 whole_archive_flag_spec_GCJ=
24311 fi
24312 supports_anon_versioning=no
24313 case `$LD -v 2>/dev/null` in
24314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24317 *\ 2.11.*) ;; # other 2.11 versions
24318 *) supports_anon_versioning=yes ;;
24319 esac
24320
24321 # See if GNU ld supports shared libraries.
24322 case $host_os in
24323 aix3* | aix4* | aix5*)
24324 # On AIX/PPC, the GNU linker is very broken
24325 if test "$host_cpu" != ia64; then
24326 ld_shlibs_GCJ=no
24327 cat <<EOF 1>&2
24328
24329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24330*** to be unable to reliably create shared libraries on AIX.
24331*** Therefore, libtool is disabling shared libraries support. If you
24332*** really care for shared libraries, you may want to modify your PATH
24333*** so that a non-GNU linker is found, and then restart.
24334
24335EOF
24336 fi
24337 ;;
24338
24339 amigaos*)
24340 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)'
24341 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24342 hardcode_minus_L_GCJ=yes
24343
24344 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24345 # that the semantics of dynamic libraries on AmigaOS, at least up
24346 # to version 4, is to share data among multiple programs linked
24347 # with the same dynamic library. Since this doesn't match the
24348 # behavior of shared libraries on other platforms, we can't use
24349 # them.
24350 ld_shlibs_GCJ=no
24351 ;;
24352
24353 beos*)
24354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24355 allow_undefined_flag_GCJ=unsupported
24356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24357 # support --undefined. This deserves some investigation. FIXME
24358 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24359 else
24360 ld_shlibs_GCJ=no
24361 fi
24362 ;;
24363
24364 cygwin* | mingw* | pw32*)
24365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24366 # as there is no search path for DLLs.
24367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24368 allow_undefined_flag_GCJ=unsupported
24369 always_export_symbols_GCJ=no
24370 enable_shared_with_static_runtimes_GCJ=yes
24371 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24372
24373 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24375 # If the export-symbols file already is a .def file (1st line
24376 # is EXPORTS), use it as is; otherwise, prepend...
24377 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24378 cp $export_symbols $output_objdir/$soname.def;
24379 else
24380 echo EXPORTS > $output_objdir/$soname.def;
24381 cat $export_symbols >> $output_objdir/$soname.def;
24382 fi~
24383 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24384 else
24385 ld_shlibs_GCJ=no
24386 fi
24387 ;;
24388
24389 interix3*)
24390 hardcode_direct_GCJ=no
24391 hardcode_shlibpath_var_GCJ=no
24392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24393 export_dynamic_flag_spec_GCJ='${wl}-E'
24394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24395 # Instead, shared libraries are loaded at an image base (0x10000000 by
24396 # default) and relocated if they conflict, which is a slow very memory
24397 # consuming and fragmenting process. To avoid this, we pick a random,
24398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24400 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'
24401 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'
24402 ;;
24403
24404 linux*)
24405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24406 tmp_addflag=
24407 case $cc_basename,$host_cpu in
24408 pgcc*) # Portland Group C compiler
24409 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'
24410 tmp_addflag=' $pic_flag'
24411 ;;
24412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24413 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'
24414 tmp_addflag=' $pic_flag -Mnomain' ;;
24415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24416 tmp_addflag=' -i_dynamic' ;;
24417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24418 tmp_addflag=' -i_dynamic -nofor_main' ;;
24419 ifc* | ifort*) # Intel Fortran compiler
24420 tmp_addflag=' -nofor_main' ;;
24421 esac
24422 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24423
24424 if test $supports_anon_versioning = yes; then
24425 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24427 $echo "local: *; };" >> $output_objdir/$libname.ver~
24428 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24429 fi
24430 else
24431 ld_shlibs_GCJ=no
24432 fi
24433 ;;
24434
24435 netbsd*)
24436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24437 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24438 wlarc=
24439 else
24440 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24441 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24442 fi
24443 ;;
24444
24445 solaris*)
24446 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24447 ld_shlibs_GCJ=no
24448 cat <<EOF 1>&2
24449
24450*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24451*** create shared libraries on Solaris systems. Therefore, libtool
24452*** is disabling shared libraries support. We urge you to upgrade GNU
24453*** binutils to release 2.9.1 or newer. Another option is to modify
24454*** your PATH or compiler configuration so that the native linker is
24455*** used, and then restart.
24456
24457EOF
24458 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24460 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24461 else
24462 ld_shlibs_GCJ=no
24463 fi
24464 ;;
24465
24466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24467 case `$LD -v 2>&1` in
24468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24469 ld_shlibs_GCJ=no
24470 cat <<_LT_EOF 1>&2
24471
24472*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24473*** reliably create shared libraries on SCO systems. Therefore, libtool
24474*** is disabling shared libraries support. We urge you to upgrade GNU
24475*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24476*** your PATH or compiler configuration so that the native linker is
24477*** used, and then restart.
24478
24479_LT_EOF
24480 ;;
24481 *)
24482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24483 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24486 else
24487 ld_shlibs_GCJ=no
24488 fi
24489 ;;
24490 esac
24491 ;;
24492
24493 sunos4*)
24494 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24495 wlarc=
24496 hardcode_direct_GCJ=yes
24497 hardcode_shlibpath_var_GCJ=no
24498 ;;
24499
24500 *)
24501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24504 else
24505 ld_shlibs_GCJ=no
24506 fi
24507 ;;
24508 esac
24509
24510 if test "$ld_shlibs_GCJ" = no; then
24511 runpath_var=
24512 hardcode_libdir_flag_spec_GCJ=
24513 export_dynamic_flag_spec_GCJ=
24514 whole_archive_flag_spec_GCJ=
24515 fi
24516 else
24517 # PORTME fill in a description of your system's linker (not GNU ld)
24518 case $host_os in
24519 aix3*)
24520 allow_undefined_flag_GCJ=unsupported
24521 always_export_symbols_GCJ=yes
24522 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'
24523 # Note: this linker hardcodes the directories in LIBPATH if there
24524 # are no directories specified by -L.
24525 hardcode_minus_L_GCJ=yes
24526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24527 # Neither direct hardcoding nor static linking is supported with a
24528 # broken collect2.
24529 hardcode_direct_GCJ=unsupported
24530 fi
24531 ;;
24532
24533 aix4* | aix5*)
24534 if test "$host_cpu" = ia64; then
24535 # On IA64, the linker does run time linking by default, so we don't
24536 # have to do anything special.
24537 aix_use_runtimelinking=no
24538 exp_sym_flag='-Bexport'
24539 no_entry_flag=""
24540 else
24541 # If we're using GNU nm, then we don't want the "-C" option.
24542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24544 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'
24545 else
24546 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'
24547 fi
24548 aix_use_runtimelinking=no
24549
24550 # Test if we are trying to use run time linking or normal
24551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24552 # need to do runtime linking.
24553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24554 for ld_flag in $LDFLAGS; do
24555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24556 aix_use_runtimelinking=yes
24557 break
24558 fi
24559 done
24560 ;;
24561 esac
24562
24563 exp_sym_flag='-bexport'
24564 no_entry_flag='-bnoentry'
24565 fi
24566
24567 # When large executables or shared objects are built, AIX ld can
24568 # have problems creating the table of contents. If linking a library
24569 # or program results in "error TOC overflow" add -mminimal-toc to
24570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24572
24573 archive_cmds_GCJ=''
24574 hardcode_direct_GCJ=yes
24575 hardcode_libdir_separator_GCJ=':'
24576 link_all_deplibs_GCJ=yes
24577
24578 if test "$GCC" = yes; then
24579 case $host_os in aix4.[012]|aix4.[012].*)
24580 # We only want to do this on AIX 4.2 and lower, the check
24581 # below for broken collect2 doesn't work under 4.3+
24582 collect2name=`${CC} -print-prog-name=collect2`
24583 if test -f "$collect2name" && \
24584 strings "$collect2name" | grep resolve_lib_name >/dev/null
24585 then
24586 # We have reworked collect2
24587 hardcode_direct_GCJ=yes
24588 else
24589 # We have old collect2
24590 hardcode_direct_GCJ=unsupported
24591 # It fails to find uninstalled libraries when the uninstalled
24592 # path is not listed in the libpath. Setting hardcode_minus_L
24593 # to unsupported forces relinking
24594 hardcode_minus_L_GCJ=yes
24595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596 hardcode_libdir_separator_GCJ=
24597 fi
24598 ;;
24599 esac
24600 shared_flag='-shared'
24601 if test "$aix_use_runtimelinking" = yes; then
24602 shared_flag="$shared_flag "'${wl}-G'
24603 fi
24604 else
24605 # not using gcc
24606 if test "$host_cpu" = ia64; then
24607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24608 # chokes on -Wl,-G. The following line is correct:
24609 shared_flag='-G'
24610 else
24611 if test "$aix_use_runtimelinking" = yes; then
24612 shared_flag='${wl}-G'
24613 else
24614 shared_flag='${wl}-bM:SRE'
24615 fi
24616 fi
24617 fi
24618
24619 # It seems that -bexpall does not export symbols beginning with
24620 # underscore (_), so it is better to generate a list of symbols to export.
24621 always_export_symbols_GCJ=yes
24622 if test "$aix_use_runtimelinking" = yes; then
24623 # Warning - without using the other runtime loading flags (-brtl),
24624 # -berok will link without error, but may produce a broken library.
24625 allow_undefined_flag_GCJ='-berok'
24626 # Determine the default libpath from the value encoded in an empty executable.
24627 cat >conftest.$ac_ext <<_ACEOF
24628/* confdefs.h. */
24629_ACEOF
24630cat confdefs.h >>conftest.$ac_ext
24631cat >>conftest.$ac_ext <<_ACEOF
24632/* end confdefs.h. */
24633
24634int
24635main ()
24636{
24637
24638 ;
24639 return 0;
24640}
24641_ACEOF
24642rm -f conftest.$ac_objext conftest$ac_exeext
24643if { (ac_try="$ac_link"
24644case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647esac
24648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_link") 2>conftest.er1
24650 ac_status=$?
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024655 (exit $ac_status); } &&
24656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24657 { (case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_try") 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; } &&
24666 { ac_try='test -s conftest$ac_exeext'
24667 { (case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670esac
24671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_try") 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024676
24677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24678}'`
24679# Check for a 64-bit object if we didn't find anything.
24680if 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; }
24681}'`; fi
24682else
24683 echo "$as_me: failed program was:" >&5
24684sed 's/^/| /' conftest.$ac_ext >&5
24685
24686
24687fi
24688
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024689rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024690 conftest$ac_exeext conftest.$ac_ext
24691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24692
24693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24694 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"
24695 else
24696 if test "$host_cpu" = ia64; then
24697 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24698 allow_undefined_flag_GCJ="-z nodefs"
24699 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"
24700 else
24701 # Determine the default libpath from the value encoded in an empty executable.
24702 cat >conftest.$ac_ext <<_ACEOF
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708
24709int
24710main ()
24711{
24712
24713 ;
24714 return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext conftest$ac_exeext
24718if { (ac_try="$ac_link"
24719case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722esac
24723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>conftest.er1
24725 ac_status=$?
24726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024730 (exit $ac_status); } &&
24731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24732 { (case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24735esac
24736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_try") 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
24742 { (case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24745esac
24746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747 (eval "$ac_try") 2>&5
24748 ac_status=$?
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024751
24752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24753}'`
24754# Check for a 64-bit object if we didn't find anything.
24755if 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; }
24756}'`; fi
24757else
24758 echo "$as_me: failed program was:" >&5
24759sed 's/^/| /' conftest.$ac_ext >&5
24760
24761
24762fi
24763
Tanya Lattner3fa4a442009-01-22 05:17:59 +000024764rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024765 conftest$ac_exeext conftest.$ac_ext
24766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24767
24768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24769 # Warning - without using the other run time loading flags,
24770 # -berok will link without error, but may produce a broken library.
24771 no_undefined_flag_GCJ=' ${wl}-bernotok'
24772 allow_undefined_flag_GCJ=' ${wl}-berok'
24773 # Exported symbols can be pulled into shared objects from archives
24774 whole_archive_flag_spec_GCJ='$convenience'
24775 archive_cmds_need_lc_GCJ=yes
24776 # This is similar to how AIX traditionally builds its shared libraries.
24777 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'
24778 fi
24779 fi
24780 ;;
24781
24782 amigaos*)
24783 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)'
24784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24785 hardcode_minus_L_GCJ=yes
24786 # see comment about different semantics on the GNU ld section
24787 ld_shlibs_GCJ=no
24788 ;;
24789
24790 bsdi[45]*)
24791 export_dynamic_flag_spec_GCJ=-rdynamic
24792 ;;
24793
24794 cygwin* | mingw* | pw32*)
24795 # When not using gcc, we currently assume that we are using
24796 # Microsoft Visual C++.
24797 # hardcode_libdir_flag_spec is actually meaningless, as there is
24798 # no search path for DLLs.
24799 hardcode_libdir_flag_spec_GCJ=' '
24800 allow_undefined_flag_GCJ=unsupported
24801 # Tell ltmain to make .lib files, not .a files.
24802 libext=lib
24803 # Tell ltmain to make .dll files, not .so files.
24804 shrext_cmds=".dll"
24805 # FIXME: Setting linknames here is a bad hack.
24806 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24807 # The linker will automatically build a .lib file if we build a DLL.
24808 old_archive_From_new_cmds_GCJ='true'
24809 # FIXME: Should let the user specify the lib program.
24810 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24811 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24812 enable_shared_with_static_runtimes_GCJ=yes
24813 ;;
24814
24815 darwin* | rhapsody*)
24816 case $host_os in
24817 rhapsody* | darwin1.[012])
24818 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24819 ;;
24820 *) # Darwin 1.3 on
24821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24823 else
24824 case ${MACOSX_DEPLOYMENT_TARGET} in
24825 10.[012])
24826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24827 ;;
24828 10.*)
24829 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24830 ;;
24831 esac
24832 fi
24833 ;;
24834 esac
24835 archive_cmds_need_lc_GCJ=no
24836 hardcode_direct_GCJ=no
24837 hardcode_automatic_GCJ=yes
24838 hardcode_shlibpath_var_GCJ=unsupported
24839 whole_archive_flag_spec_GCJ=''
24840 link_all_deplibs_GCJ=yes
24841 if test "$GCC" = yes ; then
24842 output_verbose_link_cmd='echo'
24843 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24844 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24846 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}'
24847 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}'
24848 else
24849 case $cc_basename in
24850 xlc*)
24851 output_verbose_link_cmd='echo'
24852 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24853 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24855 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}'
24856 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}'
24857 ;;
24858 *)
24859 ld_shlibs_GCJ=no
24860 ;;
24861 esac
24862 fi
24863 ;;
24864
24865 dgux*)
24866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24868 hardcode_shlibpath_var_GCJ=no
24869 ;;
24870
24871 freebsd1*)
24872 ld_shlibs_GCJ=no
24873 ;;
24874
24875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24876 # support. Future versions do this automatically, but an explicit c++rt0.o
24877 # does not break anything, and helps significantly (at the cost of a little
24878 # extra space).
24879 freebsd2.2*)
24880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24882 hardcode_direct_GCJ=yes
24883 hardcode_shlibpath_var_GCJ=no
24884 ;;
24885
24886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24887 freebsd2*)
24888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24889 hardcode_direct_GCJ=yes
24890 hardcode_minus_L_GCJ=yes
24891 hardcode_shlibpath_var_GCJ=no
24892 ;;
24893
24894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24895 freebsd* | kfreebsd*-gnu | dragonfly*)
24896 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24898 hardcode_direct_GCJ=yes
24899 hardcode_shlibpath_var_GCJ=no
24900 ;;
24901
24902 hpux9*)
24903 if test "$GCC" = yes; then
24904 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'
24905 else
24906 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'
24907 fi
24908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909 hardcode_libdir_separator_GCJ=:
24910 hardcode_direct_GCJ=yes
24911
24912 # hardcode_minus_L: Not really in the search PATH,
24913 # but as the default location of the library.
24914 hardcode_minus_L_GCJ=yes
24915 export_dynamic_flag_spec_GCJ='${wl}-E'
24916 ;;
24917
24918 hpux10*)
24919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24920 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24921 else
24922 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24923 fi
24924 if test "$with_gnu_ld" = no; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926 hardcode_libdir_separator_GCJ=:
24927
24928 hardcode_direct_GCJ=yes
24929 export_dynamic_flag_spec_GCJ='${wl}-E'
24930
24931 # hardcode_minus_L: Not really in the search PATH,
24932 # but as the default location of the library.
24933 hardcode_minus_L_GCJ=yes
24934 fi
24935 ;;
24936
24937 hpux11*)
24938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24939 case $host_cpu in
24940 hppa*64*)
24941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24942 ;;
24943 ia64*)
24944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24945 ;;
24946 *)
24947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24948 ;;
24949 esac
24950 else
24951 case $host_cpu in
24952 hppa*64*)
24953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24954 ;;
24955 ia64*)
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24957 ;;
24958 *)
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24960 ;;
24961 esac
24962 fi
24963 if test "$with_gnu_ld" = no; then
24964 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24965 hardcode_libdir_separator_GCJ=:
24966
24967 case $host_cpu in
24968 hppa*64*|ia64*)
24969 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24970 hardcode_direct_GCJ=no
24971 hardcode_shlibpath_var_GCJ=no
24972 ;;
24973 *)
24974 hardcode_direct_GCJ=yes
24975 export_dynamic_flag_spec_GCJ='${wl}-E'
24976
24977 # hardcode_minus_L: Not really in the search PATH,
24978 # but as the default location of the library.
24979 hardcode_minus_L_GCJ=yes
24980 ;;
24981 esac
24982 fi
24983 ;;
24984
24985 irix5* | irix6* | nonstopux*)
24986 if test "$GCC" = yes; then
24987 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'
24988 else
24989 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'
24990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24991 fi
24992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24993 hardcode_libdir_separator_GCJ=:
24994 link_all_deplibs_GCJ=yes
24995 ;;
24996
24997 netbsd*)
24998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25000 else
25001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25002 fi
25003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25004 hardcode_direct_GCJ=yes
25005 hardcode_shlibpath_var_GCJ=no
25006 ;;
25007
25008 newsos6)
25009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25010 hardcode_direct_GCJ=yes
25011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25012 hardcode_libdir_separator_GCJ=:
25013 hardcode_shlibpath_var_GCJ=no
25014 ;;
25015
25016 openbsd*)
25017 hardcode_direct_GCJ=yes
25018 hardcode_shlibpath_var_GCJ=no
25019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25021 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25023 export_dynamic_flag_spec_GCJ='${wl}-E'
25024 else
25025 case $host_os in
25026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25027 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25028 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25029 ;;
25030 *)
25031 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25033 ;;
25034 esac
25035 fi
25036 ;;
25037
25038 os2*)
25039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25040 hardcode_minus_L_GCJ=yes
25041 allow_undefined_flag_GCJ=unsupported
25042 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'
25043 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25044 ;;
25045
25046 osf3*)
25047 if test "$GCC" = yes; then
25048 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25049 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'
25050 else
25051 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25052 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'
25053 fi
25054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25055 hardcode_libdir_separator_GCJ=:
25056 ;;
25057
25058 osf4* | osf5*) # as osf3* with the addition of -msym flag
25059 if test "$GCC" = yes; then
25060 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25061 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'
25062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063 else
25064 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065 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'
25066 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~
25067 $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'
25068
25069 # Both c and cxx compiler support -rpath directly
25070 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25071 fi
25072 hardcode_libdir_separator_GCJ=:
25073 ;;
25074
25075 solaris*)
25076 no_undefined_flag_GCJ=' -z text'
25077 if test "$GCC" = yes; then
25078 wlarc='${wl}'
25079 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25082 else
25083 wlarc=''
25084 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25085 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25087 fi
25088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25089 hardcode_shlibpath_var_GCJ=no
25090 case $host_os in
25091 solaris2.[0-5] | solaris2.[0-5].*) ;;
25092 *)
25093 # The compiler driver will combine linker options so we
25094 # cannot just pass the convience library names through
25095 # without $wl, iff we do not link with $LD.
25096 # Luckily, gcc supports the same syntax we need for Sun Studio.
25097 # Supported since Solaris 2.6 (maybe 2.5.1?)
25098 case $wlarc in
25099 '')
25100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25101 *)
25102 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' ;;
25103 esac ;;
25104 esac
25105 link_all_deplibs_GCJ=yes
25106 ;;
25107
25108 sunos4*)
25109 if test "x$host_vendor" = xsequent; then
25110 # Use $CC to link under sequent, because it throws in some extra .o
25111 # files that make .init and .fini sections work.
25112 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25113 else
25114 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25115 fi
25116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25117 hardcode_direct_GCJ=yes
25118 hardcode_minus_L_GCJ=yes
25119 hardcode_shlibpath_var_GCJ=no
25120 ;;
25121
25122 sysv4)
25123 case $host_vendor in
25124 sni)
25125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25126 hardcode_direct_GCJ=yes # is this really true???
25127 ;;
25128 siemens)
25129 ## LD is ld it makes a PLAMLIB
25130 ## CC just makes a GrossModule.
25131 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25132 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25133 hardcode_direct_GCJ=no
25134 ;;
25135 motorola)
25136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25137 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25138 ;;
25139 esac
25140 runpath_var='LD_RUN_PATH'
25141 hardcode_shlibpath_var_GCJ=no
25142 ;;
25143
25144 sysv4.3*)
25145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25146 hardcode_shlibpath_var_GCJ=no
25147 export_dynamic_flag_spec_GCJ='-Bexport'
25148 ;;
25149
25150 sysv4*MP*)
25151 if test -d /usr/nec; then
25152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25153 hardcode_shlibpath_var_GCJ=no
25154 runpath_var=LD_RUN_PATH
25155 hardcode_runpath_var=yes
25156 ld_shlibs_GCJ=yes
25157 fi
25158 ;;
25159
25160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25161 no_undefined_flag_GCJ='${wl}-z,text'
25162 archive_cmds_need_lc_GCJ=no
25163 hardcode_shlibpath_var_GCJ=no
25164 runpath_var='LD_RUN_PATH'
25165
25166 if test "$GCC" = yes; then
25167 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169 else
25170 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25172 fi
25173 ;;
25174
25175 sysv5* | sco3.2v5* | sco5v6*)
25176 # Note: We can NOT use -z defs as we might desire, because we do not
25177 # link with -lc, and that would cause any symbols used from libc to
25178 # always be unresolved, which means just about no library would
25179 # ever link correctly. If we're not using GNU ld we use -z text
25180 # though, which does catch some bad symbols but isn't as heavy-handed
25181 # as -z defs.
25182 no_undefined_flag_GCJ='${wl}-z,text'
25183 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25184 archive_cmds_need_lc_GCJ=no
25185 hardcode_shlibpath_var_GCJ=no
25186 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25187 hardcode_libdir_separator_GCJ=':'
25188 link_all_deplibs_GCJ=yes
25189 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25190 runpath_var='LD_RUN_PATH'
25191
25192 if test "$GCC" = yes; then
25193 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 else
25196 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198 fi
25199 ;;
25200
25201 uts4*)
25202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 hardcode_shlibpath_var_GCJ=no
25205 ;;
25206
25207 *)
25208 ld_shlibs_GCJ=no
25209 ;;
25210 esac
25211 fi
25212
25213{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25214echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25215test "$ld_shlibs_GCJ" = no && can_build_shared=no
25216
25217#
25218# Do we need to explicitly link libc?
25219#
25220case "x$archive_cmds_need_lc_GCJ" in
25221x|xyes)
25222 # Assume -lc should be added
25223 archive_cmds_need_lc_GCJ=yes
25224
25225 if test "$enable_shared" = yes && test "$GCC" = yes; then
25226 case $archive_cmds_GCJ in
25227 *'~'*)
25228 # FIXME: we may have to deal with multi-command sequences.
25229 ;;
25230 '$CC '*)
25231 # Test whether the compiler implicitly links with -lc since on some
25232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25233 # to ld, don't add -lc before -lgcc.
25234 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25235echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25236 $rm conftest*
25237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25238
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } 2>conftest.err; then
25244 soname=conftest
25245 lib=conftest
25246 libobjs=conftest.$ac_objext
25247 deplibs=
25248 wl=$lt_prog_compiler_wl_GCJ
25249 pic_flag=$lt_prog_compiler_pic_GCJ
25250 compiler_flags=-v
25251 linker_flags=-v
25252 verstring=
25253 output_objdir=.
25254 libname=conftest
25255 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25256 allow_undefined_flag_GCJ=
25257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25258 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }
25262 then
25263 archive_cmds_need_lc_GCJ=no
25264 else
25265 archive_cmds_need_lc_GCJ=yes
25266 fi
25267 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25268 else
25269 cat conftest.err 1>&5
25270 fi
25271 $rm conftest*
25272 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25273echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25274 ;;
25275 esac
25276 fi
25277 ;;
25278esac
25279
25280{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25281echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25282library_names_spec=
25283libname_spec='lib$name'
25284soname_spec=
25285shrext_cmds=".so"
25286postinstall_cmds=
25287postuninstall_cmds=
25288finish_cmds=
25289finish_eval=
25290shlibpath_var=
25291shlibpath_overrides_runpath=unknown
25292version_type=none
25293dynamic_linker="$host_os ld.so"
25294sys_lib_dlsearch_path_spec="/lib /usr/lib"
25295if test "$GCC" = yes; then
25296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25298 # if the path contains ";" then we assume it to be the separator
25299 # otherwise default to the standard path separator (i.e. ":") - it is
25300 # assumed that no part of a normal pathname contains ";" but that should
25301 # okay in the real world where ";" in dirpaths is itself problematic.
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25303 else
25304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25305 fi
25306else
25307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25308fi
25309need_lib_prefix=unknown
25310hardcode_into_libs=no
25311
25312# when you set need_version to no, make sure it does not cause -set_version
25313# flags to be left without arguments
25314need_version=unknown
25315
25316case $host_os in
25317aix3*)
25318 version_type=linux
25319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25320 shlibpath_var=LIBPATH
25321
25322 # AIX 3 has no versioning support, so we append a major version to the name.
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 ;;
25325
25326aix4* | aix5*)
25327 version_type=linux
25328 need_lib_prefix=no
25329 need_version=no
25330 hardcode_into_libs=yes
25331 if test "$host_cpu" = ia64; then
25332 # AIX 5 supports IA64
25333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25334 shlibpath_var=LD_LIBRARY_PATH
25335 else
25336 # With GCC up to 2.95.x, collect2 would create an import file
25337 # for dependence libraries. The import file would start with
25338 # the line `#! .'. This would cause the generated library to
25339 # depend on `.', always an invalid library. This was fixed in
25340 # development snapshots of GCC prior to 3.0.
25341 case $host_os in
25342 aix4 | aix4.[01] | aix4.[01].*)
25343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25344 echo ' yes '
25345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25346 :
25347 else
25348 can_build_shared=no
25349 fi
25350 ;;
25351 esac
25352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25353 # soname into executable. Probably we can add versioning support to
25354 # collect2, so additional links can be useful in future.
25355 if test "$aix_use_runtimelinking" = yes; then
25356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25357 # instead of lib<name>.a to let people know that these are not
25358 # typical AIX shared libraries.
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360 else
25361 # We preserve .a as extension for shared libraries through AIX4.2
25362 # and later when we are not doing run time linking.
25363 library_names_spec='${libname}${release}.a $libname.a'
25364 soname_spec='${libname}${release}${shared_ext}$major'
25365 fi
25366 shlibpath_var=LIBPATH
25367 fi
25368 ;;
25369
25370amigaos*)
25371 library_names_spec='$libname.ixlibrary $libname.a'
25372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25373 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'
25374 ;;
25375
25376beos*)
25377 library_names_spec='${libname}${shared_ext}'
25378 dynamic_linker="$host_os ld.so"
25379 shlibpath_var=LIBRARY_PATH
25380 ;;
25381
25382bsdi[45]*)
25383 version_type=linux
25384 need_version=no
25385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25386 soname_spec='${libname}${release}${shared_ext}$major'
25387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25388 shlibpath_var=LD_LIBRARY_PATH
25389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25391 # the default ld.so.conf also contains /usr/contrib/lib and
25392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25393 # libtool to hard-code these into programs
25394 ;;
25395
25396cygwin* | mingw* | pw32*)
25397 version_type=windows
25398 shrext_cmds=".dll"
25399 need_version=no
25400 need_lib_prefix=no
25401
25402 case $GCC,$host_os in
25403 yes,cygwin* | yes,mingw* | yes,pw32*)
25404 library_names_spec='$libname.dll.a'
25405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25406 postinstall_cmds='base_file=`basename \${file}`~
25407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25408 dldir=$destdir/`dirname \$dlpath`~
25409 test -d \$dldir || mkdir -p \$dldir~
25410 $install_prog $dir/$dlname \$dldir/$dlname~
25411 chmod a+x \$dldir/$dlname'
25412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25413 dlpath=$dir/\$dldll~
25414 $rm \$dlpath'
25415 shlibpath_overrides_runpath=yes
25416
25417 case $host_os in
25418 cygwin*)
25419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25422 ;;
25423 mingw*)
25424 # MinGW DLLs use traditional 'lib' prefix
25425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25428 # It is most probably a Windows format PATH printed by
25429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25430 # path with ; separators, and with drive letters. We can handle the
25431 # drive letters (cygwin fileutils understands them), so leave them,
25432 # especially as we might pass files found there to a mingw objdump,
25433 # which wouldn't understand a cygwinified path. Ahh.
25434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25435 else
25436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25437 fi
25438 ;;
25439 pw32*)
25440 # pw32 DLLs use 'pw' prefix rather than 'lib'
25441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25442 ;;
25443 esac
25444 ;;
25445
25446 *)
25447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25448 ;;
25449 esac
25450 dynamic_linker='Win32 ld.exe'
25451 # FIXME: first we should search . and the directory the executable is in
25452 shlibpath_var=PATH
25453 ;;
25454
25455darwin* | rhapsody*)
25456 dynamic_linker="$host_os dyld"
25457 version_type=darwin
25458 need_lib_prefix=no
25459 need_version=no
25460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25461 soname_spec='${libname}${release}${major}$shared_ext'
25462 shlibpath_overrides_runpath=yes
25463 shlibpath_var=DYLD_LIBRARY_PATH
25464 shrext_cmds='.dylib'
25465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25466 if test "$GCC" = yes; then
25467 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"`
25468 else
25469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25470 fi
25471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25472 ;;
25473
25474dgux*)
25475 version_type=linux
25476 need_lib_prefix=no
25477 need_version=no
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 shlibpath_var=LD_LIBRARY_PATH
25481 ;;
25482
25483freebsd1*)
25484 dynamic_linker=no
25485 ;;
25486
25487kfreebsd*-gnu)
25488 version_type=linux
25489 need_lib_prefix=no
25490 need_version=no
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 shlibpath_overrides_runpath=no
25495 hardcode_into_libs=yes
25496 dynamic_linker='GNU ld.so'
25497 ;;
25498
25499freebsd* | dragonfly*)
25500 # DragonFly does not have aout. When/if they implement a new
25501 # versioning mechanism, adjust this.
25502 if test -x /usr/bin/objformat; then
25503 objformat=`/usr/bin/objformat`
25504 else
25505 case $host_os in
25506 freebsd[123]*) objformat=aout ;;
25507 *) objformat=elf ;;
25508 esac
25509 fi
25510 version_type=freebsd-$objformat
25511 case $version_type in
25512 freebsd-elf*)
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25514 need_version=no
25515 need_lib_prefix=no
25516 ;;
25517 freebsd-*)
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25519 need_version=yes
25520 ;;
25521 esac
25522 shlibpath_var=LD_LIBRARY_PATH
25523 case $host_os in
25524 freebsd2*)
25525 shlibpath_overrides_runpath=yes
25526 ;;
25527 freebsd3.[01]* | freebsdelf3.[01]*)
25528 shlibpath_overrides_runpath=yes
25529 hardcode_into_libs=yes
25530 ;;
25531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25533 shlibpath_overrides_runpath=no
25534 hardcode_into_libs=yes
25535 ;;
25536 freebsd*) # from 4.6 on
25537 shlibpath_overrides_runpath=yes
25538 hardcode_into_libs=yes
25539 ;;
25540 esac
25541 ;;
25542
25543gnu*)
25544 version_type=linux
25545 need_lib_prefix=no
25546 need_version=no
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25548 soname_spec='${libname}${release}${shared_ext}$major'
25549 shlibpath_var=LD_LIBRARY_PATH
25550 hardcode_into_libs=yes
25551 ;;
25552
25553hpux9* | hpux10* | hpux11*)
25554 # Give a soname corresponding to the major version so that dld.sl refuses to
25555 # link against other versions.
25556 version_type=sunos
25557 need_lib_prefix=no
25558 need_version=no
25559 case $host_cpu in
25560 ia64*)
25561 shrext_cmds='.so'
25562 hardcode_into_libs=yes
25563 dynamic_linker="$host_os dld.so"
25564 shlibpath_var=LD_LIBRARY_PATH
25565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 if test "X$HPUX_IA64_MODE" = X32; then
25569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25570 else
25571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25572 fi
25573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25574 ;;
25575 hppa*64*)
25576 shrext_cmds='.sl'
25577 hardcode_into_libs=yes
25578 dynamic_linker="$host_os dld.sl"
25579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582 soname_spec='${libname}${release}${shared_ext}$major'
25583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25585 ;;
25586 *)
25587 shrext_cmds='.sl'
25588 dynamic_linker="$host_os dld.sl"
25589 shlibpath_var=SHLIB_PATH
25590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 ;;
25594 esac
25595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25596 postinstall_cmds='chmod 555 $lib'
25597 ;;
25598
25599interix3*)
25600 version_type=linux
25601 need_lib_prefix=no
25602 need_version=no
25603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25604 soname_spec='${libname}${release}${shared_ext}$major'
25605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25606 shlibpath_var=LD_LIBRARY_PATH
25607 shlibpath_overrides_runpath=no
25608 hardcode_into_libs=yes
25609 ;;
25610
25611irix5* | irix6* | nonstopux*)
25612 case $host_os in
25613 nonstopux*) version_type=nonstopux ;;
25614 *)
25615 if test "$lt_cv_prog_gnu_ld" = yes; then
25616 version_type=linux
25617 else
25618 version_type=irix
25619 fi ;;
25620 esac
25621 need_lib_prefix=no
25622 need_version=no
25623 soname_spec='${libname}${release}${shared_ext}$major'
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25625 case $host_os in
25626 irix5* | nonstopux*)
25627 libsuff= shlibsuff=
25628 ;;
25629 *)
25630 case $LD in # libtool.m4 will add one of these switches to LD
25631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25632 libsuff= shlibsuff= libmagic=32-bit;;
25633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25634 libsuff=32 shlibsuff=N32 libmagic=N32;;
25635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25637 *) libsuff= shlibsuff= libmagic=never-match;;
25638 esac
25639 ;;
25640 esac
25641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25642 shlibpath_overrides_runpath=no
25643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25645 hardcode_into_libs=yes
25646 ;;
25647
25648# No shared lib support for Linux oldld, aout, or coff.
25649linux*oldld* | linux*aout* | linux*coff*)
25650 dynamic_linker=no
25651 ;;
25652
25653# This must be Linux ELF.
25654linux*)
25655 version_type=linux
25656 need_lib_prefix=no
25657 need_version=no
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25659 soname_spec='${libname}${release}${shared_ext}$major'
25660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25661 shlibpath_var=LD_LIBRARY_PATH
25662 shlibpath_overrides_runpath=no
25663 # This implies no fast_install, which is unacceptable.
25664 # Some rework will be needed to allow for fast_install
25665 # before this can be enabled.
25666 hardcode_into_libs=yes
25667
25668 # Append ld.so.conf contents to the search path
25669 if test -f /etc/ld.so.conf; then
25670 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' ' '`
25671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25672 fi
25673
25674 # We used to test for /lib/ld.so.1 and disable shared libraries on
25675 # powerpc, because MkLinux only supported shared libraries with the
25676 # GNU dynamic linker. Since this was broken with cross compilers,
25677 # most powerpc-linux boxes support dynamic linking these days and
25678 # people can always --disable-shared, the test was removed, and we
25679 # assume the GNU/Linux dynamic linker is in use.
25680 dynamic_linker='GNU/Linux ld.so'
25681 ;;
25682
25683knetbsd*-gnu)
25684 version_type=linux
25685 need_lib_prefix=no
25686 need_version=no
25687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25688 soname_spec='${libname}${release}${shared_ext}$major'
25689 shlibpath_var=LD_LIBRARY_PATH
25690 shlibpath_overrides_runpath=no
25691 hardcode_into_libs=yes
25692 dynamic_linker='GNU ld.so'
25693 ;;
25694
25695netbsd*)
25696 version_type=sunos
25697 need_lib_prefix=no
25698 need_version=no
25699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702 dynamic_linker='NetBSD (a.out) ld.so'
25703 else
25704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25705 soname_spec='${libname}${release}${shared_ext}$major'
25706 dynamic_linker='NetBSD ld.elf_so'
25707 fi
25708 shlibpath_var=LD_LIBRARY_PATH
25709 shlibpath_overrides_runpath=yes
25710 hardcode_into_libs=yes
25711 ;;
25712
25713newsos6)
25714 version_type=linux
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 shlibpath_overrides_runpath=yes
25718 ;;
25719
25720nto-qnx*)
25721 version_type=linux
25722 need_lib_prefix=no
25723 need_version=no
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 shlibpath_var=LD_LIBRARY_PATH
25727 shlibpath_overrides_runpath=yes
25728 ;;
25729
25730openbsd*)
25731 version_type=sunos
25732 sys_lib_dlsearch_path_spec="/usr/lib"
25733 need_lib_prefix=no
25734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25735 case $host_os in
25736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25737 *) need_version=no ;;
25738 esac
25739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25741 shlibpath_var=LD_LIBRARY_PATH
25742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25743 case $host_os in
25744 openbsd2.[89] | openbsd2.[89].*)
25745 shlibpath_overrides_runpath=no
25746 ;;
25747 *)
25748 shlibpath_overrides_runpath=yes
25749 ;;
25750 esac
25751 else
25752 shlibpath_overrides_runpath=yes
25753 fi
25754 ;;
25755
25756os2*)
25757 libname_spec='$name'
25758 shrext_cmds=".dll"
25759 need_lib_prefix=no
25760 library_names_spec='$libname${shared_ext} $libname.a'
25761 dynamic_linker='OS/2 ld.exe'
25762 shlibpath_var=LIBPATH
25763 ;;
25764
25765osf3* | osf4* | osf5*)
25766 version_type=osf
25767 need_lib_prefix=no
25768 need_version=no
25769 soname_spec='${libname}${release}${shared_ext}$major'
25770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771 shlibpath_var=LD_LIBRARY_PATH
25772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25774 ;;
25775
25776solaris*)
25777 version_type=linux
25778 need_lib_prefix=no
25779 need_version=no
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 shlibpath_var=LD_LIBRARY_PATH
25783 shlibpath_overrides_runpath=yes
25784 hardcode_into_libs=yes
25785 # ldd complains unless libraries are executable
25786 postinstall_cmds='chmod +x $lib'
25787 ;;
25788
25789sunos4*)
25790 version_type=sunos
25791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25793 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes
25795 if test "$with_gnu_ld" = yes; then
25796 need_lib_prefix=no
25797 fi
25798 need_version=yes
25799 ;;
25800
25801sysv4 | sysv4.3*)
25802 version_type=linux
25803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 case $host_vendor in
25807 sni)
25808 shlibpath_overrides_runpath=no
25809 need_lib_prefix=no
25810 export_dynamic_flag_spec='${wl}-Blargedynsym'
25811 runpath_var=LD_RUN_PATH
25812 ;;
25813 siemens)
25814 need_lib_prefix=no
25815 ;;
25816 motorola)
25817 need_lib_prefix=no
25818 need_version=no
25819 shlibpath_overrides_runpath=no
25820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25821 ;;
25822 esac
25823 ;;
25824
25825sysv4*MP*)
25826 if test -d /usr/nec ;then
25827 version_type=linux
25828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25829 soname_spec='$libname${shared_ext}.$major'
25830 shlibpath_var=LD_LIBRARY_PATH
25831 fi
25832 ;;
25833
25834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25835 version_type=freebsd-elf
25836 need_lib_prefix=no
25837 need_version=no
25838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25839 soname_spec='${libname}${release}${shared_ext}$major'
25840 shlibpath_var=LD_LIBRARY_PATH
25841 hardcode_into_libs=yes
25842 if test "$with_gnu_ld" = yes; then
25843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25844 shlibpath_overrides_runpath=no
25845 else
25846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25847 shlibpath_overrides_runpath=yes
25848 case $host_os in
25849 sco3.2v5*)
25850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25851 ;;
25852 esac
25853 fi
25854 sys_lib_dlsearch_path_spec='/usr/lib'
25855 ;;
25856
25857uts4*)
25858 version_type=linux
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 soname_spec='${libname}${release}${shared_ext}$major'
25861 shlibpath_var=LD_LIBRARY_PATH
25862 ;;
25863
25864*)
25865 dynamic_linker=no
25866 ;;
25867esac
25868{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25869echo "${ECHO_T}$dynamic_linker" >&6; }
25870test "$dynamic_linker" = no && can_build_shared=no
25871
25872variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25873if test "$GCC" = yes; then
25874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25875fi
25876
25877{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25878echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25879hardcode_action_GCJ=
25880if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25881 test -n "$runpath_var_GCJ" || \
25882 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25883
25884 # We can hardcode non-existant directories.
25885 if test "$hardcode_direct_GCJ" != no &&
25886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25887 # have to relink, otherwise we might link with an installed library
25888 # when we should be linking with a yet-to-be-installed one
25889 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25890 test "$hardcode_minus_L_GCJ" != no; then
25891 # Linking always hardcodes the temporary library directory.
25892 hardcode_action_GCJ=relink
25893 else
25894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25895 hardcode_action_GCJ=immediate
25896 fi
25897else
25898 # We cannot hardcode anything, or else we can only hardcode existing
25899 # directories.
25900 hardcode_action_GCJ=unsupported
25901fi
25902{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25903echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25904
25905if test "$hardcode_action_GCJ" = relink; then
25906 # Fast installation is not supported
25907 enable_fast_install=no
25908elif test "$shlibpath_overrides_runpath" = yes ||
25909 test "$enable_shared" = no; then
25910 # Fast installation is not necessary
25911 enable_fast_install=needless
25912fi
25913
25914
25915# The else clause should only fire when bootstrapping the
25916# libtool distribution, otherwise you forgot to ship ltmain.sh
25917# with your package, and you will get complaints that there are
25918# no rules to generate ltmain.sh.
25919if test -f "$ltmain"; then
25920 # See if we are running on zsh, and set the options which allow our commands through
25921 # without removal of \ escapes.
25922 if test -n "${ZSH_VERSION+set}" ; then
25923 setopt NO_GLOB_SUBST
25924 fi
25925 # Now quote all the things that may contain metacharacters while being
25926 # careful not to overquote the AC_SUBSTed values. We take copies of the
25927 # variables and quote the copies for generation of the libtool script.
25928 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25929 SED SHELL STRIP \
25930 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25931 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25932 deplibs_check_method reload_flag reload_cmds need_locks \
25933 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25934 lt_cv_sys_global_symbol_to_c_name_address \
25935 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25936 old_postinstall_cmds old_postuninstall_cmds \
25937 compiler_GCJ \
25938 CC_GCJ \
25939 LD_GCJ \
25940 lt_prog_compiler_wl_GCJ \
25941 lt_prog_compiler_pic_GCJ \
25942 lt_prog_compiler_static_GCJ \
25943 lt_prog_compiler_no_builtin_flag_GCJ \
25944 export_dynamic_flag_spec_GCJ \
25945 thread_safe_flag_spec_GCJ \
25946 whole_archive_flag_spec_GCJ \
25947 enable_shared_with_static_runtimes_GCJ \
25948 old_archive_cmds_GCJ \
25949 old_archive_from_new_cmds_GCJ \
25950 predep_objects_GCJ \
25951 postdep_objects_GCJ \
25952 predeps_GCJ \
25953 postdeps_GCJ \
25954 compiler_lib_search_path_GCJ \
25955 archive_cmds_GCJ \
25956 archive_expsym_cmds_GCJ \
25957 postinstall_cmds_GCJ \
25958 postuninstall_cmds_GCJ \
25959 old_archive_from_expsyms_cmds_GCJ \
25960 allow_undefined_flag_GCJ \
25961 no_undefined_flag_GCJ \
25962 export_symbols_cmds_GCJ \
25963 hardcode_libdir_flag_spec_GCJ \
25964 hardcode_libdir_flag_spec_ld_GCJ \
25965 hardcode_libdir_separator_GCJ \
25966 hardcode_automatic_GCJ \
25967 module_cmds_GCJ \
25968 module_expsym_cmds_GCJ \
25969 lt_cv_prog_compiler_c_o_GCJ \
25970 exclude_expsyms_GCJ \
25971 include_expsyms_GCJ; do
25972
25973 case $var in
25974 old_archive_cmds_GCJ | \
25975 old_archive_from_new_cmds_GCJ | \
25976 archive_cmds_GCJ | \
25977 archive_expsym_cmds_GCJ | \
25978 module_cmds_GCJ | \
25979 module_expsym_cmds_GCJ | \
25980 old_archive_from_expsyms_cmds_GCJ | \
25981 export_symbols_cmds_GCJ | \
25982 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25983 postinstall_cmds | postuninstall_cmds | \
25984 old_postinstall_cmds | old_postuninstall_cmds | \
25985 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25986 # Double-quote double-evaled strings.
25987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25988 ;;
25989 *)
25990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25991 ;;
25992 esac
25993 done
25994
25995 case $lt_echo in
25996 *'\$0 --fallback-echo"')
25997 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25998 ;;
25999 esac
26000
26001cfgfile="$ofile"
26002
26003 cat <<__EOF__ >> "$cfgfile"
26004# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26005
26006# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26007
26008# Shell to use when invoking shell scripts.
26009SHELL=$lt_SHELL
26010
26011# Whether or not to build shared libraries.
26012build_libtool_libs=$enable_shared
26013
26014# Whether or not to build static libraries.
26015build_old_libs=$enable_static
26016
26017# Whether or not to add -lc for building shared libraries.
26018build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26019
26020# Whether or not to disallow shared libs when runtime libs are static
26021allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26022
26023# Whether or not to optimize for fast installation.
26024fast_install=$enable_fast_install
26025
26026# The host system.
26027host_alias=$host_alias
26028host=$host
26029host_os=$host_os
26030
26031# The build system.
26032build_alias=$build_alias
26033build=$build
26034build_os=$build_os
26035
26036# An echo program that does not interpret backslashes.
26037echo=$lt_echo
26038
26039# The archiver.
26040AR=$lt_AR
26041AR_FLAGS=$lt_AR_FLAGS
26042
26043# A C compiler.
26044LTCC=$lt_LTCC
26045
26046# LTCC compiler flags.
26047LTCFLAGS=$lt_LTCFLAGS
26048
26049# A language-specific compiler.
26050CC=$lt_compiler_GCJ
26051
26052# Is the compiler the GNU C compiler?
26053with_gcc=$GCC_GCJ
26054
26055# An ERE matcher.
26056EGREP=$lt_EGREP
26057
26058# The linker used to build libraries.
26059LD=$lt_LD_GCJ
26060
26061# Whether we need hard or soft links.
26062LN_S=$lt_LN_S
26063
26064# A BSD-compatible nm program.
26065NM=$lt_NM
26066
26067# A symbol stripping program
26068STRIP=$lt_STRIP
26069
26070# Used to examine libraries when file_magic_cmd begins "file"
26071MAGIC_CMD=$MAGIC_CMD
26072
26073# Used on cygwin: DLL creation program.
26074DLLTOOL="$DLLTOOL"
26075
26076# Used on cygwin: object dumper.
26077OBJDUMP="$OBJDUMP"
26078
26079# Used on cygwin: assembler.
26080AS="$AS"
26081
26082# The name of the directory that contains temporary libtool files.
26083objdir=$objdir
26084
26085# How to create reloadable object files.
26086reload_flag=$lt_reload_flag
26087reload_cmds=$lt_reload_cmds
26088
26089# How to pass a linker flag through the compiler.
26090wl=$lt_lt_prog_compiler_wl_GCJ
26091
26092# Object file suffix (normally "o").
26093objext="$ac_objext"
26094
26095# Old archive suffix (normally "a").
26096libext="$libext"
26097
26098# Shared library suffix (normally ".so").
26099shrext_cmds='$shrext_cmds'
26100
26101# Executable file suffix (normally "").
26102exeext="$exeext"
26103
26104# Additional compiler flags for building library objects.
26105pic_flag=$lt_lt_prog_compiler_pic_GCJ
26106pic_mode=$pic_mode
26107
26108# What is the maximum length of a command?
26109max_cmd_len=$lt_cv_sys_max_cmd_len
26110
26111# Does compiler simultaneously support -c and -o options?
26112compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26113
26114# Must we lock files when doing compilation?
26115need_locks=$lt_need_locks
26116
26117# Do we need the lib prefix for modules?
26118need_lib_prefix=$need_lib_prefix
26119
26120# Do we need a version for libraries?
26121need_version=$need_version
26122
26123# Whether dlopen is supported.
26124dlopen_support=$enable_dlopen
26125
26126# Whether dlopen of programs is supported.
26127dlopen_self=$enable_dlopen_self
26128
26129# Whether dlopen of statically linked programs is supported.
26130dlopen_self_static=$enable_dlopen_self_static
26131
26132# Compiler flag to prevent dynamic linking.
26133link_static_flag=$lt_lt_prog_compiler_static_GCJ
26134
26135# Compiler flag to turn off builtin functions.
26136no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26137
26138# Compiler flag to allow reflexive dlopens.
26139export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26140
26141# Compiler flag to generate shared objects directly from archives.
26142whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26143
26144# Compiler flag to generate thread-safe objects.
26145thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26146
26147# Library versioning type.
26148version_type=$version_type
26149
26150# Format of library name prefix.
26151libname_spec=$lt_libname_spec
26152
26153# List of archive names. First name is the real one, the rest are links.
26154# The last name is the one that the linker finds with -lNAME.
26155library_names_spec=$lt_library_names_spec
26156
26157# The coded name of the library, if different from the real name.
26158soname_spec=$lt_soname_spec
26159
26160# Commands used to build and install an old-style archive.
26161RANLIB=$lt_RANLIB
26162old_archive_cmds=$lt_old_archive_cmds_GCJ
26163old_postinstall_cmds=$lt_old_postinstall_cmds
26164old_postuninstall_cmds=$lt_old_postuninstall_cmds
26165
26166# Create an old-style archive from a shared archive.
26167old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26168
26169# Create a temporary old-style archive to link instead of a shared archive.
26170old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26171
26172# Commands used to build and install a shared archive.
26173archive_cmds=$lt_archive_cmds_GCJ
26174archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26175postinstall_cmds=$lt_postinstall_cmds
26176postuninstall_cmds=$lt_postuninstall_cmds
26177
26178# Commands used to build a loadable module (assumed same as above if empty)
26179module_cmds=$lt_module_cmds_GCJ
26180module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26181
26182# Commands to strip libraries.
26183old_striplib=$lt_old_striplib
26184striplib=$lt_striplib
26185
26186# Dependencies to place before the objects being linked to create a
26187# shared library.
26188predep_objects=$lt_predep_objects_GCJ
26189
26190# Dependencies to place after the objects being linked to create a
26191# shared library.
26192postdep_objects=$lt_postdep_objects_GCJ
26193
26194# Dependencies to place before the objects being linked to create a
26195# shared library.
26196predeps=$lt_predeps_GCJ
26197
26198# Dependencies to place after the objects being linked to create a
26199# shared library.
26200postdeps=$lt_postdeps_GCJ
26201
26202# The library search path used internally by the compiler when linking
26203# a shared library.
26204compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26205
26206# Method to check whether dependent libraries are shared objects.
26207deplibs_check_method=$lt_deplibs_check_method
26208
26209# Command to use when deplibs_check_method == file_magic.
26210file_magic_cmd=$lt_file_magic_cmd
26211
26212# Flag that allows shared libraries with undefined symbols to be built.
26213allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26214
26215# Flag that forces no undefined symbols.
26216no_undefined_flag=$lt_no_undefined_flag_GCJ
26217
26218# Commands used to finish a libtool library installation in a directory.
26219finish_cmds=$lt_finish_cmds
26220
26221# Same as above, but a single script fragment to be evaled but not shown.
26222finish_eval=$lt_finish_eval
26223
26224# Take the output of nm and produce a listing of raw symbols and C names.
26225global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26226
26227# Transform the output of nm in a proper C declaration
26228global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26229
26230# Transform the output of nm in a C name address pair
26231global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26232
26233# This is the shared library runtime path variable.
26234runpath_var=$runpath_var
26235
26236# This is the shared library path variable.
26237shlibpath_var=$shlibpath_var
26238
26239# Is shlibpath searched before the hard-coded library search path?
26240shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26241
26242# How to hardcode a shared library path into an executable.
26243hardcode_action=$hardcode_action_GCJ
26244
26245# Whether we should hardcode library paths into libraries.
26246hardcode_into_libs=$hardcode_into_libs
26247
26248# Flag to hardcode \$libdir into a binary during linking.
26249# This must work even if \$libdir does not exist.
26250hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26251
26252# If ld is used when linking, flag to hardcode \$libdir into
26253# a binary during linking. This must work even if \$libdir does
26254# not exist.
26255hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26256
26257# Whether we need a single -rpath flag with a separated argument.
26258hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26259
26260# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26261# resulting binary.
26262hardcode_direct=$hardcode_direct_GCJ
26263
26264# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26265# resulting binary.
26266hardcode_minus_L=$hardcode_minus_L_GCJ
26267
26268# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26269# the resulting binary.
26270hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26271
26272# Set to yes if building a shared library automatically hardcodes DIR into the library
26273# and all subsequent libraries and executables linked against it.
26274hardcode_automatic=$hardcode_automatic_GCJ
26275
26276# Variables whose values should be saved in libtool wrapper scripts and
26277# restored at relink time.
26278variables_saved_for_relink="$variables_saved_for_relink"
26279
26280# Whether libtool must link a program against all its dependency libraries.
26281link_all_deplibs=$link_all_deplibs_GCJ
26282
26283# Compile-time system search path for libraries
26284sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26285
26286# Run-time system search path for libraries
26287sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26288
26289# Fix the shell variable \$srcfile for the compiler.
26290fix_srcfile_path="$fix_srcfile_path_GCJ"
26291
26292# Set to yes if exported symbols are required.
26293always_export_symbols=$always_export_symbols_GCJ
26294
26295# The commands to list exported symbols.
26296export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26297
26298# The commands to extract the exported symbol list from a shared archive.
26299extract_expsyms_cmds=$lt_extract_expsyms_cmds
26300
26301# Symbols that should not be listed in the preloaded symbols.
26302exclude_expsyms=$lt_exclude_expsyms_GCJ
26303
26304# Symbols that must always be exported.
26305include_expsyms=$lt_include_expsyms_GCJ
26306
26307# ### END LIBTOOL TAG CONFIG: $tagname
26308
26309__EOF__
26310
26311
26312else
26313 # If there is no Makefile yet, we rely on a make rule to execute
26314 # `config.status --recheck' to rerun these tests and create the
26315 # libtool script then.
26316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26317 if test -f "$ltmain_in"; then
26318 test -f Makefile && make "$ltmain"
26319 fi
26320fi
26321
26322
26323ac_ext=c
26324ac_cpp='$CPP $CPPFLAGS'
26325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327ac_compiler_gnu=$ac_cv_c_compiler_gnu
26328
26329CC="$lt_save_CC"
26330
26331 else
26332 tagname=""
26333 fi
26334 ;;
26335
26336 RC)
26337 ac_ext=c
26338ac_cpp='$CPP $CPPFLAGS'
26339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343
26344# Source file extension for RC test sources.
26345ac_ext=rc
26346
26347# Object file extension for compiled RC test sources.
26348objext=o
26349objext_RC=$objext
26350
26351# Code to be used in simple compile tests
26352lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26353
26354# Code to be used in simple link tests
26355lt_simple_link_test_code="$lt_simple_compile_test_code"
26356
26357# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26358
26359# If no C compiler was specified, use CC.
26360LTCC=${LTCC-"$CC"}
26361
26362# If no C compiler flags were specified, use CFLAGS.
26363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26364
26365# Allow CC to be a program name with arguments.
26366compiler=$CC
26367
26368
26369# save warnings/boilerplate of simple test code
26370ac_outfile=conftest.$ac_objext
26371printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26373_lt_compiler_boilerplate=`cat conftest.err`
26374$rm conftest*
26375
26376ac_outfile=conftest.$ac_objext
26377printf "$lt_simple_link_test_code" >conftest.$ac_ext
26378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379_lt_linker_boilerplate=`cat conftest.err`
26380$rm conftest*
26381
26382
26383# Allow CC to be a program name with arguments.
26384lt_save_CC="$CC"
26385CC=${RC-"windres"}
26386compiler=$CC
26387compiler_RC=$CC
26388for cc_temp in $compiler""; do
26389 case $cc_temp in
26390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26392 \-*) ;;
26393 *) break;;
26394 esac
26395done
26396cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26397
26398lt_cv_prog_compiler_c_o_RC=yes
26399
26400# The else clause should only fire when bootstrapping the
26401# libtool distribution, otherwise you forgot to ship ltmain.sh
26402# with your package, and you will get complaints that there are
26403# no rules to generate ltmain.sh.
26404if test -f "$ltmain"; then
26405 # See if we are running on zsh, and set the options which allow our commands through
26406 # without removal of \ escapes.
26407 if test -n "${ZSH_VERSION+set}" ; then
26408 setopt NO_GLOB_SUBST
26409 fi
26410 # Now quote all the things that may contain metacharacters while being
26411 # careful not to overquote the AC_SUBSTed values. We take copies of the
26412 # variables and quote the copies for generation of the libtool script.
26413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26414 SED SHELL STRIP \
26415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26417 deplibs_check_method reload_flag reload_cmds need_locks \
26418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26419 lt_cv_sys_global_symbol_to_c_name_address \
26420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26421 old_postinstall_cmds old_postuninstall_cmds \
26422 compiler_RC \
26423 CC_RC \
26424 LD_RC \
26425 lt_prog_compiler_wl_RC \
26426 lt_prog_compiler_pic_RC \
26427 lt_prog_compiler_static_RC \
26428 lt_prog_compiler_no_builtin_flag_RC \
26429 export_dynamic_flag_spec_RC \
26430 thread_safe_flag_spec_RC \
26431 whole_archive_flag_spec_RC \
26432 enable_shared_with_static_runtimes_RC \
26433 old_archive_cmds_RC \
26434 old_archive_from_new_cmds_RC \
26435 predep_objects_RC \
26436 postdep_objects_RC \
26437 predeps_RC \
26438 postdeps_RC \
26439 compiler_lib_search_path_RC \
26440 archive_cmds_RC \
26441 archive_expsym_cmds_RC \
26442 postinstall_cmds_RC \
26443 postuninstall_cmds_RC \
26444 old_archive_from_expsyms_cmds_RC \
26445 allow_undefined_flag_RC \
26446 no_undefined_flag_RC \
26447 export_symbols_cmds_RC \
26448 hardcode_libdir_flag_spec_RC \
26449 hardcode_libdir_flag_spec_ld_RC \
26450 hardcode_libdir_separator_RC \
26451 hardcode_automatic_RC \
26452 module_cmds_RC \
26453 module_expsym_cmds_RC \
26454 lt_cv_prog_compiler_c_o_RC \
26455 exclude_expsyms_RC \
26456 include_expsyms_RC; do
26457
26458 case $var in
26459 old_archive_cmds_RC | \
26460 old_archive_from_new_cmds_RC | \
26461 archive_cmds_RC | \
26462 archive_expsym_cmds_RC | \
26463 module_cmds_RC | \
26464 module_expsym_cmds_RC | \
26465 old_archive_from_expsyms_cmds_RC | \
26466 export_symbols_cmds_RC | \
26467 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26468 postinstall_cmds | postuninstall_cmds | \
26469 old_postinstall_cmds | old_postuninstall_cmds | \
26470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26471 # Double-quote double-evaled strings.
26472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26473 ;;
26474 *)
26475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26476 ;;
26477 esac
26478 done
26479
26480 case $lt_echo in
26481 *'\$0 --fallback-echo"')
26482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26483 ;;
26484 esac
26485
26486cfgfile="$ofile"
26487
26488 cat <<__EOF__ >> "$cfgfile"
26489# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26490
26491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26492
26493# Shell to use when invoking shell scripts.
26494SHELL=$lt_SHELL
26495
26496# Whether or not to build shared libraries.
26497build_libtool_libs=$enable_shared
26498
26499# Whether or not to build static libraries.
26500build_old_libs=$enable_static
26501
26502# Whether or not to add -lc for building shared libraries.
26503build_libtool_need_lc=$archive_cmds_need_lc_RC
26504
26505# Whether or not to disallow shared libs when runtime libs are static
26506allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26507
26508# Whether or not to optimize for fast installation.
26509fast_install=$enable_fast_install
26510
26511# The host system.
26512host_alias=$host_alias
26513host=$host
26514host_os=$host_os
26515
26516# The build system.
26517build_alias=$build_alias
26518build=$build
26519build_os=$build_os
26520
26521# An echo program that does not interpret backslashes.
26522echo=$lt_echo
26523
26524# The archiver.
26525AR=$lt_AR
26526AR_FLAGS=$lt_AR_FLAGS
26527
26528# A C compiler.
26529LTCC=$lt_LTCC
26530
26531# LTCC compiler flags.
26532LTCFLAGS=$lt_LTCFLAGS
26533
26534# A language-specific compiler.
26535CC=$lt_compiler_RC
26536
26537# Is the compiler the GNU C compiler?
26538with_gcc=$GCC_RC
26539
26540# An ERE matcher.
26541EGREP=$lt_EGREP
26542
26543# The linker used to build libraries.
26544LD=$lt_LD_RC
26545
26546# Whether we need hard or soft links.
26547LN_S=$lt_LN_S
26548
26549# A BSD-compatible nm program.
26550NM=$lt_NM
26551
26552# A symbol stripping program
26553STRIP=$lt_STRIP
26554
26555# Used to examine libraries when file_magic_cmd begins "file"
26556MAGIC_CMD=$MAGIC_CMD
26557
26558# Used on cygwin: DLL creation program.
26559DLLTOOL="$DLLTOOL"
26560
26561# Used on cygwin: object dumper.
26562OBJDUMP="$OBJDUMP"
26563
26564# Used on cygwin: assembler.
26565AS="$AS"
26566
26567# The name of the directory that contains temporary libtool files.
26568objdir=$objdir
26569
26570# How to create reloadable object files.
26571reload_flag=$lt_reload_flag
26572reload_cmds=$lt_reload_cmds
26573
26574# How to pass a linker flag through the compiler.
26575wl=$lt_lt_prog_compiler_wl_RC
26576
26577# Object file suffix (normally "o").
26578objext="$ac_objext"
26579
26580# Old archive suffix (normally "a").
26581libext="$libext"
26582
26583# Shared library suffix (normally ".so").
26584shrext_cmds='$shrext_cmds'
26585
26586# Executable file suffix (normally "").
26587exeext="$exeext"
26588
26589# Additional compiler flags for building library objects.
26590pic_flag=$lt_lt_prog_compiler_pic_RC
26591pic_mode=$pic_mode
26592
26593# What is the maximum length of a command?
26594max_cmd_len=$lt_cv_sys_max_cmd_len
26595
26596# Does compiler simultaneously support -c and -o options?
26597compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26598
26599# Must we lock files when doing compilation?
26600need_locks=$lt_need_locks
26601
26602# Do we need the lib prefix for modules?
26603need_lib_prefix=$need_lib_prefix
26604
26605# Do we need a version for libraries?
26606need_version=$need_version
26607
26608# Whether dlopen is supported.
26609dlopen_support=$enable_dlopen
26610
26611# Whether dlopen of programs is supported.
26612dlopen_self=$enable_dlopen_self
26613
26614# Whether dlopen of statically linked programs is supported.
26615dlopen_self_static=$enable_dlopen_self_static
26616
26617# Compiler flag to prevent dynamic linking.
26618link_static_flag=$lt_lt_prog_compiler_static_RC
26619
26620# Compiler flag to turn off builtin functions.
26621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26622
26623# Compiler flag to allow reflexive dlopens.
26624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26625
26626# Compiler flag to generate shared objects directly from archives.
26627whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26628
26629# Compiler flag to generate thread-safe objects.
26630thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26631
26632# Library versioning type.
26633version_type=$version_type
26634
26635# Format of library name prefix.
26636libname_spec=$lt_libname_spec
26637
26638# List of archive names. First name is the real one, the rest are links.
26639# The last name is the one that the linker finds with -lNAME.
26640library_names_spec=$lt_library_names_spec
26641
26642# The coded name of the library, if different from the real name.
26643soname_spec=$lt_soname_spec
26644
26645# Commands used to build and install an old-style archive.
26646RANLIB=$lt_RANLIB
26647old_archive_cmds=$lt_old_archive_cmds_RC
26648old_postinstall_cmds=$lt_old_postinstall_cmds
26649old_postuninstall_cmds=$lt_old_postuninstall_cmds
26650
26651# Create an old-style archive from a shared archive.
26652old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26653
26654# Create a temporary old-style archive to link instead of a shared archive.
26655old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26656
26657# Commands used to build and install a shared archive.
26658archive_cmds=$lt_archive_cmds_RC
26659archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26660postinstall_cmds=$lt_postinstall_cmds
26661postuninstall_cmds=$lt_postuninstall_cmds
26662
26663# Commands used to build a loadable module (assumed same as above if empty)
26664module_cmds=$lt_module_cmds_RC
26665module_expsym_cmds=$lt_module_expsym_cmds_RC
26666
26667# Commands to strip libraries.
26668old_striplib=$lt_old_striplib
26669striplib=$lt_striplib
26670
26671# Dependencies to place before the objects being linked to create a
26672# shared library.
26673predep_objects=$lt_predep_objects_RC
26674
26675# Dependencies to place after the objects being linked to create a
26676# shared library.
26677postdep_objects=$lt_postdep_objects_RC
26678
26679# Dependencies to place before the objects being linked to create a
26680# shared library.
26681predeps=$lt_predeps_RC
26682
26683# Dependencies to place after the objects being linked to create a
26684# shared library.
26685postdeps=$lt_postdeps_RC
26686
26687# The library search path used internally by the compiler when linking
26688# a shared library.
26689compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26690
26691# Method to check whether dependent libraries are shared objects.
26692deplibs_check_method=$lt_deplibs_check_method
26693
26694# Command to use when deplibs_check_method == file_magic.
26695file_magic_cmd=$lt_file_magic_cmd
26696
26697# Flag that allows shared libraries with undefined symbols to be built.
26698allow_undefined_flag=$lt_allow_undefined_flag_RC
26699
26700# Flag that forces no undefined symbols.
26701no_undefined_flag=$lt_no_undefined_flag_RC
26702
26703# Commands used to finish a libtool library installation in a directory.
26704finish_cmds=$lt_finish_cmds
26705
26706# Same as above, but a single script fragment to be evaled but not shown.
26707finish_eval=$lt_finish_eval
26708
26709# Take the output of nm and produce a listing of raw symbols and C names.
26710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26711
26712# Transform the output of nm in a proper C declaration
26713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26714
26715# Transform the output of nm in a C name address pair
26716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26717
26718# This is the shared library runtime path variable.
26719runpath_var=$runpath_var
26720
26721# This is the shared library path variable.
26722shlibpath_var=$shlibpath_var
26723
26724# Is shlibpath searched before the hard-coded library search path?
26725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26726
26727# How to hardcode a shared library path into an executable.
26728hardcode_action=$hardcode_action_RC
26729
26730# Whether we should hardcode library paths into libraries.
26731hardcode_into_libs=$hardcode_into_libs
26732
26733# Flag to hardcode \$libdir into a binary during linking.
26734# This must work even if \$libdir does not exist.
26735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26736
26737# If ld is used when linking, flag to hardcode \$libdir into
26738# a binary during linking. This must work even if \$libdir does
26739# not exist.
26740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26741
26742# Whether we need a single -rpath flag with a separated argument.
26743hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26744
26745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26746# resulting binary.
26747hardcode_direct=$hardcode_direct_RC
26748
26749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26750# resulting binary.
26751hardcode_minus_L=$hardcode_minus_L_RC
26752
26753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26754# the resulting binary.
26755hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26756
26757# Set to yes if building a shared library automatically hardcodes DIR into the library
26758# and all subsequent libraries and executables linked against it.
26759hardcode_automatic=$hardcode_automatic_RC
26760
26761# Variables whose values should be saved in libtool wrapper scripts and
26762# restored at relink time.
26763variables_saved_for_relink="$variables_saved_for_relink"
26764
26765# Whether libtool must link a program against all its dependency libraries.
26766link_all_deplibs=$link_all_deplibs_RC
26767
26768# Compile-time system search path for libraries
26769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26770
26771# Run-time system search path for libraries
26772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26773
26774# Fix the shell variable \$srcfile for the compiler.
26775fix_srcfile_path="$fix_srcfile_path_RC"
26776
26777# Set to yes if exported symbols are required.
26778always_export_symbols=$always_export_symbols_RC
26779
26780# The commands to list exported symbols.
26781export_symbols_cmds=$lt_export_symbols_cmds_RC
26782
26783# The commands to extract the exported symbol list from a shared archive.
26784extract_expsyms_cmds=$lt_extract_expsyms_cmds
26785
26786# Symbols that should not be listed in the preloaded symbols.
26787exclude_expsyms=$lt_exclude_expsyms_RC
26788
26789# Symbols that must always be exported.
26790include_expsyms=$lt_include_expsyms_RC
26791
26792# ### END LIBTOOL TAG CONFIG: $tagname
26793
26794__EOF__
26795
26796
26797else
26798 # If there is no Makefile yet, we rely on a make rule to execute
26799 # `config.status --recheck' to rerun these tests and create the
26800 # libtool script then.
26801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26802 if test -f "$ltmain_in"; then
26803 test -f Makefile && make "$ltmain"
26804 fi
26805fi
26806
26807
26808ac_ext=c
26809ac_cpp='$CPP $CPPFLAGS'
26810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812ac_compiler_gnu=$ac_cv_c_compiler_gnu
26813
26814CC="$lt_save_CC"
26815
26816 ;;
26817
26818 *)
26819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26820echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26821 { (exit 1); exit 1; }; }
26822 ;;
26823 esac
26824
26825 # Append the new tag name to the list of available tags.
26826 if test -n "$tagname" ; then
26827 available_tags="$available_tags $tagname"
26828 fi
26829 fi
26830 done
26831 IFS="$lt_save_ifs"
26832
26833 # Now substitute the updated list of available tags.
26834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26835 mv "${ofile}T" "$ofile"
26836 chmod +x "$ofile"
26837 else
26838 rm -f "${ofile}T"
26839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26840echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26841 { (exit 1); exit 1; }; }
26842 fi
26843fi
26844
26845
26846
26847# This can be used to rebuild libtool when needed
26848LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26849
26850# Always use our own libtool.
26851LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26852
26853# Prevent multiple expansion
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875if test "$lt_cv_dlopen_self" = "yes" ; then
26876
26877cat >>confdefs.h <<\_ACEOF
26878#define CAN_DLOPEN_SELF 1
26879_ACEOF
26880
26881fi
26882
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026883if test "$WITH_LLVMGCCDIR" = "default" ; then
26884 LLVMGCC="llvm-gcc${EXEEXT}"
26885 LLVMGXX="llvm-g++${EXEEXT}"
26886 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26887set dummy $LLVMGCC; ac_word=$2
26888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26890if test "${ac_cv_path_LLVMGCC+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26892else
26893 case $LLVMGCC in
26894 [\\/]* | ?:[\\/]*)
26895 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26896 ;;
26897 *)
26898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26899for as_dir in $PATH
26900do
26901 IFS=$as_save_IFS
26902 test -z "$as_dir" && as_dir=.
26903 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026905 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26907 break 2
26908 fi
26909done
26910done
26911IFS=$as_save_IFS
26912
26913 ;;
26914esac
26915fi
26916LLVMGCC=$ac_cv_path_LLVMGCC
26917if test -n "$LLVMGCC"; then
26918 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26919echo "${ECHO_T}$LLVMGCC" >&6; }
26920else
26921 { echo "$as_me:$LINENO: result: no" >&5
26922echo "${ECHO_T}no" >&6; }
26923fi
26924
26925
26926 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26927set dummy $LLVMGXX; ac_word=$2
26928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26930if test "${ac_cv_path_LLVMGXX+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26932else
26933 case $LLVMGXX in
26934 [\\/]* | ?:[\\/]*)
26935 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26936 ;;
26937 *)
26938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939for as_dir in $PATH
26940do
26941 IFS=$as_save_IFS
26942 test -z "$as_dir" && as_dir=.
26943 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattner3fa4a442009-01-22 05:17:59 +000026944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026945 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26947 break 2
26948 fi
26949done
26950done
26951IFS=$as_save_IFS
26952
26953 ;;
26954esac
26955fi
26956LLVMGXX=$ac_cv_path_LLVMGXX
26957if test -n "$LLVMGXX"; then
26958 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26959echo "${ECHO_T}$LLVMGXX" >&6; }
26960else
26961 { echo "$as_me:$LINENO: result: no" >&5
26962echo "${ECHO_T}no" >&6; }
26963fi
26964
26965
26966else
Devang Pateld84ba7b2007-12-04 22:54:47 +000026967 if test -z "$LLVMGCC"; then
26968 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26969 fi
26970 if test -z "$LLVMGXX"; then
26971 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26972 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026973 LLVMGCC=$LLVMGCC
26974
26975 LLVMGXX=$LLVMGXX
26976
26977fi
26978
26979{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26980echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26981
26982ICC=no
26983IXX=no
26984case $CC in
26985 icc*|icpc*)
26986 ICC=yes
26987 IXX=yes
26988 ;;
26989 *)
26990 ;;
26991esac
26992
26993if test "$GCC" != "yes" && test "$ICC" != "yes"
26994then
26995 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26996echo "$as_me: error: gcc|icc required but not found" >&2;}
26997 { (exit 1); exit 1; }; }
26998fi
26999
27000if test "$GXX" != "yes" && test "$IXX" != "yes"
27001then
27002 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27003echo "$as_me: error: g++|icc required but not found" >&2;}
27004 { (exit 1); exit 1; }; }
27005fi
27006
27007if test "$GCC" = "yes"
27008then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027009 cat >conftest.$ac_ext <<_ACEOF
27010#if !defined(__GNUC__) || __GNUC__ < 3
27011#error Unsupported GCC version
27012#endif
27013
27014_ACEOF
27015rm -f conftest.$ac_objext
27016if { (ac_try="$ac_compile"
27017case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27020esac
27021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_compile") 2>conftest.er1
27023 ac_status=$?
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027028 (exit $ac_status); } &&
27029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27030 { (case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27033esac
27034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_try") 2>&5
27036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } &&
27039 { ac_try='test -s conftest.$ac_objext'
27040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27043esac
27044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027049 :
27050else
27051 echo "$as_me: failed program was:" >&5
27052sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027055echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27056 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027057fi
27058
27059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027060fi
27061
27062if test -z "$llvm_cv_gnu_make_command"
27063then
27064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27065echo "$as_me: error: GNU Make required but not found" >&2;}
27066 { (exit 1); exit 1; }; }
27067fi
27068
27069{ echo "$as_me:$LINENO: result: ok" >&5
27070echo "${ECHO_T}ok" >&6; }
27071
27072
27073
27074{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27075echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27076if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27078else
27079 ac_check_lib_save_LIBS=$LIBS
27080LIBS="-lelf $LIBS"
27081cat >conftest.$ac_ext <<_ACEOF
27082/* confdefs.h. */
27083_ACEOF
27084cat confdefs.h >>conftest.$ac_ext
27085cat >>conftest.$ac_ext <<_ACEOF
27086/* end confdefs.h. */
27087
27088/* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27091#ifdef __cplusplus
27092extern "C"
27093#endif
27094char elf_begin ();
27095int
27096main ()
27097{
27098return elf_begin ();
27099 ;
27100 return 0;
27101}
27102_ACEOF
27103rm -f conftest.$ac_objext conftest$ac_exeext
27104if { (ac_try="$ac_link"
27105case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_link") 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027116 (exit $ac_status); } &&
27117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27118 { (case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27121esac
27122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_try") 2>&5
27124 ac_status=$?
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; } &&
27127 { ac_try='test -s conftest$ac_exeext'
27128 { (case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131esac
27132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_try") 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027137 ac_cv_lib_elf_elf_begin=yes
27138else
27139 echo "$as_me: failed program was:" >&5
27140sed 's/^/| /' conftest.$ac_ext >&5
27141
27142 ac_cv_lib_elf_elf_begin=no
27143fi
27144
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027145rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027146 conftest$ac_exeext conftest.$ac_ext
27147LIBS=$ac_check_lib_save_LIBS
27148fi
27149{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27150echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27151if test $ac_cv_lib_elf_elf_begin = yes; then
27152 cat >>confdefs.h <<_ACEOF
27153#define HAVE_LIBELF 1
27154_ACEOF
27155
27156 LIBS="-lelf $LIBS"
27157
27158fi
27159
27160
27161{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27162echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27163if test "${ac_cv_lib_m_sin+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-lm $LIBS"
27168cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h. */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h. */
27174
27175/* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27178#ifdef __cplusplus
27179extern "C"
27180#endif
27181char sin ();
27182int
27183main ()
27184{
27185return sin ();
27186 ;
27187 return 0;
27188}
27189_ACEOF
27190rm -f conftest.$ac_objext conftest$ac_exeext
27191if { (ac_try="$ac_link"
27192case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27195esac
27196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_link") 2>conftest.er1
27198 ac_status=$?
27199 grep -v '^ *+' conftest.er1 >conftest.err
27200 rm -f conftest.er1
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027203 (exit $ac_status); } &&
27204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27205 { (case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208esac
27209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_try") 2>&5
27211 ac_status=$?
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest$ac_exeext'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218esac
27219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027224 ac_cv_lib_m_sin=yes
27225else
27226 echo "$as_me: failed program was:" >&5
27227sed 's/^/| /' conftest.$ac_ext >&5
27228
27229 ac_cv_lib_m_sin=no
27230fi
27231
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027232rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027233 conftest$ac_exeext conftest.$ac_ext
27234LIBS=$ac_check_lib_save_LIBS
27235fi
27236{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27237echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27238if test $ac_cv_lib_m_sin = yes; then
27239 cat >>confdefs.h <<_ACEOF
27240#define HAVE_LIBM 1
27241_ACEOF
27242
27243 LIBS="-lm $LIBS"
27244
27245fi
27246
27247if test "$llvm_cv_os_type" = "MingW" ; then
27248
27249{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27250echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27251if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253else
27254 ac_check_lib_save_LIBS=$LIBS
27255LIBS="-limagehlp $LIBS"
27256cat >conftest.$ac_ext <<_ACEOF
27257/* confdefs.h. */
27258_ACEOF
27259cat confdefs.h >>conftest.$ac_ext
27260cat >>conftest.$ac_ext <<_ACEOF
27261/* end confdefs.h. */
27262
27263
27264int
27265main ()
27266{
27267return main ();
27268 ;
27269 return 0;
27270}
27271_ACEOF
27272rm -f conftest.$ac_objext conftest$ac_exeext
27273if { (ac_try="$ac_link"
27274case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>conftest.er1
27280 ac_status=$?
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287 { (case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27290esac
27291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_try") 2>&5
27293 ac_status=$?
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest$ac_exeext'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27300esac
27301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027306 ac_cv_lib_imagehlp_main=yes
27307else
27308 echo "$as_me: failed program was:" >&5
27309sed 's/^/| /' conftest.$ac_ext >&5
27310
27311 ac_cv_lib_imagehlp_main=no
27312fi
27313
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027314rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027315 conftest$ac_exeext conftest.$ac_ext
27316LIBS=$ac_check_lib_save_LIBS
27317fi
27318{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27319echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27320if test $ac_cv_lib_imagehlp_main = yes; then
27321 cat >>confdefs.h <<_ACEOF
27322#define HAVE_LIBIMAGEHLP 1
27323_ACEOF
27324
27325 LIBS="-limagehlp $LIBS"
27326
27327fi
27328
27329
27330{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27331echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27332if test "${ac_cv_lib_psapi_main+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 ac_check_lib_save_LIBS=$LIBS
27336LIBS="-lpsapi $LIBS"
27337cat >conftest.$ac_ext <<_ACEOF
27338/* confdefs.h. */
27339_ACEOF
27340cat confdefs.h >>conftest.$ac_ext
27341cat >>conftest.$ac_ext <<_ACEOF
27342/* end confdefs.h. */
27343
27344
27345int
27346main ()
27347{
27348return main ();
27349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext conftest$ac_exeext
27354if { (ac_try="$ac_link"
27355case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358esac
27359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_link") 2>conftest.er1
27361 ac_status=$?
27362 grep -v '^ *+' conftest.er1 >conftest.err
27363 rm -f conftest.er1
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027366 (exit $ac_status); } &&
27367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27368 { (case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27371esac
27372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_try") 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest$ac_exeext'
27378 { (case "(($ac_try" in
27379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380 *) ac_try_echo=$ac_try;;
27381esac
27382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383 (eval "$ac_try") 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027387 ac_cv_lib_psapi_main=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ac_cv_lib_psapi_main=no
27393fi
27394
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027395rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027396 conftest$ac_exeext conftest.$ac_ext
27397LIBS=$ac_check_lib_save_LIBS
27398fi
27399{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27400echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27401if test $ac_cv_lib_psapi_main = yes; then
27402 cat >>confdefs.h <<_ACEOF
27403#define HAVE_LIBPSAPI 1
27404_ACEOF
27405
27406 LIBS="-lpsapi $LIBS"
27407
27408fi
27409
27410fi
27411
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027412{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27413echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27414if test "${ac_cv_search_dlopen+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27416else
27417 ac_func_search_save_LIBS=$LIBS
27418cat >conftest.$ac_ext <<_ACEOF
27419/* confdefs.h. */
27420_ACEOF
27421cat confdefs.h >>conftest.$ac_ext
27422cat >>conftest.$ac_ext <<_ACEOF
27423/* end confdefs.h. */
27424
27425/* Override any GCC internal prototype to avoid an error.
27426 Use char because int might match the return type of a GCC
27427 builtin and then its argument prototype would still apply. */
27428#ifdef __cplusplus
27429extern "C"
27430#endif
27431char dlopen ();
27432int
27433main ()
27434{
27435return dlopen ();
27436 ;
27437 return 0;
27438}
27439_ACEOF
27440for ac_lib in '' dl; do
27441 if test -z "$ac_lib"; then
27442 ac_res="none required"
27443 else
27444 ac_res=-l$ac_lib
27445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27446 fi
27447 rm -f conftest.$ac_objext conftest$ac_exeext
27448if { (ac_try="$ac_link"
27449case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_link") 2>conftest.er1
27455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462 { (case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_try") 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest$ac_exeext'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027481 ac_cv_search_dlopen=$ac_res
27482else
27483 echo "$as_me: failed program was:" >&5
27484sed 's/^/| /' conftest.$ac_ext >&5
27485
27486
27487fi
27488
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027489rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027490 conftest$ac_exeext
27491 if test "${ac_cv_search_dlopen+set}" = set; then
27492 break
27493fi
27494done
27495if test "${ac_cv_search_dlopen+set}" = set; then
27496 :
27497else
27498 ac_cv_search_dlopen=no
27499fi
27500rm conftest.$ac_ext
27501LIBS=$ac_func_search_save_LIBS
27502fi
27503{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27504echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27505ac_res=$ac_cv_search_dlopen
27506if test "$ac_res" != no; then
27507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27508
27509cat >>confdefs.h <<\_ACEOF
27510#define HAVE_DLOPEN 1
27511_ACEOF
27512
27513else
27514 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27515echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27516fi
27517
27518
Nick Lewycky0235b622009-02-04 06:27:44 +000027519{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27520echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27521if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27523else
27524 ac_check_lib_save_LIBS=$LIBS
27525LIBS="-lffi $LIBS"
27526cat >conftest.$ac_ext <<_ACEOF
27527/* confdefs.h. */
27528_ACEOF
27529cat confdefs.h >>conftest.$ac_ext
27530cat >>conftest.$ac_ext <<_ACEOF
27531/* end confdefs.h. */
27532
27533/* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27536#ifdef __cplusplus
27537extern "C"
27538#endif
27539char ffi_call ();
27540int
27541main ()
27542{
27543return ffi_call ();
27544 ;
27545 return 0;
27546}
27547_ACEOF
27548rm -f conftest.$ac_objext conftest$ac_exeext
27549if { (ac_try="$ac_link"
27550case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27553esac
27554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>conftest.er1
27556 ac_status=$?
27557 grep -v '^ *+' conftest.er1 >conftest.err
27558 rm -f conftest.er1
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563 { (case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_try") 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576esac
27577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_lib_ffi_ffi_call=yes
27583else
27584 echo "$as_me: failed program was:" >&5
27585sed 's/^/| /' conftest.$ac_ext >&5
27586
27587 ac_cv_lib_ffi_ffi_call=no
27588fi
27589
27590rm -f core conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
27592LIBS=$ac_check_lib_save_LIBS
27593fi
27594{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27595echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27596if test $ac_cv_lib_ffi_ffi_call = yes; then
27597 have_libffi=1
27598else
27599 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27600echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27601fi
27602
27603
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027604{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27606if test "${ac_cv_search_mallinfo+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609 ac_func_search_save_LIBS=$LIBS
27610cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char mallinfo ();
27624int
27625main ()
27626{
27627return mallinfo ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
27632for ac_lib in '' malloc; do
27633 if test -z "$ac_lib"; then
27634 ac_res="none required"
27635 else
27636 ac_res=-l$ac_lib
27637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27638 fi
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640if { (ac_try="$ac_link"
27641case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27644esac
27645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_link") 2>conftest.er1
27647 ac_status=$?
27648 grep -v '^ *+' conftest.er1 >conftest.err
27649 rm -f conftest.er1
27650 cat conftest.err >&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027652 (exit $ac_status); } &&
27653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654 { (case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657esac
27658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_try") 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest$ac_exeext'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027673 ac_cv_search_mallinfo=$ac_res
27674else
27675 echo "$as_me: failed program was:" >&5
27676sed 's/^/| /' conftest.$ac_ext >&5
27677
27678
27679fi
27680
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027681rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027682 conftest$ac_exeext
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27684 break
27685fi
27686done
27687if test "${ac_cv_search_mallinfo+set}" = set; then
27688 :
27689else
27690 ac_cv_search_mallinfo=no
27691fi
27692rm conftest.$ac_ext
27693LIBS=$ac_func_search_save_LIBS
27694fi
27695{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697ac_res=$ac_cv_search_mallinfo
27698if test "$ac_res" != no; then
27699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27700
27701cat >>confdefs.h <<\_ACEOF
27702#define HAVE_MALLINFO 1
27703_ACEOF
27704
27705fi
27706
27707
27708if test "$ENABLE_THREADS" -eq 1 ; then
27709
27710{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27712if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 ac_check_lib_save_LIBS=$LIBS
27716LIBS="-lpthread $LIBS"
27717cat >conftest.$ac_ext <<_ACEOF
27718/* confdefs.h. */
27719_ACEOF
27720cat confdefs.h >>conftest.$ac_ext
27721cat >>conftest.$ac_ext <<_ACEOF
27722/* end confdefs.h. */
27723
27724/* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
27727#ifdef __cplusplus
27728extern "C"
27729#endif
27730char pthread_mutex_init ();
27731int
27732main ()
27733{
27734return pthread_mutex_init ();
27735 ;
27736 return 0;
27737}
27738_ACEOF
27739rm -f conftest.$ac_objext conftest$ac_exeext
27740if { (ac_try="$ac_link"
27741case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
27747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27760 ac_status=$?
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest$ac_exeext'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027773 ac_cv_lib_pthread_pthread_mutex_init=yes
27774else
27775 echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
27778 ac_cv_lib_pthread_pthread_mutex_init=no
27779fi
27780
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027781rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027782 conftest$ac_exeext conftest.$ac_ext
27783LIBS=$ac_check_lib_save_LIBS
27784fi
27785{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27787if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788 cat >>confdefs.h <<_ACEOF
27789#define HAVE_LIBPTHREAD 1
27790_ACEOF
27791
27792 LIBS="-lpthread $LIBS"
27793
27794fi
27795
27796 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27798if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801 ac_func_search_save_LIBS=$LIBS
27802cat >conftest.$ac_ext <<_ACEOF
27803/* confdefs.h. */
27804_ACEOF
27805cat confdefs.h >>conftest.$ac_ext
27806cat >>conftest.$ac_ext <<_ACEOF
27807/* end confdefs.h. */
27808
27809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27812#ifdef __cplusplus
27813extern "C"
27814#endif
27815char pthread_mutex_lock ();
27816int
27817main ()
27818{
27819return pthread_mutex_lock ();
27820 ;
27821 return 0;
27822}
27823_ACEOF
27824for ac_lib in '' pthread; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27827 else
27828 ac_res=-l$ac_lib
27829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27830 fi
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (ac_try="$ac_link"
27833case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27836esac
27837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
27839 ac_status=$?
27840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
27852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027865 ac_cv_search_pthread_mutex_lock=$ac_res
27866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
27870
27871fi
27872
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027873rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027874 conftest$ac_exeext
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876 break
27877fi
27878done
27879if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27880 :
27881else
27882 ac_cv_search_pthread_mutex_lock=no
27883fi
27884rm conftest.$ac_ext
27885LIBS=$ac_func_search_save_LIBS
27886fi
27887{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889ac_res=$ac_cv_search_pthread_mutex_lock
27890if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27892
27893cat >>confdefs.h <<\_ACEOF
27894#define HAVE_PTHREAD_MUTEX_LOCK 1
27895_ACEOF
27896
27897fi
27898
27899fi
27900
27901
27902# Check whether --with-udis86 was given.
27903if test "${with_udis86+set}" = set; then
27904 withval=$with_udis86;
27905 USE_UDIS86=1
27906
27907 case "$withval" in
27908 /usr/lib|yes) ;;
27909 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27910 esac
27911
27912{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27913echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27914if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 ac_check_lib_save_LIBS=$LIBS
27918LIBS="-ludis86 $LIBS"
27919cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h. */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h. */
27925
27926/* Override any GCC internal prototype to avoid an error.
27927 Use char because int might match the return type of a GCC
27928 builtin and then its argument prototype would still apply. */
27929#ifdef __cplusplus
27930extern "C"
27931#endif
27932char ud_init ();
27933int
27934main ()
27935{
27936return ud_init ();
27937 ;
27938 return 0;
27939}
27940_ACEOF
27941rm -f conftest.$ac_objext conftest$ac_exeext
27942if { (ac_try="$ac_link"
27943case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27946esac
27947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_link") 2>conftest.er1
27949 ac_status=$?
27950 grep -v '^ *+' conftest.er1 >conftest.err
27951 rm -f conftest.er1
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027954 (exit $ac_status); } &&
27955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27956 { (case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27959esac
27960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_try") 2>&5
27962 ac_status=$?
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; } &&
27965 { ac_try='test -s conftest$ac_exeext'
27966 { (case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27969esac
27970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_try") 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027975 ac_cv_lib_udis86_ud_init=yes
27976else
27977 echo "$as_me: failed program was:" >&5
27978sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 ac_cv_lib_udis86_ud_init=no
27981fi
27982
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027983rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027984 conftest$ac_exeext conftest.$ac_ext
27985LIBS=$ac_check_lib_save_LIBS
27986fi
27987{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27988echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27989if test $ac_cv_lib_udis86_ud_init = yes; then
27990 cat >>confdefs.h <<_ACEOF
27991#define HAVE_LIBUDIS86 1
27992_ACEOF
27993
27994 LIBS="-ludis86 $LIBS"
27995
27996else
27997
27998 echo "Error! You need to have libudis86 around."
27999 exit -1
28000
28001fi
28002
28003
28004else
28005 USE_UDIS86=0
28006
28007fi
28008
28009
28010cat >>confdefs.h <<_ACEOF
28011#define USE_UDIS86 $USE_UDIS86
28012_ACEOF
28013
28014
28015
28016
28017
28018
28019
28020
28021ac_header_dirent=no
28022for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28023 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28024{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28025echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28028else
28029 cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035#include <sys/types.h>
28036#include <$ac_hdr>
28037
28038int
28039main ()
28040{
28041if ((DIR *) 0)
28042return 0;
28043 ;
28044 return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext
28048if { (ac_try="$ac_compile"
28049case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28052esac
28053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_compile") 2>conftest.er1
28055 ac_status=$?
28056 grep -v '^ *+' conftest.er1 >conftest.err
28057 rm -f conftest.er1
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062 { (case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_try") 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest.$ac_objext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28075esac
28076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028081 eval "$as_ac_Header=yes"
28082else
28083 echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
28086 eval "$as_ac_Header=no"
28087fi
28088
28089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090fi
28091ac_res=`eval echo '${'$as_ac_Header'}'`
28092 { echo "$as_me:$LINENO: result: $ac_res" >&5
28093echo "${ECHO_T}$ac_res" >&6; }
28094if test `eval echo '${'$as_ac_Header'}'` = yes; then
28095 cat >>confdefs.h <<_ACEOF
28096#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28097_ACEOF
28098
28099ac_header_dirent=$ac_hdr; break
28100fi
28101
28102done
28103# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28104if test $ac_header_dirent = dirent.h; then
28105 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28106echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28107if test "${ac_cv_search_opendir+set}" = set; then
28108 echo $ECHO_N "(cached) $ECHO_C" >&6
28109else
28110 ac_func_search_save_LIBS=$LIBS
28111cat >conftest.$ac_ext <<_ACEOF
28112/* confdefs.h. */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h. */
28117
28118/* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28121#ifdef __cplusplus
28122extern "C"
28123#endif
28124char opendir ();
28125int
28126main ()
28127{
28128return opendir ();
28129 ;
28130 return 0;
28131}
28132_ACEOF
28133for ac_lib in '' dir; do
28134 if test -z "$ac_lib"; then
28135 ac_res="none required"
28136 else
28137 ac_res=-l$ac_lib
28138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28139 fi
28140 rm -f conftest.$ac_objext conftest$ac_exeext
28141if { (ac_try="$ac_link"
28142case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28145esac
28146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_link") 2>conftest.er1
28148 ac_status=$?
28149 grep -v '^ *+' conftest.er1 >conftest.err
28150 rm -f conftest.er1
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028153 (exit $ac_status); } &&
28154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28155 { (case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28158esac
28159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_try") 2>&5
28161 ac_status=$?
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest$ac_exeext'
28165 { (case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_try") 2>&5
28171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028174 ac_cv_search_opendir=$ac_res
28175else
28176 echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178
28179
28180fi
28181
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028182rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028183 conftest$ac_exeext
28184 if test "${ac_cv_search_opendir+set}" = set; then
28185 break
28186fi
28187done
28188if test "${ac_cv_search_opendir+set}" = set; then
28189 :
28190else
28191 ac_cv_search_opendir=no
28192fi
28193rm conftest.$ac_ext
28194LIBS=$ac_func_search_save_LIBS
28195fi
28196{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28197echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28198ac_res=$ac_cv_search_opendir
28199if test "$ac_res" != no; then
28200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28201
28202fi
28203
28204else
28205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28206echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28207if test "${ac_cv_search_opendir+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209else
28210 ac_func_search_save_LIBS=$LIBS
28211cat >conftest.$ac_ext <<_ACEOF
28212/* confdefs.h. */
28213_ACEOF
28214cat confdefs.h >>conftest.$ac_ext
28215cat >>conftest.$ac_ext <<_ACEOF
28216/* end confdefs.h. */
28217
28218/* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28221#ifdef __cplusplus
28222extern "C"
28223#endif
28224char opendir ();
28225int
28226main ()
28227{
28228return opendir ();
28229 ;
28230 return 0;
28231}
28232_ACEOF
28233for ac_lib in '' x; do
28234 if test -z "$ac_lib"; then
28235 ac_res="none required"
28236 else
28237 ac_res=-l$ac_lib
28238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28239 fi
28240 rm -f conftest.$ac_objext conftest$ac_exeext
28241if { (ac_try="$ac_link"
28242case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28245esac
28246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_link") 2>conftest.er1
28248 ac_status=$?
28249 grep -v '^ *+' conftest.er1 >conftest.err
28250 rm -f conftest.er1
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028253 (exit $ac_status); } &&
28254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28255 { (case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28258esac
28259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_try") 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28268esac
28269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_try") 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028274 ac_cv_search_opendir=$ac_res
28275else
28276 echo "$as_me: failed program was:" >&5
28277sed 's/^/| /' conftest.$ac_ext >&5
28278
28279
28280fi
28281
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028282rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028283 conftest$ac_exeext
28284 if test "${ac_cv_search_opendir+set}" = set; then
28285 break
28286fi
28287done
28288if test "${ac_cv_search_opendir+set}" = set; then
28289 :
28290else
28291 ac_cv_search_opendir=no
28292fi
28293rm conftest.$ac_ext
28294LIBS=$ac_func_search_save_LIBS
28295fi
28296{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28297echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28298ac_res=$ac_cv_search_opendir
28299if test "$ac_res" != no; then
28300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28301
28302fi
28303
28304fi
28305
28306{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28307echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28308if test "${ac_cv_header_mmap_anon+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311 ac_ext=c
28312ac_cpp='$CPP $CPPFLAGS'
28313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28315ac_compiler_gnu=$ac_cv_c_compiler_gnu
28316
28317 cat >conftest.$ac_ext <<_ACEOF
28318/* confdefs.h. */
28319_ACEOF
28320cat confdefs.h >>conftest.$ac_ext
28321cat >>conftest.$ac_ext <<_ACEOF
28322/* end confdefs.h. */
28323#include <sys/mman.h>
28324#include <unistd.h>
28325#include <fcntl.h>
28326int
28327main ()
28328{
28329mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28330 ;
28331 return 0;
28332}
28333_ACEOF
28334rm -f conftest.$ac_objext
28335if { (ac_try="$ac_compile"
28336case "(($ac_try" in
28337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338 *) ac_try_echo=$ac_try;;
28339esac
28340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341 (eval "$ac_compile") 2>conftest.er1
28342 ac_status=$?
28343 grep -v '^ *+' conftest.er1 >conftest.err
28344 rm -f conftest.er1
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28349 { (case "(($ac_try" in
28350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 *) ac_try_echo=$ac_try;;
28352esac
28353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 (eval "$ac_try") 2>&5
28355 ac_status=$?
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; } &&
28358 { ac_try='test -s conftest.$ac_objext'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362esac
28363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028368 ac_cv_header_mmap_anon=yes
28369else
28370 echo "$as_me: failed program was:" >&5
28371sed 's/^/| /' conftest.$ac_ext >&5
28372
28373 ac_cv_header_mmap_anon=no
28374fi
28375
28376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377 ac_ext=c
28378ac_cpp='$CPP $CPPFLAGS'
28379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383
28384fi
28385{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28386echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28387if test "$ac_cv_header_mmap_anon" = yes; then
28388
28389cat >>confdefs.h <<\_ACEOF
28390#define HAVE_MMAP_ANONYMOUS 1
28391_ACEOF
28392
28393fi
28394
28395{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28396echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28397if test "${ac_cv_header_stat_broken+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28399else
28400 cat >conftest.$ac_ext <<_ACEOF
28401/* confdefs.h. */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h. */
28406#include <sys/types.h>
28407#include <sys/stat.h>
28408
28409#if defined S_ISBLK && defined S_IFDIR
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028410# if S_ISBLK (S_IFDIR)
28411You lose.
28412# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028413#endif
28414
28415#if defined S_ISBLK && defined S_IFCHR
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028416# if S_ISBLK (S_IFCHR)
28417You lose.
28418# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028419#endif
28420
28421#if defined S_ISLNK && defined S_IFREG
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028422# if S_ISLNK (S_IFREG)
28423You lose.
28424# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028425#endif
28426
28427#if defined S_ISSOCK && defined S_IFREG
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028428# if S_ISSOCK (S_IFREG)
28429You lose.
28430# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028431#endif
28432
28433_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28435 $EGREP "You lose" >/dev/null 2>&1; then
28436 ac_cv_header_stat_broken=yes
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028437else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028438 ac_cv_header_stat_broken=no
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028439fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028440rm -f conftest*
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028441
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028442fi
28443{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28444echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28445if test $ac_cv_header_stat_broken = yes; then
28446
28447cat >>confdefs.h <<\_ACEOF
28448#define STAT_MACROS_BROKEN 1
28449_ACEOF
28450
28451fi
28452
28453{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28454echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28455if test "${ac_cv_header_stdc+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28457else
28458 cat >conftest.$ac_ext <<_ACEOF
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
28464#include <stdlib.h>
28465#include <stdarg.h>
28466#include <string.h>
28467#include <float.h>
28468
28469int
28470main ()
28471{
28472
28473 ;
28474 return 0;
28475}
28476_ACEOF
28477rm -f conftest.$ac_objext
28478if { (ac_try="$ac_compile"
28479case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482esac
28483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28485 ac_status=$?
28486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492 { (case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28495esac
28496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_try") 2>&5
28498 ac_status=$?
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028511 ac_cv_header_stdc=yes
28512else
28513 echo "$as_me: failed program was:" >&5
28514sed 's/^/| /' conftest.$ac_ext >&5
28515
28516 ac_cv_header_stdc=no
28517fi
28518
28519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28520
28521if test $ac_cv_header_stdc = yes; then
28522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28523 cat >conftest.$ac_ext <<_ACEOF
28524/* confdefs.h. */
28525_ACEOF
28526cat confdefs.h >>conftest.$ac_ext
28527cat >>conftest.$ac_ext <<_ACEOF
28528/* end confdefs.h. */
28529#include <string.h>
28530
28531_ACEOF
28532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28533 $EGREP "memchr" >/dev/null 2>&1; then
28534 :
28535else
28536 ac_cv_header_stdc=no
28537fi
28538rm -f conftest*
28539
28540fi
28541
28542if test $ac_cv_header_stdc = yes; then
28543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28544 cat >conftest.$ac_ext <<_ACEOF
28545/* confdefs.h. */
28546_ACEOF
28547cat confdefs.h >>conftest.$ac_ext
28548cat >>conftest.$ac_ext <<_ACEOF
28549/* end confdefs.h. */
28550#include <stdlib.h>
28551
28552_ACEOF
28553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28554 $EGREP "free" >/dev/null 2>&1; then
28555 :
28556else
28557 ac_cv_header_stdc=no
28558fi
28559rm -f conftest*
28560
28561fi
28562
28563if test $ac_cv_header_stdc = yes; then
28564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28565 if test "$cross_compiling" = yes; then
28566 :
28567else
28568 cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574#include <ctype.h>
28575#include <stdlib.h>
28576#if ((' ' & 0x0FF) == 0x020)
28577# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28578# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28579#else
28580# define ISLOWER(c) \
28581 (('a' <= (c) && (c) <= 'i') \
28582 || ('j' <= (c) && (c) <= 'r') \
28583 || ('s' <= (c) && (c) <= 'z'))
28584# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28585#endif
28586
28587#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28588int
28589main ()
28590{
28591 int i;
28592 for (i = 0; i < 256; i++)
28593 if (XOR (islower (i), ISLOWER (i))
28594 || toupper (i) != TOUPPER (i))
28595 return 2;
28596 return 0;
28597}
28598_ACEOF
28599rm -f conftest$ac_exeext
28600if { (ac_try="$ac_link"
28601case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_link") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 :
28620else
28621 echo "$as_me: program exited with status $ac_status" >&5
28622echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625( exit $ac_status )
28626ac_cv_header_stdc=no
28627fi
28628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28629fi
28630
28631
28632fi
28633fi
28634{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28635echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28636if test $ac_cv_header_stdc = yes; then
28637
28638cat >>confdefs.h <<\_ACEOF
28639#define STDC_HEADERS 1
28640_ACEOF
28641
28642fi
28643
28644{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28645echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28646if test "${ac_cv_header_sys_wait_h+set}" = set; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28648else
28649 cat >conftest.$ac_ext <<_ACEOF
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
28655#include <sys/types.h>
28656#include <sys/wait.h>
28657#ifndef WEXITSTATUS
28658# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28659#endif
28660#ifndef WIFEXITED
28661# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28662#endif
28663
28664int
28665main ()
28666{
28667 int s;
28668 wait (&s);
28669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28670 ;
28671 return 0;
28672}
28673_ACEOF
28674rm -f conftest.$ac_objext
28675if { (ac_try="$ac_compile"
28676case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_compile") 2>conftest.er1
28682 ac_status=$?
28683 grep -v '^ *+' conftest.er1 >conftest.err
28684 rm -f conftest.er1
28685 cat conftest.err >&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028687 (exit $ac_status); } &&
28688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28689 { (case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28692esac
28693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_try") 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest.$ac_objext'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702esac
28703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028708 ac_cv_header_sys_wait_h=yes
28709else
28710 echo "$as_me: failed program was:" >&5
28711sed 's/^/| /' conftest.$ac_ext >&5
28712
28713 ac_cv_header_sys_wait_h=no
28714fi
28715
28716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28717fi
28718{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28719echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28720if test $ac_cv_header_sys_wait_h = yes; then
28721
28722cat >>confdefs.h <<\_ACEOF
28723#define HAVE_SYS_WAIT_H 1
28724_ACEOF
28725
28726fi
28727
28728{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28729echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28730if test "${ac_cv_header_time+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732else
28733 cat >conftest.$ac_ext <<_ACEOF
28734/* confdefs.h. */
28735_ACEOF
28736cat confdefs.h >>conftest.$ac_ext
28737cat >>conftest.$ac_ext <<_ACEOF
28738/* end confdefs.h. */
28739#include <sys/types.h>
28740#include <sys/time.h>
28741#include <time.h>
28742
28743int
28744main ()
28745{
28746if ((struct tm *) 0)
28747return 0;
28748 ;
28749 return 0;
28750}
28751_ACEOF
28752rm -f conftest.$ac_objext
28753if { (ac_try="$ac_compile"
28754case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28757esac
28758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_compile") 2>conftest.er1
28760 ac_status=$?
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028765 (exit $ac_status); } &&
28766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28767 { (case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28770esac
28771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_try") 2>&5
28773 ac_status=$?
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } &&
28776 { ac_try='test -s conftest.$ac_objext'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780esac
28781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028786 ac_cv_header_time=yes
28787else
28788 echo "$as_me: failed program was:" >&5
28789sed 's/^/| /' conftest.$ac_ext >&5
28790
28791 ac_cv_header_time=no
28792fi
28793
28794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28795fi
28796{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28797echo "${ECHO_T}$ac_cv_header_time" >&6; }
28798if test $ac_cv_header_time = yes; then
28799
28800cat >>confdefs.h <<\_ACEOF
28801#define TIME_WITH_SYS_TIME 1
28802_ACEOF
28803
28804fi
28805
28806
28807
28808
28809
28810
28811
28812
28813for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28814do
28815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28821fi
28822ac_res=`eval echo '${'$as_ac_Header'}'`
28823 { echo "$as_me:$LINENO: result: $ac_res" >&5
28824echo "${ECHO_T}$ac_res" >&6; }
28825else
28826 # Is the header compilable?
28827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28829cat >conftest.$ac_ext <<_ACEOF
28830/* confdefs.h. */
28831_ACEOF
28832cat confdefs.h >>conftest.$ac_ext
28833cat >>conftest.$ac_ext <<_ACEOF
28834/* end confdefs.h. */
28835$ac_includes_default
28836#include <$ac_header>
28837_ACEOF
28838rm -f conftest.$ac_objext
28839if { (ac_try="$ac_compile"
28840case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28843esac
28844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_compile") 2>conftest.er1
28846 ac_status=$?
28847 grep -v '^ *+' conftest.er1 >conftest.err
28848 rm -f conftest.er1
28849 cat conftest.err >&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028851 (exit $ac_status); } &&
28852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853 { (case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28856esac
28857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858 (eval "$ac_try") 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028872 ac_header_compiler=yes
28873else
28874 echo "$as_me: failed program was:" >&5
28875sed 's/^/| /' conftest.$ac_ext >&5
28876
28877 ac_header_compiler=no
28878fi
28879
28880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28882echo "${ECHO_T}$ac_header_compiler" >&6; }
28883
28884# Is the header present?
28885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28887cat >conftest.$ac_ext <<_ACEOF
28888/* confdefs.h. */
28889_ACEOF
28890cat confdefs.h >>conftest.$ac_ext
28891cat >>conftest.$ac_ext <<_ACEOF
28892/* end confdefs.h. */
28893#include <$ac_header>
28894_ACEOF
28895if { (ac_try="$ac_cpp conftest.$ac_ext"
28896case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28899esac
28900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28902 ac_status=$?
28903 grep -v '^ *+' conftest.er1 >conftest.err
28904 rm -f conftest.er1
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000028907 (exit $ac_status); } >/dev/null; then
28908 if test -s conftest.err; then
28909 ac_cpp_err=$ac_c_preproc_warn_flag
28910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28911 else
28912 ac_cpp_err=
28913 fi
28914else
28915 ac_cpp_err=yes
28916fi
28917if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028918 ac_header_preproc=yes
28919else
28920 echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 ac_header_preproc=no
28924fi
28925
28926rm -f conftest.err conftest.$ac_ext
28927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928echo "${ECHO_T}$ac_header_preproc" >&6; }
28929
28930# So? What about this header?
28931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28932 yes:no: )
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937 ac_header_preproc=yes
28938 ;;
28939 no:yes:* )
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28952 ( cat <<\_ASBOX
28953## ----------------------------------- ##
28954## Report this to llvmbugs@cs.uiuc.edu ##
28955## ----------------------------------- ##
28956_ASBOX
28957 ) | sed "s/^/$as_me: WARNING: /" >&2
28958 ;;
28959esac
28960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964else
28965 eval "$as_ac_Header=\$ac_header_preproc"
28966fi
28967ac_res=`eval echo '${'$as_ac_Header'}'`
28968 { echo "$as_me:$LINENO: result: $ac_res" >&5
28969echo "${ECHO_T}$ac_res" >&6; }
28970
28971fi
28972if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973 cat >>confdefs.h <<_ACEOF
28974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28975_ACEOF
28976
28977fi
28978
28979done
28980
28981
28982
28983
28984
28985
28986
28987for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28988do
28989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28995fi
28996ac_res=`eval echo '${'$as_ac_Header'}'`
28997 { echo "$as_me:$LINENO: result: $ac_res" >&5
28998echo "${ECHO_T}$ac_res" >&6; }
28999else
29000 # Is the header compilable?
29001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29003cat >conftest.$ac_ext <<_ACEOF
29004/* confdefs.h. */
29005_ACEOF
29006cat confdefs.h >>conftest.$ac_ext
29007cat >>conftest.$ac_ext <<_ACEOF
29008/* end confdefs.h. */
29009$ac_includes_default
29010#include <$ac_header>
29011_ACEOF
29012rm -f conftest.$ac_objext
29013if { (ac_try="$ac_compile"
29014case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017esac
29018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_compile") 2>conftest.er1
29020 ac_status=$?
29021 grep -v '^ *+' conftest.er1 >conftest.err
29022 rm -f conftest.er1
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029025 (exit $ac_status); } &&
29026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29027 { (case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29030esac
29031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032 (eval "$ac_try") 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
29037 { (case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29040esac
29041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_try") 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029046 ac_header_compiler=yes
29047else
29048 echo "$as_me: failed program was:" >&5
29049sed 's/^/| /' conftest.$ac_ext >&5
29050
29051 ac_header_compiler=no
29052fi
29053
29054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056echo "${ECHO_T}$ac_header_compiler" >&6; }
29057
29058# Is the header present?
29059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29061cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
29067#include <$ac_header>
29068_ACEOF
29069if { (ac_try="$ac_cpp conftest.$ac_ext"
29070case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29073esac
29074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29076 ac_status=$?
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029081 (exit $ac_status); } >/dev/null; then
29082 if test -s conftest.err; then
29083 ac_cpp_err=$ac_c_preproc_warn_flag
29084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29085 else
29086 ac_cpp_err=
29087 fi
29088else
29089 ac_cpp_err=yes
29090fi
29091if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029092 ac_header_preproc=yes
29093else
29094 echo "$as_me: failed program was:" >&5
29095sed 's/^/| /' conftest.$ac_ext >&5
29096
29097 ac_header_preproc=no
29098fi
29099
29100rm -f conftest.err conftest.$ac_ext
29101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29102echo "${ECHO_T}$ac_header_preproc" >&6; }
29103
29104# So? What about this header?
29105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29106 yes:no: )
29107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29111 ac_header_preproc=yes
29112 ;;
29113 no:yes:* )
29114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29126 ( cat <<\_ASBOX
29127## ----------------------------------- ##
29128## Report this to llvmbugs@cs.uiuc.edu ##
29129## ----------------------------------- ##
29130_ASBOX
29131 ) | sed "s/^/$as_me: WARNING: /" >&2
29132 ;;
29133esac
29134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138else
29139 eval "$as_ac_Header=\$ac_header_preproc"
29140fi
29141ac_res=`eval echo '${'$as_ac_Header'}'`
29142 { echo "$as_me:$LINENO: result: $ac_res" >&5
29143echo "${ECHO_T}$ac_res" >&6; }
29144
29145fi
29146if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29149_ACEOF
29150
29151fi
29152
29153done
29154
29155
Reid Spencer096a8142007-08-17 05:45:26 +000029156for ac_header in windows.h
29157do
29158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29164fi
29165ac_res=`eval echo '${'$as_ac_Header'}'`
29166 { echo "$as_me:$LINENO: result: $ac_res" >&5
29167echo "${ECHO_T}$ac_res" >&6; }
29168else
29169 # Is the header compilable?
29170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29172cat >conftest.$ac_ext <<_ACEOF
29173/* confdefs.h. */
29174_ACEOF
29175cat confdefs.h >>conftest.$ac_ext
29176cat >>conftest.$ac_ext <<_ACEOF
29177/* end confdefs.h. */
29178$ac_includes_default
29179#include <$ac_header>
29180_ACEOF
29181rm -f conftest.$ac_objext
29182if { (ac_try="$ac_compile"
29183case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29186esac
29187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188 (eval "$ac_compile") 2>conftest.er1
29189 ac_status=$?
29190 grep -v '^ *+' conftest.er1 >conftest.err
29191 rm -f conftest.er1
29192 cat conftest.err >&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029194 (exit $ac_status); } &&
29195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29199esac
29200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29209esac
29210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_try") 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000029215 ac_header_compiler=yes
29216else
29217 echo "$as_me: failed program was:" >&5
29218sed 's/^/| /' conftest.$ac_ext >&5
29219
29220 ac_header_compiler=no
29221fi
29222
29223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29225echo "${ECHO_T}$ac_header_compiler" >&6; }
29226
29227# Is the header present?
29228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29230cat >conftest.$ac_ext <<_ACEOF
29231/* confdefs.h. */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h. */
29236#include <$ac_header>
29237_ACEOF
29238if { (ac_try="$ac_cpp conftest.$ac_ext"
29239case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29242esac
29243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245 ac_status=$?
29246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029250 (exit $ac_status); } >/dev/null; then
29251 if test -s conftest.err; then
29252 ac_cpp_err=$ac_c_preproc_warn_flag
29253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29254 else
29255 ac_cpp_err=
29256 fi
29257else
29258 ac_cpp_err=yes
29259fi
29260if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000029261 ac_header_preproc=yes
29262else
29263 echo "$as_me: failed program was:" >&5
29264sed 's/^/| /' conftest.$ac_ext >&5
29265
29266 ac_header_preproc=no
29267fi
29268
29269rm -f conftest.err conftest.$ac_ext
29270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29271echo "${ECHO_T}$ac_header_preproc" >&6; }
29272
29273# So? What about this header?
29274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29275 yes:no: )
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29280 ac_header_preproc=yes
29281 ;;
29282 no:yes:* )
29283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29295 ( cat <<\_ASBOX
29296## ----------------------------------- ##
29297## Report this to llvmbugs@cs.uiuc.edu ##
29298## ----------------------------------- ##
29299_ASBOX
29300 ) | sed "s/^/$as_me: WARNING: /" >&2
29301 ;;
29302esac
29303{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307else
29308 eval "$as_ac_Header=\$ac_header_preproc"
29309fi
29310ac_res=`eval echo '${'$as_ac_Header'}'`
29311 { echo "$as_me:$LINENO: result: $ac_res" >&5
29312echo "${ECHO_T}$ac_res" >&6; }
29313
29314fi
29315if test `eval echo '${'$as_ac_Header'}'` = yes; then
29316 cat >>confdefs.h <<_ACEOF
29317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29318_ACEOF
29319
29320fi
29321
29322done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029323
29324
29325
29326
Reid Spencer096a8142007-08-17 05:45:26 +000029327
29328for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029329do
29330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29336fi
29337ac_res=`eval echo '${'$as_ac_Header'}'`
29338 { echo "$as_me:$LINENO: result: $ac_res" >&5
29339echo "${ECHO_T}$ac_res" >&6; }
29340else
29341 # Is the header compilable?
29342{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29344cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350$ac_includes_default
29351#include <$ac_header>
29352_ACEOF
29353rm -f conftest.$ac_objext
29354if { (ac_try="$ac_compile"
29355case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29358esac
29359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_compile") 2>conftest.er1
29361 ac_status=$?
29362 grep -v '^ *+' conftest.er1 >conftest.err
29363 rm -f conftest.er1
29364 cat conftest.err >&5
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029366 (exit $ac_status); } &&
29367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29368 { (case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29371esac
29372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_try") 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
29377 { ac_try='test -s conftest.$ac_objext'
29378 { (case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29381esac
29382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_try") 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029387 ac_header_compiler=yes
29388else
29389 echo "$as_me: failed program was:" >&5
29390sed 's/^/| /' conftest.$ac_ext >&5
29391
29392 ac_header_compiler=no
29393fi
29394
29395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397echo "${ECHO_T}$ac_header_compiler" >&6; }
29398
29399# Is the header present?
29400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29402cat >conftest.$ac_ext <<_ACEOF
29403/* confdefs.h. */
29404_ACEOF
29405cat confdefs.h >>conftest.$ac_ext
29406cat >>conftest.$ac_ext <<_ACEOF
29407/* end confdefs.h. */
29408#include <$ac_header>
29409_ACEOF
29410if { (ac_try="$ac_cpp conftest.$ac_ext"
29411case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29414esac
29415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29417 ac_status=$?
29418 grep -v '^ *+' conftest.er1 >conftest.err
29419 rm -f conftest.er1
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029422 (exit $ac_status); } >/dev/null; then
29423 if test -s conftest.err; then
29424 ac_cpp_err=$ac_c_preproc_warn_flag
29425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29426 else
29427 ac_cpp_err=
29428 fi
29429else
29430 ac_cpp_err=yes
29431fi
29432if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029433 ac_header_preproc=yes
29434else
29435 echo "$as_me: failed program was:" >&5
29436sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 ac_header_preproc=no
29439fi
29440
29441rm -f conftest.err conftest.$ac_ext
29442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29443echo "${ECHO_T}$ac_header_preproc" >&6; }
29444
29445# So? What about this header?
29446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29447 yes:no: )
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29452 ac_header_preproc=yes
29453 ;;
29454 no:yes:* )
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29467 ( cat <<\_ASBOX
29468## ----------------------------------- ##
29469## Report this to llvmbugs@cs.uiuc.edu ##
29470## ----------------------------------- ##
29471_ASBOX
29472 ) | sed "s/^/$as_me: WARNING: /" >&2
29473 ;;
29474esac
29475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29479else
29480 eval "$as_ac_Header=\$ac_header_preproc"
29481fi
29482ac_res=`eval echo '${'$as_ac_Header'}'`
29483 { echo "$as_me:$LINENO: result: $ac_res" >&5
29484echo "${ECHO_T}$ac_res" >&6; }
29485
29486fi
29487if test `eval echo '${'$as_ac_Header'}'` = yes; then
29488 cat >>confdefs.h <<_ACEOF
29489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29490_ACEOF
29491
29492fi
29493
29494done
29495
29496
29497
29498
29499for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29500do
29501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29507fi
29508ac_res=`eval echo '${'$as_ac_Header'}'`
29509 { echo "$as_me:$LINENO: result: $ac_res" >&5
29510echo "${ECHO_T}$ac_res" >&6; }
29511else
29512 # Is the header compilable?
29513{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29515cat >conftest.$ac_ext <<_ACEOF
29516/* confdefs.h. */
29517_ACEOF
29518cat confdefs.h >>conftest.$ac_ext
29519cat >>conftest.$ac_ext <<_ACEOF
29520/* end confdefs.h. */
29521$ac_includes_default
29522#include <$ac_header>
29523_ACEOF
29524rm -f conftest.$ac_objext
29525if { (ac_try="$ac_compile"
29526case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29529esac
29530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_compile") 2>conftest.er1
29532 ac_status=$?
29533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029537 (exit $ac_status); } &&
29538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29539 { (case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_try") 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; } &&
29548 { ac_try='test -s conftest.$ac_objext'
29549 { (case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554 (eval "$ac_try") 2>&5
29555 ac_status=$?
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029558 ac_header_compiler=yes
29559else
29560 echo "$as_me: failed program was:" >&5
29561sed 's/^/| /' conftest.$ac_ext >&5
29562
29563 ac_header_compiler=no
29564fi
29565
29566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29568echo "${ECHO_T}$ac_header_compiler" >&6; }
29569
29570# Is the header present?
29571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579#include <$ac_header>
29580_ACEOF
29581if { (ac_try="$ac_cpp conftest.$ac_ext"
29582case "(($ac_try" in
29583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584 *) ac_try_echo=$ac_try;;
29585esac
29586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29588 ac_status=$?
29589 grep -v '^ *+' conftest.er1 >conftest.err
29590 rm -f conftest.er1
29591 cat conftest.err >&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029593 (exit $ac_status); } >/dev/null; then
29594 if test -s conftest.err; then
29595 ac_cpp_err=$ac_c_preproc_warn_flag
29596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29597 else
29598 ac_cpp_err=
29599 fi
29600else
29601 ac_cpp_err=yes
29602fi
29603if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029604 ac_header_preproc=yes
29605else
29606 echo "$as_me: failed program was:" >&5
29607sed 's/^/| /' conftest.$ac_ext >&5
29608
29609 ac_header_preproc=no
29610fi
29611
29612rm -f conftest.err conftest.$ac_ext
29613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614echo "${ECHO_T}$ac_header_preproc" >&6; }
29615
29616# So? What about this header?
29617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618 yes:no: )
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623 ac_header_preproc=yes
29624 ;;
29625 no:yes:* )
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29638 ( cat <<\_ASBOX
29639## ----------------------------------- ##
29640## Report this to llvmbugs@cs.uiuc.edu ##
29641## ----------------------------------- ##
29642_ASBOX
29643 ) | sed "s/^/$as_me: WARNING: /" >&2
29644 ;;
29645esac
29646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650else
29651 eval "$as_ac_Header=\$ac_header_preproc"
29652fi
29653ac_res=`eval echo '${'$as_ac_Header'}'`
29654 { echo "$as_me:$LINENO: result: $ac_res" >&5
29655echo "${ECHO_T}$ac_res" >&6; }
29656
29657fi
29658if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659 cat >>confdefs.h <<_ACEOF
29660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29661_ACEOF
29662
29663fi
29664
29665done
29666
29667if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029668
29669for ac_header in pthread.h
29670do
29671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029676 echo $ECHO_N "(cached) $ECHO_C" >&6
29677fi
Reid Spencer096a8142007-08-17 05:45:26 +000029678ac_res=`eval echo '${'$as_ac_Header'}'`
29679 { echo "$as_me:$LINENO: result: $ac_res" >&5
29680echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029681else
29682 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029683{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029685cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h. */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h. */
29691$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029692#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029693_ACEOF
29694rm -f conftest.$ac_objext
29695if { (ac_try="$ac_compile"
29696case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699esac
29700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
29702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712esac
29713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29722esac
29723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029728 ac_header_compiler=yes
29729else
29730 echo "$as_me: failed program was:" >&5
29731sed 's/^/| /' conftest.$ac_ext >&5
29732
29733 ac_header_compiler=no
29734fi
29735
29736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29738echo "${ECHO_T}$ac_header_compiler" >&6; }
29739
29740# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029743cat >conftest.$ac_ext <<_ACEOF
29744/* confdefs.h. */
29745_ACEOF
29746cat confdefs.h >>conftest.$ac_ext
29747cat >>conftest.$ac_ext <<_ACEOF
29748/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029749#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029750_ACEOF
29751if { (ac_try="$ac_cpp conftest.$ac_ext"
29752case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755esac
29756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29758 ac_status=$?
29759 grep -v '^ *+' conftest.er1 >conftest.err
29760 rm -f conftest.er1
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000029763 (exit $ac_status); } >/dev/null; then
29764 if test -s conftest.err; then
29765 ac_cpp_err=$ac_c_preproc_warn_flag
29766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29767 else
29768 ac_cpp_err=
29769 fi
29770else
29771 ac_cpp_err=yes
29772fi
29773if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029774 ac_header_preproc=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_header_preproc=no
29780fi
29781
29782rm -f conftest.err conftest.$ac_ext
29783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29784echo "${ECHO_T}$ac_header_preproc" >&6; }
29785
29786# So? What about this header?
29787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29788 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029793 ac_header_preproc=yes
29794 ;;
29795 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029808 ( cat <<\_ASBOX
29809## ----------------------------------- ##
29810## Report this to llvmbugs@cs.uiuc.edu ##
29811## ----------------------------------- ##
29812_ASBOX
29813 ) | sed "s/^/$as_me: WARNING: /" >&2
29814 ;;
29815esac
Reid Spencer096a8142007-08-17 05:45:26 +000029816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029819 echo $ECHO_N "(cached) $ECHO_C" >&6
29820else
Reid Spencer096a8142007-08-17 05:45:26 +000029821 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029822fi
Reid Spencer096a8142007-08-17 05:45:26 +000029823ac_res=`eval echo '${'$as_ac_Header'}'`
29824 { echo "$as_me:$LINENO: result: $ac_res" >&5
29825echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029826
29827fi
Reid Spencer096a8142007-08-17 05:45:26 +000029828if test `eval echo '${'$as_ac_Header'}'` = yes; then
29829 cat >>confdefs.h <<_ACEOF
29830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29831_ACEOF
29832 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029833
29834else
29835 HAVE_PTHREAD=0
29836
29837fi
29838
Reid Spencer096a8142007-08-17 05:45:26 +000029839done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029840
29841else
29842 HAVE_PTHREAD=0
29843
29844fi
29845
Nick Lewycky0235b622009-02-04 06:27:44 +000029846if test -n "$have_libffi" ; then
29847
29848
29849for ac_header in ffi.h ffi/ffi.h
29850do
29851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29857fi
29858ac_res=`eval echo '${'$as_ac_Header'}'`
29859 { echo "$as_me:$LINENO: result: $ac_res" >&5
29860echo "${ECHO_T}$ac_res" >&6; }
29861else
29862 # Is the header compilable?
29863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29865cat >conftest.$ac_ext <<_ACEOF
29866/* confdefs.h. */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h. */
29871$ac_includes_default
29872#include <$ac_header>
29873_ACEOF
29874rm -f conftest.$ac_objext
29875if { (ac_try="$ac_compile"
29876case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29879esac
29880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_compile") 2>conftest.er1
29882 ac_status=$?
29883 grep -v '^ *+' conftest.er1 >conftest.err
29884 rm -f conftest.er1
29885 cat conftest.err >&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } &&
29888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29889 { (case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29892esac
29893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_try") 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest.$ac_objext'
29899 { (case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29902esac
29903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_try") 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_header_compiler=yes
29909else
29910 echo "$as_me: failed program was:" >&5
29911sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 ac_header_compiler=no
29914fi
29915
29916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29918echo "${ECHO_T}$ac_header_compiler" >&6; }
29919
29920# Is the header present?
29921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29923cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929#include <$ac_header>
29930_ACEOF
29931if { (ac_try="$ac_cpp conftest.$ac_ext"
29932case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29938 ac_status=$?
29939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } >/dev/null; then
29944 if test -s conftest.err; then
29945 ac_cpp_err=$ac_c_preproc_warn_flag
29946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29947 else
29948 ac_cpp_err=
29949 fi
29950else
29951 ac_cpp_err=yes
29952fi
29953if test -z "$ac_cpp_err"; then
29954 ac_header_preproc=yes
29955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959 ac_header_preproc=no
29960fi
29961
29962rm -f conftest.err conftest.$ac_ext
29963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29964echo "${ECHO_T}$ac_header_preproc" >&6; }
29965
29966# So? What about this header?
29967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29968 yes:no: )
29969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29973 ac_header_preproc=yes
29974 ;;
29975 no:yes:* )
29976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29988 ( cat <<\_ASBOX
29989## ----------------------------------- ##
29990## Report this to llvmbugs@cs.uiuc.edu ##
29991## ----------------------------------- ##
29992_ASBOX
29993 ) | sed "s/^/$as_me: WARNING: /" >&2
29994 ;;
29995esac
29996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001 eval "$as_ac_Header=\$ac_header_preproc"
30002fi
30003ac_res=`eval echo '${'$as_ac_Header'}'`
30004 { echo "$as_me:$LINENO: result: $ac_res" >&5
30005echo "${ECHO_T}$ac_res" >&6; }
30006
30007fi
30008if test `eval echo '${'$as_ac_Header'}'` = yes; then
30009 cat >>confdefs.h <<_ACEOF
30010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30011_ACEOF
30012 HAVE_FFI=1
30013
30014fi
30015
30016done
30017
30018fi
30019
Nick Lewycky5d713ec2009-01-20 00:52:24 +000030020
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030021
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030022 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30023echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30024if test "${ac_cv_huge_val_sanity+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30026else
30027
30028 ac_ext=cpp
30029ac_cpp='$CXXCPP $CPPFLAGS'
30030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30033
30034 CXXFLAGS=-pedantic
30035 if test "$cross_compiling" = yes; then
30036 ac_cv_huge_val_sanity=yes
30037else
30038 cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h. */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h. */
30044#include <math.h>
30045int
30046main ()
30047{
30048double x = HUGE_VAL; return x != x;
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest$ac_exeext
30054if { (ac_try="$ac_link"
30055case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30058esac
30059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_link") 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30064 { (case "(($ac_try" in
30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066 *) ac_try_echo=$ac_try;;
30067esac
30068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069 (eval "$ac_try") 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_cv_huge_val_sanity=yes
30074else
30075 echo "$as_me: program exited with status $ac_status" >&5
30076echo "$as_me: failed program was:" >&5
30077sed 's/^/| /' conftest.$ac_ext >&5
30078
30079( exit $ac_status )
30080ac_cv_huge_val_sanity=no
30081fi
30082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30083fi
30084
30085
30086 ac_ext=c
30087ac_cpp='$CPP $CPPFLAGS'
30088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30090ac_compiler_gnu=$ac_cv_c_compiler_gnu
30091
30092
30093fi
30094{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30095echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30096 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30097
30098
30099{ echo "$as_me:$LINENO: checking for pid_t" >&5
30100echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30101if test "${ac_cv_type_pid_t+set}" = set; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30103else
30104 cat >conftest.$ac_ext <<_ACEOF
30105/* confdefs.h. */
30106_ACEOF
30107cat confdefs.h >>conftest.$ac_ext
30108cat >>conftest.$ac_ext <<_ACEOF
30109/* end confdefs.h. */
30110$ac_includes_default
30111typedef pid_t ac__type_new_;
30112int
30113main ()
30114{
30115if ((ac__type_new_ *) 0)
30116 return 0;
30117if (sizeof (ac__type_new_))
30118 return 0;
30119 ;
30120 return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext
30124if { (ac_try="$ac_compile"
30125case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_compile") 2>conftest.er1
30131 ac_status=$?
30132 grep -v '^ *+' conftest.er1 >conftest.err
30133 rm -f conftest.er1
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030136 (exit $ac_status); } &&
30137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30138 { (case "(($ac_try" in
30139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30140 *) ac_try_echo=$ac_try;;
30141esac
30142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30143 (eval "$ac_try") 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; } &&
30147 { ac_try='test -s conftest.$ac_objext'
30148 { (case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_try") 2>&5
30154 ac_status=$?
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030157 ac_cv_type_pid_t=yes
30158else
30159 echo "$as_me: failed program was:" >&5
30160sed 's/^/| /' conftest.$ac_ext >&5
30161
30162 ac_cv_type_pid_t=no
30163fi
30164
30165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30166fi
30167{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30168echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30169if test $ac_cv_type_pid_t = yes; then
30170 :
30171else
30172
30173cat >>confdefs.h <<_ACEOF
30174#define pid_t int
30175_ACEOF
30176
30177fi
30178
30179{ echo "$as_me:$LINENO: checking for size_t" >&5
30180echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30181if test "${ac_cv_type_size_t+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30183else
30184 cat >conftest.$ac_ext <<_ACEOF
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
30190$ac_includes_default
30191typedef size_t ac__type_new_;
30192int
30193main ()
30194{
30195if ((ac__type_new_ *) 0)
30196 return 0;
30197if (sizeof (ac__type_new_))
30198 return 0;
30199 ;
30200 return 0;
30201}
30202_ACEOF
30203rm -f conftest.$ac_objext
30204if { (ac_try="$ac_compile"
30205case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30208esac
30209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
30211 ac_status=$?
30212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030216 (exit $ac_status); } &&
30217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30218 { (case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30221esac
30222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_try") 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; } &&
30227 { ac_try='test -s conftest.$ac_objext'
30228 { (case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231esac
30232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_try") 2>&5
30234 ac_status=$?
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030237 ac_cv_type_size_t=yes
30238else
30239 echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
30242 ac_cv_type_size_t=no
30243fi
30244
30245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30246fi
30247{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30248echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30249if test $ac_cv_type_size_t = yes; then
30250 :
30251else
30252
30253cat >>confdefs.h <<_ACEOF
30254#define size_t unsigned int
30255_ACEOF
30256
30257fi
30258
30259{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30260echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30261if test "${ac_cv_type_signal+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h. */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h. */
30270#include <sys/types.h>
30271#include <signal.h>
30272
30273int
30274main ()
30275{
30276return *(signal (0, 0)) (0) == 1;
30277 ;
30278 return 0;
30279}
30280_ACEOF
30281rm -f conftest.$ac_objext
30282if { (ac_try="$ac_compile"
30283case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30286esac
30287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_compile") 2>conftest.er1
30289 ac_status=$?
30290 grep -v '^ *+' conftest.er1 >conftest.err
30291 rm -f conftest.er1
30292 cat conftest.err >&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030294 (exit $ac_status); } &&
30295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; } &&
30305 { ac_try='test -s conftest.$ac_objext'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30309esac
30310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030315 ac_cv_type_signal=int
30316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
30320 ac_cv_type_signal=void
30321fi
30322
30323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30324fi
30325{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30326echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30327
30328cat >>confdefs.h <<_ACEOF
30329#define RETSIGTYPE $ac_cv_type_signal
30330_ACEOF
30331
30332
30333{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30334echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30335if test "${ac_cv_struct_tm+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30337else
30338 cat >conftest.$ac_ext <<_ACEOF
30339/* confdefs.h. */
30340_ACEOF
30341cat confdefs.h >>conftest.$ac_ext
30342cat >>conftest.$ac_ext <<_ACEOF
30343/* end confdefs.h. */
30344#include <sys/types.h>
30345#include <time.h>
30346
30347int
30348main ()
30349{
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030350struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030351 ;
30352 return 0;
30353}
30354_ACEOF
30355rm -f conftest.$ac_objext
30356if { (ac_try="$ac_compile"
30357case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360esac
30361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_compile") 2>conftest.er1
30363 ac_status=$?
30364 grep -v '^ *+' conftest.er1 >conftest.err
30365 rm -f conftest.er1
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370 { (case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_try") 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030389 ac_cv_struct_tm=time.h
30390else
30391 echo "$as_me: failed program was:" >&5
30392sed 's/^/| /' conftest.$ac_ext >&5
30393
30394 ac_cv_struct_tm=sys/time.h
30395fi
30396
30397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398fi
30399{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30400echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30401if test $ac_cv_struct_tm = sys/time.h; then
30402
30403cat >>confdefs.h <<\_ACEOF
30404#define TM_IN_SYS_TIME 1
30405_ACEOF
30406
30407fi
30408
30409{ echo "$as_me:$LINENO: checking for int64_t" >&5
30410echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30411if test "${ac_cv_type_int64_t+set}" = set; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30413else
30414 cat >conftest.$ac_ext <<_ACEOF
30415/* confdefs.h. */
30416_ACEOF
30417cat confdefs.h >>conftest.$ac_ext
30418cat >>conftest.$ac_ext <<_ACEOF
30419/* end confdefs.h. */
30420$ac_includes_default
30421typedef int64_t ac__type_new_;
30422int
30423main ()
30424{
30425if ((ac__type_new_ *) 0)
30426 return 0;
30427if (sizeof (ac__type_new_))
30428 return 0;
30429 ;
30430 return 0;
30431}
30432_ACEOF
30433rm -f conftest.$ac_objext
30434if { (ac_try="$ac_compile"
30435case "(($ac_try" in
30436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437 *) ac_try_echo=$ac_try;;
30438esac
30439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440 (eval "$ac_compile") 2>conftest.er1
30441 ac_status=$?
30442 grep -v '^ *+' conftest.er1 >conftest.err
30443 rm -f conftest.er1
30444 cat conftest.err >&5
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030446 (exit $ac_status); } &&
30447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30448 { (case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451esac
30452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_try") 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030467 ac_cv_type_int64_t=yes
30468else
30469 echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472 ac_cv_type_int64_t=no
30473fi
30474
30475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30476fi
30477{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30478echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30479if test $ac_cv_type_int64_t = yes; then
30480
30481cat >>confdefs.h <<_ACEOF
30482#define HAVE_INT64_T 1
30483_ACEOF
30484
30485
30486else
30487 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30488echo "$as_me: error: Type int64_t required but not found" >&2;}
30489 { (exit 1); exit 1; }; }
30490fi
30491
30492{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30493echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30494if test "${ac_cv_type_uint64_t+set}" = set; then
30495 echo $ECHO_N "(cached) $ECHO_C" >&6
30496else
30497 cat >conftest.$ac_ext <<_ACEOF
30498/* confdefs.h. */
30499_ACEOF
30500cat confdefs.h >>conftest.$ac_ext
30501cat >>conftest.$ac_ext <<_ACEOF
30502/* end confdefs.h. */
30503$ac_includes_default
30504typedef uint64_t ac__type_new_;
30505int
30506main ()
30507{
30508if ((ac__type_new_ *) 0)
30509 return 0;
30510if (sizeof (ac__type_new_))
30511 return 0;
30512 ;
30513 return 0;
30514}
30515_ACEOF
30516rm -f conftest.$ac_objext
30517if { (ac_try="$ac_compile"
30518case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30521esac
30522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_compile") 2>conftest.er1
30524 ac_status=$?
30525 grep -v '^ *+' conftest.er1 >conftest.err
30526 rm -f conftest.er1
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030529 (exit $ac_status); } &&
30530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest.$ac_objext'
30541 { (case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30544esac
30545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_try") 2>&5
30547 ac_status=$?
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030550 ac_cv_type_uint64_t=yes
30551else
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 ac_cv_type_uint64_t=no
30556fi
30557
30558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559fi
30560{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30561echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30562if test $ac_cv_type_uint64_t = yes; then
30563
30564cat >>confdefs.h <<_ACEOF
30565#define HAVE_UINT64_T 1
30566_ACEOF
30567
30568
30569else
30570 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30571echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30572if test "${ac_cv_type_u_int64_t+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30574else
30575 cat >conftest.$ac_ext <<_ACEOF
30576/* confdefs.h. */
30577_ACEOF
30578cat confdefs.h >>conftest.$ac_ext
30579cat >>conftest.$ac_ext <<_ACEOF
30580/* end confdefs.h. */
30581$ac_includes_default
30582typedef u_int64_t ac__type_new_;
30583int
30584main ()
30585{
30586if ((ac__type_new_ *) 0)
30587 return 0;
30588if (sizeof (ac__type_new_))
30589 return 0;
30590 ;
30591 return 0;
30592}
30593_ACEOF
30594rm -f conftest.$ac_objext
30595if { (ac_try="$ac_compile"
30596case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599esac
30600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
30602 ac_status=$?
30603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030607 (exit $ac_status); } &&
30608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30612esac
30613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; } &&
30618 { ac_try='test -s conftest.$ac_objext'
30619 { (case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30622esac
30623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_try") 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030628 ac_cv_type_u_int64_t=yes
30629else
30630 echo "$as_me: failed program was:" >&5
30631sed 's/^/| /' conftest.$ac_ext >&5
30632
30633 ac_cv_type_u_int64_t=no
30634fi
30635
30636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30637fi
30638{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30639echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30640if test $ac_cv_type_u_int64_t = yes; then
30641
30642cat >>confdefs.h <<_ACEOF
30643#define HAVE_U_INT64_T 1
30644_ACEOF
30645
30646
30647else
30648 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30649echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30650 { (exit 1); exit 1; }; }
30651fi
30652
30653fi
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30665do
30666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30667{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30671else
30672 cat >conftest.$ac_ext <<_ACEOF
30673/* confdefs.h. */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h. */
30678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30680#define $ac_func innocuous_$ac_func
30681
30682/* System header to define __stub macros and hopefully few prototypes,
30683 which can conflict with char $ac_func (); below.
30684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30685 <limits.h> exists even on freestanding compilers. */
30686
30687#ifdef __STDC__
30688# include <limits.h>
30689#else
30690# include <assert.h>
30691#endif
30692
30693#undef $ac_func
30694
30695/* Override any GCC internal prototype to avoid an error.
30696 Use char because int might match the return type of a GCC
30697 builtin and then its argument prototype would still apply. */
30698#ifdef __cplusplus
30699extern "C"
30700#endif
30701char $ac_func ();
30702/* The GNU C library defines this for functions which it implements
30703 to always fail with ENOSYS. Some functions are actually named
30704 something starting with __ and the normal name is an alias. */
30705#if defined __stub_$ac_func || defined __stub___$ac_func
30706choke me
30707#endif
30708
30709int
30710main ()
30711{
30712return $ac_func ();
30713 ;
30714 return 0;
30715}
30716_ACEOF
30717rm -f conftest.$ac_objext conftest$ac_exeext
30718if { (ac_try="$ac_link"
30719case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722esac
30723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_link") 2>conftest.er1
30725 ac_status=$?
30726 grep -v '^ *+' conftest.er1 >conftest.err
30727 rm -f conftest.er1
30728 cat conftest.err >&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732 { (case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30735esac
30736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_try") 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; } &&
30741 { ac_try='test -s conftest$ac_exeext'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30745esac
30746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030751 eval "$as_ac_var=yes"
30752else
30753 echo "$as_me: failed program was:" >&5
30754sed 's/^/| /' conftest.$ac_ext >&5
30755
30756 eval "$as_ac_var=no"
30757fi
30758
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030759rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030760 conftest$ac_exeext conftest.$ac_ext
30761fi
30762ac_res=`eval echo '${'$as_ac_var'}'`
30763 { echo "$as_me:$LINENO: result: $ac_res" >&5
30764echo "${ECHO_T}$ac_res" >&6; }
30765if test `eval echo '${'$as_ac_var'}'` = yes; then
30766 cat >>confdefs.h <<_ACEOF
30767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30768_ACEOF
30769
30770fi
30771done
30772
30773
30774
30775
30776
30777for ac_func in powf fmodf strtof round
30778do
30779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30780{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30782if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30783 echo $ECHO_N "(cached) $ECHO_C" >&6
30784else
30785 cat >conftest.$ac_ext <<_ACEOF
30786/* confdefs.h. */
30787_ACEOF
30788cat confdefs.h >>conftest.$ac_ext
30789cat >>conftest.$ac_ext <<_ACEOF
30790/* end confdefs.h. */
30791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30793#define $ac_func innocuous_$ac_func
30794
30795/* System header to define __stub macros and hopefully few prototypes,
30796 which can conflict with char $ac_func (); below.
30797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798 <limits.h> exists even on freestanding compilers. */
30799
30800#ifdef __STDC__
30801# include <limits.h>
30802#else
30803# include <assert.h>
30804#endif
30805
30806#undef $ac_func
30807
30808/* Override any GCC internal prototype to avoid an error.
30809 Use char because int might match the return type of a GCC
30810 builtin and then its argument prototype would still apply. */
30811#ifdef __cplusplus
30812extern "C"
30813#endif
30814char $ac_func ();
30815/* The GNU C library defines this for functions which it implements
30816 to always fail with ENOSYS. Some functions are actually named
30817 something starting with __ and the normal name is an alias. */
30818#if defined __stub_$ac_func || defined __stub___$ac_func
30819choke me
30820#endif
30821
30822int
30823main ()
30824{
30825return $ac_func ();
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (ac_try="$ac_link"
30832case "(($ac_try" in
30833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834 *) ac_try_echo=$ac_try;;
30835esac
30836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837 (eval "$ac_link") 2>conftest.er1
30838 ac_status=$?
30839 grep -v '^ *+' conftest.er1 >conftest.err
30840 rm -f conftest.er1
30841 cat conftest.err >&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030843 (exit $ac_status); } &&
30844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30845 { (case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30848esac
30849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_try") 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; } &&
30854 { ac_try='test -s conftest$ac_exeext'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30858esac
30859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030864 eval "$as_ac_var=yes"
30865else
30866 echo "$as_me: failed program was:" >&5
30867sed 's/^/| /' conftest.$ac_ext >&5
30868
30869 eval "$as_ac_var=no"
30870fi
30871
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030872rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030873 conftest$ac_exeext conftest.$ac_ext
30874fi
30875ac_res=`eval echo '${'$as_ac_var'}'`
30876 { echo "$as_me:$LINENO: result: $ac_res" >&5
30877echo "${ECHO_T}$ac_res" >&6; }
30878if test `eval echo '${'$as_ac_var'}'` = yes; then
30879 cat >>confdefs.h <<_ACEOF
30880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30881_ACEOF
30882
30883fi
30884done
30885
30886
30887
30888
30889
30890
30891for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30892do
30893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898else
30899 cat >conftest.$ac_ext <<_ACEOF
30900/* confdefs.h. */
30901_ACEOF
30902cat confdefs.h >>conftest.$ac_ext
30903cat >>conftest.$ac_ext <<_ACEOF
30904/* end confdefs.h. */
30905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30907#define $ac_func innocuous_$ac_func
30908
30909/* System header to define __stub macros and hopefully few prototypes,
30910 which can conflict with char $ac_func (); below.
30911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912 <limits.h> exists even on freestanding compilers. */
30913
30914#ifdef __STDC__
30915# include <limits.h>
30916#else
30917# include <assert.h>
30918#endif
30919
30920#undef $ac_func
30921
30922/* Override any GCC internal prototype to avoid an error.
30923 Use char because int might match the return type of a GCC
30924 builtin and then its argument prototype would still apply. */
30925#ifdef __cplusplus
30926extern "C"
30927#endif
30928char $ac_func ();
30929/* The GNU C library defines this for functions which it implements
30930 to always fail with ENOSYS. Some functions are actually named
30931 something starting with __ and the normal name is an alias. */
30932#if defined __stub_$ac_func || defined __stub___$ac_func
30933choke me
30934#endif
30935
30936int
30937main ()
30938{
30939return $ac_func ();
30940 ;
30941 return 0;
30942}
30943_ACEOF
30944rm -f conftest.$ac_objext conftest$ac_exeext
30945if { (ac_try="$ac_link"
30946case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30949esac
30950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_link") 2>conftest.er1
30952 ac_status=$?
30953 grep -v '^ *+' conftest.er1 >conftest.err
30954 rm -f conftest.er1
30955 cat conftest.err >&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030957 (exit $ac_status); } &&
30958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30959 { (case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30962esac
30963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_try") 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
30969 { (case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30972esac
30973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_try") 2>&5
30975 ac_status=$?
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030978 eval "$as_ac_var=yes"
30979else
30980 echo "$as_me: failed program was:" >&5
30981sed 's/^/| /' conftest.$ac_ext >&5
30982
30983 eval "$as_ac_var=no"
30984fi
30985
Tanya Lattner3fa4a442009-01-22 05:17:59 +000030986rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030987 conftest$ac_exeext conftest.$ac_ext
30988fi
30989ac_res=`eval echo '${'$as_ac_var'}'`
30990 { echo "$as_me:$LINENO: result: $ac_res" >&5
30991echo "${ECHO_T}$ac_res" >&6; }
30992if test `eval echo '${'$as_ac_var'}'` = yes; then
30993 cat >>confdefs.h <<_ACEOF
30994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30995_ACEOF
30996
30997fi
30998done
30999
31000
31001
31002
31003for ac_func in isatty mkdtemp mkstemp
31004do
31005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
31011 cat >conftest.$ac_ext <<_ACEOF
31012/* confdefs.h. */
31013_ACEOF
31014cat confdefs.h >>conftest.$ac_ext
31015cat >>conftest.$ac_ext <<_ACEOF
31016/* end confdefs.h. */
31017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019#define $ac_func innocuous_$ac_func
31020
31021/* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char $ac_func (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
31025
31026#ifdef __STDC__
31027# include <limits.h>
31028#else
31029# include <assert.h>
31030#endif
31031
31032#undef $ac_func
31033
31034/* Override any GCC internal prototype to avoid an error.
31035 Use char because int might match the return type of a GCC
31036 builtin and then its argument prototype would still apply. */
31037#ifdef __cplusplus
31038extern "C"
31039#endif
31040char $ac_func ();
31041/* The GNU C library defines this for functions which it implements
31042 to always fail with ENOSYS. Some functions are actually named
31043 something starting with __ and the normal name is an alias. */
31044#if defined __stub_$ac_func || defined __stub___$ac_func
31045choke me
31046#endif
31047
31048int
31049main ()
31050{
31051return $ac_func ();
31052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
31057if { (ac_try="$ac_link"
31058case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_link") 2>conftest.er1
31064 ac_status=$?
31065 grep -v '^ *+' conftest.er1 >conftest.err
31066 rm -f conftest.er1
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071 { (case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31074esac
31075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_try") 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084esac
31085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031090 eval "$as_ac_var=yes"
31091else
31092 echo "$as_me: failed program was:" >&5
31093sed 's/^/| /' conftest.$ac_ext >&5
31094
31095 eval "$as_ac_var=no"
31096fi
31097
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031098rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031099 conftest$ac_exeext conftest.$ac_ext
31100fi
31101ac_res=`eval echo '${'$as_ac_var'}'`
31102 { echo "$as_me:$LINENO: result: $ac_res" >&5
31103echo "${ECHO_T}$ac_res" >&6; }
31104if test `eval echo '${'$as_ac_var'}'` = yes; then
31105 cat >>confdefs.h <<_ACEOF
31106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31107_ACEOF
31108
31109fi
31110done
31111
31112
31113
31114
31115
31116
31117
31118
31119for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31120do
31121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126else
31127 cat >conftest.$ac_ext <<_ACEOF
31128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
31133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31135#define $ac_func innocuous_$ac_func
31136
31137/* System header to define __stub macros and hopefully few prototypes,
31138 which can conflict with char $ac_func (); below.
31139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140 <limits.h> exists even on freestanding compilers. */
31141
31142#ifdef __STDC__
31143# include <limits.h>
31144#else
31145# include <assert.h>
31146#endif
31147
31148#undef $ac_func
31149
31150/* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
31153#ifdef __cplusplus
31154extern "C"
31155#endif
31156char $ac_func ();
31157/* The GNU C library defines this for functions which it implements
31158 to always fail with ENOSYS. Some functions are actually named
31159 something starting with __ and the normal name is an alias. */
31160#if defined __stub_$ac_func || defined __stub___$ac_func
31161choke me
31162#endif
31163
31164int
31165main ()
31166{
31167return $ac_func ();
31168 ;
31169 return 0;
31170}
31171_ACEOF
31172rm -f conftest.$ac_objext conftest$ac_exeext
31173if { (ac_try="$ac_link"
31174case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_link") 2>conftest.er1
31180 ac_status=$?
31181 grep -v '^ *+' conftest.er1 >conftest.err
31182 rm -f conftest.er1
31183 cat conftest.err >&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31190esac
31191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31200esac
31201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031206 eval "$as_ac_var=yes"
31207else
31208 echo "$as_me: failed program was:" >&5
31209sed 's/^/| /' conftest.$ac_ext >&5
31210
31211 eval "$as_ac_var=no"
31212fi
31213
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031214rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031215 conftest$ac_exeext conftest.$ac_ext
31216fi
31217ac_res=`eval echo '${'$as_ac_var'}'`
31218 { echo "$as_me:$LINENO: result: $ac_res" >&5
31219echo "${ECHO_T}$ac_res" >&6; }
31220if test `eval echo '${'$as_ac_var'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223_ACEOF
31224
31225fi
31226done
31227
31228
31229
31230
31231
31232for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31233do
31234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 cat >conftest.$ac_ext <<_ACEOF
31241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
31246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31248#define $ac_func innocuous_$ac_func
31249
31250/* System header to define __stub macros and hopefully few prototypes,
31251 which can conflict with char $ac_func (); below.
31252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253 <limits.h> exists even on freestanding compilers. */
31254
31255#ifdef __STDC__
31256# include <limits.h>
31257#else
31258# include <assert.h>
31259#endif
31260
31261#undef $ac_func
31262
31263/* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
31266#ifdef __cplusplus
31267extern "C"
31268#endif
31269char $ac_func ();
31270/* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
31273#if defined __stub_$ac_func || defined __stub___$ac_func
31274choke me
31275#endif
31276
31277int
31278main ()
31279{
31280return $ac_func ();
31281 ;
31282 return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
31286if { (ac_try="$ac_link"
31287case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290esac
31291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31293 ac_status=$?
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313esac
31314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031319 eval "$as_ac_var=yes"
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324 eval "$as_ac_var=no"
31325fi
31326
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031327rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031328 conftest$ac_exeext conftest.$ac_ext
31329fi
31330ac_res=`eval echo '${'$as_ac_var'}'`
31331 { echo "$as_me:$LINENO: result: $ac_res" >&5
31332echo "${ECHO_T}$ac_res" >&6; }
31333if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336_ACEOF
31337
31338fi
31339done
31340
31341
31342
31343
31344
31345for ac_func in setjmp longjmp sigsetjmp siglongjmp
31346do
31347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31351 echo $ECHO_N "(cached) $ECHO_C" >&6
31352else
31353 cat >conftest.$ac_ext <<_ACEOF
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
31359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31361#define $ac_func innocuous_$ac_func
31362
31363/* System header to define __stub macros and hopefully few prototypes,
31364 which can conflict with char $ac_func (); below.
31365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366 <limits.h> exists even on freestanding compilers. */
31367
31368#ifdef __STDC__
31369# include <limits.h>
31370#else
31371# include <assert.h>
31372#endif
31373
31374#undef $ac_func
31375
31376/* Override any GCC internal prototype to avoid an error.
31377 Use char because int might match the return type of a GCC
31378 builtin and then its argument prototype would still apply. */
31379#ifdef __cplusplus
31380extern "C"
31381#endif
31382char $ac_func ();
31383/* The GNU C library defines this for functions which it implements
31384 to always fail with ENOSYS. Some functions are actually named
31385 something starting with __ and the normal name is an alias. */
31386#if defined __stub_$ac_func || defined __stub___$ac_func
31387choke me
31388#endif
31389
31390int
31391main ()
31392{
31393return $ac_func ();
31394 ;
31395 return 0;
31396}
31397_ACEOF
31398rm -f conftest.$ac_objext conftest$ac_exeext
31399if { (ac_try="$ac_link"
31400case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31403esac
31404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_link") 2>conftest.er1
31406 ac_status=$?
31407 grep -v '^ *+' conftest.er1 >conftest.err
31408 rm -f conftest.er1
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031411 (exit $ac_status); } &&
31412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416esac
31417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426esac
31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031432 eval "$as_ac_var=yes"
31433else
31434 echo "$as_me: failed program was:" >&5
31435sed 's/^/| /' conftest.$ac_ext >&5
31436
31437 eval "$as_ac_var=no"
31438fi
31439
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031440rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031441 conftest$ac_exeext conftest.$ac_ext
31442fi
31443ac_res=`eval echo '${'$as_ac_var'}'`
31444 { echo "$as_me:$LINENO: result: $ac_res" >&5
31445echo "${ECHO_T}$ac_res" >&6; }
31446if test `eval echo '${'$as_ac_var'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449_ACEOF
31450
31451fi
31452done
31453
31454{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31455echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31456if test "${llvm_cv_c_printf_a+set}" = set; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
31459 ac_ext=c
31460ac_cpp='$CPP $CPPFLAGS'
31461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31463ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464
31465 if test "$cross_compiling" = yes; then
31466 llvmac_cv_c_printf_a=no
31467else
31468 cat >conftest.$ac_ext <<_ACEOF
31469
31470 /* confdefs.h. */
31471_ACEOF
31472cat confdefs.h >>conftest.$ac_ext
31473cat >>conftest.$ac_ext <<_ACEOF
31474/* end confdefs.h. */
31475
31476#include <stdio.h>
31477#include <stdlib.h>
31478
31479int
31480main ()
31481{
31482
31483volatile double A, B;
31484char Buffer[100];
31485A = 1;
31486A /= 10.0;
31487sprintf(Buffer, "%a", A);
31488B = atof(Buffer);
31489if (A != B)
31490 return (1);
31491if (A != 0x1.999999999999ap-4)
31492 return (1);
31493return (0);
31494 ;
31495 return 0;
31496}
31497_ACEOF
31498rm -f conftest$ac_exeext
31499if { (ac_try="$ac_link"
31500case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_link") 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 llvm_cv_c_printf_a=yes
31519else
31520 echo "$as_me: program exited with status $ac_status" >&5
31521echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
31524( exit $ac_status )
31525llvmac_cv_c_printf_a=no
31526fi
31527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31528fi
31529
31530
31531 ac_ext=c
31532ac_cpp='$CPP $CPPFLAGS'
31533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536
31537fi
31538{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31539echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31540 if test "$llvm_cv_c_printf_a" = "yes"; then
31541
31542cat >>confdefs.h <<\_ACEOF
31543#define HAVE_PRINTF_A 1
31544_ACEOF
31545
31546 fi
31547
31548# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31549# for constant arguments. Useless!
31550{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31551echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31552if test "${ac_cv_working_alloca_h+set}" = set; then
31553 echo $ECHO_N "(cached) $ECHO_C" >&6
31554else
31555 cat >conftest.$ac_ext <<_ACEOF
31556/* confdefs.h. */
31557_ACEOF
31558cat confdefs.h >>conftest.$ac_ext
31559cat >>conftest.$ac_ext <<_ACEOF
31560/* end confdefs.h. */
31561#include <alloca.h>
31562int
31563main ()
31564{
31565char *p = (char *) alloca (2 * sizeof (int));
31566 if (p) return 0;
31567 ;
31568 return 0;
31569}
31570_ACEOF
31571rm -f conftest.$ac_objext conftest$ac_exeext
31572if { (ac_try="$ac_link"
31573case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31576esac
31577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
31579 ac_status=$?
31580 grep -v '^ *+' conftest.er1 >conftest.err
31581 rm -f conftest.er1
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589esac
31590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599esac
31600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031605 ac_cv_working_alloca_h=yes
31606else
31607 echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
31610 ac_cv_working_alloca_h=no
31611fi
31612
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031613rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031614 conftest$ac_exeext conftest.$ac_ext
31615fi
31616{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31617echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31618if test $ac_cv_working_alloca_h = yes; then
31619
31620cat >>confdefs.h <<\_ACEOF
31621#define HAVE_ALLOCA_H 1
31622_ACEOF
31623
31624fi
31625
31626{ echo "$as_me:$LINENO: checking for alloca" >&5
31627echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31628if test "${ac_cv_func_alloca_works+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31630else
31631 cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
31637#ifdef __GNUC__
31638# define alloca __builtin_alloca
31639#else
31640# ifdef _MSC_VER
31641# include <malloc.h>
31642# define alloca _alloca
31643# else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031644# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031645# include <alloca.h>
31646# else
31647# ifdef _AIX
31648 #pragma alloca
31649# else
31650# ifndef alloca /* predefined by HP cc +Olibcalls */
31651char *alloca ();
31652# endif
31653# endif
31654# endif
31655# endif
31656#endif
31657
31658int
31659main ()
31660{
31661char *p = (char *) alloca (1);
31662 if (p) return 0;
31663 ;
31664 return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext conftest$ac_exeext
31668if { (ac_try="$ac_link"
31669case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31672esac
31673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_link") 2>conftest.er1
31675 ac_status=$?
31676 grep -v '^ *+' conftest.er1 >conftest.err
31677 rm -f conftest.er1
31678 cat conftest.err >&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031680 (exit $ac_status); } &&
31681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31682 { (case "(($ac_try" in
31683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684 *) ac_try_echo=$ac_try;;
31685esac
31686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687 (eval "$ac_try") 2>&5
31688 ac_status=$?
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); }; } &&
31691 { ac_try='test -s conftest$ac_exeext'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031701 ac_cv_func_alloca_works=yes
31702else
31703 echo "$as_me: failed program was:" >&5
31704sed 's/^/| /' conftest.$ac_ext >&5
31705
31706 ac_cv_func_alloca_works=no
31707fi
31708
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031709rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031710 conftest$ac_exeext conftest.$ac_ext
31711fi
31712{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31713echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31714
31715if test $ac_cv_func_alloca_works = yes; then
31716
31717cat >>confdefs.h <<\_ACEOF
31718#define HAVE_ALLOCA 1
31719_ACEOF
31720
31721else
31722 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31723# that cause trouble. Some versions do not even contain alloca or
31724# contain a buggy version. If you still want to use their alloca,
31725# use ar to extract alloca.o from them instead of compiling alloca.c.
31726
31727ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31728
31729cat >>confdefs.h <<\_ACEOF
31730#define C_ALLOCA 1
31731_ACEOF
31732
31733
31734{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31735echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31736if test "${ac_cv_os_cray+set}" = set; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31738else
31739 cat >conftest.$ac_ext <<_ACEOF
31740/* confdefs.h. */
31741_ACEOF
31742cat confdefs.h >>conftest.$ac_ext
31743cat >>conftest.$ac_ext <<_ACEOF
31744/* end confdefs.h. */
31745#if defined CRAY && ! defined CRAY2
31746webecray
31747#else
31748wenotbecray
31749#endif
31750
31751_ACEOF
31752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31753 $EGREP "webecray" >/dev/null 2>&1; then
31754 ac_cv_os_cray=yes
31755else
31756 ac_cv_os_cray=no
31757fi
31758rm -f conftest*
31759
31760fi
31761{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31762echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31763if test $ac_cv_os_cray = yes; then
31764 for ac_func in _getb67 GETB67 getb67; do
31765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
31770else
31771 cat >conftest.$ac_ext <<_ACEOF
31772/* confdefs.h. */
31773_ACEOF
31774cat confdefs.h >>conftest.$ac_ext
31775cat >>conftest.$ac_ext <<_ACEOF
31776/* end confdefs.h. */
31777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31779#define $ac_func innocuous_$ac_func
31780
31781/* System header to define __stub macros and hopefully few prototypes,
31782 which can conflict with char $ac_func (); below.
31783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31784 <limits.h> exists even on freestanding compilers. */
31785
31786#ifdef __STDC__
31787# include <limits.h>
31788#else
31789# include <assert.h>
31790#endif
31791
31792#undef $ac_func
31793
31794/* Override any GCC internal prototype to avoid an error.
31795 Use char because int might match the return type of a GCC
31796 builtin and then its argument prototype would still apply. */
31797#ifdef __cplusplus
31798extern "C"
31799#endif
31800char $ac_func ();
31801/* The GNU C library defines this for functions which it implements
31802 to always fail with ENOSYS. Some functions are actually named
31803 something starting with __ and the normal name is an alias. */
31804#if defined __stub_$ac_func || defined __stub___$ac_func
31805choke me
31806#endif
31807
31808int
31809main ()
31810{
31811return $ac_func ();
31812 ;
31813 return 0;
31814}
31815_ACEOF
31816rm -f conftest.$ac_objext conftest$ac_exeext
31817if { (ac_try="$ac_link"
31818case "(($ac_try" in
31819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820 *) ac_try_echo=$ac_try;;
31821esac
31822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823 (eval "$ac_link") 2>conftest.er1
31824 ac_status=$?
31825 grep -v '^ *+' conftest.er1 >conftest.err
31826 rm -f conftest.er1
31827 cat conftest.err >&5
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031829 (exit $ac_status); } &&
31830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31831 { (case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31834esac
31835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_try") 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest$ac_exeext'
31841 { (case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31844esac
31845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031850 eval "$as_ac_var=yes"
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855 eval "$as_ac_var=no"
31856fi
31857
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031858rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031859 conftest$ac_exeext conftest.$ac_ext
31860fi
31861ac_res=`eval echo '${'$as_ac_var'}'`
31862 { echo "$as_me:$LINENO: result: $ac_res" >&5
31863echo "${ECHO_T}$ac_res" >&6; }
31864if test `eval echo '${'$as_ac_var'}'` = yes; then
31865
31866cat >>confdefs.h <<_ACEOF
31867#define CRAY_STACKSEG_END $ac_func
31868_ACEOF
31869
31870 break
31871fi
31872
31873 done
31874fi
31875
31876{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31877echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31878if test "${ac_cv_c_stack_direction+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31880else
31881 if test "$cross_compiling" = yes; then
31882 ac_cv_c_stack_direction=0
31883else
31884 cat >conftest.$ac_ext <<_ACEOF
31885/* confdefs.h. */
31886_ACEOF
31887cat confdefs.h >>conftest.$ac_ext
31888cat >>conftest.$ac_ext <<_ACEOF
31889/* end confdefs.h. */
31890$ac_includes_default
31891int
31892find_stack_direction ()
31893{
31894 static char *addr = 0;
31895 auto char dummy;
31896 if (addr == 0)
31897 {
31898 addr = &dummy;
31899 return find_stack_direction ();
31900 }
31901 else
31902 return (&dummy > addr) ? 1 : -1;
31903}
31904
31905int
31906main ()
31907{
31908 return find_stack_direction () < 0;
31909}
31910_ACEOF
31911rm -f conftest$ac_exeext
31912if { (ac_try="$ac_link"
31913case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_link") 2>&5
31919 ac_status=$?
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; }; then
31931 ac_cv_c_stack_direction=1
31932else
31933 echo "$as_me: program exited with status $ac_status" >&5
31934echo "$as_me: failed program was:" >&5
31935sed 's/^/| /' conftest.$ac_ext >&5
31936
31937( exit $ac_status )
31938ac_cv_c_stack_direction=-1
31939fi
31940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31941fi
31942
31943
31944fi
31945{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31946echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31947
31948cat >>confdefs.h <<_ACEOF
31949#define STACK_DIRECTION $ac_cv_c_stack_direction
31950_ACEOF
31951
31952
31953fi
31954
31955
31956{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31957echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31958if test "${ac_cv_func_rand48+set}" = set; then
31959 echo $ECHO_N "(cached) $ECHO_C" >&6
31960else
31961 ac_ext=cpp
31962ac_cpp='$CXXCPP $CPPFLAGS'
31963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31966
31967 cat >conftest.$ac_ext <<_ACEOF
31968/* confdefs.h. */
31969_ACEOF
31970cat confdefs.h >>conftest.$ac_ext
31971cat >>conftest.$ac_ext <<_ACEOF
31972/* end confdefs.h. */
31973#include <stdlib.h>
31974int
31975main ()
31976{
31977srand48(0);lrand48();drand48();
31978 ;
31979 return 0;
31980}
31981_ACEOF
31982rm -f conftest.$ac_objext
31983if { (ac_try="$ac_compile"
31984case "(($ac_try" in
31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31987esac
31988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_compile") 2>conftest.er1
31990 ac_status=$?
31991 grep -v '^ *+' conftest.er1 >conftest.err
31992 rm -f conftest.er1
31993 cat conftest.err >&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000031995 (exit $ac_status); } &&
31996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; } &&
32006 { ac_try='test -s conftest.$ac_objext'
32007 { (case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_try") 2>&5
32013 ac_status=$?
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032016 ac_cv_func_rand48=yes
32017else
32018 echo "$as_me: failed program was:" >&5
32019sed 's/^/| /' conftest.$ac_ext >&5
32020
32021 ac_cv_func_rand48=no
32022fi
32023
32024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32025 ac_ext=c
32026ac_cpp='$CPP $CPPFLAGS'
32027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32029ac_compiler_gnu=$ac_cv_c_compiler_gnu
32030
32031fi
32032{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32033echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32034
32035if test "$ac_cv_func_rand48" = "yes" ; then
32036
32037cat >>confdefs.h <<\_ACEOF
32038#define HAVE_RAND48 1
32039_ACEOF
32040
32041fi
32042
32043
32044{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32045echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32046if test "${ac_cv_cxx_namespaces+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32048else
32049 ac_ext=cpp
32050ac_cpp='$CXXCPP $CPPFLAGS'
32051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32054
32055 cat >conftest.$ac_ext <<_ACEOF
32056/* confdefs.h. */
32057_ACEOF
32058cat confdefs.h >>conftest.$ac_ext
32059cat >>conftest.$ac_ext <<_ACEOF
32060/* end confdefs.h. */
32061namespace Outer { namespace Inner { int i = 0; }}
32062int
32063main ()
32064{
32065using namespace Outer::Inner; return i;
32066 ;
32067 return 0;
32068}
32069_ACEOF
32070rm -f conftest.$ac_objext
32071if { (ac_try="$ac_compile"
32072case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32075esac
32076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_compile") 2>conftest.er1
32078 ac_status=$?
32079 grep -v '^ *+' conftest.er1 >conftest.err
32080 rm -f conftest.er1
32081 cat conftest.err >&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032083 (exit $ac_status); } &&
32084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32085 { (case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32088esac
32089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_try") 2>&5
32091 ac_status=$?
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); }; } &&
32094 { ac_try='test -s conftest.$ac_objext'
32095 { (case "(($ac_try" in
32096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32097 *) ac_try_echo=$ac_try;;
32098esac
32099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100 (eval "$ac_try") 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032104 ac_cv_cxx_namespaces=yes
32105else
32106 echo "$as_me: failed program was:" >&5
32107sed 's/^/| /' conftest.$ac_ext >&5
32108
32109 ac_cv_cxx_namespaces=no
32110fi
32111
32112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113 ac_ext=c
32114ac_cpp='$CPP $CPPFLAGS'
32115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32117ac_compiler_gnu=$ac_cv_c_compiler_gnu
32118
32119
32120fi
32121{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32122echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32123if test "$ac_cv_cxx_namespaces" = yes; then
32124
32125cat >>confdefs.h <<\_ACEOF
32126#define HAVE_NAMESPACES
32127_ACEOF
32128
32129fi
32130
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032131{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32132echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32133if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32134 echo $ECHO_N "(cached) $ECHO_C" >&6
32135else
32136
32137 ac_ext=cpp
32138ac_cpp='$CXXCPP $CPPFLAGS'
32139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32142
32143 cat >conftest.$ac_ext <<_ACEOF
32144/* confdefs.h. */
32145_ACEOF
32146cat confdefs.h >>conftest.$ac_ext
32147cat >>conftest.$ac_ext <<_ACEOF
32148/* end confdefs.h. */
32149#include <iterator>
32150#ifdef HAVE_NAMESPACES
32151using namespace std;
32152#endif
32153int
32154main ()
32155{
32156iterator<int,int,int> t; return 0;
32157 ;
32158 return 0;
32159}
32160_ACEOF
32161rm -f conftest.$ac_objext
32162if { (ac_try="$ac_compile"
32163case "(($ac_try" in
32164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165 *) ac_try_echo=$ac_try;;
32166esac
32167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168 (eval "$ac_compile") 2>conftest.er1
32169 ac_status=$?
32170 grep -v '^ *+' conftest.er1 >conftest.err
32171 rm -f conftest.er1
32172 cat conftest.err >&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032174 (exit $ac_status); } &&
32175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32176 { (case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32179esac
32180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_try") 2>&5
32182 ac_status=$?
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; } &&
32185 { ac_try='test -s conftest.$ac_objext'
32186 { (case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32189esac
32190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_try") 2>&5
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032195 ac_cv_cxx_have_std_iterator=yes
32196else
32197 echo "$as_me: failed program was:" >&5
32198sed 's/^/| /' conftest.$ac_ext >&5
32199
32200 ac_cv_cxx_have_std_iterator=no
32201fi
32202
32203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32204 ac_ext=c
32205ac_cpp='$CPP $CPPFLAGS'
32206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32208ac_compiler_gnu=$ac_cv_c_compiler_gnu
32209
32210
32211fi
32212{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32213echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32214if test "$ac_cv_cxx_have_std_iterator" = yes
32215then
32216
32217cat >>confdefs.h <<\_ACEOF
32218#define HAVE_STD_ITERATOR 1
32219_ACEOF
32220
32221else
32222
32223cat >>confdefs.h <<\_ACEOF
32224#define HAVE_STD_ITERATOR 0
32225_ACEOF
32226
32227fi
32228
32229{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32230echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32231if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233else
32234
32235 ac_ext=cpp
32236ac_cpp='$CXXCPP $CPPFLAGS'
32237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
32241 cat >conftest.$ac_ext <<_ACEOF
32242/* confdefs.h. */
32243_ACEOF
32244cat confdefs.h >>conftest.$ac_ext
32245cat >>conftest.$ac_ext <<_ACEOF
32246/* end confdefs.h. */
32247#include <iterator>
32248#ifdef HAVE_NAMESPACES
32249using namespace std;
32250#endif
32251int
32252main ()
32253{
32254bidirectional_iterator<int,int> t; return 0;
32255 ;
32256 return 0;
32257}
32258_ACEOF
32259rm -f conftest.$ac_objext
32260if { (ac_try="$ac_compile"
32261case "(($ac_try" in
32262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263 *) ac_try_echo=$ac_try;;
32264esac
32265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266 (eval "$ac_compile") 2>conftest.er1
32267 ac_status=$?
32268 grep -v '^ *+' conftest.er1 >conftest.err
32269 rm -f conftest.er1
32270 cat conftest.err >&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032272 (exit $ac_status); } &&
32273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32277esac
32278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_try") 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32287esac
32288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_try") 2>&5
32290 ac_status=$?
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032293 ac_cv_cxx_have_bi_iterator=yes
32294else
32295 echo "$as_me: failed program was:" >&5
32296sed 's/^/| /' conftest.$ac_ext >&5
32297
32298 ac_cv_cxx_have_bi_iterator=no
32299fi
32300
32301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32302 ac_ext=c
32303ac_cpp='$CPP $CPPFLAGS'
32304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32306ac_compiler_gnu=$ac_cv_c_compiler_gnu
32307
32308
32309fi
32310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32311echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32312if test "$ac_cv_cxx_have_bi_iterator" = yes
32313then
32314
32315cat >>confdefs.h <<\_ACEOF
32316#define HAVE_BI_ITERATOR 1
32317_ACEOF
32318
32319else
32320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_BI_ITERATOR 0
32323_ACEOF
32324
32325fi
32326
32327{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32328echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32329if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332
32333 ac_ext=cpp
32334ac_cpp='$CXXCPP $CPPFLAGS'
32335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32338
32339 cat >conftest.$ac_ext <<_ACEOF
32340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
32345#include <iterator>
32346#ifdef HAVE_NAMESPACES
32347using namespace std;
32348#endif
32349int
32350main ()
32351{
32352forward_iterator<int,int> t; return 0;
32353 ;
32354 return 0;
32355}
32356_ACEOF
32357rm -f conftest.$ac_objext
32358if { (ac_try="$ac_compile"
32359case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_compile") 2>conftest.er1
32365 ac_status=$?
32366 grep -v '^ *+' conftest.er1 >conftest.err
32367 rm -f conftest.er1
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032370 (exit $ac_status); } &&
32371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32375esac
32376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32378 ac_status=$?
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; } &&
32381 { ac_try='test -s conftest.$ac_objext'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32385esac
32386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032391 ac_cv_cxx_have_fwd_iterator=yes
32392else
32393 echo "$as_me: failed program was:" >&5
32394sed 's/^/| /' conftest.$ac_ext >&5
32395
32396 ac_cv_cxx_have_fwd_iterator=no
32397fi
32398
32399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400 ac_ext=c
32401ac_cpp='$CPP $CPPFLAGS'
32402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32404ac_compiler_gnu=$ac_cv_c_compiler_gnu
32405
32406
32407fi
32408{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32409echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32410if test "$ac_cv_cxx_have_fwd_iterator" = yes
32411then
32412
32413cat >>confdefs.h <<\_ACEOF
32414#define HAVE_FWD_ITERATOR 1
32415_ACEOF
32416
32417else
32418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_FWD_ITERATOR 0
32421_ACEOF
32422
32423fi
32424
32425
32426{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32427echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32428if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32430else
32431 ac_ext=cpp
32432ac_cpp='$CXXCPP $CPPFLAGS'
32433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32436
32437 cat >conftest.$ac_ext <<_ACEOF
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443#include <math.h>
32444int
32445main ()
32446{
32447float f; isnan(f);
32448 ;
32449 return 0;
32450}
32451_ACEOF
32452rm -f conftest.$ac_objext
32453if { (ac_try="$ac_compile"
32454case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_compile") 2>conftest.er1
32460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32467 { (case "(($ac_try" in
32468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469 *) ac_try_echo=$ac_try;;
32470esac
32471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472 (eval "$ac_try") 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest.$ac_objext'
32477 { (case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32480esac
32481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_try") 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032486 ac_cv_func_isnan_in_math_h=yes
32487else
32488 echo "$as_me: failed program was:" >&5
32489sed 's/^/| /' conftest.$ac_ext >&5
32490
32491 ac_cv_func_isnan_in_math_h=no
32492fi
32493
32494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32495 ac_ext=c
32496ac_cpp='$CPP $CPPFLAGS'
32497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32499ac_compiler_gnu=$ac_cv_c_compiler_gnu
32500
32501fi
32502{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32503echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32504
32505
32506if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32507
32508cat >>confdefs.h <<\_ACEOF
32509#define HAVE_ISNAN_IN_MATH_H 1
32510_ACEOF
32511
32512fi
32513
32514{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32515echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32516if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
32519 ac_ext=cpp
32520ac_cpp='$CXXCPP $CPPFLAGS'
32521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
32525 cat >conftest.$ac_ext <<_ACEOF
32526/* confdefs.h. */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h. */
32531#include <cmath>
32532int
32533main ()
32534{
32535float f; isnan(f);
32536 ;
32537 return 0;
32538}
32539_ACEOF
32540rm -f conftest.$ac_objext
32541if { (ac_try="$ac_compile"
32542case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
32548 ac_status=$?
32549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032553 (exit $ac_status); } &&
32554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32558esac
32559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
32561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest.$ac_objext'
32565 { (case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32568esac
32569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_try") 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032574 ac_cv_func_isnan_in_cmath=yes
32575else
32576 echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
32579 ac_cv_func_isnan_in_cmath=no
32580fi
32581
32582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32583 ac_ext=c
32584ac_cpp='$CPP $CPPFLAGS'
32585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589fi
32590{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32591echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32592
32593if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32594
32595cat >>confdefs.h <<\_ACEOF
32596#define HAVE_ISNAN_IN_CMATH 1
32597_ACEOF
32598
32599fi
32600
32601{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32602echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32603if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32604 echo $ECHO_N "(cached) $ECHO_C" >&6
32605else
32606 ac_ext=cpp
32607ac_cpp='$CXXCPP $CPPFLAGS'
32608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32611
32612 cat >conftest.$ac_ext <<_ACEOF
32613/* confdefs.h. */
32614_ACEOF
32615cat confdefs.h >>conftest.$ac_ext
32616cat >>conftest.$ac_ext <<_ACEOF
32617/* end confdefs.h. */
32618#include <cmath>
32619int
32620main ()
32621{
32622float f; std::isnan(f);
32623 ;
32624 return 0;
32625}
32626_ACEOF
32627rm -f conftest.$ac_objext
32628if { (ac_try="$ac_compile"
32629case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32632esac
32633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_compile") 2>conftest.er1
32635 ac_status=$?
32636 grep -v '^ *+' conftest.er1 >conftest.err
32637 rm -f conftest.er1
32638 cat conftest.err >&5
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032640 (exit $ac_status); } &&
32641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32645esac
32646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32648 ac_status=$?
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; } &&
32651 { ac_try='test -s conftest.$ac_objext'
32652 { (case "(($ac_try" in
32653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32655esac
32656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_try") 2>&5
32658 ac_status=$?
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032661 ac_cv_func_std_isnan_in_cmath=yes
32662else
32663 echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
32666 ac_cv_func_std_isnan_in_cmath=no
32667fi
32668
32669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32670 ac_ext=c
32671ac_cpp='$CPP $CPPFLAGS'
32672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674ac_compiler_gnu=$ac_cv_c_compiler_gnu
32675
32676fi
32677{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32678echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32679
32680if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32681
32682cat >>confdefs.h <<\_ACEOF
32683#define HAVE_STD_ISNAN_IN_CMATH 1
32684_ACEOF
32685
32686fi
32687
32688
32689{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32690echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32691if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32692 echo $ECHO_N "(cached) $ECHO_C" >&6
32693else
32694 ac_ext=cpp
32695ac_cpp='$CXXCPP $CPPFLAGS'
32696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32699
32700 cat >conftest.$ac_ext <<_ACEOF
32701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
32706#include <math.h>
32707int
32708main ()
32709{
32710float f; isinf(f);
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext
32716if { (ac_try="$ac_compile"
32717case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720esac
32721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_compile") 2>conftest.er1
32723 ac_status=$?
32724 grep -v '^ *+' conftest.er1 >conftest.err
32725 rm -f conftest.er1
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032728 (exit $ac_status); } &&
32729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32730 { (case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32733esac
32734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_try") 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; } &&
32739 { ac_try='test -s conftest.$ac_objext'
32740 { (case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32743esac
32744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745 (eval "$ac_try") 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032749 ac_cv_func_isinf_in_math_h=yes
32750else
32751 echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
32754 ac_cv_func_isinf_in_math_h=no
32755fi
32756
32757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32758 ac_ext=c
32759ac_cpp='$CPP $CPPFLAGS'
32760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763
32764fi
32765{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32766echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32767
32768if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32769
32770cat >>confdefs.h <<\_ACEOF
32771#define HAVE_ISINF_IN_MATH_H 1
32772_ACEOF
32773
32774fi
32775
32776{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32777echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32778if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32780else
32781 ac_ext=cpp
32782ac_cpp='$CXXCPP $CPPFLAGS'
32783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32786
32787 cat >conftest.$ac_ext <<_ACEOF
32788/* confdefs.h. */
32789_ACEOF
32790cat confdefs.h >>conftest.$ac_ext
32791cat >>conftest.$ac_ext <<_ACEOF
32792/* end confdefs.h. */
32793#include <cmath>
32794int
32795main ()
32796{
32797float f; isinf(f);
32798 ;
32799 return 0;
32800}
32801_ACEOF
32802rm -f conftest.$ac_objext
32803if { (ac_try="$ac_compile"
32804case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32807esac
32808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_compile") 2>conftest.er1
32810 ac_status=$?
32811 grep -v '^ *+' conftest.er1 >conftest.err
32812 rm -f conftest.er1
32813 cat conftest.err >&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032815 (exit $ac_status); } &&
32816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32820esac
32821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32823 ac_status=$?
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest.$ac_objext'
32827 { (case "(($ac_try" in
32828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829 *) ac_try_echo=$ac_try;;
32830esac
32831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832 (eval "$ac_try") 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032836 ac_cv_func_isinf_in_cmath=yes
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841 ac_cv_func_isinf_in_cmath=no
32842fi
32843
32844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32845 ac_ext=c
32846ac_cpp='$CPP $CPPFLAGS'
32847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849ac_compiler_gnu=$ac_cv_c_compiler_gnu
32850
32851fi
32852{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32853echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32854
32855if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32856
32857cat >>confdefs.h <<\_ACEOF
32858#define HAVE_ISINF_IN_CMATH 1
32859_ACEOF
32860
32861fi
32862
32863{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32864echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32865if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32867else
32868 ac_ext=cpp
32869ac_cpp='$CXXCPP $CPPFLAGS'
32870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32873
32874 cat >conftest.$ac_ext <<_ACEOF
32875/* confdefs.h. */
32876_ACEOF
32877cat confdefs.h >>conftest.$ac_ext
32878cat >>conftest.$ac_ext <<_ACEOF
32879/* end confdefs.h. */
32880#include <cmath>
32881int
32882main ()
32883{
32884float f; std::isinf(f)}
32885 ;
32886 return 0;
32887}
32888_ACEOF
32889rm -f conftest.$ac_objext
32890if { (ac_try="$ac_compile"
32891case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32894esac
32895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_compile") 2>conftest.er1
32897 ac_status=$?
32898 grep -v '^ *+' conftest.er1 >conftest.err
32899 rm -f conftest.er1
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032902 (exit $ac_status); } &&
32903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32904 { (case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_try") 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest.$ac_objext'
32914 { (case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32917esac
32918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_try") 2>&5
32920 ac_status=$?
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032923 ac_cv_func_std_isinf_in_cmath=yes
32924else
32925 echo "$as_me: failed program was:" >&5
32926sed 's/^/| /' conftest.$ac_ext >&5
32927
32928 ac_cv_func_std_isinf_in_cmath=no
32929fi
32930
32931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32932 ac_ext=c
32933ac_cpp='$CPP $CPPFLAGS'
32934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936ac_compiler_gnu=$ac_cv_c_compiler_gnu
32937
32938fi
32939{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32940echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32941
32942if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32943
32944cat >>confdefs.h <<\_ACEOF
32945#define HAVE_STD_ISINF_IN_CMATH 1
32946_ACEOF
32947
32948fi
32949
32950{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32951echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32952if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32953 echo $ECHO_N "(cached) $ECHO_C" >&6
32954else
32955 ac_ext=cpp
32956ac_cpp='$CXXCPP $CPPFLAGS'
32957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32960
32961 cat >conftest.$ac_ext <<_ACEOF
32962/* confdefs.h. */
32963_ACEOF
32964cat confdefs.h >>conftest.$ac_ext
32965cat >>conftest.$ac_ext <<_ACEOF
32966/* end confdefs.h. */
32967#include <ieeefp.h>
32968int
32969main ()
32970{
32971float f; finite(f);
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext
32977if { (ac_try="$ac_compile"
32978case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_compile") 2>conftest.er1
32984 ac_status=$?
32985 grep -v '^ *+' conftest.er1 >conftest.err
32986 rm -f conftest.er1
32987 cat conftest.err >&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032989 (exit $ac_status); } &&
32990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32991 { (case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32994esac
32995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_try") 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; } &&
33000 { ac_try='test -s conftest.$ac_objext'
33001 { (case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33004esac
33005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_try") 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033010 ac_cv_func_finite_in_ieeefp_h=yes
33011else
33012 echo "$as_me: failed program was:" >&5
33013sed 's/^/| /' conftest.$ac_ext >&5
33014
33015 ac_cv_func_finite_in_ieeefp_h=no
33016fi
33017
33018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33019 ac_ext=c
33020ac_cpp='$CPP $CPPFLAGS'
33021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023ac_compiler_gnu=$ac_cv_c_compiler_gnu
33024
33025fi
33026{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33027echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33028
33029if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33030
33031cat >>confdefs.h <<\_ACEOF
33032#define HAVE_FINITE_IN_IEEEFP_H 1
33033_ACEOF
33034
33035fi
33036
33037
33038
33039if test "$llvm_cv_platform_type" = "Unix" ; then
33040
33041
33042for ac_header in stdlib.h unistd.h
33043do
33044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050fi
33051ac_res=`eval echo '${'$as_ac_Header'}'`
33052 { echo "$as_me:$LINENO: result: $ac_res" >&5
33053echo "${ECHO_T}$ac_res" >&6; }
33054else
33055 # Is the header compilable?
33056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33058cat >conftest.$ac_ext <<_ACEOF
33059/* confdefs.h. */
33060_ACEOF
33061cat confdefs.h >>conftest.$ac_ext
33062cat >>conftest.$ac_ext <<_ACEOF
33063/* end confdefs.h. */
33064$ac_includes_default
33065#include <$ac_header>
33066_ACEOF
33067rm -f conftest.$ac_objext
33068if { (ac_try="$ac_compile"
33069case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33072esac
33073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_compile") 2>conftest.er1
33075 ac_status=$?
33076 grep -v '^ *+' conftest.er1 >conftest.err
33077 rm -f conftest.er1
33078 cat conftest.err >&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033101 ac_header_compiler=yes
33102else
33103 echo "$as_me: failed program was:" >&5
33104sed 's/^/| /' conftest.$ac_ext >&5
33105
33106 ac_header_compiler=no
33107fi
33108
33109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33111echo "${ECHO_T}$ac_header_compiler" >&6; }
33112
33113# Is the header present?
33114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33116cat >conftest.$ac_ext <<_ACEOF
33117/* confdefs.h. */
33118_ACEOF
33119cat confdefs.h >>conftest.$ac_ext
33120cat >>conftest.$ac_ext <<_ACEOF
33121/* end confdefs.h. */
33122#include <$ac_header>
33123_ACEOF
33124if { (ac_try="$ac_cpp conftest.$ac_ext"
33125case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128esac
33129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33131 ac_status=$?
33132 grep -v '^ *+' conftest.er1 >conftest.err
33133 rm -f conftest.er1
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033136 (exit $ac_status); } >/dev/null; then
33137 if test -s conftest.err; then
33138 ac_cpp_err=$ac_c_preproc_warn_flag
33139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33140 else
33141 ac_cpp_err=
33142 fi
33143else
33144 ac_cpp_err=yes
33145fi
33146if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033147 ac_header_preproc=yes
33148else
33149 echo "$as_me: failed program was:" >&5
33150sed 's/^/| /' conftest.$ac_ext >&5
33151
33152 ac_header_preproc=no
33153fi
33154
33155rm -f conftest.err conftest.$ac_ext
33156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33157echo "${ECHO_T}$ac_header_preproc" >&6; }
33158
33159# So? What about this header?
33160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33161 yes:no: )
33162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33166 ac_header_preproc=yes
33167 ;;
33168 no:yes:* )
33169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33181 ( cat <<\_ASBOX
33182## ----------------------------------- ##
33183## Report this to llvmbugs@cs.uiuc.edu ##
33184## ----------------------------------- ##
33185_ASBOX
33186 ) | sed "s/^/$as_me: WARNING: /" >&2
33187 ;;
33188esac
33189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33192 echo $ECHO_N "(cached) $ECHO_C" >&6
33193else
33194 eval "$as_ac_Header=\$ac_header_preproc"
33195fi
33196ac_res=`eval echo '${'$as_ac_Header'}'`
33197 { echo "$as_me:$LINENO: result: $ac_res" >&5
33198echo "${ECHO_T}$ac_res" >&6; }
33199
33200fi
33201if test `eval echo '${'$as_ac_Header'}'` = yes; then
33202 cat >>confdefs.h <<_ACEOF
33203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33204_ACEOF
33205
33206fi
33207
33208done
33209
33210
33211for ac_func in getpagesize
33212do
33213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33214{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33216if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33218else
33219 cat >conftest.$ac_ext <<_ACEOF
33220/* confdefs.h. */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h. */
33225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33227#define $ac_func innocuous_$ac_func
33228
33229/* System header to define __stub macros and hopefully few prototypes,
33230 which can conflict with char $ac_func (); below.
33231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33232 <limits.h> exists even on freestanding compilers. */
33233
33234#ifdef __STDC__
33235# include <limits.h>
33236#else
33237# include <assert.h>
33238#endif
33239
33240#undef $ac_func
33241
33242/* Override any GCC internal prototype to avoid an error.
33243 Use char because int might match the return type of a GCC
33244 builtin and then its argument prototype would still apply. */
33245#ifdef __cplusplus
33246extern "C"
33247#endif
33248char $ac_func ();
33249/* The GNU C library defines this for functions which it implements
33250 to always fail with ENOSYS. Some functions are actually named
33251 something starting with __ and the normal name is an alias. */
33252#if defined __stub_$ac_func || defined __stub___$ac_func
33253choke me
33254#endif
33255
33256int
33257main ()
33258{
33259return $ac_func ();
33260 ;
33261 return 0;
33262}
33263_ACEOF
33264rm -f conftest.$ac_objext conftest$ac_exeext
33265if { (ac_try="$ac_link"
33266case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>conftest.er1
33272 ac_status=$?
33273 grep -v '^ *+' conftest.er1 >conftest.err
33274 rm -f conftest.er1
33275 cat conftest.err >&5
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33279 { (case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33282esac
33283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_try") 2>&5
33285 ac_status=$?
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; } &&
33288 { ac_try='test -s conftest$ac_exeext'
33289 { (case "(($ac_try" in
33290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291 *) ac_try_echo=$ac_try;;
33292esac
33293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294 (eval "$ac_try") 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033298 eval "$as_ac_var=yes"
33299else
33300 echo "$as_me: failed program was:" >&5
33301sed 's/^/| /' conftest.$ac_ext >&5
33302
33303 eval "$as_ac_var=no"
33304fi
33305
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033306rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033307 conftest$ac_exeext conftest.$ac_ext
33308fi
33309ac_res=`eval echo '${'$as_ac_var'}'`
33310 { echo "$as_me:$LINENO: result: $ac_res" >&5
33311echo "${ECHO_T}$ac_res" >&6; }
33312if test `eval echo '${'$as_ac_var'}'` = yes; then
33313 cat >>confdefs.h <<_ACEOF
33314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33315_ACEOF
33316
33317fi
33318done
33319
33320{ echo "$as_me:$LINENO: checking for working mmap" >&5
33321echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33322if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33323 echo $ECHO_N "(cached) $ECHO_C" >&6
33324else
33325 if test "$cross_compiling" = yes; then
33326 ac_cv_func_mmap_fixed_mapped=no
33327else
33328 cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h. */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h. */
33334$ac_includes_default
33335/* malloc might have been renamed as rpl_malloc. */
33336#undef malloc
33337
33338/* Thanks to Mike Haertel and Jim Avera for this test.
33339 Here is a matrix of mmap possibilities:
33340 mmap private not fixed
33341 mmap private fixed at somewhere currently unmapped
33342 mmap private fixed at somewhere already mapped
33343 mmap shared not fixed
33344 mmap shared fixed at somewhere currently unmapped
33345 mmap shared fixed at somewhere already mapped
33346 For private mappings, we should verify that changes cannot be read()
33347 back from the file, nor mmap's back from the file at a different
33348 address. (There have been systems where private was not correctly
33349 implemented like the infamous i386 svr4.0, and systems where the
33350 VM page cache was not coherent with the file system buffer cache
33351 like early versions of FreeBSD and possibly contemporary NetBSD.)
33352 For shared mappings, we should conversely verify that changes get
33353 propagated back to all the places they're supposed to be.
33354
33355 Grep wants private fixed already mapped.
33356 The main things grep needs to know about mmap are:
33357 * does it exist and is it safe to write into the mmap'd area
33358 * how to use it (BSD variants) */
33359
33360#include <fcntl.h>
33361#include <sys/mman.h>
33362
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033363#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033364char *malloc ();
33365#endif
33366
33367/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033368#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033369/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033370# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033371# define HAVE_SYS_PARAM_H 1
33372# endif
33373
33374# ifdef _SC_PAGESIZE
33375# define getpagesize() sysconf(_SC_PAGESIZE)
33376# else /* no _SC_PAGESIZE */
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033377# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033378# include <sys/param.h>
33379# ifdef EXEC_PAGESIZE
33380# define getpagesize() EXEC_PAGESIZE
33381# else /* no EXEC_PAGESIZE */
33382# ifdef NBPG
33383# define getpagesize() NBPG * CLSIZE
33384# ifndef CLSIZE
33385# define CLSIZE 1
33386# endif /* no CLSIZE */
33387# else /* no NBPG */
33388# ifdef NBPC
33389# define getpagesize() NBPC
33390# else /* no NBPC */
33391# ifdef PAGESIZE
33392# define getpagesize() PAGESIZE
33393# endif /* PAGESIZE */
33394# endif /* no NBPC */
33395# endif /* no NBPG */
33396# endif /* no EXEC_PAGESIZE */
33397# else /* no HAVE_SYS_PARAM_H */
33398# define getpagesize() 8192 /* punt totally */
33399# endif /* no HAVE_SYS_PARAM_H */
33400# endif /* no _SC_PAGESIZE */
33401
33402#endif /* no HAVE_GETPAGESIZE */
33403
33404int
33405main ()
33406{
33407 char *data, *data2, *data3;
33408 int i, pagesize;
33409 int fd;
33410
33411 pagesize = getpagesize ();
33412
33413 /* First, make a file with some known garbage in it. */
33414 data = (char *) malloc (pagesize);
33415 if (!data)
33416 return 1;
33417 for (i = 0; i < pagesize; ++i)
33418 *(data + i) = rand ();
33419 umask (0);
33420 fd = creat ("conftest.mmap", 0600);
33421 if (fd < 0)
33422 return 1;
33423 if (write (fd, data, pagesize) != pagesize)
33424 return 1;
33425 close (fd);
33426
33427 /* Next, try to mmap the file at a fixed address which already has
33428 something else allocated at it. If we can, also make sure that
33429 we see the same garbage. */
33430 fd = open ("conftest.mmap", O_RDWR);
33431 if (fd < 0)
33432 return 1;
33433 data2 = (char *) malloc (2 * pagesize);
33434 if (!data2)
33435 return 1;
33436 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33439 return 1;
33440 for (i = 0; i < pagesize; ++i)
33441 if (*(data + i) != *(data2 + i))
33442 return 1;
33443
33444 /* Finally, make sure that changes to the mapped area do not
33445 percolate back to the file as seen by read(). (This is a bug on
33446 some variants of i386 svr4.0.) */
33447 for (i = 0; i < pagesize; ++i)
33448 *(data2 + i) = *(data2 + i) + 1;
33449 data3 = (char *) malloc (pagesize);
33450 if (!data3)
33451 return 1;
33452 if (read (fd, data3, pagesize) != pagesize)
33453 return 1;
33454 for (i = 0; i < pagesize; ++i)
33455 if (*(data + i) != *(data3 + i))
33456 return 1;
33457 close (fd);
33458 return 0;
33459}
33460_ACEOF
33461rm -f conftest$ac_exeext
33462if { (ac_try="$ac_link"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_link") 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33475esac
33476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
33478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_func_mmap_fixed_mapped=yes
33482else
33483 echo "$as_me: program exited with status $ac_status" >&5
33484echo "$as_me: failed program was:" >&5
33485sed 's/^/| /' conftest.$ac_ext >&5
33486
33487( exit $ac_status )
33488ac_cv_func_mmap_fixed_mapped=no
33489fi
33490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33491fi
33492
33493
33494fi
33495{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33496echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33497if test $ac_cv_func_mmap_fixed_mapped = yes; then
33498
33499cat >>confdefs.h <<\_ACEOF
33500#define HAVE_MMAP 1
33501_ACEOF
33502
33503fi
33504rm -f conftest.mmap
33505
33506 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33507echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33508if test "${ac_cv_func_mmap_file+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33510else
33511 ac_ext=c
33512ac_cpp='$CPP $CPPFLAGS'
33513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515ac_compiler_gnu=$ac_cv_c_compiler_gnu
33516
33517 if test "$cross_compiling" = yes; then
33518 ac_cv_func_mmap_file=no
33519else
33520 cat >conftest.$ac_ext <<_ACEOF
33521
33522 /* confdefs.h. */
33523_ACEOF
33524cat confdefs.h >>conftest.$ac_ext
33525cat >>conftest.$ac_ext <<_ACEOF
33526/* end confdefs.h. */
33527
33528#include <sys/types.h>
33529#include <sys/mman.h>
33530#include <fcntl.h>
33531
33532int
33533main ()
33534{
33535
33536 int fd;
33537 fd = creat ("foo",0777);
33538 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33539 unlink ("foo");
33540 return (fd != (int) MAP_FAILED);
33541 ;
33542 return 0;
33543}
33544_ACEOF
33545rm -f conftest$ac_exeext
33546if { (ac_try="$ac_link"
33547case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_link") 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33556 { (case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33559esac
33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_try") 2>&5
33562 ac_status=$?
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); }; }; then
33565 ac_cv_func_mmap_file=yes
33566else
33567 echo "$as_me: program exited with status $ac_status" >&5
33568echo "$as_me: failed program was:" >&5
33569sed 's/^/| /' conftest.$ac_ext >&5
33570
33571( exit $ac_status )
33572ac_cv_func_mmap_file=no
33573fi
33574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33575fi
33576
33577
33578 ac_ext=c
33579ac_cpp='$CPP $CPPFLAGS'
33580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583
33584
33585fi
33586{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33587echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33588if test "$ac_cv_func_mmap_file" = yes; then
33589
33590cat >>confdefs.h <<\_ACEOF
33591#define HAVE_MMAP_FILE
33592_ACEOF
33593
33594 MMAP_FILE=yes
33595
33596fi
33597
33598 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33599echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33600if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
33603 if test "$llvm_cv_os_type" = "Interix" ; then
33604 ac_cv_need_dev_zero_for_mmap=yes
33605 else
33606 ac_cv_need_dev_zero_for_mmap=no
33607 fi
33608
33609fi
33610{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33611echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33612if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33613
33614cat >>confdefs.h <<\_ACEOF
33615#define NEED_DEV_ZERO_FOR_MMAP 1
33616_ACEOF
33617
33618fi
33619
33620 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33621 then
33622 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33623echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33624 fi
33625 if test "$ac_cv_func_mmap_file" = "no"
33626 then
33627 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33628echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33629 fi
33630fi
33631
33632
Reid Spencer59c09b32007-07-30 20:13:24 +000033633
33634for ac_func in __dso_handle
33635do
33636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641else
33642 cat >conftest.$ac_ext <<_ACEOF
33643/* confdefs.h. */
33644_ACEOF
33645cat confdefs.h >>conftest.$ac_ext
33646cat >>conftest.$ac_ext <<_ACEOF
33647/* end confdefs.h. */
33648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33650#define $ac_func innocuous_$ac_func
33651
33652/* System header to define __stub macros and hopefully few prototypes,
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
33656
33657#ifdef __STDC__
33658# include <limits.h>
33659#else
33660# include <assert.h>
33661#endif
33662
33663#undef $ac_func
33664
33665/* Override any GCC internal prototype to avoid an error.
33666 Use char because int might match the return type of a GCC
33667 builtin and then its argument prototype would still apply. */
33668#ifdef __cplusplus
33669extern "C"
33670#endif
33671char $ac_func ();
33672/* The GNU C library defines this for functions which it implements
33673 to always fail with ENOSYS. Some functions are actually named
33674 something starting with __ and the normal name is an alias. */
33675#if defined __stub_$ac_func || defined __stub___$ac_func
33676choke me
33677#endif
33678
33679int
33680main ()
33681{
33682return $ac_func ();
33683 ;
33684 return 0;
33685}
33686_ACEOF
33687rm -f conftest.$ac_objext conftest$ac_exeext
33688if { (ac_try="$ac_link"
33689case "(($ac_try" in
33690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691 *) ac_try_echo=$ac_try;;
33692esac
33693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694 (eval "$ac_link") 2>conftest.er1
33695 ac_status=$?
33696 grep -v '^ *+' conftest.er1 >conftest.err
33697 rm -f conftest.er1
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033700 (exit $ac_status); } &&
33701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33702 { (case "(($ac_try" in
33703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704 *) ac_try_echo=$ac_try;;
33705esac
33706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707 (eval "$ac_try") 2>&5
33708 ac_status=$?
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; } &&
33711 { ac_try='test -s conftest$ac_exeext'
33712 { (case "(($ac_try" in
33713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33714 *) ac_try_echo=$ac_try;;
33715esac
33716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33717 (eval "$ac_try") 2>&5
33718 ac_status=$?
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000033721 eval "$as_ac_var=yes"
33722else
33723 echo "$as_me: failed program was:" >&5
33724sed 's/^/| /' conftest.$ac_ext >&5
33725
33726 eval "$as_ac_var=no"
33727fi
33728
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033729rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000033730 conftest$ac_exeext conftest.$ac_ext
33731fi
33732ac_res=`eval echo '${'$as_ac_var'}'`
33733 { echo "$as_me:$LINENO: result: $ac_res" >&5
33734echo "${ECHO_T}$ac_res" >&6; }
33735if test `eval echo '${'$as_ac_var'}'` = yes; then
33736 cat >>confdefs.h <<_ACEOF
33737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33738_ACEOF
33739
33740fi
33741done
33742
33743
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033744{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33745echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33746if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
33748else
33749 llvm_cv_llvmgcc_sanity="no"
33750if test -x "$LLVMGCC" ; then
33751 cp /dev/null conftest.c
33752 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33753 grep 'target datalayout =' > /dev/null 2>&1
33754 if test $? -eq 0 ; then
33755 llvm_cv_llvmgcc_sanity="yes"
33756 fi
33757 rm conftest.c
33758fi
33759fi
33760{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33761echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33762
33763if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33764 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33765echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33766 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33767 LLVMCC1=$llvmcc1path
33768
33769 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33770 LLVMCC1PLUS=$llvmcc1pluspath
33771
33772 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33773 LLVMGCCDIR=$llvmgccdir
33774
33775 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33776 LLVMGCCLIBEXEC=$llvmgcclibexec
33777
33778 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33779 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33780 LLVMGCC_VERSION=$llvmgccversion
33781
33782 LLVMGCC_MAJVERS=$llvmgccmajvers
33783
Tanya Lattner9894c2c2008-10-07 22:21:03 +000033784 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033785 LLVMGCC_LANGS=$llvmgcclangs
33786
33787 { echo "$as_me:$LINENO: result: ok" >&5
33788echo "${ECHO_T}ok" >&6; }
33789fi
33790
33791SHLIBEXT=$libltdl_cv_shlibext
33792
33793
33794# Translate the various configuration directories and other basic
33795# information into substitutions that will end up in Makefile.config.in
33796# that these configured values can be used by the makefiles
33797if test "${prefix}" = "NONE" ; then
33798 prefix="/usr/local"
33799fi
33800eval LLVM_PREFIX="${prefix}";
33801eval LLVM_BINDIR="${prefix}/bin";
33802eval LLVM_LIBDIR="${prefix}/lib";
33803eval LLVM_DATADIR="${prefix}/share/llvm";
33804eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33805eval LLVM_ETCDIR="${prefix}/etc/llvm";
33806eval LLVM_INCLUDEDIR="${prefix}/include";
33807eval LLVM_INFODIR="${prefix}/info";
33808eval LLVM_MANDIR="${prefix}/man";
33809LLVM_CONFIGTIME=`date`
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821# Place the various directores into the config.h file as #defines so that we
33822# can know about the installation paths within LLVM.
33823
33824cat >>confdefs.h <<_ACEOF
33825#define LLVM_PREFIX "$LLVM_PREFIX"
33826_ACEOF
33827
33828
33829cat >>confdefs.h <<_ACEOF
33830#define LLVM_BINDIR "$LLVM_BINDIR"
33831_ACEOF
33832
33833
33834cat >>confdefs.h <<_ACEOF
33835#define LLVM_LIBDIR "$LLVM_LIBDIR"
33836_ACEOF
33837
33838
33839cat >>confdefs.h <<_ACEOF
33840#define LLVM_DATADIR "$LLVM_DATADIR"
33841_ACEOF
33842
33843
33844cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000033845#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033846_ACEOF
33847
33848
33849cat >>confdefs.h <<_ACEOF
33850#define LLVM_ETCDIR "$LLVM_ETCDIR"
33851_ACEOF
33852
33853
33854cat >>confdefs.h <<_ACEOF
33855#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33856_ACEOF
33857
33858
33859cat >>confdefs.h <<_ACEOF
33860#define LLVM_INFODIR "$LLVM_INFODIR"
33861_ACEOF
33862
33863
33864cat >>confdefs.h <<_ACEOF
33865#define LLVM_MANDIR "$LLVM_MANDIR"
33866_ACEOF
33867
33868
33869cat >>confdefs.h <<_ACEOF
33870#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33871_ACEOF
33872
33873
Eric Christopher8b274472007-12-01 00:34:39 +000033874cat >>confdefs.h <<_ACEOF
33875#define LLVM_HOSTTRIPLE "$host"
33876_ACEOF
33877
33878
Gordon Henriksen016ec472007-10-02 09:50:32 +000033879# Determine which bindings to build.
33880if test "$BINDINGS_TO_BUILD" = auto ; then
33881 BINDINGS_TO_BUILD=""
33882 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33883 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33884 fi
33885fi
33886BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33887
33888
33889# This isn't really configurey, but it avoids having to repeat the list in
33890# other files.
33891ALL_BINDINGS=ocaml
33892
33893
Gordon Henriksen058a4c62007-10-02 16:42:22 +000033894# Do any work necessary to ensure that bindings have what they need.
33895binding_prereqs_failed=0
33896for a_binding in $BINDINGS_TO_BUILD ; do
33897 case "$a_binding" in
33898 ocaml)
33899 if test "x$OCAMLC" = x ; then
33900 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33901echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33902 binding_prereqs_failed=1
33903 fi
33904 if test "x$OCAMLDEP" = x ; then
33905 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33906echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33907 binding_prereqs_failed=1
33908 fi
33909 if test "x$OCAMLOPT" = x ; then
33910 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33911echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33912 fi
33913 if test "x$with_ocaml_libdir" != xauto ; then
33914 OCAML_LIBDIR=$with_ocaml_libdir
33915
33916 else
33917 ocaml_stdlib="`"$OCAMLC" -where`"
33918 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33919 then
33920 # ocaml stdlib is beneath our prefix; use stdlib
33921 OCAML_LIBDIR=$ocaml_stdlib
33922
33923 else
33924 # ocaml stdlib is outside our prefix; use libdir/ocaml
33925 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33926
33927 fi
33928 fi
33929 ;;
33930 esac
33931done
33932if test "$binding_prereqs_failed" = 1 ; then
33933 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33934echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33935 { (exit 1); exit 1; }; }
33936fi
33937
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000033938{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33939echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33940if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33941 echo $ECHO_N "(cached) $ECHO_C" >&6
33942else
33943 ac_ext=cpp
33944ac_cpp='$CXXCPP $CPPFLAGS'
33945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33948
33949 oldcxxflags="$CXXFLAGS"
33950 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33951 cat >conftest.$ac_ext <<_ACEOF
33952/* confdefs.h. */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h. */
33957
33958int
33959main ()
33960{
33961
33962 ;
33963 return 0;
33964}
33965_ACEOF
33966rm -f conftest.$ac_objext
33967if { (ac_try="$ac_compile"
33968case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971esac
33972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
33974 ac_status=$?
33975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattner3fa4a442009-01-22 05:17:59 +000033979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33984esac
33985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994esac
33995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000034000 llvm_cv_cxx_visibility_inlines_hidden=yes
34001else
34002 echo "$as_me: failed program was:" >&5
34003sed 's/^/| /' conftest.$ac_ext >&5
34004
34005 llvm_cv_cxx_visibility_inlines_hidden=no
34006fi
34007
34008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009 CXXFLAGS="$oldcxxflags"
34010 ac_ext=c
34011ac_cpp='$CPP $CPPFLAGS'
34012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34014ac_compiler_gnu=$ac_cv_c_compiler_gnu
34015
34016
34017fi
34018{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34019echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34020if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34021 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34022
34023else
34024 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34025
34026fi
34027
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034028
Nick Lewycky6eab6652009-03-05 08:20:44 +000034029if test "$llvm_cv_link_use_r" = "yes" ; then
34030 RPATH="-Wl,-R"
34031else
34032 RPATH="-Wl,-rpath"
34033fi
34034
34035
34036if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34037 RDYNAMIC="-Wl,-export-dynamic"
34038else
34039 RDYNAMIC=""
34040fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000034041
34042
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034043
34044ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34045
34046ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34047
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034048ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034049
34050
34051ac_config_files="$ac_config_files Makefile.config"
34052
34053
34054ac_config_files="$ac_config_files llvm.spec"
34055
34056
34057ac_config_files="$ac_config_files docs/doxygen.cfg"
34058
34059
34060ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34061
34062
34063ac_config_commands="$ac_config_commands setup"
34064
34065ac_config_commands="$ac_config_commands Makefile"
34066
34067
34068ac_config_commands="$ac_config_commands Makefile.common"
34069
34070
34071ac_config_commands="$ac_config_commands examples/Makefile"
34072
34073
34074ac_config_commands="$ac_config_commands lib/Makefile"
34075
34076
34077ac_config_commands="$ac_config_commands runtime/Makefile"
34078
34079
34080ac_config_commands="$ac_config_commands test/Makefile"
34081
34082
34083ac_config_commands="$ac_config_commands test/Makefile.tests"
34084
34085
Bill Wendling9b9833f2009-01-04 23:12:30 +000034086ac_config_commands="$ac_config_commands unittests/Makefile"
34087
34088
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034089ac_config_commands="$ac_config_commands tools/Makefile"
34090
34091
34092ac_config_commands="$ac_config_commands utils/Makefile"
34093
34094
34095ac_config_commands="$ac_config_commands projects/Makefile"
34096
34097
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034098ac_config_commands="$ac_config_commands bindings/Makefile"
34099
34100
34101ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34102
34103
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034104
34105cat >confcache <<\_ACEOF
34106# This file is a shell script that caches the results of configure
34107# tests run on this system so they can be shared between configure
34108# scripts and configure runs, see configure's option --config-cache.
34109# It is not useful on other systems. If it contains results you don't
34110# want to keep, you may remove or edit it.
34111#
34112# config.status only pays attention to the cache file if you give it
34113# the --recheck option to rerun configure.
34114#
34115# `ac_cv_env_foo' variables (set or unset) will be overridden when
34116# loading this file, other *unset* `ac_cv_foo' will be assigned the
34117# following values.
34118
34119_ACEOF
34120
34121# The following way of writing the cache mishandles newlines in values,
34122# but we know of no workaround that is simple, portable, and efficient.
34123# So, we kill variables containing newlines.
34124# Ultrix sh set writes to stderr and can't be redirected directly,
34125# and sets the high bit in the cache file unless we assign to the vars.
34126(
34127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34128 eval ac_val=\$$ac_var
34129 case $ac_val in #(
34130 *${as_nl}*)
34131 case $ac_var in #(
34132 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34133echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34134 esac
34135 case $ac_var in #(
34136 _ | IFS | as_nl) ;; #(
34137 *) $as_unset $ac_var ;;
34138 esac ;;
34139 esac
34140 done
34141
34142 (set) 2>&1 |
34143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34144 *${as_nl}ac_space=\ *)
34145 # `set' does not quote correctly, so add quotes (double-quote
34146 # substitution turns \\\\ into \\, and sed turns \\ into \).
34147 sed -n \
34148 "s/'/'\\\\''/g;
34149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34150 ;; #(
34151 *)
34152 # `set' quotes correctly as required by POSIX, so do not add quotes.
34153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34154 ;;
34155 esac |
34156 sort
34157) |
34158 sed '
34159 /^ac_cv_env_/b end
34160 t clear
34161 :clear
34162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34163 t end
34164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34165 :end' >>confcache
34166if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34167 if test -w "$cache_file"; then
34168 test "x$cache_file" != "x/dev/null" &&
34169 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34170echo "$as_me: updating cache $cache_file" >&6;}
34171 cat confcache >$cache_file
34172 else
34173 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34174echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34175 fi
34176fi
34177rm -f confcache
34178
34179test "x$prefix" = xNONE && prefix=$ac_default_prefix
34180# Let make expand exec_prefix.
34181test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34182
34183DEFS=-DHAVE_CONFIG_H
34184
34185ac_libobjs=
34186ac_ltlibobjs=
34187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34188 # 1. Remove the extension, and $U if already installed.
34189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34190 ac_i=`echo "$ac_i" | sed "$ac_script"`
34191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34192 # will be set to the directory where LIBOBJS objects are built.
34193 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34194 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34195done
34196LIBOBJS=$ac_libobjs
34197
34198LTLIBOBJS=$ac_ltlibobjs
34199
34200
34201if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34202 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34203Usually this means the macro was only invoked conditionally." >&5
34204echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34205Usually this means the macro was only invoked conditionally." >&2;}
34206 { (exit 1); exit 1; }; }
34207fi
34208if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34209 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34210Usually this means the macro was only invoked conditionally." >&5
34211echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34212Usually this means the macro was only invoked conditionally." >&2;}
34213 { (exit 1); exit 1; }; }
34214fi
34215
34216: ${CONFIG_STATUS=./config.status}
34217ac_clean_files_save=$ac_clean_files
34218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34220echo "$as_me: creating $CONFIG_STATUS" >&6;}
34221cat >$CONFIG_STATUS <<_ACEOF
34222#! $SHELL
34223# Generated by $as_me.
34224# Run this file to recreate the current configuration.
34225# Compiler output produced by configure, useful for debugging
34226# configure, is in config.log if it exists.
34227
34228debug=false
34229ac_cs_recheck=false
34230ac_cs_silent=false
34231SHELL=\${CONFIG_SHELL-$SHELL}
34232_ACEOF
34233
34234cat >>$CONFIG_STATUS <<\_ACEOF
34235## --------------------- ##
34236## M4sh Initialization. ##
34237## --------------------- ##
34238
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034239# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34241 emulate sh
34242 NULLCMD=:
34243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34244 # is contrary to our usage. Disable this feature.
34245 alias -g '${1+"$@"}'='"$@"'
34246 setopt NO_GLOB_SUBST
34247else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034249fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034250BIN_SH=xpg4; export BIN_SH # for Tru64
34251DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034252
34253
34254# PATH needs CR
34255# Avoid depending upon Character Ranges.
34256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34259as_cr_digits='0123456789'
34260as_cr_alnum=$as_cr_Letters$as_cr_digits
34261
34262# The user is always right.
34263if test "${PATH_SEPARATOR+set}" != set; then
34264 echo "#! /bin/sh" >conf$$.sh
34265 echo "exit 0" >>conf$$.sh
34266 chmod +x conf$$.sh
34267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34268 PATH_SEPARATOR=';'
34269 else
34270 PATH_SEPARATOR=:
34271 fi
34272 rm -f conf$$.sh
34273fi
34274
34275# Support unset when possible.
34276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34277 as_unset=unset
34278else
34279 as_unset=false
34280fi
34281
34282
34283# IFS
34284# We need space, tab and new line, in precisely that order. Quoting is
34285# there to prevent editors from complaining about space-tab.
34286# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34287# splitting by setting IFS to empty value.)
34288as_nl='
34289'
34290IFS=" "" $as_nl"
34291
34292# Find who we are. Look in the path if we contain no directory separator.
34293case $0 in
34294 *[\\/]* ) as_myself=$0 ;;
34295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296for as_dir in $PATH
34297do
34298 IFS=$as_save_IFS
34299 test -z "$as_dir" && as_dir=.
34300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34301done
34302IFS=$as_save_IFS
34303
34304 ;;
34305esac
34306# We did not find ourselves, most probably we were run as `sh COMMAND'
34307# in which case we are not to be found in the path.
34308if test "x$as_myself" = x; then
34309 as_myself=$0
34310fi
34311if test ! -f "$as_myself"; then
34312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34313 { (exit 1); exit 1; }
34314fi
34315
34316# Work around bugs in pre-3.0 UWIN ksh.
34317for as_var in ENV MAIL MAILPATH
34318do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34319done
34320PS1='$ '
34321PS2='> '
34322PS4='+ '
34323
34324# NLS nuisances.
34325for as_var in \
34326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34328 LC_TELEPHONE LC_TIME
34329do
34330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34331 eval $as_var=C; export $as_var
34332 else
34333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34334 fi
34335done
34336
34337# Required to use basename.
34338if expr a : '\(a\)' >/dev/null 2>&1 &&
34339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34340 as_expr=expr
34341else
34342 as_expr=false
34343fi
34344
34345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34346 as_basename=basename
34347else
34348 as_basename=false
34349fi
34350
34351
34352# Name of the executable.
34353as_me=`$as_basename -- "$0" ||
34354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34355 X"$0" : 'X\(//\)$' \| \
34356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34357echo X/"$0" |
34358 sed '/^.*\/\([^/][^/]*\)\/*$/{
34359 s//\1/
34360 q
34361 }
34362 /^X\/\(\/\/\)$/{
34363 s//\1/
34364 q
34365 }
34366 /^X\/\(\/\).*/{
34367 s//\1/
34368 q
34369 }
34370 s/.*/./; q'`
34371
34372# CDPATH.
34373$as_unset CDPATH
34374
34375
34376
34377 as_lineno_1=$LINENO
34378 as_lineno_2=$LINENO
34379 test "x$as_lineno_1" != "x$as_lineno_2" &&
34380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34381
34382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34383 # uniformly replaced by the line number. The first 'sed' inserts a
34384 # line-number line after each line using $LINENO; the second 'sed'
34385 # does the real work. The second script uses 'N' to pair each
34386 # line-number line with the line containing $LINENO, and appends
34387 # trailing '-' during substitution so that $LINENO is not a special
34388 # case at line end.
34389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34390 # scripts with optimization help from Paolo Bonzini. Blame Lee
34391 # E. McMahon (1931-1989) for sed's syntax. :-)
34392 sed -n '
34393 p
34394 /[$]LINENO/=
34395 ' <$as_myself |
34396 sed '
34397 s/[$]LINENO.*/&-/
34398 t lineno
34399 b
34400 :lineno
34401 N
34402 :loop
34403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34404 t loop
34405 s/-\n.*//
34406 ' >$as_me.lineno &&
34407 chmod +x "$as_me.lineno" ||
34408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34409 { (exit 1); exit 1; }; }
34410
34411 # Don't try to exec as it changes $[0], causing all sort of problems
34412 # (the dirname of $[0] is not the place where we might find the
34413 # original and so on. Autoconf is especially sensitive to this).
34414 . "./$as_me.lineno"
34415 # Exit status is that of the last command.
34416 exit
34417}
34418
34419
34420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34421 as_dirname=dirname
34422else
34423 as_dirname=false
34424fi
34425
34426ECHO_C= ECHO_N= ECHO_T=
34427case `echo -n x` in
34428-n*)
34429 case `echo 'x\c'` in
34430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34431 *) ECHO_C='\c';;
34432 esac;;
34433*)
34434 ECHO_N='-n';;
34435esac
34436
34437if expr a : '\(a\)' >/dev/null 2>&1 &&
34438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34439 as_expr=expr
34440else
34441 as_expr=false
34442fi
34443
34444rm -f conf$$ conf$$.exe conf$$.file
34445if test -d conf$$.dir; then
34446 rm -f conf$$.dir/conf$$.file
34447else
34448 rm -f conf$$.dir
34449 mkdir conf$$.dir
34450fi
34451echo >conf$$.file
34452if ln -s conf$$.file conf$$ 2>/dev/null; then
34453 as_ln_s='ln -s'
34454 # ... but there are two gotchas:
34455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34457 # In both cases, we have to default to `cp -p'.
34458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34459 as_ln_s='cp -p'
34460elif ln conf$$.file conf$$ 2>/dev/null; then
34461 as_ln_s=ln
34462else
34463 as_ln_s='cp -p'
34464fi
34465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34466rmdir conf$$.dir 2>/dev/null
34467
34468if mkdir -p . 2>/dev/null; then
34469 as_mkdir_p=:
34470else
34471 test -d ./-p && rmdir ./-p
34472 as_mkdir_p=false
34473fi
34474
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034475# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34476# systems may use methods other than mode bits to determine executability.
34477cat >conf$$.file <<_ASEOF
34478#! /bin/sh
34479exit 0
34480_ASEOF
34481chmod +x conf$$.file
34482if test -x conf$$.file >/dev/null 2>&1; then
34483 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034484else
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034485 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034486fi
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034487rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034488
34489# Sed expression to map a string onto a valid CPP name.
34490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34491
34492# Sed expression to map a string onto a valid variable name.
34493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34494
34495
34496exec 6>&1
34497
34498# Save the log message, to keep $[0] and so on meaningful, and to
34499# report actual input values of CONFIG_FILES etc. instead of their
34500# values after options handling.
34501ac_log="
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034502This file was extended by llvm $as_me 2.6svn, which was
34503generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034504
34505 CONFIG_FILES = $CONFIG_FILES
34506 CONFIG_HEADERS = $CONFIG_HEADERS
34507 CONFIG_LINKS = $CONFIG_LINKS
34508 CONFIG_COMMANDS = $CONFIG_COMMANDS
34509 $ $0 $@
34510
34511on `(hostname || uname -n) 2>/dev/null | sed 1q`
34512"
34513
34514_ACEOF
34515
34516cat >>$CONFIG_STATUS <<_ACEOF
34517# Files that config.status was made for.
34518config_files="$ac_config_files"
34519config_headers="$ac_config_headers"
34520config_commands="$ac_config_commands"
34521
34522_ACEOF
34523
34524cat >>$CONFIG_STATUS <<\_ACEOF
34525ac_cs_usage="\
34526\`$as_me' instantiates files from templates according to the
34527current configuration.
34528
34529Usage: $0 [OPTIONS] [FILE]...
34530
34531 -h, --help print this help, then exit
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034532 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034533 -q, --quiet do not print progress messages
34534 -d, --debug don't remove temporary files
34535 --recheck update $as_me by reconfiguring in the same conditions
34536 --file=FILE[:TEMPLATE]
34537 instantiate the configuration file FILE
34538 --header=FILE[:TEMPLATE]
34539 instantiate the configuration header FILE
34540
34541Configuration files:
34542$config_files
34543
34544Configuration headers:
34545$config_headers
34546
34547Configuration commands:
34548$config_commands
34549
34550Report bugs to <bug-autoconf@gnu.org>."
34551
34552_ACEOF
34553cat >>$CONFIG_STATUS <<_ACEOF
34554ac_cs_version="\\
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034555llvm config.status 2.6svn
34556configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34558
34559Copyright (C) 2006 Free Software Foundation, Inc.
34560This config.status script is free software; the Free Software Foundation
34561gives unlimited permission to copy, distribute and modify it."
34562
34563ac_pwd='$ac_pwd'
34564srcdir='$srcdir'
34565INSTALL='$INSTALL'
34566_ACEOF
34567
34568cat >>$CONFIG_STATUS <<\_ACEOF
34569# If no file are specified by the user, then we need to provide default
34570# value. By we need to know if files were specified by the user.
34571ac_need_defaults=:
34572while test $# != 0
34573do
34574 case $1 in
34575 --*=*)
34576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34578 ac_shift=:
34579 ;;
34580 *)
34581 ac_option=$1
34582 ac_optarg=$2
34583 ac_shift=shift
34584 ;;
34585 esac
34586
34587 case $ac_option in
34588 # Handling of the options.
34589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34590 ac_cs_recheck=: ;;
34591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34592 echo "$ac_cs_version"; exit ;;
34593 --debug | --debu | --deb | --de | --d | -d )
34594 debug=: ;;
34595 --file | --fil | --fi | --f )
34596 $ac_shift
34597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34598 ac_need_defaults=false;;
34599 --header | --heade | --head | --hea )
34600 $ac_shift
34601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34602 ac_need_defaults=false;;
34603 --he | --h)
34604 # Conflict between --help and --header
34605 { echo "$as_me: error: ambiguous option: $1
34606Try \`$0 --help' for more information." >&2
34607 { (exit 1); exit 1; }; };;
34608 --help | --hel | -h )
34609 echo "$ac_cs_usage"; exit ;;
34610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34612 ac_cs_silent=: ;;
34613
34614 # This is an error.
34615 -*) { echo "$as_me: error: unrecognized option: $1
34616Try \`$0 --help' for more information." >&2
34617 { (exit 1); exit 1; }; } ;;
34618
34619 *) ac_config_targets="$ac_config_targets $1"
34620 ac_need_defaults=false ;;
34621
34622 esac
34623 shift
34624done
34625
34626ac_configure_extra_args=
34627
34628if $ac_cs_silent; then
34629 exec 6>/dev/null
34630 ac_configure_extra_args="$ac_configure_extra_args --silent"
34631fi
34632
34633_ACEOF
34634cat >>$CONFIG_STATUS <<_ACEOF
34635if \$ac_cs_recheck; then
34636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34637 CONFIG_SHELL=$SHELL
34638 export CONFIG_SHELL
34639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34640fi
34641
34642_ACEOF
34643cat >>$CONFIG_STATUS <<\_ACEOF
34644exec 5>>config.log
34645{
34646 echo
34647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34648## Running $as_me. ##
34649_ASBOX
34650 echo "$ac_log"
34651} >&5
34652
34653_ACEOF
34654cat >>$CONFIG_STATUS <<_ACEOF
34655#
34656# INIT-COMMANDS
34657#
34658llvm_src="${srcdir}"
34659
34660_ACEOF
34661
34662cat >>$CONFIG_STATUS <<\_ACEOF
34663
34664# Handling of arguments.
34665for ac_config_target in $ac_config_targets
34666do
34667 case $ac_config_target in
34668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34669 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034670 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034671 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34672 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34673 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34674 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34675 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34676 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34677 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34678 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34679 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34680 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34681 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34682 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000034683 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034684 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34685 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34686 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034687 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34688 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034689
34690 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34691echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34692 { (exit 1); exit 1; }; };;
34693 esac
34694done
34695
34696
34697# If the user did not use the arguments to specify the items to instantiate,
34698# then the envvar interface is used. Set only those that are not.
34699# We use the long form for the default assignment because of an extremely
34700# bizarre bug on SunOS 4.1.3.
34701if $ac_need_defaults; then
34702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34705fi
34706
34707# Have a temporary directory for convenience. Make it in the build tree
34708# simply because there is no reason against having it here, and in addition,
34709# creating and moving files from /tmp can sometimes cause problems.
34710# Hook for its removal unless debugging.
34711# Note that there is a small window in which the directory will not be cleaned:
34712# after its creation but before its name has been assigned to `$tmp'.
34713$debug ||
34714{
34715 tmp=
34716 trap 'exit_status=$?
34717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34718' 0
34719 trap '{ (exit 1); exit 1; }' 1 2 13 15
34720}
34721# Create a (secure) tmp directory for tmp files.
34722
34723{
34724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34725 test -n "$tmp" && test -d "$tmp"
34726} ||
34727{
34728 tmp=./conf$$-$RANDOM
34729 (umask 077 && mkdir "$tmp")
34730} ||
34731{
34732 echo "$me: cannot create a temporary directory in ." >&2
34733 { (exit 1); exit 1; }
34734}
34735
34736#
34737# Set up the sed scripts for CONFIG_FILES section.
34738#
34739
34740# No need to generate the scripts if there are no CONFIG_FILES.
34741# This happens for instance when ./config.status config.h
34742if test -n "$CONFIG_FILES"; then
34743
34744_ACEOF
34745
34746
34747
34748ac_delim='%!_!# '
34749for ac_last_try in false false false false false :; do
34750 cat >conf$$subs.sed <<_ACEOF
34751SHELL!$SHELL$ac_delim
34752PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34753PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34754PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34755PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34756PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34757PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34758exec_prefix!$exec_prefix$ac_delim
34759prefix!$prefix$ac_delim
34760program_transform_name!$program_transform_name$ac_delim
34761bindir!$bindir$ac_delim
34762sbindir!$sbindir$ac_delim
34763libexecdir!$libexecdir$ac_delim
34764datarootdir!$datarootdir$ac_delim
34765datadir!$datadir$ac_delim
34766sysconfdir!$sysconfdir$ac_delim
34767sharedstatedir!$sharedstatedir$ac_delim
34768localstatedir!$localstatedir$ac_delim
34769includedir!$includedir$ac_delim
34770oldincludedir!$oldincludedir$ac_delim
34771docdir!$docdir$ac_delim
34772infodir!$infodir$ac_delim
34773htmldir!$htmldir$ac_delim
34774dvidir!$dvidir$ac_delim
34775pdfdir!$pdfdir$ac_delim
34776psdir!$psdir$ac_delim
34777libdir!$libdir$ac_delim
34778localedir!$localedir$ac_delim
34779mandir!$mandir$ac_delim
34780DEFS!$DEFS$ac_delim
34781ECHO_C!$ECHO_C$ac_delim
34782ECHO_N!$ECHO_N$ac_delim
34783ECHO_T!$ECHO_T$ac_delim
34784LIBS!$LIBS$ac_delim
34785build_alias!$build_alias$ac_delim
34786host_alias!$host_alias$ac_delim
34787target_alias!$target_alias$ac_delim
34788LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34789subdirs!$subdirs$ac_delim
34790build!$build$ac_delim
34791build_cpu!$build_cpu$ac_delim
34792build_vendor!$build_vendor$ac_delim
34793build_os!$build_os$ac_delim
34794host!$host$ac_delim
34795host_cpu!$host_cpu$ac_delim
34796host_vendor!$host_vendor$ac_delim
34797host_os!$host_os$ac_delim
34798target!$target$ac_delim
34799target_cpu!$target_cpu$ac_delim
34800target_vendor!$target_vendor$ac_delim
34801target_os!$target_os$ac_delim
34802OS!$OS$ac_delim
34803LINKALL!$LINKALL$ac_delim
34804NOLINKALL!$NOLINKALL$ac_delim
34805LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34806LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034807CC!$CC$ac_delim
34808CFLAGS!$CFLAGS$ac_delim
34809LDFLAGS!$LDFLAGS$ac_delim
34810CPPFLAGS!$CPPFLAGS$ac_delim
34811ac_ct_CC!$ac_ct_CC$ac_delim
34812EXEEXT!$EXEEXT$ac_delim
34813OBJEXT!$OBJEXT$ac_delim
Nick Lewyckye6e7d1b2009-03-12 03:34:33 +000034814ARCH!$ARCH$ac_delim
34815ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034816CPP!$CPP$ac_delim
34817GREP!$GREP$ac_delim
34818EGREP!$EGREP$ac_delim
34819LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34820BUILD_CC!$BUILD_CC$ac_delim
34821BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000034822BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034823CVSBUILD!$CVSBUILD$ac_delim
34824ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34825DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34826ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34827EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34828DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34829JIT!$JIT$ac_delim
34830TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34831ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34832ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34833ENABLE_PIC!$ENABLE_PIC$ac_delim
34834TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34835ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34836EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000034837BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034838CXX!$CXX$ac_delim
34839CXXFLAGS!$CXXFLAGS$ac_delim
34840ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewycky912c4622009-02-21 22:38:49 +000034841NM!$NM$ac_delim
34842ifGNUmake!$ifGNUmake$ac_delim
34843LN_S!$LN_S$ac_delim
34844CMP!$CMP$ac_delim
34845CP!$CP$ac_delim
34846DATE!$DATE$ac_delim
34847FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034848_ACEOF
34849
34850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34851 break
34852 elif $ac_last_try; then
34853 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34854echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34855 { (exit 1); exit 1; }; }
34856 else
34857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34858 fi
34859done
34860
34861ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34862if test -n "$ac_eof"; then
34863 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34864 ac_eof=`expr $ac_eof + 1`
34865fi
34866
34867cat >>$CONFIG_STATUS <<_ACEOF
34868cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34870_ACEOF
34871sed '
34872s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34873s/^/s,@/; s/!/@,|#_!!_#|/
34874:n
34875t n
34876s/'"$ac_delim"'$/,g/; t
34877s/$/\\/; p
34878N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34879' >>$CONFIG_STATUS <conf$$subs.sed
34880rm -f conf$$subs.sed
34881cat >>$CONFIG_STATUS <<_ACEOF
34882CEOF$ac_eof
34883_ACEOF
34884
34885
34886ac_delim='%!_!# '
34887for ac_last_try in false false false false false :; do
34888 cat >conf$$subs.sed <<_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034889MKDIR!$MKDIR$ac_delim
34890MV!$MV$ac_delim
34891RANLIB!$RANLIB$ac_delim
34892RM!$RM$ac_delim
34893SED!$SED$ac_delim
34894TAR!$TAR$ac_delim
34895BINPWD!$BINPWD$ac_delim
34896GRAPHVIZ!$GRAPHVIZ$ac_delim
34897DOT!$DOT$ac_delim
34898GV!$GV$ac_delim
34899DOTTY!$DOTTY$ac_delim
34900PERL!$PERL$ac_delim
34901HAVE_PERL!$HAVE_PERL$ac_delim
34902INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34903INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34904INSTALL_DATA!$INSTALL_DATA$ac_delim
34905BZIP2!$BZIP2$ac_delim
34906DOXYGEN!$DOXYGEN$ac_delim
34907GROFF!$GROFF$ac_delim
34908GZIP!$GZIP$ac_delim
34909POD2HTML!$POD2HTML$ac_delim
34910POD2MAN!$POD2MAN$ac_delim
34911RUNTEST!$RUNTEST$ac_delim
34912TCLSH!$TCLSH$ac_delim
34913ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000034914OCAMLC!$OCAMLC$ac_delim
34915OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000034916OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000034917OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000034918GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034919INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34920INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34921CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34922CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34923LIBADD_DL!$LIBADD_DL$ac_delim
34924ECHO!$ECHO$ac_delim
34925AR!$AR$ac_delim
34926STRIP!$STRIP$ac_delim
34927CXXCPP!$CXXCPP$ac_delim
34928F77!$F77$ac_delim
34929FFLAGS!$FFLAGS$ac_delim
34930ac_ct_F77!$ac_ct_F77$ac_delim
34931LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034932LLVMGCC!$LLVMGCC$ac_delim
34933LLVMGXX!$LLVMGXX$ac_delim
34934USE_UDIS86!$USE_UDIS86$ac_delim
34935HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewycky0235b622009-02-04 06:27:44 +000034936HAVE_FFI!$HAVE_FFI$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034937HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34938ALLOCA!$ALLOCA$ac_delim
34939MMAP_FILE!$MMAP_FILE$ac_delim
34940LLVMCC1!$LLVMCC1$ac_delim
34941LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34942LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34943LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34944LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34945LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34946LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34947SHLIBEXT!$SHLIBEXT$ac_delim
34948LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34949LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34950LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34951LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34952LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34953LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34954LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34955LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34956LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34957LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000034958BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34959ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034960OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000034961ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000034962RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000034963RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034964LIBOBJS!$LIBOBJS$ac_delim
34965LTLIBOBJS!$LTLIBOBJS$ac_delim
34966_ACEOF
34967
Nick Lewycky6eab6652009-03-05 08:20:44 +000034968 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034969 break
34970 elif $ac_last_try; then
34971 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34972echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34973 { (exit 1); exit 1; }; }
34974 else
34975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34976 fi
34977done
34978
34979ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34980if test -n "$ac_eof"; then
34981 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34982 ac_eof=`expr $ac_eof + 1`
34983fi
34984
34985cat >>$CONFIG_STATUS <<_ACEOF
34986cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34987/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34988_ACEOF
34989sed '
34990s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34991s/^/s,@/; s/!/@,|#_!!_#|/
34992:n
34993t n
34994s/'"$ac_delim"'$/,g/; t
34995s/$/\\/; p
34996N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34997' >>$CONFIG_STATUS <conf$$subs.sed
34998rm -f conf$$subs.sed
34999cat >>$CONFIG_STATUS <<_ACEOF
35000:end
35001s/|#_!!_#|//g
35002CEOF$ac_eof
35003_ACEOF
35004
35005
35006# VPATH may cause trouble with some makes, so we remove $(srcdir),
35007# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35008# trailing colons and then remove the whole line if VPATH becomes empty
35009# (actually we leave an empty line to preserve line numbers).
35010if test "x$srcdir" = x.; then
35011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35012s/:*\$(srcdir):*/:/
35013s/:*\${srcdir}:*/:/
35014s/:*@srcdir@:*/:/
35015s/^\([^=]*=[ ]*\):*/\1/
35016s/:*$//
35017s/^[^=]*=[ ]*$//
35018}'
35019fi
35020
35021cat >>$CONFIG_STATUS <<\_ACEOF
35022fi # test -n "$CONFIG_FILES"
35023
35024
35025for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35026do
35027 case $ac_tag in
35028 :[FHLC]) ac_mode=$ac_tag; continue;;
35029 esac
35030 case $ac_mode$ac_tag in
35031 :[FHL]*:*);;
35032 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35033echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35034 { (exit 1); exit 1; }; };;
35035 :[FH]-) ac_tag=-:-;;
35036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35037 esac
35038 ac_save_IFS=$IFS
35039 IFS=:
35040 set x $ac_tag
35041 IFS=$ac_save_IFS
35042 shift
35043 ac_file=$1
35044 shift
35045
35046 case $ac_mode in
35047 :L) ac_source=$1;;
35048 :[FH])
35049 ac_file_inputs=
35050 for ac_f
35051 do
35052 case $ac_f in
35053 -) ac_f="$tmp/stdin";;
35054 *) # Look for the file first in the build tree, then in the source tree
35055 # (if the path is not absolute). The absolute path cannot be DOS-style,
35056 # because $ac_f cannot contain `:'.
35057 test -f "$ac_f" ||
35058 case $ac_f in
35059 [\\/$]*) false;;
35060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35061 esac ||
35062 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35063echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35064 { (exit 1); exit 1; }; };;
35065 esac
35066 ac_file_inputs="$ac_file_inputs $ac_f"
35067 done
35068
35069 # Let's still pretend it is `configure' which instantiates (i.e., don't
35070 # use $as_me), people would be surprised to read:
35071 # /* config.h. Generated by config.status. */
35072 configure_input="Generated from "`IFS=:
35073 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35074 if test x"$ac_file" != x-; then
35075 configure_input="$ac_file. $configure_input"
35076 { echo "$as_me:$LINENO: creating $ac_file" >&5
35077echo "$as_me: creating $ac_file" >&6;}
35078 fi
35079
35080 case $ac_tag in
35081 *:-:* | *:-) cat >"$tmp/stdin";;
35082 esac
35083 ;;
35084 esac
35085
35086 ac_dir=`$as_dirname -- "$ac_file" ||
35087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35088 X"$ac_file" : 'X\(//\)[^/]' \| \
35089 X"$ac_file" : 'X\(//\)$' \| \
35090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35091echo X"$ac_file" |
35092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35093 s//\1/
35094 q
35095 }
35096 /^X\(\/\/\)[^/].*/{
35097 s//\1/
35098 q
35099 }
35100 /^X\(\/\/\)$/{
35101 s//\1/
35102 q
35103 }
35104 /^X\(\/\).*/{
35105 s//\1/
35106 q
35107 }
35108 s/.*/./; q'`
35109 { as_dir="$ac_dir"
35110 case $as_dir in #(
35111 -*) as_dir=./$as_dir;;
35112 esac
35113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35114 as_dirs=
35115 while :; do
35116 case $as_dir in #(
35117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35118 *) as_qdir=$as_dir;;
35119 esac
35120 as_dirs="'$as_qdir' $as_dirs"
35121 as_dir=`$as_dirname -- "$as_dir" ||
35122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35123 X"$as_dir" : 'X\(//\)[^/]' \| \
35124 X"$as_dir" : 'X\(//\)$' \| \
35125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35126echo X"$as_dir" |
35127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35128 s//\1/
35129 q
35130 }
35131 /^X\(\/\/\)[^/].*/{
35132 s//\1/
35133 q
35134 }
35135 /^X\(\/\/\)$/{
35136 s//\1/
35137 q
35138 }
35139 /^X\(\/\).*/{
35140 s//\1/
35141 q
35142 }
35143 s/.*/./; q'`
35144 test -d "$as_dir" && break
35145 done
35146 test -z "$as_dirs" || eval "mkdir $as_dirs"
35147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35148echo "$as_me: error: cannot create directory $as_dir" >&2;}
35149 { (exit 1); exit 1; }; }; }
35150 ac_builddir=.
35151
35152case "$ac_dir" in
35153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35154*)
35155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35156 # A ".." for each directory in $ac_dir_suffix.
35157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35158 case $ac_top_builddir_sub in
35159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35161 esac ;;
35162esac
35163ac_abs_top_builddir=$ac_pwd
35164ac_abs_builddir=$ac_pwd$ac_dir_suffix
35165# for backward compatibility:
35166ac_top_builddir=$ac_top_build_prefix
35167
35168case $srcdir in
35169 .) # We are building in place.
35170 ac_srcdir=.
35171 ac_top_srcdir=$ac_top_builddir_sub
35172 ac_abs_top_srcdir=$ac_pwd ;;
35173 [\\/]* | ?:[\\/]* ) # Absolute name.
35174 ac_srcdir=$srcdir$ac_dir_suffix;
35175 ac_top_srcdir=$srcdir
35176 ac_abs_top_srcdir=$srcdir ;;
35177 *) # Relative name.
35178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35179 ac_top_srcdir=$ac_top_build_prefix$srcdir
35180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35181esac
35182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35183
35184
35185 case $ac_mode in
35186 :F)
35187 #
35188 # CONFIG_FILE
35189 #
35190
35191 case $INSTALL in
35192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35194 esac
35195_ACEOF
35196
35197cat >>$CONFIG_STATUS <<\_ACEOF
35198# If the template does not know about datarootdir, expand it.
35199# FIXME: This hack should be removed a few years after 2.60.
35200ac_datarootdir_hack=; ac_datarootdir_seen=
35201
35202case `sed -n '/datarootdir/ {
35203 p
35204 q
35205}
35206/@datadir@/p
35207/@docdir@/p
35208/@infodir@/p
35209/@localedir@/p
35210/@mandir@/p
35211' $ac_file_inputs` in
35212*datarootdir*) ac_datarootdir_seen=yes;;
35213*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35214 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35215echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35216_ACEOF
35217cat >>$CONFIG_STATUS <<_ACEOF
35218 ac_datarootdir_hack='
35219 s&@datadir@&$datadir&g
35220 s&@docdir@&$docdir&g
35221 s&@infodir@&$infodir&g
35222 s&@localedir@&$localedir&g
35223 s&@mandir@&$mandir&g
35224 s&\\\${datarootdir}&$datarootdir&g' ;;
35225esac
35226_ACEOF
35227
35228# Neutralize VPATH when `$srcdir' = `.'.
35229# Shell code in configure.ac might set extrasub.
35230# FIXME: do we really want to maintain this feature?
35231cat >>$CONFIG_STATUS <<_ACEOF
35232 sed "$ac_vpsub
35233$extrasub
35234_ACEOF
35235cat >>$CONFIG_STATUS <<\_ACEOF
35236:t
35237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35238s&@configure_input@&$configure_input&;t t
35239s&@top_builddir@&$ac_top_builddir_sub&;t t
35240s&@srcdir@&$ac_srcdir&;t t
35241s&@abs_srcdir@&$ac_abs_srcdir&;t t
35242s&@top_srcdir@&$ac_top_srcdir&;t t
35243s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35244s&@builddir@&$ac_builddir&;t t
35245s&@abs_builddir@&$ac_abs_builddir&;t t
35246s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35247s&@INSTALL@&$ac_INSTALL&;t t
35248$ac_datarootdir_hack
35249" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35250
35251test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35254 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35255which seems to be undefined. Please make sure it is defined." >&5
35256echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35257which seems to be undefined. Please make sure it is defined." >&2;}
35258
35259 rm -f "$tmp/stdin"
35260 case $ac_file in
35261 -) cat "$tmp/out"; rm -f "$tmp/out";;
35262 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35263 esac
35264 ;;
35265 :H)
35266 #
35267 # CONFIG_HEADER
35268 #
35269_ACEOF
35270
35271# Transform confdefs.h into a sed script `conftest.defines', that
35272# substitutes the proper values into config.h.in to produce config.h.
35273rm -f conftest.defines conftest.tail
35274# First, append a space to every undef/define line, to ease matching.
35275echo 's/$/ /' >conftest.defines
35276# Then, protect against being on the right side of a sed subst, or in
35277# an unquoted here document, in config.status. If some macros were
35278# called several times there might be several #defines for the same
35279# symbol, which is useless. But do not sort them, since the last
35280# AC_DEFINE must be honored.
35281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35282# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35283# NAME is the cpp macro being defined, VALUE is the value it is being given.
35284# PARAMS is the parameter list in the macro definition--in most cases, it's
35285# just an empty string.
35286ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35287ac_dB='\\)[ (].*,\\1define\\2'
35288ac_dC=' '
35289ac_dD=' ,'
35290
35291uniq confdefs.h |
35292 sed -n '
35293 t rset
35294 :rset
35295 s/^[ ]*#[ ]*define[ ][ ]*//
35296 t ok
35297 d
35298 :ok
35299 s/[\\&,]/\\&/g
35300 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35301 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35302 ' >>conftest.defines
35303
35304# Remove the space that was appended to ease matching.
35305# Then replace #undef with comments. This is necessary, for
35306# example, in the case of _POSIX_SOURCE, which is predefined and required
35307# on some systems where configure will not decide to define it.
35308# (The regexp can be short, since the line contains either #define or #undef.)
35309echo 's/ $//
35310s,^[ #]*u.*,/* & */,' >>conftest.defines
35311
35312# Break up conftest.defines:
35313ac_max_sed_lines=50
35314
35315# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35316# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35317# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35318# et cetera.
35319ac_in='$ac_file_inputs'
35320ac_out='"$tmp/out1"'
35321ac_nxt='"$tmp/out2"'
35322
35323while :
35324do
35325 # Write a here document:
35326 cat >>$CONFIG_STATUS <<_ACEOF
35327 # First, check the format of the line:
35328 cat >"\$tmp/defines.sed" <<\\CEOF
35329/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35330/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35331b
35332:def
35333_ACEOF
35334 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35335 echo 'CEOF
35336 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35337 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35338 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35339 grep . conftest.tail >/dev/null || break
35340 rm -f conftest.defines
35341 mv conftest.tail conftest.defines
35342done
35343rm -f conftest.defines conftest.tail
35344
35345echo "ac_result=$ac_in" >>$CONFIG_STATUS
35346cat >>$CONFIG_STATUS <<\_ACEOF
35347 if test x"$ac_file" != x-; then
35348 echo "/* $configure_input */" >"$tmp/config.h"
35349 cat "$ac_result" >>"$tmp/config.h"
35350 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35352echo "$as_me: $ac_file is unchanged" >&6;}
35353 else
35354 rm -f $ac_file
35355 mv "$tmp/config.h" $ac_file
35356 fi
35357 else
35358 echo "/* $configure_input */"
35359 cat "$ac_result"
35360 fi
35361 rm -f "$tmp/out12"
35362 ;;
35363
35364 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35365echo "$as_me: executing $ac_file commands" >&6;}
35366 ;;
35367 esac
35368
35369
35370 case $ac_file$ac_mode in
35371 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35372 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35373 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35374 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35375 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35376 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35377 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35378 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35379 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35380 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35381 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35382 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35383 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35384 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000035385 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35386 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035387 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35388 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35389 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35390 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35391 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35392 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035393 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35394 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35395 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35396 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035397
35398 esac
35399done # for ac_tag
35400
35401
35402{ (exit 0); exit 0; }
35403_ACEOF
35404chmod +x $CONFIG_STATUS
35405ac_clean_files=$ac_clean_files_save
35406
35407
35408# configure is writing to config.log, and then calls config.status.
35409# config.status does its own redirection, appending to config.log.
35410# Unfortunately, on DOS this fails, as config.log is still kept open
35411# by configure, so config.status won't be able to write to it; its
35412# output is simply discarded. So we exec the FD to /dev/null,
35413# effectively closing config.log, so it can be properly (re)opened and
35414# appended to by config.status. When coming back to configure, we
35415# need to make the FD available again.
35416if test "$no_create" != yes; then
35417 ac_cs_success=:
35418 ac_config_status_args=
35419 test "$silent" = yes &&
35420 ac_config_status_args="$ac_config_status_args --quiet"
35421 exec 5>/dev/null
35422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35423 exec 5>>config.log
35424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35425 # would make configure fail if this is the last instruction.
35426 $ac_cs_success || { (exit 1); exit 1; }
35427fi
35428
35429#
35430# CONFIG_SUBDIRS section.
35431#
35432if test "$no_recursion" != yes; then
35433
35434 # Remove --cache-file and --srcdir arguments so they do not pile up.
35435 ac_sub_configure_args=
35436 ac_prev=
35437 eval "set x $ac_configure_args"
35438 shift
35439 for ac_arg
35440 do
35441 if test -n "$ac_prev"; then
35442 ac_prev=
35443 continue
35444 fi
35445 case $ac_arg in
35446 -cache-file | --cache-file | --cache-fil | --cache-fi \
35447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35448 ac_prev=cache_file ;;
35449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35451 | --c=*)
35452 ;;
35453 --config-cache | -C)
35454 ;;
35455 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35456 ac_prev=srcdir ;;
35457 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35458 ;;
35459 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35460 ac_prev=prefix ;;
35461 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35462 ;;
35463 *)
35464 case $ac_arg in
35465 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35466 esac
35467 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35468 esac
35469 done
35470
35471 # Always prepend --prefix to ensure using the same prefix
35472 # in subdir configurations.
35473 ac_arg="--prefix=$prefix"
35474 case $ac_arg in
35475 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35476 esac
Tanya Lattner3fa4a442009-01-22 05:17:59 +000035477 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035478
35479 ac_popdir=`pwd`
35480 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35481
35482 # Do not complain, so a configure script can configure whichever
35483 # parts of a large source tree are present.
35484 test -d "$srcdir/$ac_dir" || continue
35485
35486 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35487 echo "$as_me:$LINENO: $ac_msg" >&5
35488 echo "$ac_msg" >&6
35489 { as_dir="$ac_dir"
35490 case $as_dir in #(
35491 -*) as_dir=./$as_dir;;
35492 esac
35493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35494 as_dirs=
35495 while :; do
35496 case $as_dir in #(
35497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35498 *) as_qdir=$as_dir;;
35499 esac
35500 as_dirs="'$as_qdir' $as_dirs"
35501 as_dir=`$as_dirname -- "$as_dir" ||
35502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35503 X"$as_dir" : 'X\(//\)[^/]' \| \
35504 X"$as_dir" : 'X\(//\)$' \| \
35505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35506echo X"$as_dir" |
35507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35508 s//\1/
35509 q
35510 }
35511 /^X\(\/\/\)[^/].*/{
35512 s//\1/
35513 q
35514 }
35515 /^X\(\/\/\)$/{
35516 s//\1/
35517 q
35518 }
35519 /^X\(\/\).*/{
35520 s//\1/
35521 q
35522 }
35523 s/.*/./; q'`
35524 test -d "$as_dir" && break
35525 done
35526 test -z "$as_dirs" || eval "mkdir $as_dirs"
35527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35528echo "$as_me: error: cannot create directory $as_dir" >&2;}
35529 { (exit 1); exit 1; }; }; }
35530 ac_builddir=.
35531
35532case "$ac_dir" in
35533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35534*)
35535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35536 # A ".." for each directory in $ac_dir_suffix.
35537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35538 case $ac_top_builddir_sub in
35539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35541 esac ;;
35542esac
35543ac_abs_top_builddir=$ac_pwd
35544ac_abs_builddir=$ac_pwd$ac_dir_suffix
35545# for backward compatibility:
35546ac_top_builddir=$ac_top_build_prefix
35547
35548case $srcdir in
35549 .) # We are building in place.
35550 ac_srcdir=.
35551 ac_top_srcdir=$ac_top_builddir_sub
35552 ac_abs_top_srcdir=$ac_pwd ;;
35553 [\\/]* | ?:[\\/]* ) # Absolute name.
35554 ac_srcdir=$srcdir$ac_dir_suffix;
35555 ac_top_srcdir=$srcdir
35556 ac_abs_top_srcdir=$srcdir ;;
35557 *) # Relative name.
35558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35559 ac_top_srcdir=$ac_top_build_prefix$srcdir
35560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35561esac
35562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35563
35564
35565 cd "$ac_dir"
35566
35567 # Check for guested configure; otherwise get Cygnus style configure.
35568 if test -f "$ac_srcdir/configure.gnu"; then
35569 ac_sub_configure=$ac_srcdir/configure.gnu
35570 elif test -f "$ac_srcdir/configure"; then
35571 ac_sub_configure=$ac_srcdir/configure
35572 elif test -f "$ac_srcdir/configure.in"; then
35573 # This should be Cygnus configure.
35574 ac_sub_configure=$ac_aux_dir/configure
35575 else
35576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35577echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35578 ac_sub_configure=
35579 fi
35580
35581 # The recursion is here.
35582 if test -n "$ac_sub_configure"; then
35583 # Make the cache file name correct relative to the subdirectory.
35584 case $cache_file in
35585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35586 *) # Relative name.
35587 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35588 esac
35589
35590 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35591echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35592 # The eval makes quoting arguments work.
35593 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35594 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35596echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35597 { (exit 1); exit 1; }; }
35598 fi
35599
35600 cd "$ac_popdir"
35601 done
35602fi
35603