blob: b09bed64e8346454edf2a54692028f5e02b4a263 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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 Lattner916a91122009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000250fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000270fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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 Lattner7e5c8aa2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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>
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000727# include <sys/types.h>
728#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000732#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000747# include <strings.h>
748#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000750# include <inttypes.h>
751#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000753# include <stdint.h>
754#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Anton Korobeynikov1207b902009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
Nick Lewyckye4ba4c62009-09-29 05:41:21 +0000824ARCH
825ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000832BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene19b1cbd2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000836DISABLE_ASSERTIONS
837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
839DEBUG_RUNTIME
Jeffrey Yasskined62bf32009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
845ENABLE_PIC
846TARGETS_TO_BUILD
Douglas Gregor1dc5ff42009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000850ENABLE_CBE_PRINTF_A
851EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkov9e045892009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenedb740ef2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000897OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000898GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregord1e1dbc2009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000916USE_UDIS86
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +0000917USE_OPROFILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000918HAVE_PTHREAD
919HUGE_VAL_SANITY
920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
925LLVMGCCLIBEXEC
926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
928LLVMGCC_LANGS
929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000945RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000946LIBOBJS
947LTLIBOBJS'
948ac_subst_files=''
949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000960CXXCPP
961F77
962FFLAGS'
963ac_subdirs_all='projects/sample
964projects/privbracket
965projects/llvm-stacker
966projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000967projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000968projects/llvm-reopt
969projects/llvm-gcc
970projects/llvm-java
971projects/llvm-tv
972projects/llvm-poolalloc
973projects/poolalloc
974projects/llvm-kernel'
975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
1043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1068
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001083 eval enable_$ac_feature=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1094
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001102 eval enable_$ac_feature=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001299 eval with_$ac_package=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001307 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001308 eval with_$ac_package=no ;;
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357fi
1358
1359# Be sure to have absolute directory names.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1364do
1365 eval ac_val=\$$ac_var
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
1398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1406
1407
1408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417echo X"$0" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
1442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1446fi
1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
1468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001476\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
1496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001564 is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1571 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001574 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1576 Win32)
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001579 --enable-ltdl-install install libltdl
1580 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001581 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001582 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001583 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001584 --enable-fast-install[=PKGS]
1585 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001586 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001587 --disable-libtool-lock avoid locking (might break parallel builds)
1588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1593 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001594 --with-llvmgcc Specify location of llvm-gcc driver (default
1595 searches PATH)
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1597 searches PATH)
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001598 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1600 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001603 --with-tclinclude directory where tcl headers are
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001611
1612Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
1625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <llvmbugs@cs.uiuc.edu>.
1630_ACEOF
1631ac_status=$?
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" || continue
1638 ac_builddir=.
1639
1640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
1643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
1655
1656case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669esac
1670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1685fi
1686
1687test -n "$ac_init_help" && exit $ac_status
1688if $ac_init_version; then
1689 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001690llvm configure 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001692
1693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697
Tanya Lattner916a91122009-08-22 21:01:26 +00001698Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001699_ACEOF
1700 exit
1701fi
1702cat >config.log <<_ACEOF
1703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001706It was created by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001707generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001708
1709 $ $0 $@
1710
1711_ACEOF
1712exec 5>>config.log
1713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1744done
1745IFS=$as_save_IFS
1746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
1761# Strip out --silent because we don't want to record it for future runs.
1762# Also quote any args containing shell meta-characters.
1763# Make two passes to allow for proper duplicate-argument suppression.
1764ac_configure_args=
1765ac_configure_args0=
1766ac_configure_args1=
1767ac_must_keep_next=false
1768for ac_pass in 1 2
1769do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803done
1804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log. We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
1810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824(
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
1839 (set) 2>&1 |
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1842 sed -n \
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
1846 *)
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ;;
1849 esac |
1850 sort
1851)
1852 echo
1853
1854 cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
1872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
1875_ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 echo "$ac_var='\''$ac_val'\''"
1884 done | sort
1885 echo
1886 fi
1887
1888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894 echo
1895 cat confdefs.h
1896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1901 } >&5
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904 exit $exit_status
1905' 0
1906for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
1912rm -f -r conftest* confdefs.h
1913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer explicitly selected file to automatically selected ones.
1943if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947else
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
1950fi
1951shift
1952for ac_site_file
1953do
1954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1958 . "$ac_site_file"
1959 fi
1960done
1961
1962if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1971 esac
1972 fi
1973else
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1977fi
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
1982for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1997 *)
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002echo "$as_me: former value: $ac_old_val" >&2;}
2003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2004echo "$as_me: current value: $ac_new_val" >&2;}
2005 ac_cache_corrupted=:
2006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
2011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2026fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
Tanya Lattner916a91122009-08-22 21:01:26 +00002060LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002061
2062
2063
2064
2065
2066
2067
2068ac_aux_dir=
2069for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2073 break
2074 elif test -f "$ac_dir/install.sh"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2077 break
2078 elif test -f "$ac_dir/shtool"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 break
2082 fi
2083done
2084if test -z "$ac_aux_dir"; then
2085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087 { (exit 1); exit 1; }; }
2088fi
2089
2090# These three variables are undocumented and unsupported,
2091# and are intended to be withdrawn in a future Autoconf release.
2092# They can cause serious problems if a builder's source tree is in a directory
2093# whose full name contains unusual characters.
2094ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097
2098
2099
2100if test ${srcdir} != "." ; then
2101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
2105 fi
2106fi
2107
2108for i in `ls ${srcdir}/projects`
2109do
2110 if test -d ${srcdir}/projects/${i} ; then
2111 case ${i} in
2112 CVS) ;;
2113 sample) subdirs="$subdirs projects/sample"
2114 ;;
2115 privbracket) subdirs="$subdirs projects/privbracket"
2116 ;;
2117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2118 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002119 # llvm-test is the old name of the test-suite, kept here for backwards
2120 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002121 llvm-test) subdirs="$subdirs projects/llvm-test"
2122 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002123 test-suite) subdirs="$subdirs projects/test-suite"
2124 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2126;;
2127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2128 ;;
2129 llvm-java) subdirs="$subdirs projects/llvm-java"
2130 ;;
2131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2132 ;;
2133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2134 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002135 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002136 ;;
2137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2138 ;;
2139 *)
2140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142 ;;
2143 esac
2144 fi
2145done
2146
2147
2148# Make sure we can run config.sub.
2149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2153
2154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
2163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171fi
2172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
2180build=$ac_cv_build
2181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2206fi
2207
2208fi
2209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2216esac
2217host=$ac_cv_host
2218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2238else
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2243fi
2244
2245fi
2246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2253esac
2254target=$ac_cv_target
2255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2272 NONENONEs,x,x, &&
2273 program_prefix=${target_alias}-
2274
2275{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277if test "${llvm_cv_os_type+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 case $host in
2281 *-*-aix*)
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-irix*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-cygwin*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-darwin*)
2297 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002298 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-freebsd*)
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-openbsd*)
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-netbsd*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002316 *-*-dragonfly*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002321 *-*-hpux*)
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
2326 *-*-interix*)
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-linux*)
2332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-solaris*)
2337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2341 *-*-win32*)
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-*-mingw*)
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002351 *-unknown-eabi*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2356 *-unknown-elf*)
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002361 *)
2362 llvm_cv_link_all_option=""
2363 llvm_cv_no_link_all_option=""
2364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
2366esac
2367fi
2368{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2370
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002371{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 case $target in
2377 *-*-aix*)
2378 llvm_cv_target_os_type="AIX" ;;
2379 *-*-irix*)
2380 llvm_cv_target_os_type="IRIX" ;;
2381 *-*-cygwin*)
2382 llvm_cv_target_os_type="Cygwin" ;;
2383 *-*-darwin*)
2384 llvm_cv_target_os_type="Darwin" ;;
2385 *-*-freebsd*)
2386 llvm_cv_target_os_type="FreeBSD" ;;
2387 *-*-openbsd*)
2388 llvm_cv_target_os_type="OpenBSD" ;;
2389 *-*-netbsd*)
2390 llvm_cv_target_os_type="NetBSD" ;;
2391 *-*-dragonfly*)
2392 llvm_cv_target_os_type="DragonFly" ;;
2393 *-*-hpux*)
2394 llvm_cv_target_os_type="HP-UX" ;;
2395 *-*-interix*)
2396 llvm_cv_target_os_type="Interix" ;;
2397 *-*-linux*)
2398 llvm_cv_target_os_type="Linux" ;;
2399 *-*-solaris*)
2400 llvm_cv_target_os_type="SunOS" ;;
2401 *-*-win32*)
2402 llvm_cv_target_os_type="Win32" ;;
2403 *-*-mingw*)
2404 llvm_cv_target_os_type="MingW" ;;
2405 *-unknown-eabi*)
2406 llvm_cv_target_os_type="Freestanding" ;;
2407 *)
2408 llvm_cv_target_os_type="Unknown" ;;
2409esac
2410fi
2411{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002414if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417 { (exit 1); exit 1; }; }
2418fi
2419
2420OS=$llvm_cv_os_type
2421
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002422HOST_OS=$llvm_cv_os_type
2423
2424TARGET_OS=$llvm_cv_target_os_type
2425
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002426
2427LINKALL=$llvm_cv_link_all_option
2428
2429NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
2432case $llvm_cv_platform_type in
2433 Unix)
2434
2435cat >>confdefs.h <<\_ACEOF
2436#define LLVM_ON_UNIX 1
2437_ACEOF
2438
2439 LLVM_ON_UNIX=1
2440
2441 LLVM_ON_WIN32=0
2442
2443 ;;
2444 Win32)
2445
2446cat >>confdefs.h <<\_ACEOF
2447#define LLVM_ON_WIN32 1
2448_ACEOF
2449
2450 LLVM_ON_UNIX=0
2451
2452 LLVM_ON_WIN32=1
2453
2454 ;;
2455esac
2456
2457{ echo "$as_me:$LINENO: checking target architecture" >&5
2458echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 case $target in
2463 i?86-*) llvm_cv_target_arch="x86" ;;
2464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002468 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002469 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002470 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002471 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002472 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002475 *) llvm_cv_target_arch="Unknown" ;;
2476esac
2477fi
2478{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2480
2481if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484fi
2485
Nick Lewyckye4ba4c62009-09-29 05:41:21 +00002486if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2487 ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002488ac_cpp='$CPP $CPPFLAGS'
2489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002509 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 +00002510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514done
2515done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520CC=$ac_cv_prog_CC
2521if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523echo "${ECHO_T}$CC" >&6; }
2524else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6; }
2527fi
2528
2529
2530fi
2531if test -z "$ac_cv_prog_CC"; then
2532 ac_ct_CC=$CC
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534set dummy gcc; ac_word=$2
2535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002549 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 +00002550 ac_cv_prog_ac_ct_CC="gcc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563echo "${ECHO_T}$ac_ct_CC" >&6; }
2564else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
2567fi
2568
2569 if test "x$ac_ct_CC" = x; then
2570 CC=""
2571 else
2572 case $cross_compiling:$ac_tool_warned in
2573yes:)
2574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575whose name does not start with the host triplet. If you think this
2576configuration is useful to you, please write to autoconf@gnu.org." >&5
2577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578whose name does not start with the host triplet. If you think this
2579configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580ac_tool_warned=yes ;;
2581esac
2582 CC=$ac_ct_CC
2583 fi
2584else
2585 CC="$ac_cv_prog_CC"
2586fi
2587
2588if test -z "$CC"; then
2589 if test -n "$ac_tool_prefix"; then
2590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}cc; ac_word=$2
2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002606 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 +00002607 ac_cv_prog_CC="${ac_tool_prefix}cc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611done
2612done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
2621else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
2624fi
2625
2626
2627 fi
2628fi
2629if test -z "$CC"; then
2630 # Extract the first word of "cc", so it can be a program name with args.
2631set dummy cc; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640 ac_prog_rejected=no
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002647 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 +00002648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2649 ac_prog_rejected=yes
2650 continue
2651 fi
2652 ac_cv_prog_CC="cc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656done
2657done
2658IFS=$as_save_IFS
2659
2660if test $ac_prog_rejected = yes; then
2661 # We found a bogon in the path, so make sure we never use it.
2662 set dummy $ac_cv_prog_CC
2663 shift
2664 if test $# != 0; then
2665 # We chose a different compiler from the bogus one.
2666 # However, it has the same basename, so the bogon will be chosen
2667 # first if we set CC to just the basename; use the full file name.
2668 shift
2669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2670 fi
2671fi
2672fi
2673fi
2674CC=$ac_cv_prog_CC
2675if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677echo "${ECHO_T}$CC" >&6; }
2678else
2679 { echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$CC"; then
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in cl.exe
2688 do
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002705 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 +00002706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719echo "${ECHO_T}$CC" >&6; }
2720else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
2723fi
2724
2725
2726 test -n "$CC" && break
2727 done
2728fi
2729if test -z "$CC"; then
2730 ac_ct_CC=$CC
2731 for ac_prog in cl.exe
2732do
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734set dummy $ac_prog; ac_word=$2
2735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 if test -n "$ac_ct_CC"; then
2741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002749 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 +00002750 ac_cv_prog_ac_ct_CC="$ac_prog"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754done
2755done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763echo "${ECHO_T}$ac_ct_CC" >&6; }
2764else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6; }
2767fi
2768
2769
2770 test -n "$ac_ct_CC" && break
2771done
2772
2773 if test "x$ac_ct_CC" = x; then
2774 CC=""
2775 else
2776 case $cross_compiling:$ac_tool_warned in
2777yes:)
2778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2779whose name does not start with the host triplet. If you think this
2780configuration is useful to you, please write to autoconf@gnu.org." >&5
2781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2782whose name does not start with the host triplet. If you think this
2783configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786 CC=$ac_ct_CC
2787 fi
2788fi
2789
2790fi
2791
2792
2793test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794See \`config.log' for more details." >&5
2795echo "$as_me: error: no acceptable C compiler found in \$PATH
2796See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2798
2799# Provide some information about the compiler.
2800echo "$as_me:$LINENO: checking for C compiler version" >&5
2801ac_compiler=`set X $ac_compile; echo $2`
2802{ (ac_try="$ac_compiler --version >&5"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compiler --version >&5") 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }
2812{ (ac_try="$ac_compiler -v >&5"
2813case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compiler -v >&5") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }
2822{ (ac_try="$ac_compiler -V >&5"
2823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_compiler -V >&5") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848ac_clean_files_save=$ac_clean_files
2849ac_clean_files="$ac_clean_files a.out a.exe b.out"
2850# Try to create an executable without -o first, disregard a.out.
2851# It will help us diagnose broken compilers, and finding out an intuition
2852# of exeext.
2853{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2854echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2855ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2856#
2857# List of possible output files, starting from the most likely.
2858# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2859# only as a last resort. b.out is created by i960 compilers.
2860ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2861#
2862# The IRIX 6 linker writes into existing files which may not be
2863# executable, retaining their permissions. Remove them first so a
2864# subsequent execution test works.
2865ac_rmfiles=
2866for ac_file in $ac_files
2867do
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871 esac
2872done
2873rm -f $ac_rmfiles
2874
2875if { (ac_try="$ac_link_default"
2876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link_default") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887# in a Makefile. We should not override ac_cv_exeext if it was cached,
2888# so that the user can short-circuit this test for compilers unknown to
2889# Autoconf.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002890for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002891do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2895 ;;
2896 [ab].out )
2897 # We found the default executable, but exeext='' is most
2898 # certainly right.
2899 break;;
2900 *.* )
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2902 then :; else
2903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 fi
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2909 # actually working.
2910 break;;
2911 * )
2912 break;;
2913 esac
2914done
2915test "$ac_cv_exeext" = no && ac_cv_exeext=
2916
2917else
2918 echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: C compiler cannot create executables
2924See \`config.log' for more details." >&2;}
2925 { (exit 77); exit 77; }; }
2926fi
2927
2928ac_exeext=$ac_cv_exeext
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002929{ echo "$as_me:$LINENO: result: $ac_file" >&5
2930echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002931
2932# Check that the compiler produces executables we can run. If not, either
2933# the compiler is broken, or we cross compile.
2934{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2935echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2936# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2937# If not cross compiling, check that we can run a simple program.
2938if test "$cross_compiling" != yes; then
2939 if { ac_try='./$ac_file'
2940 { (case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_try") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 cross_compiling=no
2950 else
2951 if test "$cross_compiling" = maybe; then
2952 cross_compiling=yes
2953 else
2954 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2955If you meant to cross compile, use \`--host'.
2956See \`config.log' for more details." >&5
2957echo "$as_me: error: cannot run C compiled programs.
2958If you meant to cross compile, use \`--host'.
2959See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2961 fi
2962 fi
2963fi
2964{ echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6; }
2966
2967rm -f a.out a.exe conftest$ac_cv_exeext b.out
2968ac_clean_files=$ac_clean_files_save
2969# Check that the compiler produces executables we can run. If not, either
2970# the compiler is broken, or we cross compile.
2971{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2972echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2973{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2974echo "${ECHO_T}$cross_compiling" >&6; }
2975
2976{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2977echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2978if { (ac_try="$ac_link"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_link") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2989# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2990# work properly (i.e., refer to `conftest.exe'), while it won't with
2991# `rm'.
2992for ac_file in conftest.exe conftest conftest.*; do
2993 test -f "$ac_file" || continue
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997 break;;
2998 * ) break;;
2999 esac
3000done
3001else
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3005See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3007fi
3008
3009rm -f conftest$ac_cv_exeext
3010{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011echo "${ECHO_T}$ac_cv_exeext" >&6; }
3012
3013rm -f conftest.$ac_ext
3014EXEEXT=$ac_cv_exeext
3015ac_exeext=$EXEEXT
3016{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3018if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.o conftest.obj
3037if { (ac_try="$ac_compile"
3038case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; then
3047 for ac_file in conftest.o conftest.obj conftest.*; do
3048 test -f "$ac_file" || continue;
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3052 break;;
3053 esac
3054done
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3060See \`config.log' for more details." >&5
3061echo "$as_me: error: cannot compute suffix of object files: cannot compile
3062See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3064fi
3065
3066rm -f conftest.$ac_cv_objext conftest.$ac_ext
3067fi
3068{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3069echo "${ECHO_T}$ac_cv_objext" >&6; }
3070OBJEXT=$ac_cv_objext
3071ac_objext=$OBJEXT
3072{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3073echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3074if test "${ac_cv_c_compiler_gnu+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087#ifndef __GNUC__
3088 choke me
3089#endif
3090
3091 ;
3092 return 0;
3093}
3094_ACEOF
3095rm -f conftest.$ac_objext
3096if { (ac_try="$ac_compile"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003129 ac_compiler_gnu=yes
3130else
3131 echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 ac_compiler_gnu=no
3135fi
3136
3137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139
3140fi
3141{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3142echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3143GCC=`test $ac_compiler_gnu = yes && echo yes`
3144ac_test_CFLAGS=${CFLAGS+set}
3145ac_save_CFLAGS=$CFLAGS
3146{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3147echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3148if test "${ac_cv_prog_cc_g+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151 ac_save_c_werror_flag=$ac_c_werror_flag
3152 ac_c_werror_flag=yes
3153 ac_cv_prog_cc_g=no
3154 CFLAGS="-g"
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003204 ac_cv_prog_cc_g=yes
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 CFLAGS=""
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_try") 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_try") 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003259 :
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3265 CFLAGS="-g"
3266 cat >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
3273int
3274main ()
3275{
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext
3282if { (ac_try="$ac_compile"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003315 ac_cv_prog_cc_g=yes
3316else
3317 echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
3320
3321fi
3322
3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324fi
3325
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327fi
3328
3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331fi
3332{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3334if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348fi
3349{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3350echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3351if test "${ac_cv_prog_cc_c89+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353else
3354 ac_cv_prog_cc_c89=no
3355ac_save_CC=$CC
3356cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#include <stdarg.h>
3363#include <stdio.h>
3364#include <sys/types.h>
3365#include <sys/stat.h>
3366/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367struct buf { int x; };
3368FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369static char *e (p, i)
3370 char **p;
3371 int i;
3372{
3373 return p[i];
3374}
3375static char *f (char * (*g) (char **, int), char **p, ...)
3376{
3377 char *s;
3378 va_list v;
3379 va_start (v,p);
3380 s = g (p, va_arg (v,int));
3381 va_end (v);
3382 return s;
3383}
3384
3385/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std. */
3392int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393
3394/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3395 inside strings and character constants. */
3396#define FOO(x) 'x'
3397int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3398
3399int test (int i, double x);
3400struct s1 {int (*f) (int a);};
3401struct s2 {int (*f) (double a);};
3402int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403int argc;
3404char **argv;
3405int
3406main ()
3407{
3408return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 ;
3410 return 0;
3411}
3412_ACEOF
3413for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3415do
3416 CC="$ac_save_CC $ac_arg"
3417 rm -f conftest.$ac_objext
3418if { (ac_try="$ac_compile"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3432 { (case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_try") 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003451 ac_cv_prog_cc_c89=$ac_arg
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456
3457fi
3458
3459rm -f core conftest.err conftest.$ac_objext
3460 test "x$ac_cv_prog_cc_c89" != "xno" && break
3461done
3462rm -f conftest.$ac_ext
3463CC=$ac_save_CC
3464
3465fi
3466# AC_CACHE_VAL
3467case "x$ac_cv_prog_cc_c89" in
3468 x)
3469 { echo "$as_me:$LINENO: result: none needed" >&5
3470echo "${ECHO_T}none needed" >&6; } ;;
3471 xno)
3472 { echo "$as_me:$LINENO: result: unsupported" >&5
3473echo "${ECHO_T}unsupported" >&6; } ;;
3474 *)
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3477echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478esac
3479
3480
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
Nick Lewyckye4ba4c62009-09-29 05:41:21 +00003488{ echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3489echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3490if test "${llvm_cv_linux_mixed+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 ac_ext=c
3494ac_cpp='$CPP $CPPFLAGS'
3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505#ifndef __x86_64__
3506 error: Not x86-64 even if uname says so!
3507 #endif
3508
3509int
3510main ()
3511{
3512
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext
3518if { (ac_try="$ac_compile"
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
3523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3532 { (case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_try") 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
3546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 llvm_cv_linux_mixed=no
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 llvm_cv_linux_mixed=yes
3557fi
3558
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566
3567fi
3568{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3569echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3570
3571 if test "$llvm_cv_linux_mixed" = "yes"; then
3572 llvm_cv_target_arch="x86"
3573 fi
3574fi
3575
3576# Determine the LLVM native architecture for the target
3577case "$llvm_cv_target_arch" in
3578 x86) LLVM_NATIVE_ARCH="X86" ;;
3579 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3580 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3581esac
3582
3583ARCH=$llvm_cv_target_arch
3584
3585
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003586ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3593# On Suns, sometimes $CPP names a directory.
3594if test -n "$CPP" && test -d "$CPP"; then
3595 CPP=
3596fi
3597if test -z "$CPP"; then
3598 if test "${ac_cv_prog_CPP+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601 # Double quotes because CPP needs to be expanded
3602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603 do
3604 ac_preproc_ok=false
3605for ac_c_preproc_warn_flag in '' yes
3606do
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error" is here to catch this case.
3613 cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h. */
3619#ifdef __STDC__
3620# include <limits.h>
3621#else
3622# include <assert.h>
3623#endif
3624 Syntax error
3625_ACEOF
3626if { (ac_try="$ac_cpp conftest.$ac_ext"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642 else
3643 ac_cpp_err=
3644 fi
3645else
3646 ac_cpp_err=yes
3647fi
3648if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003649 :
3650else
3651 echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 # Broken: fails on valid input.
3655continue
3656fi
3657
3658rm -f conftest.err conftest.$ac_ext
3659
3660 # OK, works on sane cases. Now check whether nonexistent headers
3661 # can be detected and how.
3662 cat >conftest.$ac_ext <<_ACEOF
3663/* confdefs.h. */
3664_ACEOF
3665cat confdefs.h >>conftest.$ac_ext
3666cat >>conftest.$ac_ext <<_ACEOF
3667/* end confdefs.h. */
3668#include <ac_nonexistent.h>
3669_ACEOF
3670if { (ac_try="$ac_cpp conftest.$ac_ext"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686 else
3687 ac_cpp_err=
3688 fi
3689else
3690 ac_cpp_err=yes
3691fi
3692if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003693 # Broken: success on invalid input.
3694continue
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 # Passes both tests.
3700ac_preproc_ok=:
3701break
3702fi
3703
3704rm -f conftest.err conftest.$ac_ext
3705
3706done
3707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708rm -f conftest.err conftest.$ac_ext
3709if $ac_preproc_ok; then
3710 break
3711fi
3712
3713 done
3714 ac_cv_prog_CPP=$CPP
3715
3716fi
3717 CPP=$ac_cv_prog_CPP
3718else
3719 ac_cv_prog_CPP=$CPP
3720fi
3721{ echo "$as_me:$LINENO: result: $CPP" >&5
3722echo "${ECHO_T}$CPP" >&6; }
3723ac_preproc_ok=false
3724for ac_c_preproc_warn_flag in '' yes
3725do
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3733/* confdefs.h. */
3734_ACEOF
3735cat confdefs.h >>conftest.$ac_ext
3736cat >>conftest.$ac_ext <<_ACEOF
3737/* end confdefs.h. */
3738#ifdef __STDC__
3739# include <limits.h>
3740#else
3741# include <assert.h>
3742#endif
3743 Syntax error
3744_ACEOF
3745if { (ac_try="$ac_cpp conftest.$ac_ext"
3746case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761 else
3762 ac_cpp_err=
3763 fi
3764else
3765 ac_cpp_err=yes
3766fi
3767if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003768 :
3769else
3770 echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 # Broken: fails on valid input.
3774continue
3775fi
3776
3777rm -f conftest.err conftest.$ac_ext
3778
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787#include <ac_nonexistent.h>
3788_ACEOF
3789if { (ac_try="$ac_cpp conftest.$ac_ext"
3790case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793esac
3794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003801 (exit $ac_status); } >/dev/null; then
3802 if test -s conftest.err; then
3803 ac_cpp_err=$ac_c_preproc_warn_flag
3804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3805 else
3806 ac_cpp_err=
3807 fi
3808else
3809 ac_cpp_err=yes
3810fi
3811if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003812 # Broken: success on invalid input.
3813continue
3814else
3815 echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 # Passes both tests.
3819ac_preproc_ok=:
3820break
3821fi
3822
3823rm -f conftest.err conftest.$ac_ext
3824
3825done
3826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827rm -f conftest.err conftest.$ac_ext
3828if $ac_preproc_ok; then
3829 :
3830else
3831 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3832See \`config.log' for more details." >&5
3833echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834See \`config.log' for more details." >&2;}
3835 { (exit 1); exit 1; }; }
3836fi
3837
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3846echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3847if test "${ac_cv_path_GREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850 # Extract the first word of "grep ggrep" to use in msg output
3851if test -z "$GREP"; then
3852set dummy grep ggrep; ac_prog_name=$2
3853if test "${ac_cv_path_GREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 ac_path_GREP_found=false
3857# Loop through the user's path and test for each of PROGNAME-LIST
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in grep ggrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003866 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003867 # Check for GNU ac_path_GREP and select it if it is found.
3868 # Check for GNU $ac_path_GREP
3869case `"$ac_path_GREP" --version 2>&1` in
3870*GNU*)
3871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3872*)
3873 ac_count=0
3874 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875 while :
3876 do
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 echo 'GREP' >> "conftest.nl"
3881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 ac_count=`expr $ac_count + 1`
3884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_GREP="$ac_path_GREP"
3887 ac_path_GREP_max=$ac_count
3888 fi
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3891 done
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893esac
3894
3895
3896 $ac_path_GREP_found && break 3
3897 done
3898done
3899
3900done
3901IFS=$as_save_IFS
3902
3903
3904fi
3905
3906GREP="$ac_cv_path_GREP"
3907if test -z "$GREP"; then
3908 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3909echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3910 { (exit 1); exit 1; }; }
3911fi
3912
3913else
3914 ac_cv_path_GREP=$GREP
3915fi
3916
3917
3918fi
3919{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3920echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3921 GREP="$ac_cv_path_GREP"
3922
3923
3924{ echo "$as_me:$LINENO: checking for egrep" >&5
3925echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3926if test "${ac_cv_path_EGREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3930 then ac_cv_path_EGREP="$GREP -E"
3931 else
3932 # Extract the first word of "egrep" to use in msg output
3933if test -z "$EGREP"; then
3934set dummy egrep; ac_prog_name=$2
3935if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 ac_path_EGREP_found=false
3939# Loop through the user's path and test for each of PROGNAME-LIST
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in egrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003948 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003949 # Check for GNU ac_path_EGREP and select it if it is found.
3950 # Check for GNU $ac_path_EGREP
3951case `"$ac_path_EGREP" --version 2>&1` in
3952*GNU*)
3953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3954*)
3955 ac_count=0
3956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3957 while :
3958 do
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 echo 'EGREP' >> "conftest.nl"
3963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 ac_count=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_EGREP="$ac_path_EGREP"
3969 ac_path_EGREP_max=$ac_count
3970 fi
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975esac
3976
3977
3978 $ac_path_EGREP_found && break 3
3979 done
3980done
3981
3982done
3983IFS=$as_save_IFS
3984
3985
3986fi
3987
3988EGREP="$ac_cv_path_EGREP"
3989if test -z "$EGREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3993fi
3994
3995else
3996 ac_cv_path_EGREP=$EGREP
3997fi
3998
3999
4000 fi
4001fi
4002{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4003echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4004 EGREP="$ac_cv_path_EGREP"
4005
4006
4007{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4009if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018#include <stdlib.h>
4019#include <stdarg.h>
4020#include <string.h>
4021#include <float.h>
4022
4023int
4024main ()
4025{
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (ac_try="$ac_compile"
4033case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
4037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004065 ac_cv_header_stdc=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_cv_header_stdc=no
4071fi
4072
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074
4075if test $ac_cv_header_stdc = yes; then
4076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <string.h>
4084
4085_ACEOF
4086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "memchr" >/dev/null 2>&1; then
4088 :
4089else
4090 ac_cv_header_stdc=no
4091fi
4092rm -f conftest*
4093
4094fi
4095
4096if test $ac_cv_header_stdc = yes; then
4097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104#include <stdlib.h>
4105
4106_ACEOF
4107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "free" >/dev/null 2>&1; then
4109 :
4110else
4111 ac_cv_header_stdc=no
4112fi
4113rm -f conftest*
4114
4115fi
4116
4117if test $ac_cv_header_stdc = yes; then
4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119 if test "$cross_compiling" = yes; then
4120 :
4121else
4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
4128#include <ctype.h>
4129#include <stdlib.h>
4130#if ((' ' & 0x0FF) == 0x020)
4131# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4133#else
4134# define ISLOWER(c) \
4135 (('a' <= (c) && (c) <= 'i') \
4136 || ('j' <= (c) && (c) <= 'r') \
4137 || ('s' <= (c) && (c) <= 'z'))
4138# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139#endif
4140
4141#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142int
4143main ()
4144{
4145 int i;
4146 for (i = 0; i < 256; i++)
4147 if (XOR (islower (i), ISLOWER (i))
4148 || toupper (i) != TOUPPER (i))
4149 return 2;
4150 return 0;
4151}
4152_ACEOF
4153rm -f conftest$ac_exeext
4154if { (ac_try="$ac_link"
4155case "(($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_link") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 :
4174else
4175 echo "$as_me: program exited with status $ac_status" >&5
4176echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179( exit $ac_status )
4180ac_cv_header_stdc=no
4181fi
4182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183fi
4184
4185
4186fi
4187fi
4188{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4189echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4190if test $ac_cv_header_stdc = yes; then
4191
4192cat >>confdefs.h <<\_ACEOF
4193#define STDC_HEADERS 1
4194_ACEOF
4195
4196fi
4197
4198# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209 inttypes.h stdint.h unistd.h
4210do
4211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223$ac_includes_default
4224
4225#include <$ac_header>
4226_ACEOF
4227rm -f conftest.$ac_objext
4228if { (ac_try="$ac_compile"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; } &&
4251 { ac_try='test -s conftest.$ac_objext'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004261 eval "$as_ac_Header=yes"
4262else
4263 echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 eval "$as_ac_Header=no"
4267fi
4268
4269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270fi
4271ac_res=`eval echo '${'$as_ac_Header'}'`
4272 { echo "$as_me:$LINENO: result: $ac_res" >&5
4273echo "${ECHO_T}$ac_res" >&6; }
4274if test `eval echo '${'$as_ac_Header'}'` = yes; then
4275 cat >>confdefs.h <<_ACEOF
4276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277_ACEOF
4278
4279fi
4280
4281done
4282
4283
4284{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4285echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4286if test "${ac_cv_c_bigendian+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 # See if sys/param.h defines the BYTE_ORDER macro.
4290cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h. */
4296#include <sys/types.h>
4297#include <sys/param.h>
4298
4299int
4300main ()
4301{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004302#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004303 bogus endian macros
4304#endif
4305
4306 ;
4307 return 0;
4308}
4309_ACEOF
4310rm -f conftest.$ac_objext
4311if { (ac_try="$ac_compile"
4312case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_try") 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004344 # It does; now see whether it defined to BIG_ENDIAN or not.
4345cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h. */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h. */
4351#include <sys/types.h>
4352#include <sys/param.h>
4353
4354int
4355main ()
4356{
4357#if BYTE_ORDER != BIG_ENDIAN
4358 not big endian
4359#endif
4360
4361 ;
4362 return 0;
4363}
4364_ACEOF
4365rm -f conftest.$ac_objext
4366if { (ac_try="$ac_compile"
4367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_compile") 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004378 (exit $ac_status); } &&
4379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
4384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_try") 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004399 ac_cv_c_bigendian=yes
4400else
4401 echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 ac_cv_c_bigendian=no
4405fi
4406
4407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 # It does not; compile a test program.
4413if test "$cross_compiling" = yes; then
4414 # try to guess the endianness by grepping values into an object file
4415 ac_cv_c_bigendian=unknown
4416 cat >conftest.$ac_ext <<_ACEOF
4417/* confdefs.h. */
4418_ACEOF
4419cat confdefs.h >>conftest.$ac_ext
4420cat >>conftest.$ac_ext <<_ACEOF
4421/* end confdefs.h. */
4422short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4423short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4424void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4425short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4426short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4427void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4428int
4429main ()
4430{
4431 _ascii (); _ebcdic ();
4432 ;
4433 return 0;
4434}
4435_ACEOF
4436rm -f conftest.$ac_objext
4437if { (ac_try="$ac_compile"
4438case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004470 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4471 ac_cv_c_bigendian=yes
4472fi
4473if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4474 if test "$ac_cv_c_bigendian" = unknown; then
4475 ac_cv_c_bigendian=no
4476 else
4477 # finding both strings is unlikely to happen, but who knows?
4478 ac_cv_c_bigendian=unknown
4479 fi
4480fi
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485
4486fi
4487
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489else
4490 cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
4496$ac_includes_default
4497int
4498main ()
4499{
4500
4501 /* Are we little or big endian? From Harbison&Steele. */
4502 union
4503 {
4504 long int l;
4505 char c[sizeof (long int)];
4506 } u;
4507 u.l = 1;
4508 return u.c[sizeof (long int) - 1] == 1;
4509
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514rm -f conftest$ac_exeext
4515if { (ac_try="$ac_link"
4516case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_link") 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4525 { (case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_try") 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_c_bigendian=no
4535else
4536 echo "$as_me: program exited with status $ac_status" >&5
4537echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
4540( exit $ac_status )
4541ac_cv_c_bigendian=yes
4542fi
4543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544fi
4545
4546
4547fi
4548
4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550fi
4551{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4552echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4553case $ac_cv_c_bigendian in
4554 yes)
4555 ENDIAN=big
4556 ;;
4557 no)
4558 ENDIAN=little
4559 ;;
4560 *)
4561 { { echo "$as_me:$LINENO: error: unknown endianness
4562presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4563echo "$as_me: error: unknown endianness
4564presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4565 { (exit 1); exit 1; }; } ;;
4566esac
4567
4568
4569if test "$cross_compiling" = yes; then
4570 LLVM_CROSS_COMPILING=1
4571
4572
4573{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4574echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4575if test "${ac_cv_build_exeext+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4579 ac_cv_build_exeext=.exe
4580else
4581 ac_build_prefix=${build_alias}-
4582
4583 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4584set dummy ${ac_build_prefix}gcc; ac_word=$2
4585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 if test -n "$BUILD_CC"; then
4591 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004599 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 +00004600 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606IFS=$as_save_IFS
4607
4608fi
4609fi
4610BUILD_CC=$ac_cv_prog_BUILD_CC
4611if test -n "$BUILD_CC"; then
4612 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4613echo "${ECHO_T}$BUILD_CC" >&6; }
4614else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617fi
4618
4619
4620 if test -z "$BUILD_CC"; then
4621 # Extract the first word of "gcc", so it can be a program name with args.
4622set dummy gcc; ac_word=$2
4623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 if test -n "$BUILD_CC"; then
4629 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4630else
4631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004637 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 +00004638 ac_cv_prog_BUILD_CC="gcc"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642done
4643done
4644IFS=$as_save_IFS
4645
4646fi
4647fi
4648BUILD_CC=$ac_cv_prog_BUILD_CC
4649if test -n "$BUILD_CC"; then
4650 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4651echo "${ECHO_T}$BUILD_CC" >&6; }
4652else
4653 { echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6; }
4655fi
4656
4657
4658 if test -z "$BUILD_CC"; then
4659 # Extract the first word of "cc", so it can be a program name with args.
4660set dummy cc; ac_word=$2
4661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 if test -n "$BUILD_CC"; then
4667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4668else
4669 ac_prog_rejected=no
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004676 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 +00004677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4678 ac_prog_rejected=yes
4679 continue
4680 fi
4681 ac_cv_prog_BUILD_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685done
4686done
4687IFS=$as_save_IFS
4688
4689if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_BUILD_CC
4692 shift
4693 if test $# != 0; then
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set BUILD_CC to just the basename; use the full file name.
4697 shift
4698 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4699 fi
4700fi
4701fi
4702fi
4703BUILD_CC=$ac_cv_prog_BUILD_CC
4704if test -n "$BUILD_CC"; then
4705 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4706echo "${ECHO_T}$BUILD_CC" >&6; }
4707else
4708 { echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6; }
4710fi
4711
4712
4713 fi
4714 fi
4715 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4716echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4717 { (exit 1); exit 1; }; }
4718 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4719 rm -f conftest*
4720 echo 'int main () { return 0; }' > conftest.$ac_ext
4721 ac_cv_build_exeext=
4722 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4723 (eval $ac_build_link) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; then
4727 for file in conftest.*; do
4728 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004729 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004730 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4731 esac
4732 done
4733 else
4734 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4735echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4736 { (exit 1); exit 1; }; }
4737 fi
4738 rm -f conftest*
4739 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4740fi
4741fi
4742
4743BUILD_EXEEXT=""
4744test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4745{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4746echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4747ac_build_exeext=$BUILD_EXEEXT
4748
Jim Grosbache4c032e2008-10-02 22:56:44 +00004749 ac_build_prefix=${build_alias}-
4750 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4751set dummy ${ac_build_prefix}g++; ac_word=$2
4752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 if test -n "$BUILD_CXX"; then
4758 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004766 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 +00004767 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771done
4772done
4773IFS=$as_save_IFS
4774
4775fi
4776fi
4777BUILD_CXX=$ac_cv_prog_BUILD_CXX
4778if test -n "$BUILD_CXX"; then
4779 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4780echo "${ECHO_T}$BUILD_CXX" >&6; }
4781else
4782 { echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6; }
4784fi
4785
4786
4787 if test -z "$BUILD_CXX"; then
4788 # Extract the first word of "g++", so it can be a program name with args.
4789set dummy g++; ac_word=$2
4790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 if test -n "$BUILD_CXX"; then
4796 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004804 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 +00004805 ac_cv_prog_BUILD_CXX="g++"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809done
4810done
4811IFS=$as_save_IFS
4812
4813fi
4814fi
4815BUILD_CXX=$ac_cv_prog_BUILD_CXX
4816if test -n "$BUILD_CXX"; then
4817 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4818echo "${ECHO_T}$BUILD_CXX" >&6; }
4819else
4820 { echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6; }
4822fi
4823
4824
4825 if test -z "$BUILD_CXX"; then
4826 # Extract the first word of "c++", so it can be a program name with args.
4827set dummy c++; ac_word=$2
4828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833 if test -n "$BUILD_CXX"; then
4834 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4835else
4836 ac_prog_rejected=no
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004843 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 +00004844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4845 ac_prog_rejected=yes
4846 continue
4847 fi
4848 ac_cv_prog_BUILD_CXX="c++"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4851 fi
4852done
4853done
4854IFS=$as_save_IFS
4855
4856if test $ac_prog_rejected = yes; then
4857 # We found a bogon in the path, so make sure we never use it.
4858 set dummy $ac_cv_prog_BUILD_CXX
4859 shift
4860 if test $# != 0; then
4861 # We chose a different compiler from the bogus one.
4862 # However, it has the same basename, so the bogon will be chosen
4863 # first if we set BUILD_CXX to just the basename; use the full file name.
4864 shift
4865 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4866 fi
4867fi
4868fi
4869fi
4870BUILD_CXX=$ac_cv_prog_BUILD_CXX
4871if test -n "$BUILD_CXX"; then
4872 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4873echo "${ECHO_T}$BUILD_CXX" >&6; }
4874else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6; }
4877fi
4878
4879
4880 fi
4881 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004882else
4883 LLVM_CROSS_COMPILING=0
4884
4885fi
4886
Nick Lewycky45f0f822009-04-10 05:18:27 +00004887if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004888 cvsbuild="yes"
4889 optimize="no"
4890 CVSBUILD=CVSBUILD=1
4891
4892else
4893 cvsbuild="no"
4894 optimize="yes"
4895fi
4896
4897
4898# Check whether --enable-optimized was given.
4899if test "${enable_optimized+set}" = set; then
4900 enableval=$enable_optimized;
4901else
4902 enableval=$optimize
4903fi
4904
4905if test ${enableval} = "no" ; then
4906 ENABLE_OPTIMIZED=
4907
4908else
4909 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4910
4911fi
4912
David Greene19b1cbd2009-04-17 14:50:39 +00004913# Check whether --enable-profiling was given.
4914if test "${enable_profiling+set}" = set; then
4915 enableval=$enable_profiling;
4916else
4917 enableval="no"
4918fi
4919
4920if test ${enableval} = "no" ; then
4921 ENABLE_PROFILING=
4922
4923else
4924 ENABLE_PROFILING=ENABLE_PROFILING=1
4925
4926fi
4927
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004928# Check whether --enable-assertions was given.
4929if test "${enable_assertions+set}" = set; then
4930 enableval=$enable_assertions;
4931else
4932 enableval="yes"
4933fi
4934
4935if test ${enableval} = "yes" ; then
4936 DISABLE_ASSERTIONS=
4937
4938else
4939 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4940
4941fi
4942
4943# Check whether --enable-expensive-checks was given.
4944if test "${enable_expensive_checks+set}" = set; then
4945 enableval=$enable_expensive_checks;
4946else
4947 enableval="no"
4948fi
4949
4950if test ${enableval} = "yes" ; then
4951 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4952
4953 EXPENSIVE_CHECKS=yes
4954
4955else
4956 ENABLE_EXPENSIVE_CHECKS=
4957
4958 EXPENSIVE_CHECKS=no
4959
4960fi
4961
4962# Check whether --enable-debug-runtime was given.
4963if test "${enable_debug_runtime+set}" = set; then
4964 enableval=$enable_debug_runtime;
4965else
4966 enableval=no
4967fi
4968
4969if test ${enableval} = "no" ; then
4970 DEBUG_RUNTIME=
4971
4972else
4973 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4974
4975fi
4976
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004977# Check whether --enable-debug-symbols was given.
4978if test "${enable_debug_symbols+set}" = set; then
4979 enableval=$enable_debug_symbols;
4980else
4981 enableval=no
4982fi
4983
4984if test ${enableval} = "no" ; then
4985 DEBUG_SYMBOLS=
4986
4987else
4988 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4989
4990fi
4991
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004992# Check whether --enable-jit was given.
4993if test "${enable_jit+set}" = set; then
4994 enableval=$enable_jit;
4995else
4996 enableval=default
4997fi
4998
4999if test ${enableval} = "no"
5000then
5001 JIT=
5002
5003else
5004 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005005 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005006 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005007 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005008 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005009 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005010 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005011 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005012 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005013 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005014 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00005015 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005016 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005017 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00005018 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005019 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00005020 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005021 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00005022 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005023 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00005024 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005025 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00005026 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005027 Blackfin) TARGET_HAS_JIT=0
5028 ;;
5029 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005030 ;;
5031 esac
5032fi
5033
5034# Check whether --enable-doxygen was given.
5035if test "${enable_doxygen+set}" = set; then
5036 enableval=$enable_doxygen;
5037else
5038 enableval=default
5039fi
5040
5041case "$enableval" in
5042 yes) ENABLE_DOXYGEN=1
5043 ;;
5044 no) ENABLE_DOXYGEN=0
5045 ;;
5046 default) ENABLE_DOXYGEN=0
5047 ;;
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5049echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5051esac
5052
5053# Check whether --enable-threads was given.
5054if test "${enable_threads+set}" = set; then
5055 enableval=$enable_threads;
5056else
5057 enableval=default
5058fi
5059
5060case "$enableval" in
5061 yes) ENABLE_THREADS=1
5062 ;;
5063 no) ENABLE_THREADS=0
5064 ;;
5065 default) ENABLE_THREADS=1
5066 ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5068echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5070esac
5071
Owen Anderson96237ec2009-05-19 22:18:56 +00005072cat >>confdefs.h <<_ACEOF
5073#define ENABLE_THREADS $ENABLE_THREADS
5074_ACEOF
5075
5076
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005077# Check whether --enable-pic was given.
5078if test "${enable_pic+set}" = set; then
5079 enableval=$enable_pic;
5080else
5081 enableval=default
5082fi
5083
5084case "$enableval" in
5085 yes) ENABLE_PIC=1
5086 ;;
5087 no) ENABLE_PIC=0
5088 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00005089 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005090 ;;
5091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5092echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5094esac
5095
5096cat >>confdefs.h <<_ACEOF
5097#define ENABLE_PIC $ENABLE_PIC
5098_ACEOF
5099
5100
5101TARGETS_TO_BUILD=""
5102# Check whether --enable-targets was given.
5103if test "${enable_targets+set}" = set; then
5104 enableval=$enable_targets;
5105else
5106 enableval=all
5107fi
5108
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00005109if test "$enableval" = host-only ; then
5110 enableval=host
5111fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005112case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00005113 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005114 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5115 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005116 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5117 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5118 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5119 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5120 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5121 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5122 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5123 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5124 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5125 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5126 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5127 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5128 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5129 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5130 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5131 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00005132 host) case "$llvm_cv_target_arch" in
5133 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5134 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5135 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5136 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5137 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5138 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5139 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5140 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5141 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5142 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5143 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5144 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5145 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5146 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5147echo "$as_me: error: Can not set target to build" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5149 esac ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005150 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5151echo "$as_me: error: Unrecognized target $a_target" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5153 esac
5154 done
5155 ;;
5156esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005157TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5158
5159
Douglas Gregor13e13882009-06-17 00:43:20 +00005160# Determine whether we are building LLVM support for the native architecture.
5161# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5162for a_target in $TARGETS_TO_BUILD; do
5163 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00005164 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00005165
5166cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00005167#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00005168_ACEOF
5169
5170 fi
5171done
5172
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005173# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005174# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005175LLVM_ENUM_TARGETS=""
5176LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005177LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005178for target_to_build in $TARGETS_TO_BUILD; do
5179 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5180 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5181 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5182 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005183 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5184 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5185 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005186done
5187
5188
5189
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005190
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005191# Check whether --enable-cbe-printf-a was given.
5192if test "${enable_cbe_printf_a+set}" = set; then
5193 enableval=$enable_cbe_printf_a;
5194else
5195 enableval=default
5196fi
5197
5198case "$enableval" in
5199 yes) ENABLE_CBE_PRINTF_A=1
5200 ;;
5201 no) ENABLE_CBE_PRINTF_A=0
5202 ;;
5203 default) ENABLE_CBE_PRINTF_A=1
5204 ;;
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5206echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5208esac
5209
5210cat >>confdefs.h <<_ACEOF
5211#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5212_ACEOF
5213
5214
5215
5216# Check whether --with-llvmgccdir was given.
5217if test "${with_llvmgccdir+set}" = set; then
5218 withval=$with_llvmgccdir;
5219else
5220 withval=default
5221fi
5222
5223case "$withval" in
5224 default) WITH_LLVMGCCDIR=default ;;
5225 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5226 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5227echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5229esac
5230
5231
Devang Pateld84ba7b2007-12-04 22:54:47 +00005232# Check whether --with-llvmgcc was given.
5233if test "${with_llvmgcc+set}" = set; then
5234 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5235 WITH_LLVMGCCDIR=""
5236fi
5237
5238
5239
5240# Check whether --with-llvmgxx was given.
5241if test "${with_llvmgxx+set}" = set; then
5242 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5243 WITH_LLVMGCCDIR=""
5244fi
5245
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005246
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005247if test -n "$LLVMGCC"; then
5248 LLVMGCCCOMMAND="$LLVMGCC"
5249fi
5250
5251if test -n "$LLVMGXX"; then
5252 LLVMGXXCOMMAND="$LLVMGXX"
5253fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005254
5255if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5256 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5257echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5258 { (exit 1); exit 1; }; };
5259fi
5260
5261if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5262 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5263echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5264 { (exit 1); exit 1; }; };
5265fi
5266
5267
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005268# Check whether --with-extra-options was given.
5269if test "${with_extra_options+set}" = set; then
5270 withval=$with_extra_options;
5271else
5272 withval=default
5273fi
5274
5275case "$withval" in
5276 default) EXTRA_OPTIONS= ;;
5277 *) EXTRA_OPTIONS=$withval ;;
5278esac
5279EXTRA_OPTIONS=$EXTRA_OPTIONS
5280
5281
Gordon Henriksen016ec472007-10-02 09:50:32 +00005282# Check whether --enable-bindings was given.
5283if test "${enable_bindings+set}" = set; then
5284 enableval=$enable_bindings;
5285else
5286 enableval=default
5287fi
5288
5289BINDINGS_TO_BUILD=""
5290case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005291 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005292 all ) BINDINGS_TO_BUILD="ocaml" ;;
5293 none | no) BINDINGS_TO_BUILD="" ;;
5294 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5295 case "$a_binding" in
5296 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5297 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5298echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5300 esac
5301 done
5302 ;;
5303esac
5304
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005305
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005306# Check whether --with-ocaml-libdir was given.
5307if test "${with_ocaml_libdir+set}" = set; then
5308 withval=$with_ocaml_libdir;
5309else
5310 withval=auto
5311fi
5312
5313case "$withval" in
5314 auto) with_ocaml_libdir="$withval" ;;
5315 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5316 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5317echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5318 { (exit 1); exit 1; }; } ;;
5319esac
5320
5321
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005322# Check whether --with-binutils-include was given.
5323if test "${with_binutils_include+set}" = set; then
5324 withval=$with_binutils_include;
5325else
5326 withval=default
5327fi
5328
5329case "$withval" in
5330 default) WITH_BINUTILS_INCDIR=default ;;
5331 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5332 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5333echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5335esac
5336if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5337 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5338
5339 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5340 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5341 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5342echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5343 { (exit 1); exit 1; }; };
5344 fi
5345fi
5346
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005347# Check whether --enable-libffi was given.
5348if test "${enable_libffi+set}" = set; then
5349 enableval=$enable_libffi;
5350else
5351 enableval=yes
5352fi
5353
5354case "$enableval" in
5355 yes) llvm_cv_enable_libffi="yes" ;;
5356 no) llvm_cv_enable_libffi="no" ;;
5357 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5358echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5360esac
5361
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005362if test "$llvm_cv_os_type" = "Win32" ; then
5363 llvmc_dynamic="yes"
5364else
5365 llvmc_dynamic="no"
5366fi
5367
5368# Check whether --enable-llvmc-dynamic was given.
5369if test "${enable_llvmc_dynamic+set}" = set; then
5370 enableval=$enable_llvmc_dynamic;
5371else
5372 enableval=$llvmc_dynamic
5373fi
5374
5375if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5376 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5377
5378else
5379 ENABLE_LLVMC_DYNAMIC=
5380
5381fi
5382
5383# Check whether --enable-llvmc-dynamic-plugins was given.
5384if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5385 enableval=$enable_llvmc_dynamic_plugins;
5386else
5387 enableval=yes
5388fi
5389
5390if test ${enableval} = "yes" ; then
5391 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5392
5393else
5394 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5395
5396fi
5397
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005398
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5405echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5406# On Suns, sometimes $CPP names a directory.
5407if test -n "$CPP" && test -d "$CPP"; then
5408 CPP=
5409fi
5410if test -z "$CPP"; then
5411 if test "${ac_cv_prog_CPP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5416 do
5417 ac_preproc_ok=false
5418for ac_c_preproc_warn_flag in '' yes
5419do
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432#ifdef __STDC__
5433# include <limits.h>
5434#else
5435# include <assert.h>
5436#endif
5437 Syntax error
5438_ACEOF
5439if { (ac_try="$ac_cpp conftest.$ac_ext"
5440case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443esac
5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_c_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5455 else
5456 ac_cpp_err=
5457 fi
5458else
5459 ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005462 :
5463else
5464 echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 # Broken: fails on valid input.
5468continue
5469fi
5470
5471rm -f conftest.err conftest.$ac_ext
5472
5473 # OK, works on sane cases. Now check whether nonexistent headers
5474 # can be detected and how.
5475 cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
5481#include <ac_nonexistent.h>
5482_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499 else
5500 ac_cpp_err=
5501 fi
5502else
5503 ac_cpp_err=yes
5504fi
5505if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005506 # Broken: success on invalid input.
5507continue
5508else
5509 echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 # Passes both tests.
5513ac_preproc_ok=:
5514break
5515fi
5516
5517rm -f conftest.err conftest.$ac_ext
5518
5519done
5520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521rm -f conftest.err conftest.$ac_ext
5522if $ac_preproc_ok; then
5523 break
5524fi
5525
5526 done
5527 ac_cv_prog_CPP=$CPP
5528
5529fi
5530 CPP=$ac_cv_prog_CPP
5531else
5532 ac_cv_prog_CPP=$CPP
5533fi
5534{ echo "$as_me:$LINENO: result: $CPP" >&5
5535echo "${ECHO_T}$CPP" >&6; }
5536ac_preproc_ok=false
5537for ac_c_preproc_warn_flag in '' yes
5538do
5539 # Use a header file that comes with gcc, so configuring glibc
5540 # with a fresh cross-compiler works.
5541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542 # <limits.h> exists even on freestanding compilers.
5543 # On the NeXT, cc -E runs the code through the compiler's parser,
5544 # not just through cpp. "Syntax error" is here to catch this case.
5545 cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h. */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h. */
5551#ifdef __STDC__
5552# include <limits.h>
5553#else
5554# include <assert.h>
5555#endif
5556 Syntax error
5557_ACEOF
5558if { (ac_try="$ac_cpp conftest.$ac_ext"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005570 (exit $ac_status); } >/dev/null; then
5571 if test -s conftest.err; then
5572 ac_cpp_err=$ac_c_preproc_warn_flag
5573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5574 else
5575 ac_cpp_err=
5576 fi
5577else
5578 ac_cpp_err=yes
5579fi
5580if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005581 :
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 # Broken: fails on valid input.
5587continue
5588fi
5589
5590rm -f conftest.err conftest.$ac_ext
5591
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600#include <ac_nonexistent.h>
5601_ACEOF
5602if { (ac_try="$ac_cpp conftest.$ac_ext"
5603case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005614 (exit $ac_status); } >/dev/null; then
5615 if test -s conftest.err; then
5616 ac_cpp_err=$ac_c_preproc_warn_flag
5617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618 else
5619 ac_cpp_err=
5620 fi
5621else
5622 ac_cpp_err=yes
5623fi
5624if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005625 # Broken: success on invalid input.
5626continue
5627else
5628 echo "$as_me: failed program was:" >&5
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 # Passes both tests.
5632ac_preproc_ok=:
5633break
5634fi
5635
5636rm -f conftest.err conftest.$ac_ext
5637
5638done
5639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640rm -f conftest.err conftest.$ac_ext
5641if $ac_preproc_ok; then
5642 :
5643else
5644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5645See \`config.log' for more details." >&5
5646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5647See \`config.log' for more details." >&2;}
5648 { (exit 1); exit 1; }; }
5649fi
5650
5651ac_ext=c
5652ac_cpp='$CPP $CPPFLAGS'
5653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656
5657ac_ext=c
5658ac_cpp='$CPP $CPPFLAGS'
5659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662if test -n "$ac_tool_prefix"; then
5663 for ac_prog in gcc
5664 do
5665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669if test "${ac_cv_prog_CC+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 if test -n "$CC"; then
5673 ac_cv_prog_CC="$CC" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005681 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 +00005682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692CC=$ac_cv_prog_CC
5693if test -n "$CC"; then
5694 { echo "$as_me:$LINENO: result: $CC" >&5
5695echo "${ECHO_T}$CC" >&6; }
5696else
5697 { echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6; }
5699fi
5700
5701
5702 test -n "$CC" && break
5703 done
5704fi
5705if test -z "$CC"; then
5706 ac_ct_CC=$CC
5707 for ac_prog in gcc
5708do
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710set dummy $ac_prog; ac_word=$2
5711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 if test -n "$ac_ct_CC"; then
5717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005725 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 +00005726 ac_cv_prog_ac_ct_CC="$ac_prog"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_CC=$ac_cv_prog_ac_ct_CC
5737if test -n "$ac_ct_CC"; then
5738 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5739echo "${ECHO_T}$ac_ct_CC" >&6; }
5740else
5741 { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
5743fi
5744
5745
5746 test -n "$ac_ct_CC" && break
5747done
5748
5749 if test "x$ac_ct_CC" = x; then
5750 CC=""
5751 else
5752 case $cross_compiling:$ac_tool_warned in
5753yes:)
5754{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5755whose name does not start with the host triplet. If you think this
5756configuration is useful to you, please write to autoconf@gnu.org." >&5
5757echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5758whose name does not start with the host triplet. If you think this
5759configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762 CC=$ac_ct_CC
5763 fi
5764fi
5765
5766
5767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5768See \`config.log' for more details." >&5
5769echo "$as_me: error: no acceptable C compiler found in \$PATH
5770See \`config.log' for more details." >&2;}
5771 { (exit 1); exit 1; }; }
5772
5773# Provide some information about the compiler.
5774echo "$as_me:$LINENO: checking for C compiler version" >&5
5775ac_compiler=`set X $ac_compile; echo $2`
5776{ (ac_try="$ac_compiler --version >&5"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compiler --version >&5") 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }
5786{ (ac_try="$ac_compiler -v >&5"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler -v >&5") 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5796{ (ac_try="$ac_compiler -V >&5"
5797case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800esac
5801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compiler -V >&5") 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }
5806
5807{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5808echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5809if test "${ac_cv_c_compiler_gnu+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818
5819int
5820main ()
5821{
5822#ifndef __GNUC__
5823 choke me
5824#endif
5825
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (ac_try="$ac_compile"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005864 ac_compiler_gnu=yes
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_compiler_gnu=no
5870fi
5871
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873ac_cv_c_compiler_gnu=$ac_compiler_gnu
5874
5875fi
5876{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5877echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5878GCC=`test $ac_compiler_gnu = yes && echo yes`
5879ac_test_CFLAGS=${CFLAGS+set}
5880ac_save_CFLAGS=$CFLAGS
5881{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5882echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5883if test "${ac_cv_prog_cc_g+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 ac_save_c_werror_flag=$ac_c_werror_flag
5887 ac_c_werror_flag=yes
5888 ac_cv_prog_cc_g=no
5889 CFLAGS="-g"
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896
5897int
5898main ()
5899{
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005939 ac_cv_prog_cc_g=yes
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 CFLAGS=""
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
5951
5952int
5953main ()
5954{
5955
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (ac_try="$ac_compile"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005973 (exit $ac_status); } &&
5974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005994 :
5995else
5996 echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6000 CFLAGS="-g"
6001 cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
6007
6008int
6009main ()
6010{
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext
6017if { (ac_try="$ac_compile"
6018case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compile") 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_try") 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006050 ac_cv_prog_cc_g=yes
6051else
6052 echo "$as_me: failed program was:" >&5
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055
6056fi
6057
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059fi
6060
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062fi
6063
6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 ac_c_werror_flag=$ac_save_c_werror_flag
6066fi
6067{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6068echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6069if test "$ac_test_CFLAGS" = set; then
6070 CFLAGS=$ac_save_CFLAGS
6071elif test $ac_cv_prog_cc_g = yes; then
6072 if test "$GCC" = yes; then
6073 CFLAGS="-g -O2"
6074 else
6075 CFLAGS="-g"
6076 fi
6077else
6078 if test "$GCC" = yes; then
6079 CFLAGS="-O2"
6080 else
6081 CFLAGS=
6082 fi
6083fi
6084{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6085echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6086if test "${ac_cv_prog_cc_c89+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089 ac_cv_prog_cc_c89=no
6090ac_save_CC=$CC
6091cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h. */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h. */
6097#include <stdarg.h>
6098#include <stdio.h>
6099#include <sys/types.h>
6100#include <sys/stat.h>
6101/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6102struct buf { int x; };
6103FILE * (*rcsopen) (struct buf *, struct stat *, int);
6104static char *e (p, i)
6105 char **p;
6106 int i;
6107{
6108 return p[i];
6109}
6110static char *f (char * (*g) (char **, int), char **p, ...)
6111{
6112 char *s;
6113 va_list v;
6114 va_start (v,p);
6115 s = g (p, va_arg (v,int));
6116 va_end (v);
6117 return s;
6118}
6119
6120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6121 function prototypes and stuff, but not '\xHH' hex character constants.
6122 These don't provoke an error unfortunately, instead are silently treated
6123 as 'x'. The following induces an error, until -std is added to get
6124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6125 array size at least. It's necessary to write '\x00'==0 to get something
6126 that's true only with -std. */
6127int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6128
6129/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6130 inside strings and character constants. */
6131#define FOO(x) 'x'
6132int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6133
6134int test (int i, double x);
6135struct s1 {int (*f) (int a);};
6136struct s2 {int (*f) (double a);};
6137int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6138int argc;
6139char **argv;
6140int
6141main ()
6142{
6143return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6144 ;
6145 return 0;
6146}
6147_ACEOF
6148for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6149 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6150do
6151 CC="$ac_save_CC $ac_arg"
6152 rm -f conftest.$ac_objext
6153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6167 { (case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_try") 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006186 ac_cv_prog_cc_c89=$ac_arg
6187else
6188 echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191
6192fi
6193
6194rm -f core conftest.err conftest.$ac_objext
6195 test "x$ac_cv_prog_cc_c89" != "xno" && break
6196done
6197rm -f conftest.$ac_ext
6198CC=$ac_save_CC
6199
6200fi
6201# AC_CACHE_VAL
6202case "x$ac_cv_prog_cc_c89" in
6203 x)
6204 { echo "$as_me:$LINENO: result: none needed" >&5
6205echo "${ECHO_T}none needed" >&6; } ;;
6206 xno)
6207 { echo "$as_me:$LINENO: result: unsupported" >&5
6208echo "${ECHO_T}unsupported" >&6; } ;;
6209 *)
6210 CC="$CC $ac_cv_prog_cc_c89"
6211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6212echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6213esac
6214
6215
6216ac_ext=c
6217ac_cpp='$CPP $CPPFLAGS'
6218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221
6222ac_ext=cpp
6223ac_cpp='$CXXCPP $CPPFLAGS'
6224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6227if test -z "$CXX"; then
6228 if test -n "$CCC"; then
6229 CXX=$CCC
6230 else
6231 if test -n "$ac_tool_prefix"; then
6232 for ac_prog in g++
6233 do
6234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238if test "${ac_cv_prog_CXX+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240else
6241 if test -n "$CXX"; then
6242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006250 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 +00006251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255done
6256done
6257IFS=$as_save_IFS
6258
6259fi
6260fi
6261CXX=$ac_cv_prog_CXX
6262if test -n "$CXX"; then
6263 { echo "$as_me:$LINENO: result: $CXX" >&5
6264echo "${ECHO_T}$CXX" >&6; }
6265else
6266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
6268fi
6269
6270
6271 test -n "$CXX" && break
6272 done
6273fi
6274if test -z "$CXX"; then
6275 ac_ct_CXX=$CXX
6276 for ac_prog in g++
6277do
6278 # Extract the first word of "$ac_prog", so it can be a program name with args.
6279set dummy $ac_prog; ac_word=$2
6280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285 if test -n "$ac_ct_CXX"; then
6286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006294 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 +00006295 ac_cv_prog_ac_ct_CXX="$ac_prog"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6306if test -n "$ac_ct_CXX"; then
6307 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6308echo "${ECHO_T}$ac_ct_CXX" >&6; }
6309else
6310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
6312fi
6313
6314
6315 test -n "$ac_ct_CXX" && break
6316done
6317
6318 if test "x$ac_ct_CXX" = x; then
6319 CXX="g++"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322yes:)
6323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6324whose name does not start with the host triplet. If you think this
6325configuration is useful to you, please write to autoconf@gnu.org." >&5
6326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6327whose name does not start with the host triplet. If you think this
6328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331 CXX=$ac_ct_CXX
6332 fi
6333fi
6334
6335 fi
6336fi
6337# Provide some information about the compiler.
6338echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6339ac_compiler=`set X $ac_compile; echo $2`
6340{ (ac_try="$ac_compiler --version >&5"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compiler --version >&5") 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }
6350{ (ac_try="$ac_compiler -v >&5"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compiler -v >&5") 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }
6360{ (ac_try="$ac_compiler -V >&5"
6361case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364esac
6365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compiler -V >&5") 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }
6370
6371{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6372echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6373if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h. */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h. */
6382
6383int
6384main ()
6385{
6386#ifndef __GNUC__
6387 choke me
6388#endif
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (ac_try="$ac_compile"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6409 { (case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_try") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006428 ac_compiler_gnu=yes
6429else
6430 echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_compiler_gnu=no
6434fi
6435
6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6438
6439fi
6440{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6441echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6442GXX=`test $ac_compiler_gnu = yes && echo yes`
6443ac_test_CXXFLAGS=${CXXFLAGS+set}
6444ac_save_CXXFLAGS=$CXXFLAGS
6445{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6446echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6447if test "${ac_cv_prog_cxx_g+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6451 ac_cxx_werror_flag=yes
6452 ac_cv_prog_cxx_g=no
6453 CXXFLAGS="-g"
6454 cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h. */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h. */
6460
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (ac_try="$ac_compile"
6471case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487esac
6488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006503 ac_cv_prog_cxx_g=yes
6504else
6505 echo "$as_me: failed program was:" >&5
6506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 CXXFLAGS=""
6509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h. */
6515
6516int
6517main ()
6518{
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524rm -f conftest.$ac_objext
6525if { (ac_try="$ac_compile"
6526case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6539 { (case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_try") 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; } &&
6548 { ac_try='test -s conftest.$ac_objext'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006558 :
6559else
6560 echo "$as_me: failed program was:" >&5
6561sed 's/^/| /' conftest.$ac_ext >&5
6562
6563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6564 CXXFLAGS="-g"
6565 cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571
6572int
6573main ()
6574{
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (ac_try="$ac_compile"
6582case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6595 { (case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598esac
6599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_try") 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608esac
6609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_try") 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006614 ac_cv_prog_cxx_g=yes
6615else
6616 echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
6620fi
6621
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623fi
6624
6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626fi
6627
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6630fi
6631{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6632echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6633if test "$ac_test_CXXFLAGS" = set; then
6634 CXXFLAGS=$ac_save_CXXFLAGS
6635elif test $ac_cv_prog_cxx_g = yes; then
6636 if test "$GXX" = yes; then
6637 CXXFLAGS="-g -O2"
6638 else
6639 CXXFLAGS="-g"
6640 fi
6641else
6642 if test "$GXX" = yes; then
6643 CXXFLAGS="-O2"
6644 else
6645 CXXFLAGS=
6646 fi
6647fi
6648ac_ext=c
6649ac_cpp='$CPP $CPPFLAGS'
6650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6652ac_compiler_gnu=$ac_cv_c_compiler_gnu
6653
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006654
6655{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6656echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6657if test "${lt_cv_path_NM+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 if test -n "$NM"; then
6661 # Let the user override the test.
6662 lt_cv_path_NM="$NM"
6663else
6664 lt_nm_to_check="${ac_tool_prefix}nm"
6665 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6666 lt_nm_to_check="$lt_nm_to_check nm"
6667 fi
6668 for lt_tmp_nm in $lt_nm_to_check; do
6669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6670 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6671 IFS="$lt_save_ifs"
6672 test -z "$ac_dir" && ac_dir=.
6673 tmp_nm="$ac_dir/$lt_tmp_nm"
6674 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6675 # Check to see if the nm accepts a BSD-compat flag.
6676 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6677 # nm: unknown option "B" ignored
6678 # Tru64's nm complains that /dev/null is an invalid object file
6679 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6680 */dev/null* | *'Invalid file or object type'*)
6681 lt_cv_path_NM="$tmp_nm -B"
6682 break
6683 ;;
6684 *)
6685 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6686 */dev/null*)
6687 lt_cv_path_NM="$tmp_nm -p"
6688 break
6689 ;;
6690 *)
6691 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6692 continue # so that we can try to find one that supports BSD flags
6693 ;;
6694 esac
6695 ;;
6696 esac
6697 fi
6698 done
6699 IFS="$lt_save_ifs"
6700 done
6701 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6702fi
6703fi
6704{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6705echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6706NM="$lt_cv_path_NM"
6707
6708
6709
6710{ echo "$as_me:$LINENO: checking for GNU make" >&5
6711echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6712if test "${llvm_cv_gnu_make_command+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715 llvm_cv_gnu_make_command=''
6716 for a in "$MAKE" make gmake gnumake ; do
6717 if test -z "$a" ; then continue ; fi ;
6718 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6719 then
6720 llvm_cv_gnu_make_command=$a ;
6721 break;
6722 fi
6723 done
6724fi
6725{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6726echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6727 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6728 ifGNUmake='' ;
6729 else
6730 ifGNUmake='#' ;
6731 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6732echo "${ECHO_T}\"Not found\"" >&6; };
6733 fi
6734
6735
6736{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6737echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6738LN_S=$as_ln_s
6739if test "$LN_S" = "ln -s"; then
6740 { echo "$as_me:$LINENO: result: yes" >&5
6741echo "${ECHO_T}yes" >&6; }
6742else
6743 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6744echo "${ECHO_T}no, using $LN_S" >&6; }
6745fi
6746
6747# Extract the first word of "cmp", so it can be a program name with args.
6748set dummy cmp; ac_word=$2
6749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751if test "${ac_cv_path_CMP+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 case $CMP in
6755 [\\/]* | ?:[\\/]*)
6756 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6757 ;;
6758 *)
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006765 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 +00006766 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6769 fi
6770done
6771done
6772IFS=$as_save_IFS
6773
6774 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6775 ;;
6776esac
6777fi
6778CMP=$ac_cv_path_CMP
6779if test -n "$CMP"; then
6780 { echo "$as_me:$LINENO: result: $CMP" >&5
6781echo "${ECHO_T}$CMP" >&6; }
6782else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
6785fi
6786
6787
6788# Extract the first word of "cp", so it can be a program name with args.
6789set dummy cp; ac_word=$2
6790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792if test "${ac_cv_path_CP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795 case $CP in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006806 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 +00006807 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
6813IFS=$as_save_IFS
6814
6815 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6816 ;;
6817esac
6818fi
6819CP=$ac_cv_path_CP
6820if test -n "$CP"; then
6821 { echo "$as_me:$LINENO: result: $CP" >&5
6822echo "${ECHO_T}$CP" >&6; }
6823else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
6826fi
6827
6828
6829# Extract the first word of "date", so it can be a program name with args.
6830set dummy date; ac_word=$2
6831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833if test "${ac_cv_path_DATE+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835else
6836 case $DATE in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006847 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 +00006848 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852done
6853done
6854IFS=$as_save_IFS
6855
6856 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6857 ;;
6858esac
6859fi
6860DATE=$ac_cv_path_DATE
6861if test -n "$DATE"; then
6862 { echo "$as_me:$LINENO: result: $DATE" >&5
6863echo "${ECHO_T}$DATE" >&6; }
6864else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6; }
6867fi
6868
6869
6870# Extract the first word of "find", so it can be a program name with args.
6871set dummy find; ac_word=$2
6872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874if test "${ac_cv_path_FIND+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 case $FIND in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006888 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 +00006889 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894done
6895IFS=$as_save_IFS
6896
6897 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6898 ;;
6899esac
6900fi
6901FIND=$ac_cv_path_FIND
6902if test -n "$FIND"; then
6903 { echo "$as_me:$LINENO: result: $FIND" >&5
6904echo "${ECHO_T}$FIND" >&6; }
6905else
6906 { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
6908fi
6909
6910
6911# Extract the first word of "grep", so it can be a program name with args.
6912set dummy grep; ac_word=$2
6913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_GREP+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918 case $GREP in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006929 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 +00006930 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935done
6936IFS=$as_save_IFS
6937
6938 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6939 ;;
6940esac
6941fi
6942GREP=$ac_cv_path_GREP
6943if test -n "$GREP"; then
6944 { echo "$as_me:$LINENO: result: $GREP" >&5
6945echo "${ECHO_T}$GREP" >&6; }
6946else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
6949fi
6950
6951
6952# Extract the first word of "mkdir", so it can be a program name with args.
6953set dummy mkdir; ac_word=$2
6954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956if test "${ac_cv_path_MKDIR+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 case $MKDIR in
6960 [\\/]* | ?:[\\/]*)
6961 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6962 ;;
6963 *)
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006970 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 +00006971 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976done
6977IFS=$as_save_IFS
6978
6979 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6980 ;;
6981esac
6982fi
6983MKDIR=$ac_cv_path_MKDIR
6984if test -n "$MKDIR"; then
6985 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6986echo "${ECHO_T}$MKDIR" >&6; }
6987else
6988 { echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6; }
6990fi
6991
6992
6993# Extract the first word of "mv", so it can be a program name with args.
6994set dummy mv; ac_word=$2
6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997if test "${ac_cv_path_MV+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 case $MV in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7003 ;;
7004 *)
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007011 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 +00007012 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017done
7018IFS=$as_save_IFS
7019
7020 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7021 ;;
7022esac
7023fi
7024MV=$ac_cv_path_MV
7025if test -n "$MV"; then
7026 { echo "$as_me:$LINENO: result: $MV" >&5
7027echo "${ECHO_T}$MV" >&6; }
7028else
7029 { echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6; }
7031fi
7032
7033
7034if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_prog_RANLIB+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 if test -n "$RANLIB"; then
7043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007051 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 +00007052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062RANLIB=$ac_cv_prog_RANLIB
7063if test -n "$RANLIB"; then
7064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7065echo "${ECHO_T}$RANLIB" >&6; }
7066else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071
7072fi
7073if test -z "$ac_cv_prog_RANLIB"; then
7074 ac_ct_RANLIB=$RANLIB
7075 # Extract the first word of "ranlib", so it can be a program name with args.
7076set dummy ranlib; ac_word=$2
7077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 if test -n "$ac_ct_RANLIB"; then
7083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7084else
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007091 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 +00007092 ac_cv_prog_ac_ct_RANLIB="ranlib"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097done
7098IFS=$as_save_IFS
7099
7100fi
7101fi
7102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7103if test -n "$ac_ct_RANLIB"; then
7104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7105echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7106else
7107 { echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6; }
7109fi
7110
7111 if test "x$ac_ct_RANLIB" = x; then
7112 RANLIB=":"
7113 else
7114 case $cross_compiling:$ac_tool_warned in
7115yes:)
7116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7117whose name does not start with the host triplet. If you think this
7118configuration is useful to you, please write to autoconf@gnu.org." >&5
7119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7120whose name does not start with the host triplet. If you think this
7121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7122ac_tool_warned=yes ;;
7123esac
7124 RANLIB=$ac_ct_RANLIB
7125 fi
7126else
7127 RANLIB="$ac_cv_prog_RANLIB"
7128fi
7129
7130# Extract the first word of "rm", so it can be a program name with args.
7131set dummy rm; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_path_RM+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 case $RM in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007148 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 +00007149 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7158 ;;
7159esac
7160fi
7161RM=$ac_cv_path_RM
7162if test -n "$RM"; then
7163 { echo "$as_me:$LINENO: result: $RM" >&5
7164echo "${ECHO_T}$RM" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171# Extract the first word of "sed", so it can be a program name with args.
7172set dummy sed; ac_word=$2
7173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175if test "${ac_cv_path_SED+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 case $SED in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007189 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 +00007190 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7199 ;;
7200esac
7201fi
7202SED=$ac_cv_path_SED
7203if test -n "$SED"; then
7204 { echo "$as_me:$LINENO: result: $SED" >&5
7205echo "${ECHO_T}$SED" >&6; }
7206else
7207 { echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6; }
7209fi
7210
7211
7212# Extract the first word of "tar", so it can be a program name with args.
7213set dummy tar; ac_word=$2
7214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216if test "${ac_cv_path_TAR+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 case $TAR in
7220 [\\/]* | ?:[\\/]*)
7221 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7222 ;;
7223 *)
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007230 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 +00007231 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235done
7236done
7237IFS=$as_save_IFS
7238
7239 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7240 ;;
7241esac
7242fi
7243TAR=$ac_cv_path_TAR
7244if test -n "$TAR"; then
7245 { echo "$as_me:$LINENO: result: $TAR" >&5
7246echo "${ECHO_T}$TAR" >&6; }
7247else
7248 { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
7250fi
7251
7252
7253# Extract the first word of "pwd", so it can be a program name with args.
7254set dummy pwd; ac_word=$2
7255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257if test "${ac_cv_path_BINPWD+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259else
7260 case $BINPWD in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007271 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 +00007272 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277done
7278IFS=$as_save_IFS
7279
7280 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7281 ;;
7282esac
7283fi
7284BINPWD=$ac_cv_path_BINPWD
7285if test -n "$BINPWD"; then
7286 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7287echo "${ECHO_T}$BINPWD" >&6; }
7288else
7289 { echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6; }
7291fi
7292
7293
7294
7295# Extract the first word of "Graphviz", so it can be a program name with args.
7296set dummy Graphviz; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 case $GRAPHVIZ in
7303 [\\/]* | ?:[\\/]*)
7304 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7305 ;;
7306 *)
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007313 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 +00007314 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320IFS=$as_save_IFS
7321
7322 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7323 ;;
7324esac
7325fi
7326GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7327if test -n "$GRAPHVIZ"; then
7328 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7329echo "${ECHO_T}$GRAPHVIZ" >&6; }
7330else
7331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
7333fi
7334
7335
7336if test "$GRAPHVIZ" != "echo Graphviz" ; then
7337
7338cat >>confdefs.h <<\_ACEOF
7339#define HAVE_GRAPHVIZ 1
7340_ACEOF
7341
7342 if test "$llvm_cv_os_type" = "MingW" ; then
7343 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7344 fi
7345
7346cat >>confdefs.h <<_ACEOF
7347#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7348_ACEOF
7349
7350fi
7351# Extract the first word of "dot", so it can be a program name with args.
7352set dummy dot; ac_word=$2
7353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355if test "${ac_cv_path_DOT+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 case $DOT in
7359 [\\/]* | ?:[\\/]*)
7360 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7361 ;;
7362 *)
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007369 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 +00007370 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376IFS=$as_save_IFS
7377
7378 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7379 ;;
7380esac
7381fi
7382DOT=$ac_cv_path_DOT
7383if test -n "$DOT"; then
7384 { echo "$as_me:$LINENO: result: $DOT" >&5
7385echo "${ECHO_T}$DOT" >&6; }
7386else
7387 { echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6; }
7389fi
7390
7391
7392if test "$DOT" != "echo dot" ; then
7393
7394cat >>confdefs.h <<\_ACEOF
7395#define HAVE_DOT 1
7396_ACEOF
7397
7398 if test "$llvm_cv_os_type" = "MingW" ; then
7399 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7400 fi
7401
7402cat >>confdefs.h <<_ACEOF
7403#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7404_ACEOF
7405
7406fi
David Greenedb740ef2009-07-09 17:16:26 +00007407# Extract the first word of "fdp", so it can be a program name with args.
7408set dummy fdp; ac_word=$2
7409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411if test "${ac_cv_path_FDP+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414 case $FDP in
7415 [\\/]* | ?:[\\/]*)
7416 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7417 ;;
7418 *)
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430done
7431done
7432IFS=$as_save_IFS
7433
7434 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7435 ;;
7436esac
7437fi
7438FDP=$ac_cv_path_FDP
7439if test -n "$FDP"; then
7440 { echo "$as_me:$LINENO: result: $FDP" >&5
7441echo "${ECHO_T}$FDP" >&6; }
7442else
7443 { echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6; }
7445fi
7446
7447
7448if test "$FDP" != "echo fdp" ; then
7449
7450cat >>confdefs.h <<\_ACEOF
7451#define HAVE_FDP 1
7452_ACEOF
7453
7454 if test "$llvm_cv_os_type" = "MingW" ; then
7455 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7456 fi
7457
7458cat >>confdefs.h <<_ACEOF
7459#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7460_ACEOF
7461
7462fi
7463# Extract the first word of "neato", so it can be a program name with args.
7464set dummy neato; ac_word=$2
7465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_NEATO+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 case $NEATO in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7473 ;;
7474 *)
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7491 ;;
7492esac
7493fi
7494NEATO=$ac_cv_path_NEATO
7495if test -n "$NEATO"; then
7496 { echo "$as_me:$LINENO: result: $NEATO" >&5
7497echo "${ECHO_T}$NEATO" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504if test "$NEATO" != "echo neato" ; then
7505
7506cat >>confdefs.h <<\_ACEOF
7507#define HAVE_NEATO 1
7508_ACEOF
7509
7510 if test "$llvm_cv_os_type" = "MingW" ; then
7511 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7512 fi
7513
7514cat >>confdefs.h <<_ACEOF
7515#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7516_ACEOF
7517
7518fi
7519# Extract the first word of "twopi", so it can be a program name with args.
7520set dummy twopi; ac_word=$2
7521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523if test "${ac_cv_path_TWOPI+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526 case $TWOPI in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543done
7544IFS=$as_save_IFS
7545
7546 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7547 ;;
7548esac
7549fi
7550TWOPI=$ac_cv_path_TWOPI
7551if test -n "$TWOPI"; then
7552 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7553echo "${ECHO_T}$TWOPI" >&6; }
7554else
7555 { echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6; }
7557fi
7558
7559
7560if test "$TWOPI" != "echo twopi" ; then
7561
7562cat >>confdefs.h <<\_ACEOF
7563#define HAVE_TWOPI 1
7564_ACEOF
7565
7566 if test "$llvm_cv_os_type" = "MingW" ; then
7567 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7568 fi
7569
7570cat >>confdefs.h <<_ACEOF
7571#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7572_ACEOF
7573
7574fi
7575# Extract the first word of "circo", so it can be a program name with args.
7576set dummy circo; ac_word=$2
7577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_CIRCO+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 case $CIRCO in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599done
7600IFS=$as_save_IFS
7601
7602 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7603 ;;
7604esac
7605fi
7606CIRCO=$ac_cv_path_CIRCO
7607if test -n "$CIRCO"; then
7608 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7609echo "${ECHO_T}$CIRCO" >&6; }
7610else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616if test "$CIRCO" != "echo circo" ; then
7617
7618cat >>confdefs.h <<\_ACEOF
7619#define HAVE_CIRCO 1
7620_ACEOF
7621
7622 if test "$llvm_cv_os_type" = "MingW" ; then
7623 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7624 fi
7625
7626cat >>confdefs.h <<_ACEOF
7627#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7628_ACEOF
7629
7630fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007631for ac_prog in gv gsview32
7632do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634set dummy $ac_prog; ac_word=$2
7635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_GV+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 case $GV in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007651 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 +00007652 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657done
7658IFS=$as_save_IFS
7659
7660 ;;
7661esac
7662fi
7663GV=$ac_cv_path_GV
7664if test -n "$GV"; then
7665 { echo "$as_me:$LINENO: result: $GV" >&5
7666echo "${ECHO_T}$GV" >&6; }
7667else
7668 { echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6; }
7670fi
7671
7672
7673 test -n "$GV" && break
7674done
7675test -n "$GV" || GV="echo gv"
7676
7677if test "$GV" != "echo gv" ; then
7678
7679cat >>confdefs.h <<\_ACEOF
7680#define HAVE_GV 1
7681_ACEOF
7682
7683 if test "$llvm_cv_os_type" = "MingW" ; then
7684 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685 fi
7686
7687cat >>confdefs.h <<_ACEOF
7688#define LLVM_PATH_GV "$GV${EXEEXT}"
7689_ACEOF
7690
7691fi
7692# Extract the first word of "dotty", so it can be a program name with args.
7693set dummy dotty; ac_word=$2
7694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696if test "${ac_cv_path_DOTTY+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699 case $DOTTY in
7700 [\\/]* | ?:[\\/]*)
7701 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7702 ;;
7703 *)
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007710 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 +00007711 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715done
7716done
7717IFS=$as_save_IFS
7718
7719 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7720 ;;
7721esac
7722fi
7723DOTTY=$ac_cv_path_DOTTY
7724if test -n "$DOTTY"; then
7725 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7726echo "${ECHO_T}$DOTTY" >&6; }
7727else
7728 { echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6; }
7730fi
7731
7732
7733if test "$DOTTY" != "echo dotty" ; then
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define HAVE_DOTTY 1
7737_ACEOF
7738
7739 if test "$llvm_cv_os_type" = "MingW" ; then
7740 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741 fi
7742
7743cat >>confdefs.h <<_ACEOF
7744#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7745_ACEOF
7746
7747fi
7748
7749
7750# Extract the first word of "perl", so it can be a program name with args.
7751set dummy perl; ac_word=$2
7752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754if test "${ac_cv_path_PERL+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 case $PERL in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007768 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 +00007769 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775IFS=$as_save_IFS
7776
7777 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7778 ;;
7779esac
7780fi
7781PERL=$ac_cv_path_PERL
7782if test -n "$PERL"; then
7783 { echo "$as_me:$LINENO: result: $PERL" >&5
7784echo "${ECHO_T}$PERL" >&6; }
7785else
7786 { echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6; }
7788fi
7789
7790
7791if test "$PERL" != "none"; then
7792 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7793echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7794 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7795 { echo "$as_me:$LINENO: result: yes" >&5
7796echo "${ECHO_T}yes" >&6; }
7797 else
7798 PERL=none
7799 { echo "$as_me:$LINENO: result: not found" >&5
7800echo "${ECHO_T}not found" >&6; }
7801 fi
7802fi
7803
7804
7805if test x"$PERL" = xnone; then
7806 HAVE_PERL=0
7807
7808 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7809echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7810 { (exit 1); exit 1; }; }
7811else
7812 HAVE_PERL=1
7813
7814fi
7815
7816# Find a good install program. We prefer a C program (faster),
7817# so one script is as good as another. But avoid the broken or
7818# incompatible versions:
7819# SysV /etc/install, /usr/sbin/install
7820# SunOS /usr/etc/install
7821# IRIX /sbin/install
7822# AIX /bin/install
7823# AmigaOS /C/install, which installs bootblocks on floppy discs
7824# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7825# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7826# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7827# OS/2's system install, which has a completely different semantic
7828# ./install, which can be erroneously created by make from ./install.sh.
7829{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7830echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7831if test -z "$INSTALL"; then
7832if test "${ac_cv_path_install+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 # Account for people who put trailing slashes in PATH elements.
7841case $as_dir/ in
7842 ./ | .// | /cC/* | \
7843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7844 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7845 /usr/ucb/* ) ;;
7846 *)
7847 # OSF1 and SCO ODT 3.0 have their own names for install.
7848 # Don't use installbsd from OSF since it installs stuff as root
7849 # by default.
7850 for ac_prog in ginstall scoinst install; do
7851 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007852 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 +00007853 if test $ac_prog = install &&
7854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7855 # AIX install. It has an incompatible calling convention.
7856 :
7857 elif test $ac_prog = install &&
7858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7859 # program-specific install script used by HP pwplus--don't use.
7860 :
7861 else
7862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7863 break 3
7864 fi
7865 fi
7866 done
7867 done
7868 ;;
7869esac
7870done
7871IFS=$as_save_IFS
7872
7873
7874fi
7875 if test "${ac_cv_path_install+set}" = set; then
7876 INSTALL=$ac_cv_path_install
7877 else
7878 # As a last resort, use the slow shell script. Don't cache a
7879 # value for INSTALL within a source directory, because that will
7880 # break other packages using the cache if that directory is
7881 # removed, or if the value is a relative name.
7882 INSTALL=$ac_install_sh
7883 fi
7884fi
7885{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7886echo "${ECHO_T}$INSTALL" >&6; }
7887
7888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7889# It thinks the first close brace ends the variable substitution.
7890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7891
7892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7893
7894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7895
7896
7897# Extract the first word of "bzip2", so it can be a program name with args.
7898set dummy bzip2; ac_word=$2
7899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901if test "${ac_cv_path_BZIP2+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 case $BZIP2 in
7905 [\\/]* | ?:[\\/]*)
7906 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7907 ;;
7908 *)
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007915 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 +00007916 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921done
7922IFS=$as_save_IFS
7923
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007924 ;;
7925esac
7926fi
7927BZIP2=$ac_cv_path_BZIP2
7928if test -n "$BZIP2"; then
7929 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7930echo "${ECHO_T}$BZIP2" >&6; }
7931else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
7934fi
7935
7936
7937# Extract the first word of "doxygen", so it can be a program name with args.
7938set dummy doxygen; ac_word=$2
7939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7941if test "${ac_cv_path_DOXYGEN+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944 case $DOXYGEN in
7945 [\\/]* | ?:[\\/]*)
7946 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7947 ;;
7948 *)
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007955 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 +00007956 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960done
7961done
7962IFS=$as_save_IFS
7963
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007964 ;;
7965esac
7966fi
7967DOXYGEN=$ac_cv_path_DOXYGEN
7968if test -n "$DOXYGEN"; then
7969 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7970echo "${ECHO_T}$DOXYGEN" >&6; }
7971else
7972 { echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6; }
7974fi
7975
7976
7977# Extract the first word of "groff", so it can be a program name with args.
7978set dummy groff; ac_word=$2
7979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981if test "${ac_cv_path_GROFF+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 case $GROFF in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007995 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 +00007996 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001done
8002IFS=$as_save_IFS
8003
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008004 ;;
8005esac
8006fi
8007GROFF=$ac_cv_path_GROFF
8008if test -n "$GROFF"; then
8009 { echo "$as_me:$LINENO: result: $GROFF" >&5
8010echo "${ECHO_T}$GROFF" >&6; }
8011else
8012 { echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6; }
8014fi
8015
8016
8017# Extract the first word of "gzip", so it can be a program name with args.
8018set dummy gzip; ac_word=$2
8019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021if test "${ac_cv_path_GZIP+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 case $GZIP in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8027 ;;
8028 *)
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008035 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 +00008036 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041done
8042IFS=$as_save_IFS
8043
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008044 ;;
8045esac
8046fi
8047GZIP=$ac_cv_path_GZIP
8048if test -n "$GZIP"; then
8049 { echo "$as_me:$LINENO: result: $GZIP" >&5
8050echo "${ECHO_T}$GZIP" >&6; }
8051else
8052 { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
8054fi
8055
8056
8057# Extract the first word of "pod2html", so it can be a program name with args.
8058set dummy pod2html; ac_word=$2
8059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061if test "${ac_cv_path_POD2HTML+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 case $POD2HTML in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008075 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 +00008076 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080done
8081done
8082IFS=$as_save_IFS
8083
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008084 ;;
8085esac
8086fi
8087POD2HTML=$ac_cv_path_POD2HTML
8088if test -n "$POD2HTML"; then
8089 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8090echo "${ECHO_T}$POD2HTML" >&6; }
8091else
8092 { echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6; }
8094fi
8095
8096
8097# Extract the first word of "pod2man", so it can be a program name with args.
8098set dummy pod2man; ac_word=$2
8099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_POD2MAN+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 case $POD2MAN in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008115 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 +00008116 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120done
8121done
8122IFS=$as_save_IFS
8123
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008124 ;;
8125esac
8126fi
8127POD2MAN=$ac_cv_path_POD2MAN
8128if test -n "$POD2MAN"; then
8129 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8130echo "${ECHO_T}$POD2MAN" >&6; }
8131else
8132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
8134fi
8135
8136
8137# Extract the first word of "runtest", so it can be a program name with args.
8138set dummy runtest; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_RUNTEST+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 case $RUNTEST in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008155 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 +00008156 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162IFS=$as_save_IFS
8163
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008164 ;;
8165esac
8166fi
8167RUNTEST=$ac_cv_path_RUNTEST
8168if test -n "$RUNTEST"; then
8169 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8170echo "${ECHO_T}$RUNTEST" >&6; }
8171else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
8177
8178no_itcl=true
8179{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8180echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8181
8182# Check whether --with-tclinclude was given.
8183if test "${with_tclinclude+set}" = set; then
8184 withval=$with_tclinclude; with_tclinclude=${withval}
8185else
8186 with_tclinclude=''
8187fi
8188
8189if test "${ac_cv_path_tclsh+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192
8193if test x"${with_tclinclude}" != x ; then
8194 if test -f ${with_tclinclude}/tclsh ; then
8195 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8196 elif test -f ${with_tclinclude}/src/tclsh ; then
8197 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8198 else
8199 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8200echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8201 { (exit 1); exit 1; }; }
8202 fi
8203fi
8204
8205if test x"${ac_cv_path_tclsh}" = x ; then
8206 { echo "$as_me:$LINENO: result: none" >&5
8207echo "${ECHO_T}none" >&6; }
8208 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
8209do
8210 # Extract the first word of "$ac_prog", so it can be a program name with args.
8211set dummy $ac_prog; ac_word=$2
8212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214if test "${ac_cv_path_TCLSH+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 case $TCLSH in
8218 [\\/]* | ?:[\\/]*)
8219 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8220 ;;
8221 *)
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008228 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 +00008229 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234done
8235IFS=$as_save_IFS
8236
8237 ;;
8238esac
8239fi
8240TCLSH=$ac_cv_path_TCLSH
8241if test -n "$TCLSH"; then
8242 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8243echo "${ECHO_T}$TCLSH" >&6; }
8244else
8245 { echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6; }
8247fi
8248
8249
8250 test -n "$TCLSH" && break
8251done
8252
8253 if test x"${TCLSH}" = x ; then
8254 ac_cv_path_tclsh='';
8255 else
8256 ac_cv_path_tclsh="${TCLSH}";
8257 fi
8258else
8259 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8260echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8261 TCLSH="${ac_cv_path_tclsh}"
8262
8263fi
8264
8265fi
8266
8267# Extract the first word of "zip", so it can be a program name with args.
8268set dummy zip; ac_word=$2
8269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271if test "${ac_cv_path_ZIP+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 case $ZIP in
8275 [\\/]* | ?:[\\/]*)
8276 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8277 ;;
8278 *)
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008285 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 +00008286 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290done
8291done
8292IFS=$as_save_IFS
8293
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008294 ;;
8295esac
8296fi
8297ZIP=$ac_cv_path_ZIP
8298if test -n "$ZIP"; then
8299 { echo "$as_me:$LINENO: result: $ZIP" >&5
8300echo "${ECHO_T}$ZIP" >&6; }
8301else
8302 { echo "$as_me:$LINENO: result: no" >&5
8303echo "${ECHO_T}no" >&6; }
8304fi
8305
8306
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008307for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008308do
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313if test "${ac_cv_path_OCAMLC+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316 case $OCAMLC in
8317 [\\/]* | ?:[\\/]*)
8318 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8319 ;;
8320 *)
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008327 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 +00008328 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332done
8333done
8334IFS=$as_save_IFS
8335
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008336 ;;
8337esac
8338fi
8339OCAMLC=$ac_cv_path_OCAMLC
8340if test -n "$OCAMLC"; then
8341 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8342echo "${ECHO_T}$OCAMLC" >&6; }
8343else
8344 { echo "$as_me:$LINENO: result: no" >&5
8345echo "${ECHO_T}no" >&6; }
8346fi
8347
8348
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008349 test -n "$OCAMLC" && break
8350done
8351
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008352for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
8361 case $OCAMLOPT in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8364 ;;
8365 *)
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008372 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 +00008373 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378done
8379IFS=$as_save_IFS
8380
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008381 ;;
8382esac
8383fi
8384OCAMLOPT=$ac_cv_path_OCAMLOPT
8385if test -n "$OCAMLOPT"; then
8386 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8387echo "${ECHO_T}$OCAMLOPT" >&6; }
8388else
8389 { echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6; }
8391fi
8392
8393
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008394 test -n "$OCAMLOPT" && break
8395done
8396
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008397for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008398do
8399 # Extract the first word of "$ac_prog", so it can be a program name with args.
8400set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8403if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406 case $OCAMLDEP in
8407 [\\/]* | ?:[\\/]*)
8408 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8409 ;;
8410 *)
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008417 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 +00008418 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423done
8424IFS=$as_save_IFS
8425
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008426 ;;
8427esac
8428fi
8429OCAMLDEP=$ac_cv_path_OCAMLDEP
8430if test -n "$OCAMLDEP"; then
8431 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8432echo "${ECHO_T}$OCAMLDEP" >&6; }
8433else
8434 { echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6; }
8436fi
8437
8438
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008439 test -n "$OCAMLDEP" && break
8440done
8441
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008442for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008443do
8444 # Extract the first word of "$ac_prog", so it can be a program name with args.
8445set dummy $ac_prog; ac_word=$2
8446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8448if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 case $OCAMLDOC in
8452 [\\/]* | ?:[\\/]*)
8453 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8454 ;;
8455 *)
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457for as_dir in $PATH
8458do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008462 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 +00008463 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467done
8468done
8469IFS=$as_save_IFS
8470
8471 ;;
8472esac
8473fi
8474OCAMLDOC=$ac_cv_path_OCAMLDOC
8475if test -n "$OCAMLDOC"; then
8476 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8477echo "${ECHO_T}$OCAMLDOC" >&6; }
8478else
8479 { echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6; }
8481fi
8482
8483
8484 test -n "$OCAMLDOC" && break
8485done
8486
Edwin Török20176752008-10-22 09:56:27 +00008487for ac_prog in gas as
8488do
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490set dummy $ac_prog; ac_word=$2
8491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493if test "${ac_cv_path_GAS+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 case $GAS in
8497 [\\/]* | ?:[\\/]*)
8498 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8499 ;;
8500 *)
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008507 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 +00008508 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8511 fi
8512done
8513done
8514IFS=$as_save_IFS
8515
8516 ;;
8517esac
8518fi
8519GAS=$ac_cv_path_GAS
8520if test -n "$GAS"; then
8521 { echo "$as_me:$LINENO: result: $GAS" >&5
8522echo "${ECHO_T}$GAS" >&6; }
8523else
8524 { echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6; }
8526fi
8527
8528
8529 test -n "$GAS" && break
8530done
8531
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008532
8533{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8534echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8535if test "${llvm_cv_link_use_r+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538 ac_ext=c
8539ac_cpp='$CPP $CPPFLAGS'
8540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543
8544 oldcflags="$CFLAGS"
8545 CFLAGS="$CFLAGS -Wl,-R."
8546 cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552
8553int
8554main ()
8555{
8556int main() { return 0; }
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext conftest$ac_exeext
8562if { (ac_try="$ac_link"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_link") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
8580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_try") 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; } &&
8585 { ac_try='test -s conftest$ac_exeext'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008595 llvm_cv_link_use_r=yes
8596else
8597 echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600 llvm_cv_link_use_r=no
8601fi
8602
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008603rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008604 conftest$ac_exeext conftest.$ac_ext
8605 CFLAGS="$oldcflags"
8606 ac_ext=c
8607ac_cpp='$CPP $CPPFLAGS'
8608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611
8612
8613fi
8614{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8615echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8616if test "$llvm_cv_link_use_r" = yes ; then
8617
8618cat >>confdefs.h <<\_ACEOF
8619#define HAVE_LINK_R 1
8620_ACEOF
8621
8622 fi
8623
8624
Nick Lewycky6eab6652009-03-05 08:20:44 +00008625{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8626echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8627if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 ac_ext=c
8631ac_cpp='$CPP $CPPFLAGS'
8632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635
8636 oldcflags="$CFLAGS"
8637 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8638 cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h. */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h. */
8644
8645int
8646main ()
8647{
8648int main() { return 0; }
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653rm -f conftest.$ac_objext conftest$ac_exeext
8654if { (ac_try="$ac_link"
8655case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658esac
8659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_link") 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8668 { (case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671esac
8672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_try") 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681esac
8682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_try") 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008687 llvm_cv_link_use_export_dynamic=yes
8688else
8689 echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 llvm_cv_link_use_export_dynamic=no
8693fi
8694
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008695rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6eab6652009-03-05 08:20:44 +00008696 conftest$ac_exeext conftest.$ac_ext
8697 CFLAGS="$oldcflags"
8698 ac_ext=c
8699ac_cpp='$CPP $CPPFLAGS'
8700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703
8704
8705fi
8706{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8707echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8708if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8709
8710cat >>confdefs.h <<\_ACEOF
8711#define HAVE_LINK_EXPORT_DYNAMIC 1
8712_ACEOF
8713
8714 fi
8715
8716
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008717
8718
8719{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8720echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8721if test "${ac_cv_c_const+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724 cat >conftest.$ac_ext <<_ACEOF
8725/* confdefs.h. */
8726_ACEOF
8727cat confdefs.h >>conftest.$ac_ext
8728cat >>conftest.$ac_ext <<_ACEOF
8729/* end confdefs.h. */
8730
8731int
8732main ()
8733{
8734/* FIXME: Include the comments suggested by Paul. */
8735#ifndef __cplusplus
8736 /* Ultrix mips cc rejects this. */
8737 typedef int charset[2];
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008738 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008739 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008740 char const *const *ccp;
8741 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008742 /* NEC SVR4.0.2 mips cc rejects this. */
8743 struct point {int x, y;};
8744 static struct point const zero = {0,0};
8745 /* AIX XL C 1.02.0.0 rejects this.
8746 It does not let you subtract one const X* pointer from another in
8747 an arm of an if-expression whose if-part is not a constant
8748 expression */
8749 const char *g = "string";
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008750 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008751 /* HPUX 7.0 cc rejects these. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008752 ++ccp;
8753 p = (char**) ccp;
8754 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008755 { /* SCO 3.2v4 cc rejects this. */
8756 char *t;
8757 char const *s = 0 ? (char *) 0 : (char const *) 0;
8758
8759 *t++ = 0;
8760 if (s) return 0;
8761 }
8762 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8763 int x[] = {25, 17};
8764 const int *foo = &x[0];
8765 ++foo;
8766 }
8767 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8768 typedef const int *iptr;
8769 iptr p = 0;
8770 ++p;
8771 }
8772 { /* AIX XL C 1.02.0.0 rejects this saying
8773 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8774 struct s { int j; const int *ap[3]; };
8775 struct s *b; b->j = 5;
8776 }
8777 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8778 const int foo = 10;
8779 if (!foo) return 0;
8780 }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008781 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008782#endif
8783
8784 ;
8785 return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (ac_try="$ac_compile"
8790case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793esac
8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008822 ac_cv_c_const=yes
8823else
8824 echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 ac_cv_c_const=no
8828fi
8829
8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831fi
8832{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8833echo "${ECHO_T}$ac_cv_c_const" >&6; }
8834if test $ac_cv_c_const = no; then
8835
8836cat >>confdefs.h <<\_ACEOF
8837#define const
8838_ACEOF
8839
8840fi
8841
8842
8843
8844
8845
8846
8847ac_header_dirent=no
8848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8850{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8851echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 cat >conftest.$ac_ext <<_ACEOF
8856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
8861#include <sys/types.h>
8862#include <$ac_hdr>
8863
8864int
8865main ()
8866{
8867if ((DIR *) 0)
8868return 0;
8869 ;
8870 return 0;
8871}
8872_ACEOF
8873rm -f conftest.$ac_objext
8874if { (ac_try="$ac_compile"
8875case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878esac
8879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888 { (case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891esac
8892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_try") 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest.$ac_objext'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901esac
8902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008907 eval "$as_ac_Header=yes"
8908else
8909 echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 eval "$as_ac_Header=no"
8913fi
8914
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916fi
8917ac_res=`eval echo '${'$as_ac_Header'}'`
8918 { echo "$as_me:$LINENO: result: $ac_res" >&5
8919echo "${ECHO_T}$ac_res" >&6; }
8920if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8923_ACEOF
8924
8925ac_header_dirent=$ac_hdr; break
8926fi
8927
8928done
8929# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8930if test $ac_header_dirent = dirent.h; then
8931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8932echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8933if test "${ac_cv_search_opendir+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935else
8936 ac_func_search_save_LIBS=$LIBS
8937cat >conftest.$ac_ext <<_ACEOF
8938/* confdefs.h. */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h. */
8943
8944/* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947#ifdef __cplusplus
8948extern "C"
8949#endif
8950char opendir ();
8951int
8952main ()
8953{
8954return opendir ();
8955 ;
8956 return 0;
8957}
8958_ACEOF
8959for ac_lib in '' dir; do
8960 if test -z "$ac_lib"; then
8961 ac_res="none required"
8962 else
8963 ac_res=-l$ac_lib
8964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8965 fi
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (ac_try="$ac_link"
8968case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_link") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981 { (case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_try") 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994esac
8995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_try") 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009000 ac_cv_search_opendir=$ac_res
9001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
9004
9005
9006fi
9007
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009008rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009009 conftest$ac_exeext
9010 if test "${ac_cv_search_opendir+set}" = set; then
9011 break
9012fi
9013done
9014if test "${ac_cv_search_opendir+set}" = set; then
9015 :
9016else
9017 ac_cv_search_opendir=no
9018fi
9019rm conftest.$ac_ext
9020LIBS=$ac_func_search_save_LIBS
9021fi
9022{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9023echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9024ac_res=$ac_cv_search_opendir
9025if test "$ac_res" != no; then
9026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9027
9028fi
9029
9030else
9031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9032echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9033if test "${ac_cv_search_opendir+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036 ac_func_search_save_LIBS=$LIBS
9037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043
9044/* Override any GCC internal prototype to avoid an error.
9045 Use char because int might match the return type of a GCC
9046 builtin and then its argument prototype would still apply. */
9047#ifdef __cplusplus
9048extern "C"
9049#endif
9050char opendir ();
9051int
9052main ()
9053{
9054return opendir ();
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059for ac_lib in '' x; do
9060 if test -z "$ac_lib"; then
9061 ac_res="none required"
9062 else
9063 ac_res=-l$ac_lib
9064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9065 fi
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067if { (ac_try="$ac_link"
9068case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9071esac
9072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_link") 2>conftest.er1
9074 ac_status=$?
9075 grep -v '^ *+' conftest.er1 >conftest.err
9076 rm -f conftest.er1
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9081 { (case "(($ac_try" in
9082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083 *) ac_try_echo=$ac_try;;
9084esac
9085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086 (eval "$ac_try") 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094esac
9095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009100 ac_cv_search_opendir=$ac_res
9101else
9102 echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
9105
9106fi
9107
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009108rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009109 conftest$ac_exeext
9110 if test "${ac_cv_search_opendir+set}" = set; then
9111 break
9112fi
9113done
9114if test "${ac_cv_search_opendir+set}" = set; then
9115 :
9116else
9117 ac_cv_search_opendir=no
9118fi
9119rm conftest.$ac_ext
9120LIBS=$ac_func_search_save_LIBS
9121fi
9122{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9123echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9124ac_res=$ac_cv_search_opendir
9125if test "$ac_res" != no; then
9126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9127
9128fi
9129
9130fi
9131
9132
9133for ac_header in dlfcn.h
9134do
9135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9141fi
9142ac_res=`eval echo '${'$as_ac_Header'}'`
9143 { echo "$as_me:$LINENO: result: $ac_res" >&5
9144echo "${ECHO_T}$ac_res" >&6; }
9145else
9146 # Is the header compilable?
9147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9149cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155$ac_includes_default
9156#include <$ac_header>
9157_ACEOF
9158rm -f conftest.$ac_objext
9159if { (ac_try="$ac_compile"
9160case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163esac
9164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173 { (case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176esac
9177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_try") 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009192 ac_header_compiler=yes
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_header_compiler=no
9198fi
9199
9200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202echo "${ECHO_T}$ac_header_compiler" >&6; }
9203
9204# Is the header present?
9205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9207cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213#include <$ac_header>
9214_ACEOF
9215if { (ac_try="$ac_cpp conftest.$ac_ext"
9216case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009227 (exit $ac_status); } >/dev/null; then
9228 if test -s conftest.err; then
9229 ac_cpp_err=$ac_c_preproc_warn_flag
9230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9231 else
9232 ac_cpp_err=
9233 fi
9234else
9235 ac_cpp_err=yes
9236fi
9237if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009238 ac_header_preproc=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243 ac_header_preproc=no
9244fi
9245
9246rm -f conftest.err conftest.$ac_ext
9247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9248echo "${ECHO_T}$ac_header_preproc" >&6; }
9249
9250# So? What about this header?
9251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9252 yes:no: )
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9257 ac_header_preproc=yes
9258 ;;
9259 no:yes:* )
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9272 ( cat <<\_ASBOX
9273## ----------------------------------- ##
9274## Report this to llvmbugs@cs.uiuc.edu ##
9275## ----------------------------------- ##
9276_ASBOX
9277 ) | sed "s/^/$as_me: WARNING: /" >&2
9278 ;;
9279esac
9280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285 eval "$as_ac_Header=\$ac_header_preproc"
9286fi
9287ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result: $ac_res" >&5
9289echo "${ECHO_T}$ac_res" >&6; }
9290
9291fi
9292if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295_ACEOF
9296
9297fi
9298
9299done
9300
9301# Check whether --enable-ltdl-install was given.
9302if test "${enable_ltdl_install+set}" = set; then
9303 enableval=$enable_ltdl_install;
9304fi
9305
9306
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009307
9308
9309if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009310 INSTALL_LTDL_TRUE=
9311 INSTALL_LTDL_FALSE='#'
9312else
9313 INSTALL_LTDL_TRUE='#'
9314 INSTALL_LTDL_FALSE=
9315fi
9316
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009317
9318
9319if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009320 CONVENIENCE_LTDL_TRUE=
9321 CONVENIENCE_LTDL_FALSE='#'
9322else
9323 CONVENIENCE_LTDL_TRUE='#'
9324 CONVENIENCE_LTDL_FALSE=
9325fi
9326
9327
9328{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9329echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9330library_names_spec=
9331libname_spec='lib$name'
9332soname_spec=
9333shrext_cmds=".so"
9334postinstall_cmds=
9335postuninstall_cmds=
9336finish_cmds=
9337finish_eval=
9338shlibpath_var=
9339shlibpath_overrides_runpath=unknown
9340version_type=none
9341dynamic_linker="$host_os ld.so"
9342sys_lib_dlsearch_path_spec="/lib /usr/lib"
9343if test "$GCC" = yes; then
9344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9346 # if the path contains ";" then we assume it to be the separator
9347 # otherwise default to the standard path separator (i.e. ":") - it is
9348 # assumed that no part of a normal pathname contains ";" but that should
9349 # okay in the real world where ";" in dirpaths is itself problematic.
9350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9351 else
9352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9353 fi
9354else
9355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9356fi
9357need_lib_prefix=unknown
9358hardcode_into_libs=no
9359
9360# when you set need_version to no, make sure it does not cause -set_version
9361# flags to be left without arguments
9362need_version=unknown
9363
9364case $host_os in
9365aix3*)
9366 version_type=linux
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9368 shlibpath_var=LIBPATH
9369
9370 # AIX 3 has no versioning support, so we append a major version to the name.
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 ;;
9373
9374aix4* | aix5*)
9375 version_type=linux
9376 need_lib_prefix=no
9377 need_version=no
9378 hardcode_into_libs=yes
9379 if test "$host_cpu" = ia64; then
9380 # AIX 5 supports IA64
9381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 else
9384 # With GCC up to 2.95.x, collect2 would create an import file
9385 # for dependence libraries. The import file would start with
9386 # the line `#! .'. This would cause the generated library to
9387 # depend on `.', always an invalid library. This was fixed in
9388 # development snapshots of GCC prior to 3.0.
9389 case $host_os in
9390 aix4 | aix4.[01] | aix4.[01].*)
9391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9392 echo ' yes '
9393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9394 :
9395 else
9396 can_build_shared=no
9397 fi
9398 ;;
9399 esac
9400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9401 # soname into executable. Probably we can add versioning support to
9402 # collect2, so additional links can be useful in future.
9403 if test "$aix_use_runtimelinking" = yes; then
9404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9405 # instead of lib<name>.a to let people know that these are not
9406 # typical AIX shared libraries.
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 else
9409 # We preserve .a as extension for shared libraries through AIX4.2
9410 # and later when we are not doing run time linking.
9411 library_names_spec='${libname}${release}.a $libname.a'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 fi
9414 shlibpath_var=LIBPATH
9415 fi
9416 ;;
9417
9418amigaos*)
9419 library_names_spec='$libname.ixlibrary $libname.a'
9420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9421 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'
9422 ;;
9423
9424beos*)
9425 library_names_spec='${libname}${shared_ext}'
9426 dynamic_linker="$host_os ld.so"
9427 shlibpath_var=LIBRARY_PATH
9428 ;;
9429
9430bsdi[45]*)
9431 version_type=linux
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9439 # the default ld.so.conf also contains /usr/contrib/lib and
9440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9441 # libtool to hard-code these into programs
9442 ;;
9443
9444cygwin* | mingw* | pw32*)
9445 version_type=windows
9446 shrext_cmds=".dll"
9447 need_version=no
9448 need_lib_prefix=no
9449
9450 case $GCC,$host_os in
9451 yes,cygwin* | yes,mingw* | yes,pw32*)
9452 library_names_spec='$libname.dll.a'
9453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9454 postinstall_cmds='base_file=`basename \${file}`~
9455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9456 dldir=$destdir/`dirname \$dlpath`~
9457 test -d \$dldir || mkdir -p \$dldir~
9458 $install_prog $dir/$dlname \$dldir/$dlname~
9459 chmod a+x \$dldir/$dlname'
9460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9461 dlpath=$dir/\$dldll~
9462 $rm \$dlpath'
9463 shlibpath_overrides_runpath=yes
9464
9465 case $host_os in
9466 cygwin*)
9467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9470 ;;
9471 mingw*)
9472 # MinGW DLLs use traditional 'lib' prefix
9473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9475 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9476 # It is most probably a Windows format PATH printed by
9477 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9478 # path with ; separators, and with drive letters. We can handle the
9479 # drive letters (cygwin fileutils understands them), so leave them,
9480 # especially as we might pass files found there to a mingw objdump,
9481 # which wouldn't understand a cygwinified path. Ahh.
9482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9483 else
9484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9485 fi
9486 ;;
9487 pw32*)
9488 # pw32 DLLs use 'pw' prefix rather than 'lib'
9489 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9490 ;;
9491 esac
9492 ;;
9493
9494 *)
9495 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9496 ;;
9497 esac
9498 dynamic_linker='Win32 ld.exe'
9499 # FIXME: first we should search . and the directory the executable is in
9500 shlibpath_var=PATH
9501 ;;
9502
9503darwin* | rhapsody*)
9504 dynamic_linker="$host_os dyld"
9505 version_type=darwin
9506 need_lib_prefix=no
9507 need_version=no
9508 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9509 soname_spec='${libname}${release}${major}$shared_ext'
9510 shlibpath_overrides_runpath=yes
9511 shlibpath_var=DYLD_LIBRARY_PATH
9512 shrext_cmds='.dylib'
9513 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9514 if test "$GCC" = yes; then
9515 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"`
9516 else
9517 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9518 fi
9519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9520 ;;
9521
9522dgux*)
9523 version_type=linux
9524 need_lib_prefix=no
9525 need_version=no
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 ;;
9530
9531freebsd1*)
9532 dynamic_linker=no
9533 ;;
9534
9535kfreebsd*-gnu)
9536 version_type=linux
9537 need_lib_prefix=no
9538 need_version=no
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=no
9543 hardcode_into_libs=yes
9544 dynamic_linker='GNU ld.so'
9545 ;;
9546
9547freebsd* | dragonfly*)
9548 # DragonFly does not have aout. When/if they implement a new
9549 # versioning mechanism, adjust this.
9550 if test -x /usr/bin/objformat; then
9551 objformat=`/usr/bin/objformat`
9552 else
9553 case $host_os in
9554 freebsd[123]*) objformat=aout ;;
9555 *) objformat=elf ;;
9556 esac
9557 fi
9558 version_type=freebsd-$objformat
9559 case $version_type in
9560 freebsd-elf*)
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9562 need_version=no
9563 need_lib_prefix=no
9564 ;;
9565 freebsd-*)
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9567 need_version=yes
9568 ;;
9569 esac
9570 shlibpath_var=LD_LIBRARY_PATH
9571 case $host_os in
9572 freebsd2*)
9573 shlibpath_overrides_runpath=yes
9574 ;;
9575 freebsd3.[01]* | freebsdelf3.[01]*)
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9578 ;;
9579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9581 shlibpath_overrides_runpath=no
9582 hardcode_into_libs=yes
9583 ;;
9584 freebsd*) # from 4.6 on
9585 shlibpath_overrides_runpath=yes
9586 hardcode_into_libs=yes
9587 ;;
9588 esac
9589 ;;
9590
9591gnu*)
9592 version_type=linux
9593 need_lib_prefix=no
9594 need_version=no
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 hardcode_into_libs=yes
9599 ;;
9600
9601hpux9* | hpux10* | hpux11*)
9602 # Give a soname corresponding to the major version so that dld.sl refuses to
9603 # link against other versions.
9604 version_type=sunos
9605 need_lib_prefix=no
9606 need_version=no
9607 case $host_cpu in
9608 ia64*)
9609 shrext_cmds='.so'
9610 hardcode_into_libs=yes
9611 dynamic_linker="$host_os dld.so"
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 soname_spec='${libname}${release}${shared_ext}$major'
9616 if test "X$HPUX_IA64_MODE" = X32; then
9617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9618 else
9619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9620 fi
9621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9622 ;;
9623 hppa*64*)
9624 shrext_cmds='.sl'
9625 hardcode_into_libs=yes
9626 dynamic_linker="$host_os dld.sl"
9627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9633 ;;
9634 *)
9635 shrext_cmds='.sl'
9636 dynamic_linker="$host_os dld.sl"
9637 shlibpath_var=SHLIB_PATH
9638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 ;;
9642 esac
9643 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9644 postinstall_cmds='chmod 555 $lib'
9645 ;;
9646
9647interix3*)
9648 version_type=linux
9649 need_lib_prefix=no
9650 need_version=no
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=no
9656 hardcode_into_libs=yes
9657 ;;
9658
9659irix5* | irix6* | nonstopux*)
9660 case $host_os in
9661 nonstopux*) version_type=nonstopux ;;
9662 *)
9663 if test "$lt_cv_prog_gnu_ld" = yes; then
9664 version_type=linux
9665 else
9666 version_type=irix
9667 fi ;;
9668 esac
9669 need_lib_prefix=no
9670 need_version=no
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9673 case $host_os in
9674 irix5* | nonstopux*)
9675 libsuff= shlibsuff=
9676 ;;
9677 *)
9678 case $LD in # libtool.m4 will add one of these switches to LD
9679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680 libsuff= shlibsuff= libmagic=32-bit;;
9681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682 libsuff=32 shlibsuff=N32 libmagic=N32;;
9683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685 *) libsuff= shlibsuff= libmagic=never-match;;
9686 esac
9687 ;;
9688 esac
9689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693 hardcode_into_libs=yes
9694 ;;
9695
9696# No shared lib support for Linux oldld, aout, or coff.
9697linux*oldld* | linux*aout* | linux*coff*)
9698 dynamic_linker=no
9699 ;;
9700
9701# This must be Linux ELF.
9702linux*)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9711 # This implies no fast_install, which is unacceptable.
9712 # Some rework will be needed to allow for fast_install
9713 # before this can be enabled.
9714 hardcode_into_libs=yes
9715
9716 # Append ld.so.conf contents to the search path
9717 if test -f /etc/ld.so.conf; then
9718 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' ' '`
9719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9720 fi
9721
9722 # We used to test for /lib/ld.so.1 and disable shared libraries on
9723 # powerpc, because MkLinux only supported shared libraries with the
9724 # GNU dynamic linker. Since this was broken with cross compilers,
9725 # most powerpc-linux boxes support dynamic linking these days and
9726 # people can always --disable-shared, the test was removed, and we
9727 # assume the GNU/Linux dynamic linker is in use.
9728 dynamic_linker='GNU/Linux ld.so'
9729 ;;
9730
9731knetbsd*-gnu)
9732 version_type=linux
9733 need_lib_prefix=no
9734 need_version=no
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9736 soname_spec='${libname}${release}${shared_ext}$major'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 shlibpath_overrides_runpath=no
9739 hardcode_into_libs=yes
9740 dynamic_linker='GNU ld.so'
9741 ;;
9742
9743netbsd*)
9744 version_type=sunos
9745 need_lib_prefix=no
9746 need_version=no
9747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9750 dynamic_linker='NetBSD (a.out) ld.so'
9751 else
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 dynamic_linker='NetBSD ld.elf_so'
9755 fi
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=yes
9758 hardcode_into_libs=yes
9759 ;;
9760
9761newsos6)
9762 version_type=linux
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes
9766 ;;
9767
9768nto-qnx*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes
9776 ;;
9777
9778openbsd*)
9779 version_type=sunos
9780 sys_lib_dlsearch_path_spec="/usr/lib"
9781 need_lib_prefix=no
9782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9783 case $host_os in
9784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9785 *) need_version=no ;;
9786 esac
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9791 case $host_os in
9792 openbsd2.[89] | openbsd2.[89].*)
9793 shlibpath_overrides_runpath=no
9794 ;;
9795 *)
9796 shlibpath_overrides_runpath=yes
9797 ;;
9798 esac
9799 else
9800 shlibpath_overrides_runpath=yes
9801 fi
9802 ;;
9803
9804os2*)
9805 libname_spec='$name'
9806 shrext_cmds=".dll"
9807 need_lib_prefix=no
9808 library_names_spec='$libname${shared_ext} $libname.a'
9809 dynamic_linker='OS/2 ld.exe'
9810 shlibpath_var=LIBPATH
9811 ;;
9812
9813osf3* | osf4* | osf5*)
9814 version_type=osf
9815 need_lib_prefix=no
9816 need_version=no
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 shlibpath_var=LD_LIBRARY_PATH
9820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9822 ;;
9823
9824solaris*)
9825 version_type=linux
9826 need_lib_prefix=no
9827 need_version=no
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=yes
9832 hardcode_into_libs=yes
9833 # ldd complains unless libraries are executable
9834 postinstall_cmds='chmod +x $lib'
9835 ;;
9836
9837sunos4*)
9838 version_type=sunos
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 shlibpath_overrides_runpath=yes
9843 if test "$with_gnu_ld" = yes; then
9844 need_lib_prefix=no
9845 fi
9846 need_version=yes
9847 ;;
9848
9849sysv4 | sysv4.3*)
9850 version_type=linux
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 case $host_vendor in
9855 sni)
9856 shlibpath_overrides_runpath=no
9857 need_lib_prefix=no
9858 export_dynamic_flag_spec='${wl}-Blargedynsym'
9859 runpath_var=LD_RUN_PATH
9860 ;;
9861 siemens)
9862 need_lib_prefix=no
9863 ;;
9864 motorola)
9865 need_lib_prefix=no
9866 need_version=no
9867 shlibpath_overrides_runpath=no
9868 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9869 ;;
9870 esac
9871 ;;
9872
9873sysv4*MP*)
9874 if test -d /usr/nec ;then
9875 version_type=linux
9876 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9877 soname_spec='$libname${shared_ext}.$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 fi
9880 ;;
9881
9882sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9883 version_type=freebsd-elf
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 hardcode_into_libs=yes
9890 if test "$with_gnu_ld" = yes; then
9891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9892 shlibpath_overrides_runpath=no
9893 else
9894 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9895 shlibpath_overrides_runpath=yes
9896 case $host_os in
9897 sco3.2v5*)
9898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9899 ;;
9900 esac
9901 fi
9902 sys_lib_dlsearch_path_spec='/usr/lib'
9903 ;;
9904
9905uts4*)
9906 version_type=linux
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 ;;
9911
9912*)
9913 dynamic_linker=no
9914 ;;
9915esac
9916{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9917echo "${ECHO_T}$dynamic_linker" >&6; }
9918test "$dynamic_linker" = no && can_build_shared=no
9919
9920variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921if test "$GCC" = yes; then
9922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9923fi
9924
9925
9926{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9927echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9928if test "${libltdl_cv_shlibext+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930else
9931
9932module=yes
9933eval libltdl_cv_shlibext=$shrext_cmds
9934
9935fi
9936{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9937echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9938if test -n "$libltdl_cv_shlibext"; then
9939
9940cat >>confdefs.h <<_ACEOF
9941#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9942_ACEOF
9943
9944fi
9945
9946
9947{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9948echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9949if test "${libltdl_cv_shlibpath_var+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951else
9952 libltdl_cv_shlibpath_var="$shlibpath_var"
9953fi
9954{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9955echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9956if test -n "$libltdl_cv_shlibpath_var"; then
9957
9958cat >>confdefs.h <<_ACEOF
9959#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9960_ACEOF
9961
9962fi
9963
9964
9965{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9966echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9967if test "${libltdl_cv_sys_search_path+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9971fi
9972{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9973echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9974if test -n "$libltdl_cv_sys_search_path"; then
9975 sys_search_path=
9976 for dir in $libltdl_cv_sys_search_path; do
9977 if test -z "$sys_search_path"; then
9978 sys_search_path="$dir"
9979 else
9980 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9981 fi
9982 done
9983
9984cat >>confdefs.h <<_ACEOF
9985#define LTDL_SYSSEARCHPATH "$sys_search_path"
9986_ACEOF
9987
9988fi
9989
9990{ echo "$as_me:$LINENO: checking for objdir" >&5
9991echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9992if test "${libltdl_cv_objdir+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995 libltdl_cv_objdir="$objdir"
9996 if test -n "$objdir"; then
9997 :
9998 else
9999 rm -f .libs 2>/dev/null
10000 mkdir .libs 2>/dev/null
10001 if test -d .libs; then
10002 libltdl_cv_objdir=.libs
10003 else
10004 # MS-DOS does not allow filenames that begin with a dot.
10005 libltdl_cv_objdir=_libs
10006 fi
10007 rmdir .libs 2>/dev/null
10008 fi
10009
10010fi
10011{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10012echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10013
10014cat >>confdefs.h <<_ACEOF
10015#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10016_ACEOF
10017
10018
10019
10020
10021
10022
10023# Check for command to grab the raw symbol name followed by C symbol from nm.
10024{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10025echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10026if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029
10030# These are sane defaults that work on at least a few old systems.
10031# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10032
10033# Character class describing NM global symbol codes.
10034symcode='[BCDEGRST]'
10035
10036# Regexp to match symbols that can be accessed directly from C.
10037sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10038
10039# Transform an extracted symbol line into a proper C declaration
10040lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10041
10042# Transform an extracted symbol line into symbol name and symbol address
10043lt_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'"
10044
10045# Define system-specific variables.
10046case $host_os in
10047aix*)
10048 symcode='[BCDT]'
10049 ;;
10050cygwin* | mingw* | pw32*)
10051 symcode='[ABCDGISTW]'
10052 ;;
10053hpux*) # Its linker distinguishes data from code symbols
10054 if test "$host_cpu" = ia64; then
10055 symcode='[ABCDEGRST]'
10056 fi
10057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10058 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'"
10059 ;;
10060linux*)
10061 if test "$host_cpu" = ia64; then
10062 symcode='[ABCDGIRSTW]'
10063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10064 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'"
10065 fi
10066 ;;
10067irix* | nonstopux*)
10068 symcode='[BCDEGRST]'
10069 ;;
10070osf*)
10071 symcode='[BCDEGQRST]'
10072 ;;
10073solaris*)
10074 symcode='[BDRT]'
10075 ;;
10076sco3.2v5*)
10077 symcode='[DT]'
10078 ;;
10079sysv4.2uw2*)
10080 symcode='[DT]'
10081 ;;
10082sysv5* | sco5v6* | unixware* | OpenUNIX*)
10083 symcode='[ABDT]'
10084 ;;
10085sysv4)
10086 symcode='[DFNSTU]'
10087 ;;
10088esac
10089
10090# Handle CRLF in mingw tool chain
10091opt_cr=
10092case $build_os in
10093mingw*)
10094 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10095 ;;
10096esac
10097
10098# If we're using GNU nm, then use its standard symbol codes.
10099case `$NM -V 2>&1` in
10100*GNU* | *'with BFD'*)
10101 symcode='[ABCDGIRSTW]' ;;
10102esac
10103
10104# Try without a prefix undercore, then with it.
10105for ac_symprfx in "" "_"; do
10106
10107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10108 symxfrm="\\1 $ac_symprfx\\2 \\2"
10109
10110 # Write the raw and C identifiers.
10111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10112
10113 # Check to see that the pipe works correctly.
10114 pipe_works=no
10115
10116 rm -f conftest*
10117 cat > conftest.$ac_ext <<EOF
10118#ifdef __cplusplus
10119extern "C" {
10120#endif
10121char nm_test_var;
10122void nm_test_func(){}
10123#ifdef __cplusplus
10124}
10125#endif
10126int main(){nm_test_var='a';nm_test_func();return(0);}
10127EOF
10128
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; then
10134 # Now try to grab the symbols.
10135 nlist=conftest.nm
10136 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && test -s "$nlist"; then
10141 # Try sorting and uniquifying the output.
10142 if sort "$nlist" | uniq > "$nlist"T; then
10143 mv -f "$nlist"T "$nlist"
10144 else
10145 rm -f "$nlist"T
10146 fi
10147
10148 # Make sure that we snagged all the symbols we need.
10149 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10150 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10151 cat <<EOF > conftest.$ac_ext
10152#ifdef __cplusplus
10153extern "C" {
10154#endif
10155
10156EOF
10157 # Now generate the symbol file.
10158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10159
10160 cat <<EOF >> conftest.$ac_ext
10161#if defined (__STDC__) && __STDC__
10162# define lt_ptr_t void *
10163#else
10164# define lt_ptr_t char *
10165# define const
10166#endif
10167
10168/* The mapping between symbol names and symbols. */
10169const struct {
10170 const char *name;
10171 lt_ptr_t address;
10172}
10173lt_preloaded_symbols[] =
10174{
10175EOF
10176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10177 cat <<\EOF >> conftest.$ac_ext
10178 {0, (lt_ptr_t) 0}
10179};
10180
10181#ifdef __cplusplus
10182}
10183#endif
10184EOF
10185 # Now try linking the two files.
10186 mv conftest.$ac_objext conftstm.$ac_objext
10187 lt_save_LIBS="$LIBS"
10188 lt_save_CFLAGS="$CFLAGS"
10189 LIBS="conftstm.$ac_objext"
10190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10196 pipe_works=yes
10197 fi
10198 LIBS="$lt_save_LIBS"
10199 CFLAGS="$lt_save_CFLAGS"
10200 else
10201 echo "cannot find nm_test_func in $nlist" >&5
10202 fi
10203 else
10204 echo "cannot find nm_test_var in $nlist" >&5
10205 fi
10206 else
10207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10208 fi
10209 else
10210 echo "$progname: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 fi
10213 rm -f conftest* conftst*
10214
10215 # Do not use the global_symbol_pipe unless it works.
10216 if test "$pipe_works" = yes; then
10217 break
10218 else
10219 lt_cv_sys_global_symbol_pipe=
10220 fi
10221done
10222
10223fi
10224
10225if test -z "$lt_cv_sys_global_symbol_pipe"; then
10226 lt_cv_sys_global_symbol_to_cdecl=
10227fi
10228if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10229 { echo "$as_me:$LINENO: result: failed" >&5
10230echo "${ECHO_T}failed" >&6; }
10231else
10232 { echo "$as_me:$LINENO: result: ok" >&5
10233echo "${ECHO_T}ok" >&6; }
10234fi
10235
10236
10237{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10238echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10239if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10243 libltdl_cv_preloaded_symbols=yes
10244 else
10245 libltdl_cv_preloaded_symbols=no
10246 fi
10247
10248fi
10249{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10250echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10251if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10252
10253cat >>confdefs.h <<\_ACEOF
10254#define HAVE_PRELOADED_SYMBOLS 1
10255_ACEOF
10256
10257fi
10258
10259LIBADD_DL=
10260
10261ac_ext=c
10262ac_cpp='$CPP $CPPFLAGS'
10263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266
10267
10268{ echo "$as_me:$LINENO: checking for shl_load" >&5
10269echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10270if test "${ac_cv_func_shl_load+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h. */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h. */
10279/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281#define shl_load innocuous_shl_load
10282
10283/* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char shl_load (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10287
10288#ifdef __STDC__
10289# include <limits.h>
10290#else
10291# include <assert.h>
10292#endif
10293
10294#undef shl_load
10295
10296/* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299#ifdef __cplusplus
10300extern "C"
10301#endif
10302char shl_load ();
10303/* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306#if defined __stub_shl_load || defined __stub___shl_load
10307choke me
10308#endif
10309
10310int
10311main ()
10312{
10313return shl_load ();
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (ac_try="$ac_link"
10320case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
10324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10333 { (case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336esac
10337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_try") 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_try") 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010352 ac_cv_func_shl_load=yes
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_func_shl_load=no
10358fi
10359
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010360rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010361 conftest$ac_exeext conftest.$ac_ext
10362fi
10363{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10364echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10365if test $ac_cv_func_shl_load = yes; then
10366
10367cat >>confdefs.h <<\_ACEOF
10368#define HAVE_SHL_LOAD 1
10369_ACEOF
10370
10371else
10372 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10373echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10374if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377 ac_check_lib_save_LIBS=$LIBS
10378LIBS="-ldld $LIBS"
10379cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h. */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h. */
10385
10386/* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389#ifdef __cplusplus
10390extern "C"
10391#endif
10392char shl_load ();
10393int
10394main ()
10395{
10396return shl_load ();
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401rm -f conftest.$ac_objext conftest$ac_exeext
10402if { (ac_try="$ac_link"
10403case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10406esac
10407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_link") 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010435 ac_cv_lib_dld_shl_load=yes
10436else
10437 echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ac_cv_lib_dld_shl_load=no
10441fi
10442
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010443rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010444 conftest$ac_exeext conftest.$ac_ext
10445LIBS=$ac_check_lib_save_LIBS
10446fi
10447{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10448echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10449if test $ac_cv_lib_dld_shl_load = yes; then
10450
10451cat >>confdefs.h <<\_ACEOF
10452#define HAVE_SHL_LOAD 1
10453_ACEOF
10454
10455 LIBADD_DL="$LIBADD_DL -ldld"
10456else
10457 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10458echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10459if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462 ac_check_lib_save_LIBS=$LIBS
10463LIBS="-ldl $LIBS"
10464cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h. */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h. */
10470
10471/* Override any GCC internal prototype to avoid an error.
10472 Use char because int might match the return type of a GCC
10473 builtin and then its argument prototype would still apply. */
10474#ifdef __cplusplus
10475extern "C"
10476#endif
10477char dlopen ();
10478int
10479main ()
10480{
10481return dlopen ();
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486rm -f conftest.$ac_objext conftest$ac_exeext
10487if { (ac_try="$ac_link"
10488case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491esac
10492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_link") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10501 { (case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504esac
10505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_try") 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_try") 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010520 ac_cv_lib_dl_dlopen=yes
10521else
10522 echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 ac_cv_lib_dl_dlopen=no
10526fi
10527
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010528rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010529 conftest$ac_exeext conftest.$ac_ext
10530LIBS=$ac_check_lib_save_LIBS
10531fi
10532{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10533echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10534if test $ac_cv_lib_dl_dlopen = yes; then
10535
10536cat >>confdefs.h <<\_ACEOF
10537#define HAVE_LIBDL 1
10538_ACEOF
10539
10540 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10541else
10542 cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548#if HAVE_DLFCN_H
10549# include <dlfcn.h>
10550#endif
10551
10552int
10553main ()
10554{
10555dlopen(0, 0);
10556 ;
10557 return 0;
10558}
10559_ACEOF
10560rm -f conftest.$ac_objext conftest$ac_exeext
10561if { (ac_try="$ac_link"
10562case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565esac
10566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578esac
10579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_try") 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_try") 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010594
10595cat >>confdefs.h <<\_ACEOF
10596#define HAVE_LIBDL 1
10597_ACEOF
10598 libltdl_cv_func_dlopen="yes"
10599else
10600 echo "$as_me: failed program was:" >&5
10601sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10604echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10605if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608 ac_check_lib_save_LIBS=$LIBS
10609LIBS="-lsvld $LIBS"
10610cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
10616
10617/* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10620#ifdef __cplusplus
10621extern "C"
10622#endif
10623char dlopen ();
10624int
10625main ()
10626{
10627return dlopen ();
10628 ;
10629 return 0;
10630}
10631_ACEOF
10632rm -f conftest.$ac_objext conftest$ac_exeext
10633if { (ac_try="$ac_link"
10634case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637esac
10638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
10651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010666 ac_cv_lib_svld_dlopen=yes
10667else
10668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 ac_cv_lib_svld_dlopen=no
10672fi
10673
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010674rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010675 conftest$ac_exeext conftest.$ac_ext
10676LIBS=$ac_check_lib_save_LIBS
10677fi
10678{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10679echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10680if test $ac_cv_lib_svld_dlopen = yes; then
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define HAVE_LIBDL 1
10684_ACEOF
10685
10686 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10687else
10688 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10689echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10690if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693 ac_check_lib_save_LIBS=$LIBS
10694LIBS="-ldld $LIBS"
10695cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
10701
10702/* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705#ifdef __cplusplus
10706extern "C"
10707#endif
10708char dld_link ();
10709int
10710main ()
10711{
10712return dld_link ();
10713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext conftest$ac_exeext
10718if { (ac_try="$ac_link"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
10742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745esac
10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010751 ac_cv_lib_dld_dld_link=yes
10752else
10753 echo "$as_me: failed program was:" >&5
10754sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 ac_cv_lib_dld_dld_link=no
10757fi
10758
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010759rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010760 conftest$ac_exeext conftest.$ac_ext
10761LIBS=$ac_check_lib_save_LIBS
10762fi
10763{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10764echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10765if test $ac_cv_lib_dld_dld_link = yes; then
10766
10767cat >>confdefs.h <<\_ACEOF
10768#define HAVE_DLD 1
10769_ACEOF
10770
10771 LIBADD_DL="$LIBADD_DL -ldld"
10772else
10773 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10774echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10775if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786#define _dyld_func_lookup innocuous__dyld_func_lookup
10787
10788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char _dyld_func_lookup (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef _dyld_func_lookup
10800
10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804#ifdef __cplusplus
10805extern "C"
10806#endif
10807char _dyld_func_lookup ();
10808/* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10812choke me
10813#endif
10814
10815int
10816main ()
10817{
10818return _dyld_func_lookup ();
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010857 ac_cv_func__dyld_func_lookup=yes
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_func__dyld_func_lookup=no
10863fi
10864
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010865rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010866 conftest$ac_exeext conftest.$ac_ext
10867fi
10868{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10869echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10870if test $ac_cv_func__dyld_func_lookup = yes; then
10871
10872cat >>confdefs.h <<\_ACEOF
10873#define HAVE_DYLD 1
10874_ACEOF
10875
10876fi
10877
10878
10879fi
10880
10881
10882fi
10883
10884
10885fi
10886
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010887rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010888 conftest$ac_exeext conftest.$ac_ext
10889
10890fi
10891
10892
10893fi
10894
10895
10896fi
10897
10898
10899if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10900then
10901 lt_save_LIBS="$LIBS"
10902 LIBS="$LIBS $LIBADD_DL"
10903
10904for ac_func in dlerror
10905do
10906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10907{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 cat >conftest.$ac_ext <<_ACEOF
10913/* confdefs.h. */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h. */
10918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10920#define $ac_func innocuous_$ac_func
10921
10922/* System header to define __stub macros and hopefully few prototypes,
10923 which can conflict with char $ac_func (); below.
10924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925 <limits.h> exists even on freestanding compilers. */
10926
10927#ifdef __STDC__
10928# include <limits.h>
10929#else
10930# include <assert.h>
10931#endif
10932
10933#undef $ac_func
10934
10935/* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938#ifdef __cplusplus
10939extern "C"
10940#endif
10941char $ac_func ();
10942/* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945#if defined __stub_$ac_func || defined __stub___$ac_func
10946choke me
10947#endif
10948
10949int
10950main ()
10951{
10952return $ac_func ();
10953 ;
10954 return 0;
10955}
10956_ACEOF
10957rm -f conftest.$ac_objext conftest$ac_exeext
10958if { (ac_try="$ac_link"
10959case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_link") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010991 eval "$as_ac_var=yes"
10992else
10993 echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
10996 eval "$as_ac_var=no"
10997fi
10998
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010999rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011000 conftest$ac_exeext conftest.$ac_ext
11001fi
11002ac_res=`eval echo '${'$as_ac_var'}'`
11003 { echo "$as_me:$LINENO: result: $ac_res" >&5
11004echo "${ECHO_T}$ac_res" >&6; }
11005if test `eval echo '${'$as_ac_var'}'` = yes; then
11006 cat >>confdefs.h <<_ACEOF
11007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11008_ACEOF
11009
11010fi
11011done
11012
11013 LIBS="$lt_save_LIBS"
11014fi
11015ac_ext=c
11016ac_cpp='$CPP $CPPFLAGS'
11017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020
11021
11022
11023{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11024echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11025if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 ac_cv_sys_symbol_underscore=no
11029 cat > conftest.$ac_ext <<EOF
11030void nm_test_func(){}
11031int main(){nm_test_func;return 0;}
11032EOF
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; then
11038 # Now try to grab the symbols.
11039 ac_nlist=conftest.nm
11040 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11041 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && test -s "$ac_nlist"; then
11045 # See whether the symbols have a leading underscore.
11046 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11047 ac_cv_sys_symbol_underscore=yes
11048 else
11049 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11050 :
11051 else
11052 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11053 fi
11054 fi
11055 else
11056 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11057 fi
11058 else
11059 echo "configure: failed program was:" >&5
11060 cat conftest.c >&5
11061 fi
11062 rm -rf conftest*
11063
11064fi
11065{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11066echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11067
11068
11069if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11070 if test x"$libltdl_cv_func_dlopen" = xyes ||
11071 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11072 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11073echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11074if test "${libltdl_cv_need_uscore+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076else
11077 libltdl_cv_need_uscore=unknown
11078 save_LIBS="$LIBS"
11079 LIBS="$LIBS $LIBADD_DL"
11080 if test "$cross_compiling" = yes; then :
11081 libltdl_cv_need_uscore=cross
11082else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<EOF
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000011086#line 11086 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011087#include "confdefs.h"
11088
11089#if HAVE_DLFCN_H
11090#include <dlfcn.h>
11091#endif
11092
11093#include <stdio.h>
11094
11095#ifdef RTLD_GLOBAL
11096# define LT_DLGLOBAL RTLD_GLOBAL
11097#else
11098# ifdef DL_GLOBAL
11099# define LT_DLGLOBAL DL_GLOBAL
11100# else
11101# define LT_DLGLOBAL 0
11102# endif
11103#endif
11104
11105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107#ifndef LT_DLLAZY_OR_NOW
11108# ifdef RTLD_LAZY
11109# define LT_DLLAZY_OR_NOW RTLD_LAZY
11110# else
11111# ifdef DL_LAZY
11112# define LT_DLLAZY_OR_NOW DL_LAZY
11113# else
11114# ifdef RTLD_NOW
11115# define LT_DLLAZY_OR_NOW RTLD_NOW
11116# else
11117# ifdef DL_NOW
11118# define LT_DLLAZY_OR_NOW DL_NOW
11119# else
11120# define LT_DLLAZY_OR_NOW 0
11121# endif
11122# endif
11123# endif
11124# endif
11125#endif
11126
11127#ifdef __cplusplus
11128extern "C" void exit (int);
11129#endif
11130
11131void fnord() { int i=42;}
11132int main ()
11133{
11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135 int status = $lt_dlunknown;
11136
11137 if (self)
11138 {
11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
11146 exit (status);
11147}
11148EOF
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11158 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11159 x$lt_dlunknown|x*) ;;
11160 esac
11161 else :
11162 # compilation failed
11163
11164 fi
11165fi
11166rm -fr conftest*
11167
11168 LIBS="$save_LIBS"
11169
11170fi
11171{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11172echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11173 fi
11174fi
11175
11176if test x"$libltdl_cv_need_uscore" = xyes; then
11177
11178cat >>confdefs.h <<\_ACEOF
11179#define NEED_USCORE 1
11180_ACEOF
11181
11182fi
11183
11184
11185{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11186echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11187if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 # PORTME does your system automatically load deplibs for dlopen?
11191 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11192 # For now, we just catch OSes we know something about -- in the
11193 # future, we'll try test this programmatically.
11194 libltdl_cv_sys_dlopen_deplibs=unknown
11195 case "$host_os" in
11196 aix3*|aix4.1.*|aix4.2.*)
11197 # Unknown whether this is true for these versions of AIX, but
11198 # we want this `case' here to explicitly catch those versions.
11199 libltdl_cv_sys_dlopen_deplibs=unknown
11200 ;;
11201 aix[45]*)
11202 libltdl_cv_sys_dlopen_deplibs=yes
11203 ;;
11204 darwin*)
11205 # Assuming the user has installed a libdl from somewhere, this is true
11206 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11207 libltdl_cv_sys_dlopen_deplibs=yes
11208 ;;
11209 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11210 # GNU and its variants, using gnu ld.so (Glibc)
11211 libltdl_cv_sys_dlopen_deplibs=yes
11212 ;;
11213 hpux10*|hpux11*)
11214 libltdl_cv_sys_dlopen_deplibs=yes
11215 ;;
11216 interix*)
11217 libltdl_cv_sys_dlopen_deplibs=yes
11218 ;;
11219 irix[12345]*|irix6.[01]*)
11220 # Catch all versions of IRIX before 6.2, and indicate that we don't
11221 # know how it worked for any of those versions.
11222 libltdl_cv_sys_dlopen_deplibs=unknown
11223 ;;
11224 irix*)
11225 # The case above catches anything before 6.2, and it's known that
11226 # at 6.2 and later dlopen does load deplibs.
11227 libltdl_cv_sys_dlopen_deplibs=yes
11228 ;;
11229 netbsd*)
11230 libltdl_cv_sys_dlopen_deplibs=yes
11231 ;;
11232 openbsd*)
11233 libltdl_cv_sys_dlopen_deplibs=yes
11234 ;;
11235 osf[1234]*)
11236 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11237 # it did *not* use an RPATH in a shared library to find objects the
11238 # library depends on, so we explictly say `no'.
11239 libltdl_cv_sys_dlopen_deplibs=no
11240 ;;
11241 osf5.0|osf5.0a|osf5.1)
11242 # dlopen *does* load deplibs and with the right loader patch applied
11243 # it even uses RPATH in a shared library to search for shared objects
11244 # that the library depends on, but there's no easy way to know if that
11245 # patch is installed. Since this is the case, all we can really
11246 # say is unknown -- it depends on the patch being installed. If
11247 # it is, this changes to `yes'. Without it, it would be `no'.
11248 libltdl_cv_sys_dlopen_deplibs=unknown
11249 ;;
11250 osf*)
11251 # the two cases above should catch all versions of osf <= 5.1. Read
11252 # the comments above for what we know about them.
11253 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11254 # is used to find them so we can finally say `yes'.
11255 libltdl_cv_sys_dlopen_deplibs=yes
11256 ;;
11257 solaris*)
11258 libltdl_cv_sys_dlopen_deplibs=yes
11259 ;;
11260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11262 ;;
11263 esac
11264
11265fi
11266{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11267echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11268if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11269
11270cat >>confdefs.h <<\_ACEOF
11271#define LTDL_DLOPEN_DEPLIBS 1
11272_ACEOF
11273
11274fi
11275
11276
11277for ac_header in argz.h
11278do
11279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285fi
11286ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288echo "${ECHO_T}$ac_res" >&6; }
11289else
11290 # Is the header compilable?
11291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11293cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
11299$ac_includes_default
11300#include <$ac_header>
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (ac_try="$ac_compile"
11304case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_compile") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317 { (case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_try") 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330esac
11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_try") 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011336 ac_header_compiler=yes
11337else
11338 echo "$as_me: failed program was:" >&5
11339sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_header_compiler=no
11342fi
11343
11344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11346echo "${ECHO_T}$ac_header_compiler" >&6; }
11347
11348# Is the header present?
11349{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11351cat >conftest.$ac_ext <<_ACEOF
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357#include <$ac_header>
11358_ACEOF
11359if { (ac_try="$ac_cpp conftest.$ac_ext"
11360case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011371 (exit $ac_status); } >/dev/null; then
11372 if test -s conftest.err; then
11373 ac_cpp_err=$ac_c_preproc_warn_flag
11374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11375 else
11376 ac_cpp_err=
11377 fi
11378else
11379 ac_cpp_err=yes
11380fi
11381if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011382 ac_header_preproc=yes
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 ac_header_preproc=no
11388fi
11389
11390rm -f conftest.err conftest.$ac_ext
11391{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11392echo "${ECHO_T}$ac_header_preproc" >&6; }
11393
11394# So? What about this header?
11395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396 yes:no: )
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11401 ac_header_preproc=yes
11402 ;;
11403 no:yes:* )
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11416 ( cat <<\_ASBOX
11417## ----------------------------------- ##
11418## Report this to llvmbugs@cs.uiuc.edu ##
11419## ----------------------------------- ##
11420_ASBOX
11421 ) | sed "s/^/$as_me: WARNING: /" >&2
11422 ;;
11423esac
11424{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428else
11429 eval "$as_ac_Header=\$ac_header_preproc"
11430fi
11431ac_res=`eval echo '${'$as_ac_Header'}'`
11432 { echo "$as_me:$LINENO: result: $ac_res" >&5
11433echo "${ECHO_T}$ac_res" >&6; }
11434
11435fi
11436if test `eval echo '${'$as_ac_Header'}'` = yes; then
11437 cat >>confdefs.h <<_ACEOF
11438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11439_ACEOF
11440
11441fi
11442
11443done
11444
11445
11446{ echo "$as_me:$LINENO: checking for error_t" >&5
11447echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11448if test "${ac_cv_type_error_t+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451 cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457#if HAVE_ARGZ_H
11458# include <argz.h>
11459#endif
11460
11461typedef error_t ac__type_new_;
11462int
11463main ()
11464{
11465if ((ac__type_new_ *) 0)
11466 return 0;
11467if (sizeof (ac__type_new_))
11468 return 0;
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext
11474if { (ac_try="$ac_compile"
11475case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_compile") 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest.$ac_objext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011507 ac_cv_type_error_t=yes
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ac_cv_type_error_t=no
11513fi
11514
11515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11516fi
11517{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11518echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11519if test $ac_cv_type_error_t = yes; then
11520
11521cat >>confdefs.h <<_ACEOF
11522#define HAVE_ERROR_T 1
11523_ACEOF
11524
11525
11526else
11527
11528cat >>confdefs.h <<\_ACEOF
11529#define error_t int
11530_ACEOF
11531
11532fi
11533
11534
11535
11536
11537
11538
11539
11540for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11541do
11542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
11554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11556#define $ac_func innocuous_$ac_func
11557
11558/* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below.
11560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 <limits.h> exists even on freestanding compilers. */
11562
11563#ifdef __STDC__
11564# include <limits.h>
11565#else
11566# include <assert.h>
11567#endif
11568
11569#undef $ac_func
11570
11571/* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char $ac_func ();
11578/* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581#if defined __stub_$ac_func || defined __stub___$ac_func
11582choke me
11583#endif
11584
11585int
11586main ()
11587{
11588return $ac_func ();
11589 ;
11590 return 0;
11591}
11592_ACEOF
11593rm -f conftest.$ac_objext conftest$ac_exeext
11594if { (ac_try="$ac_link"
11595case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011627 eval "$as_ac_var=yes"
11628else
11629 echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 eval "$as_ac_var=no"
11633fi
11634
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011635rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011636 conftest$ac_exeext conftest.$ac_ext
11637fi
11638ac_res=`eval echo '${'$as_ac_var'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640echo "${ECHO_T}$ac_res" >&6; }
11641if test `eval echo '${'$as_ac_var'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11644_ACEOF
11645
11646fi
11647done
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11677 stdio.h unistd.h
11678do
11679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685fi
11686ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688echo "${ECHO_T}$ac_res" >&6; }
11689else
11690 # Is the header compilable?
11691{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11693cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699$ac_includes_default
11700#include <$ac_header>
11701_ACEOF
11702rm -f conftest.$ac_objext
11703if { (ac_try="$ac_compile"
11704case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720esac
11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_try") 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011736 ac_header_compiler=yes
11737else
11738 echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 ac_header_compiler=no
11742fi
11743
11744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746echo "${ECHO_T}$ac_header_compiler" >&6; }
11747
11748# Is the header present?
11749{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11751cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757#include <$ac_header>
11758_ACEOF
11759if { (ac_try="$ac_cpp conftest.$ac_ext"
11760case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011771 (exit $ac_status); } >/dev/null; then
11772 if test -s conftest.err; then
11773 ac_cpp_err=$ac_c_preproc_warn_flag
11774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11775 else
11776 ac_cpp_err=
11777 fi
11778else
11779 ac_cpp_err=yes
11780fi
11781if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011782 ac_header_preproc=yes
11783else
11784 echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 ac_header_preproc=no
11788fi
11789
11790rm -f conftest.err conftest.$ac_ext
11791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11792echo "${ECHO_T}$ac_header_preproc" >&6; }
11793
11794# So? What about this header?
11795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11796 yes:no: )
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11801 ac_header_preproc=yes
11802 ;;
11803 no:yes:* )
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11816 ( cat <<\_ASBOX
11817## ----------------------------------- ##
11818## Report this to llvmbugs@cs.uiuc.edu ##
11819## ----------------------------------- ##
11820_ASBOX
11821 ) | sed "s/^/$as_me: WARNING: /" >&2
11822 ;;
11823esac
11824{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 eval "$as_ac_Header=\$ac_header_preproc"
11830fi
11831ac_res=`eval echo '${'$as_ac_Header'}'`
11832 { echo "$as_me:$LINENO: result: $ac_res" >&5
11833echo "${ECHO_T}$ac_res" >&6; }
11834
11835fi
11836if test `eval echo '${'$as_ac_Header'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11839_ACEOF
11840
11841fi
11842
11843done
11844
11845
11846
11847
11848
11849for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11850do
11851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857fi
11858ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860echo "${ECHO_T}$ac_res" >&6; }
11861else
11862 # Is the header compilable?
11863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11865cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871$ac_includes_default
11872#include <$ac_header>
11873_ACEOF
11874rm -f conftest.$ac_objext
11875if { (ac_try="$ac_compile"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011908 ac_header_compiler=yes
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 ac_header_compiler=no
11914fi
11915
11916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11918echo "${ECHO_T}$ac_header_compiler" >&6; }
11919
11920# Is the header present?
11921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11923cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929#include <$ac_header>
11930_ACEOF
11931if { (ac_try="$ac_cpp conftest.$ac_ext"
11932case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011943 (exit $ac_status); } >/dev/null; then
11944 if test -s conftest.err; then
11945 ac_cpp_err=$ac_c_preproc_warn_flag
11946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11947 else
11948 ac_cpp_err=
11949 fi
11950else
11951 ac_cpp_err=yes
11952fi
11953if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011954 ac_header_preproc=yes
11955else
11956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_header_preproc=no
11960fi
11961
11962rm -f conftest.err conftest.$ac_ext
11963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964echo "${ECHO_T}$ac_header_preproc" >&6; }
11965
11966# So? What about this header?
11967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968 yes:no: )
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11974 ;;
11975 no:yes:* )
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11988 ( cat <<\_ASBOX
11989## ----------------------------------- ##
11990## Report this to llvmbugs@cs.uiuc.edu ##
11991## ----------------------------------- ##
11992_ASBOX
11993 ) | sed "s/^/$as_me: WARNING: /" >&2
11994 ;;
11995esac
11996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000else
12001 eval "$as_ac_Header=\$ac_header_preproc"
12002fi
12003ac_res=`eval echo '${'$as_ac_Header'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005echo "${ECHO_T}$ac_res" >&6; }
12006
12007fi
12008if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011_ACEOF
12012
12013fi
12014
12015done
12016
12017
12018
12019for ac_header in string.h strings.h
12020do
12021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027fi
12028ac_res=`eval echo '${'$as_ac_Header'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030echo "${ECHO_T}$ac_res" >&6; }
12031else
12032 # Is the header compilable?
12033{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12035cat >conftest.$ac_ext <<_ACEOF
12036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
12041$ac_includes_default
12042#include <$ac_header>
12043_ACEOF
12044rm -f conftest.$ac_objext
12045if { (ac_try="$ac_compile"
12046case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_compile") 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012057 (exit $ac_status); } &&
12058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12059 { (case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062esac
12063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_try") 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_try") 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012078 ac_header_compiler=yes
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 ac_header_compiler=no
12084fi
12085
12086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12088echo "${ECHO_T}$ac_header_compiler" >&6; }
12089
12090# Is the header present?
12091{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12093cat >conftest.$ac_ext <<_ACEOF
12094/* confdefs.h. */
12095_ACEOF
12096cat confdefs.h >>conftest.$ac_ext
12097cat >>conftest.$ac_ext <<_ACEOF
12098/* end confdefs.h. */
12099#include <$ac_header>
12100_ACEOF
12101if { (ac_try="$ac_cpp conftest.$ac_ext"
12102case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012113 (exit $ac_status); } >/dev/null; then
12114 if test -s conftest.err; then
12115 ac_cpp_err=$ac_c_preproc_warn_flag
12116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12117 else
12118 ac_cpp_err=
12119 fi
12120else
12121 ac_cpp_err=yes
12122fi
12123if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012124 ac_header_preproc=yes
12125else
12126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_header_preproc=no
12130fi
12131
12132rm -f conftest.err conftest.$ac_ext
12133{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12134echo "${ECHO_T}$ac_header_preproc" >&6; }
12135
12136# So? What about this header?
12137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138 yes:no: )
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12143 ac_header_preproc=yes
12144 ;;
12145 no:yes:* )
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12158 ( cat <<\_ASBOX
12159## ----------------------------------- ##
12160## Report this to llvmbugs@cs.uiuc.edu ##
12161## ----------------------------------- ##
12162_ASBOX
12163 ) | sed "s/^/$as_me: WARNING: /" >&2
12164 ;;
12165esac
12166{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170else
12171 eval "$as_ac_Header=\$ac_header_preproc"
12172fi
12173ac_res=`eval echo '${'$as_ac_Header'}'`
12174 { echo "$as_me:$LINENO: result: $ac_res" >&5
12175echo "${ECHO_T}$ac_res" >&6; }
12176
12177fi
12178if test `eval echo '${'$as_ac_Header'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12181_ACEOF
12182 break
12183fi
12184
12185done
12186
12187
12188
12189
12190for ac_func in strchr index
12191do
12192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206#define $ac_func innocuous_$ac_func
12207
12208/* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12212
12213#ifdef __STDC__
12214# include <limits.h>
12215#else
12216# include <assert.h>
12217#endif
12218
12219#undef $ac_func
12220
12221/* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224#ifdef __cplusplus
12225extern "C"
12226#endif
12227char $ac_func ();
12228/* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231#if defined __stub_$ac_func || defined __stub___$ac_func
12232choke me
12233#endif
12234
12235int
12236main ()
12237{
12238return $ac_func ();
12239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext conftest$ac_exeext
12244if { (ac_try="$ac_link"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012277 eval "$as_ac_var=yes"
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 eval "$as_ac_var=no"
12283fi
12284
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012285rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012286 conftest$ac_exeext conftest.$ac_ext
12287fi
12288ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result: $ac_res" >&5
12290echo "${ECHO_T}$ac_res" >&6; }
12291if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294_ACEOF
12295 break
12296fi
12297done
12298
12299
12300
12301for ac_func in strrchr rindex
12302do
12303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317#define $ac_func innocuous_$ac_func
12318
12319/* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12323
12324#ifdef __STDC__
12325# include <limits.h>
12326#else
12327# include <assert.h>
12328#endif
12329
12330#undef $ac_func
12331
12332/* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335#ifdef __cplusplus
12336extern "C"
12337#endif
12338char $ac_func ();
12339/* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342#if defined __stub_$ac_func || defined __stub___$ac_func
12343choke me
12344#endif
12345
12346int
12347main ()
12348{
12349return $ac_func ();
12350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext conftest$ac_exeext
12355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012388 eval "$as_ac_var=yes"
12389else
12390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 eval "$as_ac_var=no"
12394fi
12395
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012396rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012397 conftest$ac_exeext conftest.$ac_ext
12398fi
12399ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result: $ac_res" >&5
12401echo "${ECHO_T}$ac_res" >&6; }
12402if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405_ACEOF
12406 break
12407fi
12408done
12409
12410
12411
12412for ac_func in memcpy bcopy
12413do
12414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420 cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
12426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12428#define $ac_func innocuous_$ac_func
12429
12430/* System header to define __stub macros and hopefully few prototypes,
12431 which can conflict with char $ac_func (); below.
12432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433 <limits.h> exists even on freestanding compilers. */
12434
12435#ifdef __STDC__
12436# include <limits.h>
12437#else
12438# include <assert.h>
12439#endif
12440
12441#undef $ac_func
12442
12443/* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char $ac_func ();
12450/* The GNU C library defines this for functions which it implements
12451 to always fail with ENOSYS. Some functions are actually named
12452 something starting with __ and the normal name is an alias. */
12453#if defined __stub_$ac_func || defined __stub___$ac_func
12454choke me
12455#endif
12456
12457int
12458main ()
12459{
12460return $ac_func ();
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (ac_try="$ac_link"
12467case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_link") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483esac
12484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012499 eval "$as_ac_var=yes"
12500else
12501 echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 eval "$as_ac_var=no"
12505fi
12506
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012507rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012508 conftest$ac_exeext conftest.$ac_ext
12509fi
12510ac_res=`eval echo '${'$as_ac_var'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512echo "${ECHO_T}$ac_res" >&6; }
12513if test `eval echo '${'$as_ac_var'}'` = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12516_ACEOF
12517 break
12518fi
12519done
12520
12521
12522
12523for ac_func in memmove strcmp
12524do
12525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531 cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
12537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12539#define $ac_func innocuous_$ac_func
12540
12541/* System header to define __stub macros and hopefully few prototypes,
12542 which can conflict with char $ac_func (); below.
12543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544 <limits.h> exists even on freestanding compilers. */
12545
12546#ifdef __STDC__
12547# include <limits.h>
12548#else
12549# include <assert.h>
12550#endif
12551
12552#undef $ac_func
12553
12554/* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12557#ifdef __cplusplus
12558extern "C"
12559#endif
12560char $ac_func ();
12561/* The GNU C library defines this for functions which it implements
12562 to always fail with ENOSYS. Some functions are actually named
12563 something starting with __ and the normal name is an alias. */
12564#if defined __stub_$ac_func || defined __stub___$ac_func
12565choke me
12566#endif
12567
12568int
12569main ()
12570{
12571return $ac_func ();
12572 ;
12573 return 0;
12574}
12575_ACEOF
12576rm -f conftest.$ac_objext conftest$ac_exeext
12577if { (ac_try="$ac_link"
12578case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012610 eval "$as_ac_var=yes"
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 eval "$as_ac_var=no"
12616fi
12617
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012618rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012619 conftest$ac_exeext conftest.$ac_ext
12620fi
12621ac_res=`eval echo '${'$as_ac_var'}'`
12622 { echo "$as_me:$LINENO: result: $ac_res" >&5
12623echo "${ECHO_T}$ac_res" >&6; }
12624if test `eval echo '${'$as_ac_var'}'` = yes; then
12625 cat >>confdefs.h <<_ACEOF
12626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627_ACEOF
12628
12629fi
12630done
12631
12632
12633
12634
12635for ac_func in closedir opendir readdir
12636do
12637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12638{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12640if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12651#define $ac_func innocuous_$ac_func
12652
12653/* System header to define __stub macros and hopefully few prototypes,
12654 which can conflict with char $ac_func (); below.
12655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656 <limits.h> exists even on freestanding compilers. */
12657
12658#ifdef __STDC__
12659# include <limits.h>
12660#else
12661# include <assert.h>
12662#endif
12663
12664#undef $ac_func
12665
12666/* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12669#ifdef __cplusplus
12670extern "C"
12671#endif
12672char $ac_func ();
12673/* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676#if defined __stub_$ac_func || defined __stub___$ac_func
12677choke me
12678#endif
12679
12680int
12681main ()
12682{
12683return $ac_func ();
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (ac_try="$ac_link"
12690case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_link") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012722 eval "$as_ac_var=yes"
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 eval "$as_ac_var=no"
12728fi
12729
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012730rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012731 conftest$ac_exeext conftest.$ac_ext
12732fi
12733ac_res=`eval echo '${'$as_ac_var'}'`
12734 { echo "$as_me:$LINENO: result: $ac_res" >&5
12735echo "${ECHO_T}$ac_res" >&6; }
12736if test `eval echo '${'$as_ac_var'}'` = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12739_ACEOF
12740
12741fi
12742done
12743
12744
12745# Check whether --enable-shared was given.
12746if test "${enable_shared+set}" = set; then
12747 enableval=$enable_shared; p=${PACKAGE-default}
12748 case $enableval in
12749 yes) enable_shared=yes ;;
12750 no) enable_shared=no ;;
12751 *)
12752 enable_shared=no
12753 # Look at the argument we got. We use all the common list separators.
12754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12755 for pkg in $enableval; do
12756 IFS="$lt_save_ifs"
12757 if test "X$pkg" = "X$p"; then
12758 enable_shared=yes
12759 fi
12760 done
12761 IFS="$lt_save_ifs"
12762 ;;
12763 esac
12764else
12765 enable_shared=yes
12766fi
12767
12768
12769# Check whether --enable-static was given.
12770if test "${enable_static+set}" = set; then
12771 enableval=$enable_static; p=${PACKAGE-default}
12772 case $enableval in
12773 yes) enable_static=yes ;;
12774 no) enable_static=no ;;
12775 *)
12776 enable_static=no
12777 # Look at the argument we got. We use all the common list separators.
12778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12779 for pkg in $enableval; do
12780 IFS="$lt_save_ifs"
12781 if test "X$pkg" = "X$p"; then
12782 enable_static=yes
12783 fi
12784 done
12785 IFS="$lt_save_ifs"
12786 ;;
12787 esac
12788else
12789 enable_static=yes
12790fi
12791
12792
12793# Check whether --enable-fast-install was given.
12794if test "${enable_fast_install+set}" = set; then
12795 enableval=$enable_fast_install; p=${PACKAGE-default}
12796 case $enableval in
12797 yes) enable_fast_install=yes ;;
12798 no) enable_fast_install=no ;;
12799 *)
12800 enable_fast_install=no
12801 # Look at the argument we got. We use all the common list separators.
12802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12803 for pkg in $enableval; do
12804 IFS="$lt_save_ifs"
12805 if test "X$pkg" = "X$p"; then
12806 enable_fast_install=yes
12807 fi
12808 done
12809 IFS="$lt_save_ifs"
12810 ;;
12811 esac
12812else
12813 enable_fast_install=yes
12814fi
12815
12816
12817{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12818echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12819if test "${lt_cv_path_SED+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822 # Loop through the user's path and test for sed and gsed.
12823# Then use that list of sed's as ones to test for truncation.
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for lt_ac_prog in sed gsed; do
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12832 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12833 fi
12834 done
12835 done
12836done
12837lt_ac_max=0
12838lt_ac_count=0
12839# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12840# along with /bin/sed that truncates output.
12841for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12842 test ! -f $lt_ac_sed && continue
12843 cat /dev/null > conftest.in
12844 lt_ac_count=0
12845 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12846 # Check for GNU sed and select it if it is found.
12847 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12848 lt_cv_path_SED=$lt_ac_sed
12849 break
12850 fi
12851 while true; do
12852 cat conftest.in conftest.in >conftest.tmp
12853 mv conftest.tmp conftest.in
12854 cp conftest.in conftest.nl
12855 echo >>conftest.nl
12856 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12857 cmp -s conftest.out conftest.nl || break
12858 # 10000 chars as input seems more than enough
12859 test $lt_ac_count -gt 10 && break
12860 lt_ac_count=`expr $lt_ac_count + 1`
12861 if test $lt_ac_count -gt $lt_ac_max; then
12862 lt_ac_max=$lt_ac_count
12863 lt_cv_path_SED=$lt_ac_sed
12864 fi
12865 done
12866done
12867
12868fi
12869
12870SED=$lt_cv_path_SED
12871{ echo "$as_me:$LINENO: result: $SED" >&5
12872echo "${ECHO_T}$SED" >&6; }
12873
12874
12875# Check whether --with-gnu-ld was given.
12876if test "${with_gnu_ld+set}" = set; then
12877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12878else
12879 with_gnu_ld=no
12880fi
12881
12882ac_prog=ld
12883if test "$GCC" = yes; then
12884 # Check if gcc -print-prog-name=ld gives a path.
12885 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12886echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12887 case $host in
12888 *-*-mingw*)
12889 # gcc leaves a trailing carriage return which upsets mingw
12890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12891 *)
12892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12893 esac
12894 case $ac_prog in
12895 # Accept absolute paths.
12896 [\\/]* | ?:[\\/]*)
12897 re_direlt='/[^/][^/]*/\.\./'
12898 # Canonicalize the pathname of ld
12899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12902 done
12903 test -z "$LD" && LD="$ac_prog"
12904 ;;
12905 "")
12906 # If it fails, then pretend we aren't using GCC.
12907 ac_prog=ld
12908 ;;
12909 *)
12910 # If it is relative, then search for the first ld in PATH.
12911 with_gnu_ld=unknown
12912 ;;
12913 esac
12914elif test "$with_gnu_ld" = yes; then
12915 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12916echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12917else
12918 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12919echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12920fi
12921if test "${lt_cv_path_LD+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923else
12924 if test -z "$LD"; then
12925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12926 for ac_dir in $PATH; do
12927 IFS="$lt_save_ifs"
12928 test -z "$ac_dir" && ac_dir=.
12929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12930 lt_cv_path_LD="$ac_dir/$ac_prog"
12931 # Check to see if the program is GNU ld. I'd rather use --version,
12932 # but apparently some variants of GNU ld only accept -v.
12933 # Break only if it was the GNU/non-GNU ld that we prefer.
12934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12935 *GNU* | *'with BFD'*)
12936 test "$with_gnu_ld" != no && break
12937 ;;
12938 *)
12939 test "$with_gnu_ld" != yes && break
12940 ;;
12941 esac
12942 fi
12943 done
12944 IFS="$lt_save_ifs"
12945else
12946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12947fi
12948fi
12949
12950LD="$lt_cv_path_LD"
12951if test -n "$LD"; then
12952 { echo "$as_me:$LINENO: result: $LD" >&5
12953echo "${ECHO_T}$LD" >&6; }
12954else
12955 { echo "$as_me:$LINENO: result: no" >&5
12956echo "${ECHO_T}no" >&6; }
12957fi
12958test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12959echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12960 { (exit 1); exit 1; }; }
12961{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12962echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12963if test "${lt_cv_prog_gnu_ld+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12967case `$LD -v 2>&1 </dev/null` in
12968*GNU* | *'with BFD'*)
12969 lt_cv_prog_gnu_ld=yes
12970 ;;
12971*)
12972 lt_cv_prog_gnu_ld=no
12973 ;;
12974esac
12975fi
12976{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12977echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12978with_gnu_ld=$lt_cv_prog_gnu_ld
12979
12980
12981{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12982echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12983if test "${lt_cv_ld_reload_flag+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
12986 lt_cv_ld_reload_flag='-r'
12987fi
12988{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12989echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12990reload_flag=$lt_cv_ld_reload_flag
12991case $reload_flag in
12992"" | " "*) ;;
12993*) reload_flag=" $reload_flag" ;;
12994esac
12995reload_cmds='$LD$reload_flag -o $output$reload_objs'
12996case $host_os in
12997 darwin*)
12998 if test "$GCC" = yes; then
12999 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13000 else
13001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13002 fi
13003 ;;
13004esac
13005
13006{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13007echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13008if test "${lt_cv_deplibs_check_method+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010else
13011 lt_cv_file_magic_cmd='$MAGIC_CMD'
13012lt_cv_file_magic_test_file=
13013lt_cv_deplibs_check_method='unknown'
13014# Need to set the preceding variable on all platforms that support
13015# interlibrary dependencies.
13016# 'none' -- dependencies not supported.
13017# `unknown' -- same as none, but documents that we really don't know.
13018# 'pass_all' -- all dependencies passed with no checks.
13019# 'test_compile' -- check by making test program.
13020# 'file_magic [[regex]]' -- check by looking for files in library path
13021# which responds to the $file_magic_cmd with a given extended regex.
13022# If you have `file' or equivalent on your system and you're not sure
13023# whether `pass_all' will *always* work, you probably want this one.
13024
13025case $host_os in
13026aix4* | aix5*)
13027 lt_cv_deplibs_check_method=pass_all
13028 ;;
13029
13030beos*)
13031 lt_cv_deplibs_check_method=pass_all
13032 ;;
13033
13034bsdi[45]*)
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13036 lt_cv_file_magic_cmd='/usr/bin/file -L'
13037 lt_cv_file_magic_test_file=/shlib/libc.so
13038 ;;
13039
13040cygwin*)
13041 # func_win32_libid is a shell function defined in ltmain.sh
13042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13043 lt_cv_file_magic_cmd='func_win32_libid'
13044 ;;
13045
13046mingw* | pw32*)
13047 # Base MSYS/MinGW do not provide the 'file' command needed by
13048 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13050 lt_cv_file_magic_cmd='$OBJDUMP -f'
13051 ;;
13052
13053darwin* | rhapsody*)
13054 lt_cv_deplibs_check_method=pass_all
13055 ;;
13056
13057freebsd* | kfreebsd*-gnu | dragonfly*)
13058 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13059 case $host_cpu in
13060 i*86 )
13061 # Not sure whether the presence of OpenBSD here was a mistake.
13062 # Let's accept both of them until this is cleared up.
13063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13064 lt_cv_file_magic_cmd=/usr/bin/file
13065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13066 ;;
13067 esac
13068 else
13069 lt_cv_deplibs_check_method=pass_all
13070 fi
13071 ;;
13072
13073gnu*)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076
13077hpux10.20* | hpux11*)
13078 lt_cv_file_magic_cmd=/usr/bin/file
13079 case $host_cpu in
13080 ia64*)
13081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13083 ;;
13084 hppa*64*)
13085 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]'
13086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13087 ;;
13088 *)
13089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13091 ;;
13092 esac
13093 ;;
13094
13095interix3*)
13096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13098 ;;
13099
13100irix5* | irix6* | nonstopux*)
13101 case $LD in
13102 *-32|*"-32 ") libmagic=32-bit;;
13103 *-n32|*"-n32 ") libmagic=N32;;
13104 *-64|*"-64 ") libmagic=64-bit;;
13105 *) libmagic=never-match;;
13106 esac
13107 lt_cv_deplibs_check_method=pass_all
13108 ;;
13109
13110# This must be Linux ELF.
13111linux*)
13112 lt_cv_deplibs_check_method=pass_all
13113 ;;
13114
13115netbsd*)
13116 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13118 else
13119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13120 fi
13121 ;;
13122
13123newos6*)
13124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13125 lt_cv_file_magic_cmd=/usr/bin/file
13126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13127 ;;
13128
13129nto-qnx*)
13130 lt_cv_deplibs_check_method=unknown
13131 ;;
13132
13133openbsd*)
13134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13136 else
13137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13138 fi
13139 ;;
13140
13141osf3* | osf4* | osf5*)
13142 lt_cv_deplibs_check_method=pass_all
13143 ;;
13144
13145solaris*)
13146 lt_cv_deplibs_check_method=pass_all
13147 ;;
13148
13149sysv4 | sysv4.3*)
13150 case $host_vendor in
13151 motorola)
13152 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]'
13153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13154 ;;
13155 ncr)
13156 lt_cv_deplibs_check_method=pass_all
13157 ;;
13158 sequent)
13159 lt_cv_file_magic_cmd='/bin/file'
13160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13161 ;;
13162 sni)
13163 lt_cv_file_magic_cmd='/bin/file'
13164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13165 lt_cv_file_magic_test_file=/lib/libc.so
13166 ;;
13167 siemens)
13168 lt_cv_deplibs_check_method=pass_all
13169 ;;
13170 pc)
13171 lt_cv_deplibs_check_method=pass_all
13172 ;;
13173 esac
13174 ;;
13175
13176sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13177 lt_cv_deplibs_check_method=pass_all
13178 ;;
13179esac
13180
13181fi
13182{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13183echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13184file_magic_cmd=$lt_cv_file_magic_cmd
13185deplibs_check_method=$lt_cv_deplibs_check_method
13186test -z "$deplibs_check_method" && deplibs_check_method=unknown
13187
13188
13189
13190# If no C compiler was specified, use CC.
13191LTCC=${LTCC-"$CC"}
13192
13193# If no C compiler flags were specified, use CFLAGS.
13194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13195
13196# Allow CC to be a program name with arguments.
13197compiler=$CC
13198
13199# Check whether --enable-libtool-lock was given.
13200if test "${enable_libtool_lock+set}" = set; then
13201 enableval=$enable_libtool_lock;
13202fi
13203
13204test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13205
13206# Some flags need to be propagated to the compiler or linker for good
13207# libtool support.
13208case $host in
13209ia64-*-hpux*)
13210 # Find out which ABI we are using.
13211 echo 'int i;' > conftest.$ac_ext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; then
13217 case `/usr/bin/file conftest.$ac_objext` in
13218 *ELF-32*)
13219 HPUX_IA64_MODE="32"
13220 ;;
13221 *ELF-64*)
13222 HPUX_IA64_MODE="64"
13223 ;;
13224 esac
13225 fi
13226 rm -rf conftest*
13227 ;;
13228*-*-irix6*)
13229 # Find out which ABI we are using.
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000013230 echo '#line 13230 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232 (eval $ac_compile) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; then
13236 if test "$lt_cv_prog_gnu_ld" = yes; then
13237 case `/usr/bin/file conftest.$ac_objext` in
13238 *32-bit*)
13239 LD="${LD-ld} -melf32bsmip"
13240 ;;
13241 *N32*)
13242 LD="${LD-ld} -melf32bmipn32"
13243 ;;
13244 *64-bit*)
13245 LD="${LD-ld} -melf64bmip"
13246 ;;
13247 esac
13248 else
13249 case `/usr/bin/file conftest.$ac_objext` in
13250 *32-bit*)
13251 LD="${LD-ld} -32"
13252 ;;
13253 *N32*)
13254 LD="${LD-ld} -n32"
13255 ;;
13256 *64-bit*)
13257 LD="${LD-ld} -64"
13258 ;;
13259 esac
13260 fi
13261 fi
13262 rm -rf conftest*
13263 ;;
13264
13265x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13266 # Find out which ABI we are using.
13267 echo 'int i;' > conftest.$ac_ext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; then
13273 case `/usr/bin/file conftest.o` in
13274 *32-bit*)
13275 case $host in
13276 x86_64-*linux*)
13277 LD="${LD-ld} -m elf_i386"
13278 ;;
13279 ppc64-*linux*|powerpc64-*linux*)
13280 LD="${LD-ld} -m elf32ppclinux"
13281 ;;
13282 s390x-*linux*)
13283 LD="${LD-ld} -m elf_s390"
13284 ;;
13285 sparc64-*linux*)
13286 LD="${LD-ld} -m elf32_sparc"
13287 ;;
13288 esac
13289 ;;
13290 *64-bit*)
13291 case $host in
13292 x86_64-*linux*)
13293 LD="${LD-ld} -m elf_x86_64"
13294 ;;
13295 ppc*-*linux*|powerpc*-*linux*)
13296 LD="${LD-ld} -m elf64ppc"
13297 ;;
13298 s390*-*linux*)
13299 LD="${LD-ld} -m elf64_s390"
13300 ;;
13301 sparc*-*linux*)
13302 LD="${LD-ld} -m elf64_sparc"
13303 ;;
13304 esac
13305 ;;
13306 esac
13307 fi
13308 rm -rf conftest*
13309 ;;
13310
13311*-*-sco3.2v5*)
13312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13313 SAVE_CFLAGS="$CFLAGS"
13314 CFLAGS="$CFLAGS -belf"
13315 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13316echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13317if test "${lt_cv_cc_needs_belf+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319else
13320 ac_ext=c
13321ac_cpp='$CPP $CPPFLAGS'
13322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326 cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
13332
13333int
13334main ()
13335{
13336
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext conftest$ac_exeext
13342if { (ac_try="$ac_link"
13343case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_link") 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13356 { (case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_try") 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_try") 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013375 lt_cv_cc_needs_belf=yes
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 lt_cv_cc_needs_belf=no
13381fi
13382
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013383rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013384 conftest$ac_exeext conftest.$ac_ext
13385 ac_ext=c
13386ac_cpp='$CPP $CPPFLAGS'
13387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13389ac_compiler_gnu=$ac_cv_c_compiler_gnu
13390
13391fi
13392{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13393echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13394 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13395 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13396 CFLAGS="$SAVE_CFLAGS"
13397 fi
13398 ;;
13399sparc*-*solaris*)
13400 # Find out which ABI we are using.
13401 echo 'int i;' > conftest.$ac_ext
13402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403 (eval $ac_compile) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; then
13407 case `/usr/bin/file conftest.o` in
13408 *64-bit*)
13409 case $lt_cv_prog_gnu_ld in
13410 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13411 *) LD="${LD-ld} -64" ;;
13412 esac
13413 ;;
13414 esac
13415 fi
13416 rm -rf conftest*
13417 ;;
13418
13419
13420esac
13421
13422need_locks="$enable_libtool_lock"
13423
13424
13425
13426
13427if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13429 (test "X$CXX" != "Xg++"))) ; then
13430 ac_ext=cpp
13431ac_cpp='$CXXCPP $CPPFLAGS'
13432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13435{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13436echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13437if test -z "$CXXCPP"; then
13438 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440else
13441 # Double quotes because CXXCPP needs to be expanded
13442 for CXXCPP in "$CXX -E" "/lib/cpp"
13443 do
13444 ac_preproc_ok=false
13445for ac_cxx_preproc_warn_flag in '' yes
13446do
13447 # Use a header file that comes with gcc, so configuring glibc
13448 # with a fresh cross-compiler works.
13449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13450 # <limits.h> exists even on freestanding compilers.
13451 # On the NeXT, cc -E runs the code through the compiler's parser,
13452 # not just through cpp. "Syntax error" is here to catch this case.
13453 cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459#ifdef __STDC__
13460# include <limits.h>
13461#else
13462# include <assert.h>
13463#endif
13464 Syntax error
13465_ACEOF
13466if { (ac_try="$ac_cpp conftest.$ac_ext"
13467case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013478 (exit $ac_status); } >/dev/null; then
13479 if test -s conftest.err; then
13480 ac_cpp_err=$ac_cxx_preproc_warn_flag
13481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13482 else
13483 ac_cpp_err=
13484 fi
13485else
13486 ac_cpp_err=yes
13487fi
13488if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013489 :
13490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494 # Broken: fails on valid input.
13495continue
13496fi
13497
13498rm -f conftest.err conftest.$ac_ext
13499
13500 # OK, works on sane cases. Now check whether nonexistent headers
13501 # can be detected and how.
13502 cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508#include <ac_nonexistent.h>
13509_ACEOF
13510if { (ac_try="$ac_cpp conftest.$ac_ext"
13511case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013522 (exit $ac_status); } >/dev/null; then
13523 if test -s conftest.err; then
13524 ac_cpp_err=$ac_cxx_preproc_warn_flag
13525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13526 else
13527 ac_cpp_err=
13528 fi
13529else
13530 ac_cpp_err=yes
13531fi
13532if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013533 # Broken: success on invalid input.
13534continue
13535else
13536 echo "$as_me: failed program was:" >&5
13537sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 # Passes both tests.
13540ac_preproc_ok=:
13541break
13542fi
13543
13544rm -f conftest.err conftest.$ac_ext
13545
13546done
13547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13548rm -f conftest.err conftest.$ac_ext
13549if $ac_preproc_ok; then
13550 break
13551fi
13552
13553 done
13554 ac_cv_prog_CXXCPP=$CXXCPP
13555
13556fi
13557 CXXCPP=$ac_cv_prog_CXXCPP
13558else
13559 ac_cv_prog_CXXCPP=$CXXCPP
13560fi
13561{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13562echo "${ECHO_T}$CXXCPP" >&6; }
13563ac_preproc_ok=false
13564for ac_cxx_preproc_warn_flag in '' yes
13565do
13566 # Use a header file that comes with gcc, so configuring glibc
13567 # with a fresh cross-compiler works.
13568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13569 # <limits.h> exists even on freestanding compilers.
13570 # On the NeXT, cc -E runs the code through the compiler's parser,
13571 # not just through cpp. "Syntax error" is here to catch this case.
13572 cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h. */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h. */
13578#ifdef __STDC__
13579# include <limits.h>
13580#else
13581# include <assert.h>
13582#endif
13583 Syntax error
13584_ACEOF
13585if { (ac_try="$ac_cpp conftest.$ac_ext"
13586case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013597 (exit $ac_status); } >/dev/null; then
13598 if test -s conftest.err; then
13599 ac_cpp_err=$ac_cxx_preproc_warn_flag
13600 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13601 else
13602 ac_cpp_err=
13603 fi
13604else
13605 ac_cpp_err=yes
13606fi
13607if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013608 :
13609else
13610 echo "$as_me: failed program was:" >&5
13611sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 # Broken: fails on valid input.
13614continue
13615fi
13616
13617rm -f conftest.err conftest.$ac_ext
13618
13619 # OK, works on sane cases. Now check whether nonexistent headers
13620 # can be detected and how.
13621 cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627#include <ac_nonexistent.h>
13628_ACEOF
13629if { (ac_try="$ac_cpp conftest.$ac_ext"
13630case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013641 (exit $ac_status); } >/dev/null; then
13642 if test -s conftest.err; then
13643 ac_cpp_err=$ac_cxx_preproc_warn_flag
13644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13645 else
13646 ac_cpp_err=
13647 fi
13648else
13649 ac_cpp_err=yes
13650fi
13651if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013652 # Broken: success on invalid input.
13653continue
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 # Passes both tests.
13659ac_preproc_ok=:
13660break
13661fi
13662
13663rm -f conftest.err conftest.$ac_ext
13664
13665done
13666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13667rm -f conftest.err conftest.$ac_ext
13668if $ac_preproc_ok; then
13669 :
13670else
13671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13672See \`config.log' for more details." >&5
13673echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13674See \`config.log' for more details." >&2;}
13675 { (exit 1); exit 1; }; }
13676fi
13677
13678ac_ext=cpp
13679ac_cpp='$CXXCPP $CPPFLAGS'
13680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13683
13684fi
13685
13686
13687ac_ext=f
13688ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13689ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13691if test -n "$ac_tool_prefix"; then
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013692 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 +000013693 do
13694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698if test "${ac_cv_prog_F77+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700else
13701 if test -n "$F77"; then
13702 ac_cv_prog_F77="$F77" # Let the user override the test.
13703else
13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705for as_dir in $PATH
13706do
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013710 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 +000013711 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13714 fi
13715done
13716done
13717IFS=$as_save_IFS
13718
13719fi
13720fi
13721F77=$ac_cv_prog_F77
13722if test -n "$F77"; then
13723 { echo "$as_me:$LINENO: result: $F77" >&5
13724echo "${ECHO_T}$F77" >&6; }
13725else
13726 { echo "$as_me:$LINENO: result: no" >&5
13727echo "${ECHO_T}no" >&6; }
13728fi
13729
13730
13731 test -n "$F77" && break
13732 done
13733fi
13734if test -z "$F77"; then
13735 ac_ct_F77=$F77
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013736 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 +000013737do
13738 # Extract the first word of "$ac_prog", so it can be a program name with args.
13739set dummy $ac_prog; ac_word=$2
13740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13742if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 if test -n "$ac_ct_F77"; then
13746 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13747else
13748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749for as_dir in $PATH
13750do
13751 IFS=$as_save_IFS
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013754 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 +000013755 ac_cv_prog_ac_ct_F77="$ac_prog"
13756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13757 break 2
13758 fi
13759done
13760done
13761IFS=$as_save_IFS
13762
13763fi
13764fi
13765ac_ct_F77=$ac_cv_prog_ac_ct_F77
13766if test -n "$ac_ct_F77"; then
13767 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13768echo "${ECHO_T}$ac_ct_F77" >&6; }
13769else
13770 { echo "$as_me:$LINENO: result: no" >&5
13771echo "${ECHO_T}no" >&6; }
13772fi
13773
13774
13775 test -n "$ac_ct_F77" && break
13776done
13777
13778 if test "x$ac_ct_F77" = x; then
13779 F77=""
13780 else
13781 case $cross_compiling:$ac_tool_warned in
13782yes:)
13783{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13784whose name does not start with the host triplet. If you think this
13785configuration is useful to you, please write to autoconf@gnu.org." >&5
13786echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13787whose name does not start with the host triplet. If you think this
13788configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13789ac_tool_warned=yes ;;
13790esac
13791 F77=$ac_ct_F77
13792 fi
13793fi
13794
13795
13796# Provide some information about the compiler.
13797echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13798ac_compiler=`set X $ac_compile; echo $2`
13799{ (ac_try="$ac_compiler --version >&5"
13800case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803esac
13804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_compiler --version >&5") 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }
13809{ (ac_try="$ac_compiler -v >&5"
13810case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_compiler -v >&5") 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }
13819{ (ac_try="$ac_compiler -V >&5"
13820case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compiler -V >&5") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }
13829rm -f a.out
13830
13831# If we don't use `.F' as extension, the preprocessor is not run on the
13832# input file. (Note that this only needs to work for GNU compilers.)
13833ac_save_ext=$ac_ext
13834ac_ext=F
13835{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13836echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13837if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839else
13840 cat >conftest.$ac_ext <<_ACEOF
13841 program main
13842#ifndef __GNUC__
13843 choke me
13844#endif
13845
13846 end
13847_ACEOF
13848rm -f conftest.$ac_objext
13849if { (ac_try="$ac_compile"
13850case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
13854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013882 ac_compiler_gnu=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_compiler_gnu=no
13888fi
13889
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13892
13893fi
13894{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13895echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13896ac_ext=$ac_save_ext
13897ac_test_FFLAGS=${FFLAGS+set}
13898ac_save_FFLAGS=$FFLAGS
13899FFLAGS=
13900{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13901echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13902if test "${ac_cv_prog_f77_g+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 FFLAGS=-g
13906cat >conftest.$ac_ext <<_ACEOF
13907 program main
13908
13909 end
13910_ACEOF
13911rm -f conftest.$ac_objext
13912if { (ac_try="$ac_compile"
13913case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_compile") 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013945 ac_cv_prog_f77_g=yes
13946else
13947 echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 ac_cv_prog_f77_g=no
13951fi
13952
13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954
13955fi
13956{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13957echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13958if test "$ac_test_FFLAGS" = set; then
13959 FFLAGS=$ac_save_FFLAGS
13960elif test $ac_cv_prog_f77_g = yes; then
13961 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13962 FFLAGS="-g -O2"
13963 else
13964 FFLAGS="-g"
13965 fi
13966else
13967 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13968 FFLAGS="-O2"
13969 else
13970 FFLAGS=
13971 fi
13972fi
13973
13974G77=`test $ac_compiler_gnu = yes && echo yes`
13975ac_ext=c
13976ac_cpp='$CPP $CPPFLAGS'
13977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13979ac_compiler_gnu=$ac_cv_c_compiler_gnu
13980
13981
13982
13983# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13984
13985# find the maximum length of command line arguments
13986{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13987echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13988if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990else
13991 i=0
13992 teststring="ABCD"
13993
13994 case $build_os in
13995 msdosdjgpp*)
13996 # On DJGPP, this test can blow up pretty badly due to problems in libc
13997 # (any single argument exceeding 2000 bytes causes a buffer overrun
13998 # during glob expansion). Even if it were fixed, the result of this
13999 # check would be larger than it should be.
14000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14001 ;;
14002
14003 gnu*)
14004 # Under GNU Hurd, this test is not required because there is
14005 # no limit to the length of command line arguments.
14006 # Libtool will interpret -1 as no limit whatsoever
14007 lt_cv_sys_max_cmd_len=-1;
14008 ;;
14009
14010 cygwin* | mingw*)
14011 # On Win9x/ME, this test blows up -- it succeeds, but takes
14012 # about 5 minutes as the teststring grows exponentially.
14013 # Worse, since 9x/ME are not pre-emptively multitasking,
14014 # you end up with a "frozen" computer, even though with patience
14015 # the test eventually succeeds (with a max line length of 256k).
14016 # Instead, let's just punt: use the minimum linelength reported by
14017 # all of the supported platforms: 8192 (on NT/2K/XP).
14018 lt_cv_sys_max_cmd_len=8192;
14019 ;;
14020
14021 amigaos*)
14022 # On AmigaOS with pdksh, this test takes hours, literally.
14023 # So we just punt and use a minimum line length of 8192.
14024 lt_cv_sys_max_cmd_len=8192;
14025 ;;
14026
14027 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14028 # This has been around since 386BSD, at least. Likely further.
14029 if test -x /sbin/sysctl; then
14030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14031 elif test -x /usr/sbin/sysctl; then
14032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14033 else
14034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14035 fi
14036 # And add a safety zone
14037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14039 ;;
14040
14041 interix*)
14042 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14043 lt_cv_sys_max_cmd_len=196608
14044 ;;
14045
14046 osf*)
14047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14049 # nice to cause kernel panics so lets avoid the loop below.
14050 # First set a reasonable default.
14051 lt_cv_sys_max_cmd_len=16384
14052 #
14053 if test -x /sbin/sysconfig; then
14054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14056 esac
14057 fi
14058 ;;
14059 sco3.2v5*)
14060 lt_cv_sys_max_cmd_len=102400
14061 ;;
14062 sysv5* | sco5v6* | sysv4.2uw2*)
14063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14064 if test -n "$kargmax"; then
14065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14066 else
14067 lt_cv_sys_max_cmd_len=32768
14068 fi
14069 ;;
14070 *)
14071 # If test is not a shell built-in, we'll probably end up computing a
14072 # maximum length that is only half of the actual maximum length, but
14073 # we can't tell.
14074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14075 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14076 = "XX$teststring") >/dev/null 2>&1 &&
14077 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14078 lt_cv_sys_max_cmd_len=$new_result &&
14079 test $i != 17 # 1/2 MB should be enough
14080 do
14081 i=`expr $i + 1`
14082 teststring=$teststring$teststring
14083 done
14084 teststring=
14085 # Add a significant safety factor because C++ compilers can tack on massive
14086 # amounts of additional arguments before passing them to the linker.
14087 # It appears as though 1/2 is a usable value.
14088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14089 ;;
14090 esac
14091
14092fi
14093
14094if test -n $lt_cv_sys_max_cmd_len ; then
14095 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14096echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14097else
14098 { echo "$as_me:$LINENO: result: none" >&5
14099echo "${ECHO_T}none" >&6; }
14100fi
14101
14102
14103
14104
14105# Check for command to grab the raw symbol name followed by C symbol from nm.
14106{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14107echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14108if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111
14112# These are sane defaults that work on at least a few old systems.
14113# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14114
14115# Character class describing NM global symbol codes.
14116symcode='[BCDEGRST]'
14117
14118# Regexp to match symbols that can be accessed directly from C.
14119sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14120
14121# Transform an extracted symbol line into a proper C declaration
14122lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14123
14124# Transform an extracted symbol line into symbol name and symbol address
14125lt_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'"
14126
14127# Define system-specific variables.
14128case $host_os in
14129aix*)
14130 symcode='[BCDT]'
14131 ;;
14132cygwin* | mingw* | pw32*)
14133 symcode='[ABCDGISTW]'
14134 ;;
14135hpux*) # Its linker distinguishes data from code symbols
14136 if test "$host_cpu" = ia64; then
14137 symcode='[ABCDEGRST]'
14138 fi
14139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14140 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'"
14141 ;;
14142linux*)
14143 if test "$host_cpu" = ia64; then
14144 symcode='[ABCDGIRSTW]'
14145 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14146 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'"
14147 fi
14148 ;;
14149irix* | nonstopux*)
14150 symcode='[BCDEGRST]'
14151 ;;
14152osf*)
14153 symcode='[BCDEGQRST]'
14154 ;;
14155solaris*)
14156 symcode='[BDRT]'
14157 ;;
14158sco3.2v5*)
14159 symcode='[DT]'
14160 ;;
14161sysv4.2uw2*)
14162 symcode='[DT]'
14163 ;;
14164sysv5* | sco5v6* | unixware* | OpenUNIX*)
14165 symcode='[ABDT]'
14166 ;;
14167sysv4)
14168 symcode='[DFNSTU]'
14169 ;;
14170esac
14171
14172# Handle CRLF in mingw tool chain
14173opt_cr=
14174case $build_os in
14175mingw*)
14176 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14177 ;;
14178esac
14179
14180# If we're using GNU nm, then use its standard symbol codes.
14181case `$NM -V 2>&1` in
14182*GNU* | *'with BFD'*)
14183 symcode='[ABCDGIRSTW]' ;;
14184esac
14185
14186# Try without a prefix undercore, then with it.
14187for ac_symprfx in "" "_"; do
14188
14189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14190 symxfrm="\\1 $ac_symprfx\\2 \\2"
14191
14192 # Write the raw and C identifiers.
14193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14194
14195 # Check to see that the pipe works correctly.
14196 pipe_works=no
14197
14198 rm -f conftest*
14199 cat > conftest.$ac_ext <<EOF
14200#ifdef __cplusplus
14201extern "C" {
14202#endif
14203char nm_test_var;
14204void nm_test_func(){}
14205#ifdef __cplusplus
14206}
14207#endif
14208int main(){nm_test_var='a';nm_test_func();return(0);}
14209EOF
14210
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; then
14216 # Now try to grab the symbols.
14217 nlist=conftest.nm
14218 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14219 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && test -s "$nlist"; then
14223 # Try sorting and uniquifying the output.
14224 if sort "$nlist" | uniq > "$nlist"T; then
14225 mv -f "$nlist"T "$nlist"
14226 else
14227 rm -f "$nlist"T
14228 fi
14229
14230 # Make sure that we snagged all the symbols we need.
14231 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14232 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14233 cat <<EOF > conftest.$ac_ext
14234#ifdef __cplusplus
14235extern "C" {
14236#endif
14237
14238EOF
14239 # Now generate the symbol file.
14240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14241
14242 cat <<EOF >> conftest.$ac_ext
14243#if defined (__STDC__) && __STDC__
14244# define lt_ptr_t void *
14245#else
14246# define lt_ptr_t char *
14247# define const
14248#endif
14249
14250/* The mapping between symbol names and symbols. */
14251const struct {
14252 const char *name;
14253 lt_ptr_t address;
14254}
14255lt_preloaded_symbols[] =
14256{
14257EOF
14258 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14259 cat <<\EOF >> conftest.$ac_ext
14260 {0, (lt_ptr_t) 0}
14261};
14262
14263#ifdef __cplusplus
14264}
14265#endif
14266EOF
14267 # Now try linking the two files.
14268 mv conftest.$ac_objext conftstm.$ac_objext
14269 lt_save_LIBS="$LIBS"
14270 lt_save_CFLAGS="$CFLAGS"
14271 LIBS="conftstm.$ac_objext"
14272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14278 pipe_works=yes
14279 fi
14280 LIBS="$lt_save_LIBS"
14281 CFLAGS="$lt_save_CFLAGS"
14282 else
14283 echo "cannot find nm_test_func in $nlist" >&5
14284 fi
14285 else
14286 echo "cannot find nm_test_var in $nlist" >&5
14287 fi
14288 else
14289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14290 fi
14291 else
14292 echo "$progname: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14294 fi
14295 rm -f conftest* conftst*
14296
14297 # Do not use the global_symbol_pipe unless it works.
14298 if test "$pipe_works" = yes; then
14299 break
14300 else
14301 lt_cv_sys_global_symbol_pipe=
14302 fi
14303done
14304
14305fi
14306
14307if test -z "$lt_cv_sys_global_symbol_pipe"; then
14308 lt_cv_sys_global_symbol_to_cdecl=
14309fi
14310if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14311 { echo "$as_me:$LINENO: result: failed" >&5
14312echo "${ECHO_T}failed" >&6; }
14313else
14314 { echo "$as_me:$LINENO: result: ok" >&5
14315echo "${ECHO_T}ok" >&6; }
14316fi
14317
14318{ echo "$as_me:$LINENO: checking for objdir" >&5
14319echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14320if test "${lt_cv_objdir+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322else
14323 rm -f .libs 2>/dev/null
14324mkdir .libs 2>/dev/null
14325if test -d .libs; then
14326 lt_cv_objdir=.libs
14327else
14328 # MS-DOS does not allow filenames that begin with a dot.
14329 lt_cv_objdir=_libs
14330fi
14331rmdir .libs 2>/dev/null
14332fi
14333{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14334echo "${ECHO_T}$lt_cv_objdir" >&6; }
14335objdir=$lt_cv_objdir
14336
14337
14338
14339
14340
14341case $host_os in
14342aix3*)
14343 # AIX sometimes has problems with the GCC collect2 program. For some
14344 # reason, if we set the COLLECT_NAMES environment variable, the problems
14345 # vanish in a puff of smoke.
14346 if test "X${COLLECT_NAMES+set}" != Xset; then
14347 COLLECT_NAMES=
14348 export COLLECT_NAMES
14349 fi
14350 ;;
14351esac
14352
14353# Sed substitution that helps us do robust quoting. It backslashifies
14354# metacharacters that are still active within double-quoted strings.
14355Xsed='sed -e 1s/^X//'
14356sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14357
14358# Same as above, but do not quote variable references.
14359double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14360
14361# Sed substitution to delay expansion of an escaped shell variable in a
14362# double_quote_subst'ed string.
14363delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14364
14365# Sed substitution to avoid accidental globbing in evaled expressions
14366no_glob_subst='s/\*/\\\*/g'
14367
14368# Constants:
14369rm="rm -f"
14370
14371# Global variables:
14372default_ofile=mklib
14373can_build_shared=yes
14374
14375# All known linkers require a `.a' archive for static linking (except MSVC,
14376# which needs '.lib').
14377libext=a
14378ltmain="$ac_aux_dir/ltmain.sh"
14379ofile="$default_ofile"
14380with_gnu_ld="$lt_cv_prog_gnu_ld"
14381
14382if test -n "$ac_tool_prefix"; then
14383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14384set dummy ${ac_tool_prefix}ar; ac_word=$2
14385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14387if test "${ac_cv_prog_AR+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389else
14390 if test -n "$AR"; then
14391 ac_cv_prog_AR="$AR" # Let the user override the test.
14392else
14393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14394for as_dir in $PATH
14395do
14396 IFS=$as_save_IFS
14397 test -z "$as_dir" && as_dir=.
14398 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014399 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 +000014400 ac_cv_prog_AR="${ac_tool_prefix}ar"
14401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14402 break 2
14403 fi
14404done
14405done
14406IFS=$as_save_IFS
14407
14408fi
14409fi
14410AR=$ac_cv_prog_AR
14411if test -n "$AR"; then
14412 { echo "$as_me:$LINENO: result: $AR" >&5
14413echo "${ECHO_T}$AR" >&6; }
14414else
14415 { echo "$as_me:$LINENO: result: no" >&5
14416echo "${ECHO_T}no" >&6; }
14417fi
14418
14419
14420fi
14421if test -z "$ac_cv_prog_AR"; then
14422 ac_ct_AR=$AR
14423 # Extract the first word of "ar", so it can be a program name with args.
14424set dummy ar; ac_word=$2
14425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14427if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429else
14430 if test -n "$ac_ct_AR"; then
14431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14432else
14433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434for as_dir in $PATH
14435do
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014439 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 +000014440 ac_cv_prog_ac_ct_AR="ar"
14441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14443 fi
14444done
14445done
14446IFS=$as_save_IFS
14447
14448fi
14449fi
14450ac_ct_AR=$ac_cv_prog_ac_ct_AR
14451if test -n "$ac_ct_AR"; then
14452 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14453echo "${ECHO_T}$ac_ct_AR" >&6; }
14454else
14455 { echo "$as_me:$LINENO: result: no" >&5
14456echo "${ECHO_T}no" >&6; }
14457fi
14458
14459 if test "x$ac_ct_AR" = x; then
14460 AR="false"
14461 else
14462 case $cross_compiling:$ac_tool_warned in
14463yes:)
14464{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14465whose name does not start with the host triplet. If you think this
14466configuration is useful to you, please write to autoconf@gnu.org." >&5
14467echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14468whose name does not start with the host triplet. If you think this
14469configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14470ac_tool_warned=yes ;;
14471esac
14472 AR=$ac_ct_AR
14473 fi
14474else
14475 AR="$ac_cv_prog_AR"
14476fi
14477
14478if test -n "$ac_tool_prefix"; then
14479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14483if test "${ac_cv_prog_RANLIB+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 if test -n "$RANLIB"; then
14487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14488else
14489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490for as_dir in $PATH
14491do
14492 IFS=$as_save_IFS
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014495 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 +000014496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14498 break 2
14499 fi
14500done
14501done
14502IFS=$as_save_IFS
14503
14504fi
14505fi
14506RANLIB=$ac_cv_prog_RANLIB
14507if test -n "$RANLIB"; then
14508 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14509echo "${ECHO_T}$RANLIB" >&6; }
14510else
14511 { echo "$as_me:$LINENO: result: no" >&5
14512echo "${ECHO_T}no" >&6; }
14513fi
14514
14515
14516fi
14517if test -z "$ac_cv_prog_RANLIB"; then
14518 ac_ct_RANLIB=$RANLIB
14519 # Extract the first word of "ranlib", so it can be a program name with args.
14520set dummy ranlib; ac_word=$2
14521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14523if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 if test -n "$ac_ct_RANLIB"; then
14527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14528else
14529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530for as_dir in $PATH
14531do
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014535 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 +000014536 ac_cv_prog_ac_ct_RANLIB="ranlib"
14537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14538 break 2
14539 fi
14540done
14541done
14542IFS=$as_save_IFS
14543
14544fi
14545fi
14546ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14547if test -n "$ac_ct_RANLIB"; then
14548 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14549echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14550else
14551 { echo "$as_me:$LINENO: result: no" >&5
14552echo "${ECHO_T}no" >&6; }
14553fi
14554
14555 if test "x$ac_ct_RANLIB" = x; then
14556 RANLIB=":"
14557 else
14558 case $cross_compiling:$ac_tool_warned in
14559yes:)
14560{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14561whose name does not start with the host triplet. If you think this
14562configuration is useful to you, please write to autoconf@gnu.org." >&5
14563echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14564whose name does not start with the host triplet. If you think this
14565configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14566ac_tool_warned=yes ;;
14567esac
14568 RANLIB=$ac_ct_RANLIB
14569 fi
14570else
14571 RANLIB="$ac_cv_prog_RANLIB"
14572fi
14573
14574if test -n "$ac_tool_prefix"; then
14575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14576set dummy ${ac_tool_prefix}strip; ac_word=$2
14577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14579if test "${ac_cv_prog_STRIP+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581else
14582 if test -n "$STRIP"; then
14583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14584else
14585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586for as_dir in $PATH
14587do
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014591 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 +000014592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 break 2
14595 fi
14596done
14597done
14598IFS=$as_save_IFS
14599
14600fi
14601fi
14602STRIP=$ac_cv_prog_STRIP
14603if test -n "$STRIP"; then
14604 { echo "$as_me:$LINENO: result: $STRIP" >&5
14605echo "${ECHO_T}$STRIP" >&6; }
14606else
14607 { echo "$as_me:$LINENO: result: no" >&5
14608echo "${ECHO_T}no" >&6; }
14609fi
14610
14611
14612fi
14613if test -z "$ac_cv_prog_STRIP"; then
14614 ac_ct_STRIP=$STRIP
14615 # Extract the first word of "strip", so it can be a program name with args.
14616set dummy strip; ac_word=$2
14617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14619if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621else
14622 if test -n "$ac_ct_STRIP"; then
14623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14624else
14625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626for as_dir in $PATH
14627do
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014631 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 +000014632 ac_cv_prog_ac_ct_STRIP="strip"
14633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 break 2
14635 fi
14636done
14637done
14638IFS=$as_save_IFS
14639
14640fi
14641fi
14642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643if test -n "$ac_ct_STRIP"; then
14644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14645echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14646else
14647 { echo "$as_me:$LINENO: result: no" >&5
14648echo "${ECHO_T}no" >&6; }
14649fi
14650
14651 if test "x$ac_ct_STRIP" = x; then
14652 STRIP=":"
14653 else
14654 case $cross_compiling:$ac_tool_warned in
14655yes:)
14656{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14657whose name does not start with the host triplet. If you think this
14658configuration is useful to you, please write to autoconf@gnu.org." >&5
14659echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14660whose name does not start with the host triplet. If you think this
14661configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14662ac_tool_warned=yes ;;
14663esac
14664 STRIP=$ac_ct_STRIP
14665 fi
14666else
14667 STRIP="$ac_cv_prog_STRIP"
14668fi
14669
14670
14671old_CC="$CC"
14672old_CFLAGS="$CFLAGS"
14673
14674# Set sane defaults for various variables
14675test -z "$AR" && AR=ar
14676test -z "$AR_FLAGS" && AR_FLAGS=cru
14677test -z "$AS" && AS=as
14678test -z "$CC" && CC=cc
14679test -z "$LTCC" && LTCC=$CC
14680test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14681test -z "$DLLTOOL" && DLLTOOL=dlltool
14682test -z "$LD" && LD=ld
14683test -z "$LN_S" && LN_S="ln -s"
14684test -z "$MAGIC_CMD" && MAGIC_CMD=file
14685test -z "$NM" && NM=nm
14686test -z "$SED" && SED=sed
14687test -z "$OBJDUMP" && OBJDUMP=objdump
14688test -z "$RANLIB" && RANLIB=:
14689test -z "$STRIP" && STRIP=:
14690test -z "$ac_objext" && ac_objext=o
14691
14692# Determine commands to create old-style static archives.
14693old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14694old_postinstall_cmds='chmod 644 $oldlib'
14695old_postuninstall_cmds=
14696
14697if test -n "$RANLIB"; then
14698 case $host_os in
14699 openbsd*)
14700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14701 ;;
14702 *)
14703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14704 ;;
14705 esac
14706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14707fi
14708
14709for cc_temp in $compiler""; do
14710 case $cc_temp in
14711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14713 \-*) ;;
14714 *) break;;
14715 esac
14716done
14717cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14718
14719
14720# Only perform the check for file, if the check method requires it
14721case $deplibs_check_method in
14722file_magic*)
14723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14724 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14725echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14726if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728else
14729 case $MAGIC_CMD in
14730[\\/*] | ?:[\\/]*)
14731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14732 ;;
14733*)
14734 lt_save_MAGIC_CMD="$MAGIC_CMD"
14735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14737 for ac_dir in $ac_dummy; do
14738 IFS="$lt_save_ifs"
14739 test -z "$ac_dir" && ac_dir=.
14740 if test -f $ac_dir/${ac_tool_prefix}file; then
14741 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14742 if test -n "$file_magic_test_file"; then
14743 case $deplibs_check_method in
14744 "file_magic "*)
14745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14748 $EGREP "$file_magic_regex" > /dev/null; then
14749 :
14750 else
14751 cat <<EOF 1>&2
14752
14753*** Warning: the command libtool uses to detect shared libraries,
14754*** $file_magic_cmd, produces output that libtool cannot recognize.
14755*** The result is that libtool may fail to recognize shared libraries
14756*** as such. This will affect the creation of libtool libraries that
14757*** depend on shared libraries, but programs linked with such libtool
14758*** libraries will work regardless of this problem. Nevertheless, you
14759*** may want to report the problem to your system manager and/or to
14760*** bug-libtool@gnu.org
14761
14762EOF
14763 fi ;;
14764 esac
14765 fi
14766 break
14767 fi
14768 done
14769 IFS="$lt_save_ifs"
14770 MAGIC_CMD="$lt_save_MAGIC_CMD"
14771 ;;
14772esac
14773fi
14774
14775MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14776if test -n "$MAGIC_CMD"; then
14777 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14778echo "${ECHO_T}$MAGIC_CMD" >&6; }
14779else
14780 { echo "$as_me:$LINENO: result: no" >&5
14781echo "${ECHO_T}no" >&6; }
14782fi
14783
14784if test -z "$lt_cv_path_MAGIC_CMD"; then
14785 if test -n "$ac_tool_prefix"; then
14786 { echo "$as_me:$LINENO: checking for file" >&5
14787echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14788if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
14791 case $MAGIC_CMD in
14792[\\/*] | ?:[\\/]*)
14793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14794 ;;
14795*)
14796 lt_save_MAGIC_CMD="$MAGIC_CMD"
14797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14799 for ac_dir in $ac_dummy; do
14800 IFS="$lt_save_ifs"
14801 test -z "$ac_dir" && ac_dir=.
14802 if test -f $ac_dir/file; then
14803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14804 if test -n "$file_magic_test_file"; then
14805 case $deplibs_check_method in
14806 "file_magic "*)
14807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14810 $EGREP "$file_magic_regex" > /dev/null; then
14811 :
14812 else
14813 cat <<EOF 1>&2
14814
14815*** Warning: the command libtool uses to detect shared libraries,
14816*** $file_magic_cmd, produces output that libtool cannot recognize.
14817*** The result is that libtool may fail to recognize shared libraries
14818*** as such. This will affect the creation of libtool libraries that
14819*** depend on shared libraries, but programs linked with such libtool
14820*** libraries will work regardless of this problem. Nevertheless, you
14821*** may want to report the problem to your system manager and/or to
14822*** bug-libtool@gnu.org
14823
14824EOF
14825 fi ;;
14826 esac
14827 fi
14828 break
14829 fi
14830 done
14831 IFS="$lt_save_ifs"
14832 MAGIC_CMD="$lt_save_MAGIC_CMD"
14833 ;;
14834esac
14835fi
14836
14837MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14838if test -n "$MAGIC_CMD"; then
14839 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14840echo "${ECHO_T}$MAGIC_CMD" >&6; }
14841else
14842 { echo "$as_me:$LINENO: result: no" >&5
14843echo "${ECHO_T}no" >&6; }
14844fi
14845
14846 else
14847 MAGIC_CMD=:
14848 fi
14849fi
14850
14851 fi
14852 ;;
14853esac
14854
14855enable_dlopen=yes
14856enable_win32_dll=no
14857
14858# Check whether --enable-libtool-lock was given.
14859if test "${enable_libtool_lock+set}" = set; then
14860 enableval=$enable_libtool_lock;
14861fi
14862
14863test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14864
14865
14866# Check whether --with-pic was given.
14867if test "${with_pic+set}" = set; then
14868 withval=$with_pic; pic_mode="$withval"
14869else
14870 pic_mode=default
14871fi
14872
14873test -z "$pic_mode" && pic_mode=default
14874
14875# Use C for the default configuration in the libtool script
14876tagname=
14877lt_save_CC="$CC"
14878ac_ext=c
14879ac_cpp='$CPP $CPPFLAGS'
14880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14882ac_compiler_gnu=$ac_cv_c_compiler_gnu
14883
14884
14885# Source file extension for C test sources.
14886ac_ext=c
14887
14888# Object file extension for compiled C test sources.
14889objext=o
14890objext=$objext
14891
14892# Code to be used in simple compile tests
14893lt_simple_compile_test_code="int some_variable = 0;\n"
14894
14895# Code to be used in simple link tests
14896lt_simple_link_test_code='int main(){return(0);}\n'
14897
14898
14899# If no C compiler was specified, use CC.
14900LTCC=${LTCC-"$CC"}
14901
14902# If no C compiler flags were specified, use CFLAGS.
14903LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14904
14905# Allow CC to be a program name with arguments.
14906compiler=$CC
14907
14908
14909# save warnings/boilerplate of simple test code
14910ac_outfile=conftest.$ac_objext
14911printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14912eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913_lt_compiler_boilerplate=`cat conftest.err`
14914$rm conftest*
14915
14916ac_outfile=conftest.$ac_objext
14917printf "$lt_simple_link_test_code" >conftest.$ac_ext
14918eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14919_lt_linker_boilerplate=`cat conftest.err`
14920$rm conftest*
14921
14922
14923
14924lt_prog_compiler_no_builtin_flag=
14925
14926if test "$GCC" = yes; then
14927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14928
14929
14930{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14931echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14932if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 lt_cv_prog_compiler_rtti_exceptions=no
14936 ac_outfile=conftest.$ac_objext
14937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14938 lt_compiler_flag="-fno-rtti -fno-exceptions"
14939 # Insert the option either (1) after the last *FLAGS variable, or
14940 # (2) before a word containing "conftest.", or (3) at the end.
14941 # Note that $ac_compile itself does not contain backslashes and begins
14942 # with a dollar sign (not a hyphen), so the echo should work correctly.
14943 # The option is referenced via a variable to avoid confusing sed.
14944 lt_compile=`echo "$ac_compile" | $SED \
14945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000014948 (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014949 (eval "$lt_compile" 2>conftest.err)
14950 ac_status=$?
14951 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000014952 echo "$as_me:14952: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014953 if (exit $ac_status) && test -s "$ac_outfile"; then
14954 # The compiler can only warn and ignore the option if not recognized
14955 # So say no if there are warnings other than the usual output.
14956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14959 lt_cv_prog_compiler_rtti_exceptions=yes
14960 fi
14961 fi
14962 $rm conftest*
14963
14964fi
14965{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14966echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14967
14968if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14970else
14971 :
14972fi
14973
14974fi
14975
14976lt_prog_compiler_wl=
14977lt_prog_compiler_pic=
14978lt_prog_compiler_static=
14979
14980{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14981echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14982
14983 if test "$GCC" = yes; then
14984 lt_prog_compiler_wl='-Wl,'
14985 lt_prog_compiler_static='-static'
14986
14987 case $host_os in
14988 aix*)
14989 # All AIX code is PIC.
14990 if test "$host_cpu" = ia64; then
14991 # AIX 5 now supports IA64 processor
14992 lt_prog_compiler_static='-Bstatic'
14993 fi
14994 ;;
14995
14996 amigaos*)
14997 # FIXME: we need at least 68020 code to build shared libraries, but
14998 # adding the `-m68020' flag to GCC prevents building anything better,
14999 # like `-m68040'.
15000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15001 ;;
15002
15003 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15004 # PIC is the default for these OSes.
15005 ;;
15006
15007 mingw* | pw32* | os2*)
15008 # This hack is so that the source file can tell whether it is being
15009 # built for inclusion in a dll (and should export symbols for example).
15010 lt_prog_compiler_pic='-DDLL_EXPORT'
15011 ;;
15012
15013 darwin* | rhapsody*)
15014 # PIC is the default on this platform
15015 # Common symbols not allowed in MH_DYLIB files
15016 lt_prog_compiler_pic='-fno-common'
15017 ;;
15018
15019 interix3*)
15020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15021 # Instead, we relocate shared libraries at runtime.
15022 ;;
15023
15024 msdosdjgpp*)
15025 # Just because we use GCC doesn't mean we suddenly get shared libraries
15026 # on systems that don't support them.
15027 lt_prog_compiler_can_build_shared=no
15028 enable_shared=no
15029 ;;
15030
15031 sysv4*MP*)
15032 if test -d /usr/nec; then
15033 lt_prog_compiler_pic=-Kconform_pic
15034 fi
15035 ;;
15036
15037 hpux*)
15038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039 # not for PA HP-UX.
15040 case $host_cpu in
15041 hppa*64*|ia64*)
15042 # +Z the default
15043 ;;
15044 *)
15045 lt_prog_compiler_pic='-fPIC'
15046 ;;
15047 esac
15048 ;;
15049
15050 *)
15051 lt_prog_compiler_pic='-fPIC'
15052 ;;
15053 esac
15054 else
15055 # PORTME Check for flag to pass linker flags through the system compiler.
15056 case $host_os in
15057 aix*)
15058 lt_prog_compiler_wl='-Wl,'
15059 if test "$host_cpu" = ia64; then
15060 # AIX 5 now supports IA64 processor
15061 lt_prog_compiler_static='-Bstatic'
15062 else
15063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15064 fi
15065 ;;
15066 darwin*)
15067 # PIC is the default on this platform
15068 # Common symbols not allowed in MH_DYLIB files
15069 case $cc_basename in
15070 xlc*)
15071 lt_prog_compiler_pic='-qnocommon'
15072 lt_prog_compiler_wl='-Wl,'
15073 ;;
15074 esac
15075 ;;
15076
15077 mingw* | pw32* | os2*)
15078 # This hack is so that the source file can tell whether it is being
15079 # built for inclusion in a dll (and should export symbols for example).
15080 lt_prog_compiler_pic='-DDLL_EXPORT'
15081 ;;
15082
15083 hpux9* | hpux10* | hpux11*)
15084 lt_prog_compiler_wl='-Wl,'
15085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15086 # not for PA HP-UX.
15087 case $host_cpu in
15088 hppa*64*|ia64*)
15089 # +Z the default
15090 ;;
15091 *)
15092 lt_prog_compiler_pic='+Z'
15093 ;;
15094 esac
15095 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15096 lt_prog_compiler_static='${wl}-a ${wl}archive'
15097 ;;
15098
15099 irix5* | irix6* | nonstopux*)
15100 lt_prog_compiler_wl='-Wl,'
15101 # PIC (with -KPIC) is the default.
15102 lt_prog_compiler_static='-non_shared'
15103 ;;
15104
15105 newsos6)
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-Bstatic'
15108 ;;
15109
15110 linux*)
15111 case $cc_basename in
15112 icc* | ecc*)
15113 lt_prog_compiler_wl='-Wl,'
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-static'
15116 ;;
15117 pgcc* | pgf77* | pgf90* | pgf95*)
15118 # Portland Group compilers (*not* the Pentium gcc compiler,
15119 # which looks to be a dead project)
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-fpic'
15122 lt_prog_compiler_static='-Bstatic'
15123 ;;
15124 ccc*)
15125 lt_prog_compiler_wl='-Wl,'
15126 # All Alpha code is PIC.
15127 lt_prog_compiler_static='-non_shared'
15128 ;;
15129 esac
15130 ;;
15131
15132 osf3* | osf4* | osf5*)
15133 lt_prog_compiler_wl='-Wl,'
15134 # All OSF/1 code is PIC.
15135 lt_prog_compiler_static='-non_shared'
15136 ;;
15137
15138 solaris*)
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 case $cc_basename in
15142 f77* | f90* | f95*)
15143 lt_prog_compiler_wl='-Qoption ld ';;
15144 *)
15145 lt_prog_compiler_wl='-Wl,';;
15146 esac
15147 ;;
15148
15149 sunos4*)
15150 lt_prog_compiler_wl='-Qoption ld '
15151 lt_prog_compiler_pic='-PIC'
15152 lt_prog_compiler_static='-Bstatic'
15153 ;;
15154
15155 sysv4 | sysv4.2uw2* | sysv4.3*)
15156 lt_prog_compiler_wl='-Wl,'
15157 lt_prog_compiler_pic='-KPIC'
15158 lt_prog_compiler_static='-Bstatic'
15159 ;;
15160
15161 sysv4*MP*)
15162 if test -d /usr/nec ;then
15163 lt_prog_compiler_pic='-Kconform_pic'
15164 lt_prog_compiler_static='-Bstatic'
15165 fi
15166 ;;
15167
15168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15172 ;;
15173
15174 unicos*)
15175 lt_prog_compiler_wl='-Wl,'
15176 lt_prog_compiler_can_build_shared=no
15177 ;;
15178
15179 uts4*)
15180 lt_prog_compiler_pic='-pic'
15181 lt_prog_compiler_static='-Bstatic'
15182 ;;
15183
15184 *)
15185 lt_prog_compiler_can_build_shared=no
15186 ;;
15187 esac
15188 fi
15189
15190{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15191echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15192
15193#
15194# Check to make sure the PIC flag actually works.
15195#
15196if test -n "$lt_prog_compiler_pic"; then
15197
15198{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15199echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15200if test "${lt_prog_compiler_pic_works+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 lt_prog_compiler_pic_works=no
15204 ac_outfile=conftest.$ac_objext
15205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15207 # Insert the option either (1) after the last *FLAGS variable, or
15208 # (2) before a word containing "conftest.", or (3) at the end.
15209 # Note that $ac_compile itself does not contain backslashes and begins
15210 # with a dollar sign (not a hyphen), so the echo should work correctly.
15211 # The option is referenced via a variable to avoid confusing sed.
15212 lt_compile=`echo "$ac_compile" | $SED \
15213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15215 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000015216 (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015217 (eval "$lt_compile" 2>conftest.err)
15218 ac_status=$?
15219 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000015220 echo "$as_me:15220: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015221 if (exit $ac_status) && test -s "$ac_outfile"; then
15222 # The compiler can only warn and ignore the option if not recognized
15223 # So say no if there are warnings other than the usual output.
15224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15227 lt_prog_compiler_pic_works=yes
15228 fi
15229 fi
15230 $rm conftest*
15231
15232fi
15233{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15234echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15235
15236if test x"$lt_prog_compiler_pic_works" = xyes; then
15237 case $lt_prog_compiler_pic in
15238 "" | " "*) ;;
15239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15240 esac
15241else
15242 lt_prog_compiler_pic=
15243 lt_prog_compiler_can_build_shared=no
15244fi
15245
15246fi
15247case $host_os in
15248 # For platforms which do not support PIC, -DPIC is meaningless:
15249 *djgpp*)
15250 lt_prog_compiler_pic=
15251 ;;
15252 *)
15253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15254 ;;
15255esac
15256
15257#
15258# Check to make sure the static flag actually works.
15259#
15260wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15261{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15262echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15263if test "${lt_prog_compiler_static_works+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265else
15266 lt_prog_compiler_static_works=no
15267 save_LDFLAGS="$LDFLAGS"
15268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15269 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15271 # The linker can only warn and ignore the option if not recognized
15272 # So say no if there are warnings
15273 if test -s conftest.err; then
15274 # Append any errors to the config.log.
15275 cat conftest.err 1>&5
15276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15278 if diff conftest.exp conftest.er2 >/dev/null; then
15279 lt_prog_compiler_static_works=yes
15280 fi
15281 else
15282 lt_prog_compiler_static_works=yes
15283 fi
15284 fi
15285 $rm conftest*
15286 LDFLAGS="$save_LDFLAGS"
15287
15288fi
15289{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15290echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15291
15292if test x"$lt_prog_compiler_static_works" = xyes; then
15293 :
15294else
15295 lt_prog_compiler_static=
15296fi
15297
15298
15299{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15300echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15301if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303else
15304 lt_cv_prog_compiler_c_o=no
15305 $rm -r conftest 2>/dev/null
15306 mkdir conftest
15307 cd conftest
15308 mkdir out
15309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
15311 lt_compiler_flag="-o out/conftest2.$ac_objext"
15312 # Insert the option either (1) after the last *FLAGS variable, or
15313 # (2) before a word containing "conftest.", or (3) at the end.
15314 # Note that $ac_compile itself does not contain backslashes and begins
15315 # with a dollar sign (not a hyphen), so the echo should work correctly.
15316 lt_compile=`echo "$ac_compile" | $SED \
15317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000015320 (eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015321 (eval "$lt_compile" 2>out/conftest.err)
15322 ac_status=$?
15323 cat out/conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000015324 echo "$as_me:15324: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15326 then
15327 # The compiler can only warn and ignore the option if not recognized
15328 # So say no if there are warnings
15329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler_c_o=yes
15333 fi
15334 fi
15335 chmod u+w . 2>&5
15336 $rm conftest*
15337 # SGI C++ compiler will create directory out/ii_files/ for
15338 # template instantiation
15339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15340 $rm out/* && rmdir out
15341 cd ..
15342 rmdir conftest
15343 $rm conftest*
15344
15345fi
15346{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15347echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15348
15349
15350hard_links="nottested"
15351if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15352 # do not overwrite the value of need_locks provided by the user
15353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15354echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15355 hard_links=yes
15356 $rm conftest*
15357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358 touch conftest.a
15359 ln conftest.a conftest.b 2>&5 || hard_links=no
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 { echo "$as_me:$LINENO: result: $hard_links" >&5
15362echo "${ECHO_T}$hard_links" >&6; }
15363 if test "$hard_links" = no; then
15364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15365echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15366 need_locks=warn
15367 fi
15368else
15369 need_locks=no
15370fi
15371
15372{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15373echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15374
15375 runpath_var=
15376 allow_undefined_flag=
15377 enable_shared_with_static_runtimes=no
15378 archive_cmds=
15379 archive_expsym_cmds=
15380 old_archive_From_new_cmds=
15381 old_archive_from_expsyms_cmds=
15382 export_dynamic_flag_spec=
15383 whole_archive_flag_spec=
15384 thread_safe_flag_spec=
15385 hardcode_libdir_flag_spec=
15386 hardcode_libdir_flag_spec_ld=
15387 hardcode_libdir_separator=
15388 hardcode_direct=no
15389 hardcode_minus_L=no
15390 hardcode_shlibpath_var=unsupported
15391 link_all_deplibs=unknown
15392 hardcode_automatic=no
15393 module_cmds=
15394 module_expsym_cmds=
15395 always_export_symbols=no
15396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 # include_expsyms should be a list of space-separated symbols to be *always*
15398 # included in the symbol list
15399 include_expsyms=
15400 # exclude_expsyms can be an extended regexp of symbols to exclude
15401 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15402 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15403 # as well as any symbol that contains `d'.
15404 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15406 # platforms (ab)use it in PIC code, but their linkers get confused if
15407 # the symbol is explicitly referenced. Since portable code cannot
15408 # rely on this symbol name, it's probably fine to never include it in
15409 # preloaded symbol tables.
15410 extract_expsyms_cmds=
15411 # Just being paranoid about ensuring that cc_basename is set.
15412 for cc_temp in $compiler""; do
15413 case $cc_temp in
15414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416 \-*) ;;
15417 *) break;;
15418 esac
15419done
15420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15421
15422 case $host_os in
15423 cygwin* | mingw* | pw32*)
15424 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15425 # When not using gcc, we currently assume that we are using
15426 # Microsoft Visual C++.
15427 if test "$GCC" != yes; then
15428 with_gnu_ld=no
15429 fi
15430 ;;
15431 interix*)
15432 # we just hope/assume this is gcc and not c89 (= MSVC++)
15433 with_gnu_ld=yes
15434 ;;
15435 openbsd*)
15436 with_gnu_ld=no
15437 ;;
15438 esac
15439
15440 ld_shlibs=yes
15441 if test "$with_gnu_ld" = yes; then
15442 # If archive_cmds runs LD, not CC, wlarc should be empty
15443 wlarc='${wl}'
15444
15445 # Set some defaults for GNU ld with shared library support. These
15446 # are reset later if shared libraries are not supported. Putting them
15447 # here allows them to be overridden if necessary.
15448 runpath_var=LD_RUN_PATH
15449 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15450 export_dynamic_flag_spec='${wl}--export-dynamic'
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15454 else
15455 whole_archive_flag_spec=
15456 fi
15457 supports_anon_versioning=no
15458 case `$LD -v 2>/dev/null` in
15459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462 *\ 2.11.*) ;; # other 2.11 versions
15463 *) supports_anon_versioning=yes ;;
15464 esac
15465
15466 # See if GNU ld supports shared libraries.
15467 case $host_os in
15468 aix3* | aix4* | aix5*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test "$host_cpu" != ia64; then
15471 ld_shlibs=no
15472 cat <<EOF 1>&2
15473
15474*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475*** to be unable to reliably create shared libraries on AIX.
15476*** Therefore, libtool is disabling shared libraries support. If you
15477*** really care for shared libraries, you may want to modify your PATH
15478*** so that a non-GNU linker is found, and then restart.
15479
15480EOF
15481 fi
15482 ;;
15483
15484 amigaos*)
15485 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)'
15486 hardcode_libdir_flag_spec='-L$libdir'
15487 hardcode_minus_L=yes
15488
15489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490 # that the semantics of dynamic libraries on AmigaOS, at least up
15491 # to version 4, is to share data among multiple programs linked
15492 # with the same dynamic library. Since this doesn't match the
15493 # behavior of shared libraries on other platforms, we can't use
15494 # them.
15495 ld_shlibs=no
15496 ;;
15497
15498 beos*)
15499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 allow_undefined_flag=unsupported
15501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502 # support --undefined. This deserves some investigation. FIXME
15503 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 else
15505 ld_shlibs=no
15506 fi
15507 ;;
15508
15509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec='-L$libdir'
15513 allow_undefined_flag=unsupported
15514 always_export_symbols=no
15515 enable_shared_with_static_runtimes=yes
15516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15517
15518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520 # If the export-symbols file already is a .def file (1st line
15521 # is EXPORTS), use it as is; otherwise, prepend...
15522 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523 cp $export_symbols $output_objdir/$soname.def;
15524 else
15525 echo EXPORTS > $output_objdir/$soname.def;
15526 cat $export_symbols >> $output_objdir/$soname.def;
15527 fi~
15528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15529 else
15530 ld_shlibs=no
15531 fi
15532 ;;
15533
15534 interix3*)
15535 hardcode_direct=no
15536 hardcode_shlibpath_var=no
15537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15538 export_dynamic_flag_spec='${wl}-E'
15539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540 # Instead, shared libraries are loaded at an image base (0x10000000 by
15541 # default) and relocated if they conflict, which is a slow very memory
15542 # consuming and fragmenting process. To avoid this, we pick a random,
15543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15546 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'
15547 ;;
15548
15549 linux*)
15550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551 tmp_addflag=
15552 case $cc_basename,$host_cpu in
15553 pgcc*) # Portland Group C compiler
15554 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'
15555 tmp_addflag=' $pic_flag'
15556 ;;
15557 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15558 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'
15559 tmp_addflag=' $pic_flag -Mnomain' ;;
15560 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15561 tmp_addflag=' -i_dynamic' ;;
15562 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15563 tmp_addflag=' -i_dynamic -nofor_main' ;;
15564 ifc* | ifort*) # Intel Fortran compiler
15565 tmp_addflag=' -nofor_main' ;;
15566 esac
15567 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15568
15569 if test $supports_anon_versioning = yes; then
15570 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15572 $echo "local: *; };" >> $output_objdir/$libname.ver~
15573 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15574 fi
15575 else
15576 ld_shlibs=no
15577 fi
15578 ;;
15579
15580 netbsd*)
15581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15582 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15583 wlarc=
15584 else
15585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15587 fi
15588 ;;
15589
15590 solaris*)
15591 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15592 ld_shlibs=no
15593 cat <<EOF 1>&2
15594
15595*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15596*** create shared libraries on Solaris systems. Therefore, libtool
15597*** is disabling shared libraries support. We urge you to upgrade GNU
15598*** binutils to release 2.9.1 or newer. Another option is to modify
15599*** your PATH or compiler configuration so that the native linker is
15600*** used, and then restart.
15601
15602EOF
15603 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15606 else
15607 ld_shlibs=no
15608 fi
15609 ;;
15610
15611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15612 case `$LD -v 2>&1` in
15613 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15614 ld_shlibs=no
15615 cat <<_LT_EOF 1>&2
15616
15617*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15618*** reliably create shared libraries on SCO systems. Therefore, libtool
15619*** is disabling shared libraries support. We urge you to upgrade GNU
15620*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15621*** your PATH or compiler configuration so that the native linker is
15622*** used, and then restart.
15623
15624_LT_EOF
15625 ;;
15626 *)
15627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15631 else
15632 ld_shlibs=no
15633 fi
15634 ;;
15635 esac
15636 ;;
15637
15638 sunos4*)
15639 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15640 wlarc=
15641 hardcode_direct=yes
15642 hardcode_shlibpath_var=no
15643 ;;
15644
15645 *)
15646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649 else
15650 ld_shlibs=no
15651 fi
15652 ;;
15653 esac
15654
15655 if test "$ld_shlibs" = no; then
15656 runpath_var=
15657 hardcode_libdir_flag_spec=
15658 export_dynamic_flag_spec=
15659 whole_archive_flag_spec=
15660 fi
15661 else
15662 # PORTME fill in a description of your system's linker (not GNU ld)
15663 case $host_os in
15664 aix3*)
15665 allow_undefined_flag=unsupported
15666 always_export_symbols=yes
15667 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'
15668 # Note: this linker hardcodes the directories in LIBPATH if there
15669 # are no directories specified by -L.
15670 hardcode_minus_L=yes
15671 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15672 # Neither direct hardcoding nor static linking is supported with a
15673 # broken collect2.
15674 hardcode_direct=unsupported
15675 fi
15676 ;;
15677
15678 aix4* | aix5*)
15679 if test "$host_cpu" = ia64; then
15680 # On IA64, the linker does run time linking by default, so we don't
15681 # have to do anything special.
15682 aix_use_runtimelinking=no
15683 exp_sym_flag='-Bexport'
15684 no_entry_flag=""
15685 else
15686 # If we're using GNU nm, then we don't want the "-C" option.
15687 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15688 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15689 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'
15690 else
15691 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'
15692 fi
15693 aix_use_runtimelinking=no
15694
15695 # Test if we are trying to use run time linking or normal
15696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15697 # need to do runtime linking.
15698 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15699 for ld_flag in $LDFLAGS; do
15700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15701 aix_use_runtimelinking=yes
15702 break
15703 fi
15704 done
15705 ;;
15706 esac
15707
15708 exp_sym_flag='-bexport'
15709 no_entry_flag='-bnoentry'
15710 fi
15711
15712 # When large executables or shared objects are built, AIX ld can
15713 # have problems creating the table of contents. If linking a library
15714 # or program results in "error TOC overflow" add -mminimal-toc to
15715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15717
15718 archive_cmds=''
15719 hardcode_direct=yes
15720 hardcode_libdir_separator=':'
15721 link_all_deplibs=yes
15722
15723 if test "$GCC" = yes; then
15724 case $host_os in aix4.[012]|aix4.[012].*)
15725 # We only want to do this on AIX 4.2 and lower, the check
15726 # below for broken collect2 doesn't work under 4.3+
15727 collect2name=`${CC} -print-prog-name=collect2`
15728 if test -f "$collect2name" && \
15729 strings "$collect2name" | grep resolve_lib_name >/dev/null
15730 then
15731 # We have reworked collect2
15732 hardcode_direct=yes
15733 else
15734 # We have old collect2
15735 hardcode_direct=unsupported
15736 # It fails to find uninstalled libraries when the uninstalled
15737 # path is not listed in the libpath. Setting hardcode_minus_L
15738 # to unsupported forces relinking
15739 hardcode_minus_L=yes
15740 hardcode_libdir_flag_spec='-L$libdir'
15741 hardcode_libdir_separator=
15742 fi
15743 ;;
15744 esac
15745 shared_flag='-shared'
15746 if test "$aix_use_runtimelinking" = yes; then
15747 shared_flag="$shared_flag "'${wl}-G'
15748 fi
15749 else
15750 # not using gcc
15751 if test "$host_cpu" = ia64; then
15752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15753 # chokes on -Wl,-G. The following line is correct:
15754 shared_flag='-G'
15755 else
15756 if test "$aix_use_runtimelinking" = yes; then
15757 shared_flag='${wl}-G'
15758 else
15759 shared_flag='${wl}-bM:SRE'
15760 fi
15761 fi
15762 fi
15763
15764 # It seems that -bexpall does not export symbols beginning with
15765 # underscore (_), so it is better to generate a list of symbols to export.
15766 always_export_symbols=yes
15767 if test "$aix_use_runtimelinking" = yes; then
15768 # Warning - without using the other runtime loading flags (-brtl),
15769 # -berok will link without error, but may produce a broken library.
15770 allow_undefined_flag='-berok'
15771 # Determine the default libpath from the value encoded in an empty executable.
15772 cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778
15779int
15780main ()
15781{
15782
15783 ;
15784 return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext conftest$ac_exeext
15788if { (ac_try="$ac_link"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_link") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805esac
15806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015821
15822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15823}'`
15824# Check for a 64-bit object if we didn't find anything.
15825if 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; }
15826}'`; fi
15827else
15828 echo "$as_me: failed program was:" >&5
15829sed 's/^/| /' conftest.$ac_ext >&5
15830
15831
15832fi
15833
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015834rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015835 conftest$ac_exeext conftest.$ac_ext
15836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15837
15838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15839 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"
15840 else
15841 if test "$host_cpu" = ia64; then
15842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15843 allow_undefined_flag="-z nodefs"
15844 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"
15845 else
15846 # Determine the default libpath from the value encoded in an empty executable.
15847 cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853
15854int
15855main ()
15856{
15857
15858 ;
15859 return 0;
15860}
15861_ACEOF
15862rm -f conftest.$ac_objext conftest$ac_exeext
15863if { (ac_try="$ac_link"
15864case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867esac
15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_link") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest$ac_exeext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015896
15897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15898}'`
15899# Check for a 64-bit object if we didn't find anything.
15900if 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; }
15901}'`; fi
15902else
15903 echo "$as_me: failed program was:" >&5
15904sed 's/^/| /' conftest.$ac_ext >&5
15905
15906
15907fi
15908
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015909rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015910 conftest$ac_exeext conftest.$ac_ext
15911if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15912
15913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15914 # Warning - without using the other run time loading flags,
15915 # -berok will link without error, but may produce a broken library.
15916 no_undefined_flag=' ${wl}-bernotok'
15917 allow_undefined_flag=' ${wl}-berok'
15918 # Exported symbols can be pulled into shared objects from archives
15919 whole_archive_flag_spec='$convenience'
15920 archive_cmds_need_lc=yes
15921 # This is similar to how AIX traditionally builds its shared libraries.
15922 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'
15923 fi
15924 fi
15925 ;;
15926
15927 amigaos*)
15928 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)'
15929 hardcode_libdir_flag_spec='-L$libdir'
15930 hardcode_minus_L=yes
15931 # see comment about different semantics on the GNU ld section
15932 ld_shlibs=no
15933 ;;
15934
15935 bsdi[45]*)
15936 export_dynamic_flag_spec=-rdynamic
15937 ;;
15938
15939 cygwin* | mingw* | pw32*)
15940 # When not using gcc, we currently assume that we are using
15941 # Microsoft Visual C++.
15942 # hardcode_libdir_flag_spec is actually meaningless, as there is
15943 # no search path for DLLs.
15944 hardcode_libdir_flag_spec=' '
15945 allow_undefined_flag=unsupported
15946 # Tell ltmain to make .lib files, not .a files.
15947 libext=lib
15948 # Tell ltmain to make .dll files, not .so files.
15949 shrext_cmds=".dll"
15950 # FIXME: Setting linknames here is a bad hack.
15951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15952 # The linker will automatically build a .lib file if we build a DLL.
15953 old_archive_From_new_cmds='true'
15954 # FIXME: Should let the user specify the lib program.
15955 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15956 fix_srcfile_path='`cygpath -w "$srcfile"`'
15957 enable_shared_with_static_runtimes=yes
15958 ;;
15959
15960 darwin* | rhapsody*)
15961 case $host_os in
15962 rhapsody* | darwin1.[012])
15963 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15964 ;;
15965 *) # Darwin 1.3 on
15966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15968 else
15969 case ${MACOSX_DEPLOYMENT_TARGET} in
15970 10.[012])
15971 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15972 ;;
15973 10.*)
15974 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15975 ;;
15976 esac
15977 fi
15978 ;;
15979 esac
15980 archive_cmds_need_lc=no
15981 hardcode_direct=no
15982 hardcode_automatic=yes
15983 hardcode_shlibpath_var=unsupported
15984 whole_archive_flag_spec=''
15985 link_all_deplibs=yes
15986 if test "$GCC" = yes ; then
15987 output_verbose_link_cmd='echo'
15988 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15989 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15991 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}'
15992 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}'
15993 else
15994 case $cc_basename in
15995 xlc*)
15996 output_verbose_link_cmd='echo'
15997 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15998 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16000 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}'
16001 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}'
16002 ;;
16003 *)
16004 ld_shlibs=no
16005 ;;
16006 esac
16007 fi
16008 ;;
16009
16010 dgux*)
16011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_libdir_flag_spec='-L$libdir'
16013 hardcode_shlibpath_var=no
16014 ;;
16015
16016 freebsd1*)
16017 ld_shlibs=no
16018 ;;
16019
16020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16021 # support. Future versions do this automatically, but an explicit c++rt0.o
16022 # does not break anything, and helps significantly (at the cost of a little
16023 # extra space).
16024 freebsd2.2*)
16025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16026 hardcode_libdir_flag_spec='-R$libdir'
16027 hardcode_direct=yes
16028 hardcode_shlibpath_var=no
16029 ;;
16030
16031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16032 freebsd2*)
16033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034 hardcode_direct=yes
16035 hardcode_minus_L=yes
16036 hardcode_shlibpath_var=no
16037 ;;
16038
16039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16040 freebsd* | kfreebsd*-gnu | dragonfly*)
16041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16042 hardcode_libdir_flag_spec='-R$libdir'
16043 hardcode_direct=yes
16044 hardcode_shlibpath_var=no
16045 ;;
16046
16047 hpux9*)
16048 if test "$GCC" = yes; then
16049 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'
16050 else
16051 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'
16052 fi
16053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16054 hardcode_libdir_separator=:
16055 hardcode_direct=yes
16056
16057 # hardcode_minus_L: Not really in the search PATH,
16058 # but as the default location of the library.
16059 hardcode_minus_L=yes
16060 export_dynamic_flag_spec='${wl}-E'
16061 ;;
16062
16063 hpux10*)
16064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16066 else
16067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16068 fi
16069 if test "$with_gnu_ld" = no; then
16070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16071 hardcode_libdir_separator=:
16072
16073 hardcode_direct=yes
16074 export_dynamic_flag_spec='${wl}-E'
16075
16076 # hardcode_minus_L: Not really in the search PATH,
16077 # but as the default location of the library.
16078 hardcode_minus_L=yes
16079 fi
16080 ;;
16081
16082 hpux11*)
16083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16084 case $host_cpu in
16085 hppa*64*)
16086 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087 ;;
16088 ia64*)
16089 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16090 ;;
16091 *)
16092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16093 ;;
16094 esac
16095 else
16096 case $host_cpu in
16097 hppa*64*)
16098 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16099 ;;
16100 ia64*)
16101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16102 ;;
16103 *)
16104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16105 ;;
16106 esac
16107 fi
16108 if test "$with_gnu_ld" = no; then
16109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator=:
16111
16112 case $host_cpu in
16113 hppa*64*|ia64*)
16114 hardcode_libdir_flag_spec_ld='+b $libdir'
16115 hardcode_direct=no
16116 hardcode_shlibpath_var=no
16117 ;;
16118 *)
16119 hardcode_direct=yes
16120 export_dynamic_flag_spec='${wl}-E'
16121
16122 # hardcode_minus_L: Not really in the search PATH,
16123 # but as the default location of the library.
16124 hardcode_minus_L=yes
16125 ;;
16126 esac
16127 fi
16128 ;;
16129
16130 irix5* | irix6* | nonstopux*)
16131 if test "$GCC" = yes; then
16132 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'
16133 else
16134 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'
16135 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16136 fi
16137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16138 hardcode_libdir_separator=:
16139 link_all_deplibs=yes
16140 ;;
16141
16142 netbsd*)
16143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16145 else
16146 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16147 fi
16148 hardcode_libdir_flag_spec='-R$libdir'
16149 hardcode_direct=yes
16150 hardcode_shlibpath_var=no
16151 ;;
16152
16153 newsos6)
16154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct=yes
16156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16157 hardcode_libdir_separator=:
16158 hardcode_shlibpath_var=no
16159 ;;
16160
16161 openbsd*)
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16168 export_dynamic_flag_spec='${wl}-E'
16169 else
16170 case $host_os in
16171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec='-R$libdir'
16174 ;;
16175 *)
16176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16178 ;;
16179 esac
16180 fi
16181 ;;
16182
16183 os2*)
16184 hardcode_libdir_flag_spec='-L$libdir'
16185 hardcode_minus_L=yes
16186 allow_undefined_flag=unsupported
16187 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'
16188 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16189 ;;
16190
16191 osf3*)
16192 if test "$GCC" = yes; then
16193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16194 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'
16195 else
16196 allow_undefined_flag=' -expect_unresolved \*'
16197 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'
16198 fi
16199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16200 hardcode_libdir_separator=:
16201 ;;
16202
16203 osf4* | osf5*) # as osf3* with the addition of -msym flag
16204 if test "$GCC" = yes; then
16205 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16206 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'
16207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16208 else
16209 allow_undefined_flag=' -expect_unresolved \*'
16210 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'
16211 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16212 $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'
16213
16214 # Both c and cxx compiler support -rpath directly
16215 hardcode_libdir_flag_spec='-rpath $libdir'
16216 fi
16217 hardcode_libdir_separator=:
16218 ;;
16219
16220 solaris*)
16221 no_undefined_flag=' -z text'
16222 if test "$GCC" = yes; then
16223 wlarc='${wl}'
16224 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16226 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16227 else
16228 wlarc=''
16229 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16232 fi
16233 hardcode_libdir_flag_spec='-R$libdir'
16234 hardcode_shlibpath_var=no
16235 case $host_os in
16236 solaris2.[0-5] | solaris2.[0-5].*) ;;
16237 *)
16238 # The compiler driver will combine linker options so we
16239 # cannot just pass the convience library names through
16240 # without $wl, iff we do not link with $LD.
16241 # Luckily, gcc supports the same syntax we need for Sun Studio.
16242 # Supported since Solaris 2.6 (maybe 2.5.1?)
16243 case $wlarc in
16244 '')
16245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16246 *)
16247 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' ;;
16248 esac ;;
16249 esac
16250 link_all_deplibs=yes
16251 ;;
16252
16253 sunos4*)
16254 if test "x$host_vendor" = xsequent; then
16255 # Use $CC to link under sequent, because it throws in some extra .o
16256 # files that make .init and .fini sections work.
16257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16258 else
16259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16260 fi
16261 hardcode_libdir_flag_spec='-L$libdir'
16262 hardcode_direct=yes
16263 hardcode_minus_L=yes
16264 hardcode_shlibpath_var=no
16265 ;;
16266
16267 sysv4)
16268 case $host_vendor in
16269 sni)
16270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 hardcode_direct=yes # is this really true???
16272 ;;
16273 siemens)
16274 ## LD is ld it makes a PLAMLIB
16275 ## CC just makes a GrossModule.
16276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16277 reload_cmds='$CC -r -o $output$reload_objs'
16278 hardcode_direct=no
16279 ;;
16280 motorola)
16281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16283 ;;
16284 esac
16285 runpath_var='LD_RUN_PATH'
16286 hardcode_shlibpath_var=no
16287 ;;
16288
16289 sysv4.3*)
16290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 hardcode_shlibpath_var=no
16292 export_dynamic_flag_spec='-Bexport'
16293 ;;
16294
16295 sysv4*MP*)
16296 if test -d /usr/nec; then
16297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_shlibpath_var=no
16299 runpath_var=LD_RUN_PATH
16300 hardcode_runpath_var=yes
16301 ld_shlibs=yes
16302 fi
16303 ;;
16304
16305 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16306 no_undefined_flag='${wl}-z,text'
16307 archive_cmds_need_lc=no
16308 hardcode_shlibpath_var=no
16309 runpath_var='LD_RUN_PATH'
16310
16311 if test "$GCC" = yes; then
16312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 else
16315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 fi
16318 ;;
16319
16320 sysv5* | sco3.2v5* | sco5v6*)
16321 # Note: We can NOT use -z defs as we might desire, because we do not
16322 # link with -lc, and that would cause any symbols used from libc to
16323 # always be unresolved, which means just about no library would
16324 # ever link correctly. If we're not using GNU ld we use -z text
16325 # though, which does catch some bad symbols but isn't as heavy-handed
16326 # as -z defs.
16327 no_undefined_flag='${wl}-z,text'
16328 allow_undefined_flag='${wl}-z,nodefs'
16329 archive_cmds_need_lc=no
16330 hardcode_shlibpath_var=no
16331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16332 hardcode_libdir_separator=':'
16333 link_all_deplibs=yes
16334 export_dynamic_flag_spec='${wl}-Bexport'
16335 runpath_var='LD_RUN_PATH'
16336
16337 if test "$GCC" = yes; then
16338 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340 else
16341 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16343 fi
16344 ;;
16345
16346 uts4*)
16347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16348 hardcode_libdir_flag_spec='-L$libdir'
16349 hardcode_shlibpath_var=no
16350 ;;
16351
16352 *)
16353 ld_shlibs=no
16354 ;;
16355 esac
16356 fi
16357
16358{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16359echo "${ECHO_T}$ld_shlibs" >&6; }
16360test "$ld_shlibs" = no && can_build_shared=no
16361
16362#
16363# Do we need to explicitly link libc?
16364#
16365case "x$archive_cmds_need_lc" in
16366x|xyes)
16367 # Assume -lc should be added
16368 archive_cmds_need_lc=yes
16369
16370 if test "$enable_shared" = yes && test "$GCC" = yes; then
16371 case $archive_cmds in
16372 *'~'*)
16373 # FIXME: we may have to deal with multi-command sequences.
16374 ;;
16375 '$CC '*)
16376 # Test whether the compiler implicitly links with -lc since on some
16377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16378 # to ld, don't add -lc before -lgcc.
16379 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16380echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16381 $rm conftest*
16382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16383
16384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } 2>conftest.err; then
16389 soname=conftest
16390 lib=conftest
16391 libobjs=conftest.$ac_objext
16392 deplibs=
16393 wl=$lt_prog_compiler_wl
16394 pic_flag=$lt_prog_compiler_pic
16395 compiler_flags=-v
16396 linker_flags=-v
16397 verstring=
16398 output_objdir=.
16399 libname=conftest
16400 lt_save_allow_undefined_flag=$allow_undefined_flag
16401 allow_undefined_flag=
16402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16403 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }
16407 then
16408 archive_cmds_need_lc=no
16409 else
16410 archive_cmds_need_lc=yes
16411 fi
16412 allow_undefined_flag=$lt_save_allow_undefined_flag
16413 else
16414 cat conftest.err 1>&5
16415 fi
16416 $rm conftest*
16417 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16418echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16419 ;;
16420 esac
16421 fi
16422 ;;
16423esac
16424
16425{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16426echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16427library_names_spec=
16428libname_spec='lib$name'
16429soname_spec=
16430shrext_cmds=".so"
16431postinstall_cmds=
16432postuninstall_cmds=
16433finish_cmds=
16434finish_eval=
16435shlibpath_var=
16436shlibpath_overrides_runpath=unknown
16437version_type=none
16438dynamic_linker="$host_os ld.so"
16439sys_lib_dlsearch_path_spec="/lib /usr/lib"
16440if test "$GCC" = yes; then
16441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16442 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16443 # if the path contains ";" then we assume it to be the separator
16444 # otherwise default to the standard path separator (i.e. ":") - it is
16445 # assumed that no part of a normal pathname contains ";" but that should
16446 # okay in the real world where ";" in dirpaths is itself problematic.
16447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16448 else
16449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16450 fi
16451else
16452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16453fi
16454need_lib_prefix=unknown
16455hardcode_into_libs=no
16456
16457# when you set need_version to no, make sure it does not cause -set_version
16458# flags to be left without arguments
16459need_version=unknown
16460
16461case $host_os in
16462aix3*)
16463 version_type=linux
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16465 shlibpath_var=LIBPATH
16466
16467 # AIX 3 has no versioning support, so we append a major version to the name.
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 ;;
16470
16471aix4* | aix5*)
16472 version_type=linux
16473 need_lib_prefix=no
16474 need_version=no
16475 hardcode_into_libs=yes
16476 if test "$host_cpu" = ia64; then
16477 # AIX 5 supports IA64
16478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 else
16481 # With GCC up to 2.95.x, collect2 would create an import file
16482 # for dependence libraries. The import file would start with
16483 # the line `#! .'. This would cause the generated library to
16484 # depend on `.', always an invalid library. This was fixed in
16485 # development snapshots of GCC prior to 3.0.
16486 case $host_os in
16487 aix4 | aix4.[01] | aix4.[01].*)
16488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16489 echo ' yes '
16490 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16491 :
16492 else
16493 can_build_shared=no
16494 fi
16495 ;;
16496 esac
16497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16498 # soname into executable. Probably we can add versioning support to
16499 # collect2, so additional links can be useful in future.
16500 if test "$aix_use_runtimelinking" = yes; then
16501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16502 # instead of lib<name>.a to let people know that these are not
16503 # typical AIX shared libraries.
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 else
16506 # We preserve .a as extension for shared libraries through AIX4.2
16507 # and later when we are not doing run time linking.
16508 library_names_spec='${libname}${release}.a $libname.a'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 fi
16511 shlibpath_var=LIBPATH
16512 fi
16513 ;;
16514
16515amigaos*)
16516 library_names_spec='$libname.ixlibrary $libname.a'
16517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16518 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'
16519 ;;
16520
16521beos*)
16522 library_names_spec='${libname}${shared_ext}'
16523 dynamic_linker="$host_os ld.so"
16524 shlibpath_var=LIBRARY_PATH
16525 ;;
16526
16527bsdi[45]*)
16528 version_type=linux
16529 need_version=no
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16536 # the default ld.so.conf also contains /usr/contrib/lib and
16537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16538 # libtool to hard-code these into programs
16539 ;;
16540
16541cygwin* | mingw* | pw32*)
16542 version_type=windows
16543 shrext_cmds=".dll"
16544 need_version=no
16545 need_lib_prefix=no
16546
16547 case $GCC,$host_os in
16548 yes,cygwin* | yes,mingw* | yes,pw32*)
16549 library_names_spec='$libname.dll.a'
16550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16551 postinstall_cmds='base_file=`basename \${file}`~
16552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16553 dldir=$destdir/`dirname \$dlpath`~
16554 test -d \$dldir || mkdir -p \$dldir~
16555 $install_prog $dir/$dlname \$dldir/$dlname~
16556 chmod a+x \$dldir/$dlname'
16557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16558 dlpath=$dir/\$dldll~
16559 $rm \$dlpath'
16560 shlibpath_overrides_runpath=yes
16561
16562 case $host_os in
16563 cygwin*)
16564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16567 ;;
16568 mingw*)
16569 # MinGW DLLs use traditional 'lib' prefix
16570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16572 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16573 # It is most probably a Windows format PATH printed by
16574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16575 # path with ; separators, and with drive letters. We can handle the
16576 # drive letters (cygwin fileutils understands them), so leave them,
16577 # especially as we might pass files found there to a mingw objdump,
16578 # which wouldn't understand a cygwinified path. Ahh.
16579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16580 else
16581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16582 fi
16583 ;;
16584 pw32*)
16585 # pw32 DLLs use 'pw' prefix rather than 'lib'
16586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587 ;;
16588 esac
16589 ;;
16590
16591 *)
16592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16593 ;;
16594 esac
16595 dynamic_linker='Win32 ld.exe'
16596 # FIXME: first we should search . and the directory the executable is in
16597 shlibpath_var=PATH
16598 ;;
16599
16600darwin* | rhapsody*)
16601 dynamic_linker="$host_os dyld"
16602 version_type=darwin
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16606 soname_spec='${libname}${release}${major}$shared_ext'
16607 shlibpath_overrides_runpath=yes
16608 shlibpath_var=DYLD_LIBRARY_PATH
16609 shrext_cmds='.dylib'
16610 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16611 if test "$GCC" = yes; then
16612 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"`
16613 else
16614 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16615 fi
16616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16617 ;;
16618
16619dgux*)
16620 version_type=linux
16621 need_lib_prefix=no
16622 need_version=no
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 ;;
16627
16628freebsd1*)
16629 dynamic_linker=no
16630 ;;
16631
16632kfreebsd*-gnu)
16633 version_type=linux
16634 need_lib_prefix=no
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=no
16640 hardcode_into_libs=yes
16641 dynamic_linker='GNU ld.so'
16642 ;;
16643
16644freebsd* | dragonfly*)
16645 # DragonFly does not have aout. When/if they implement a new
16646 # versioning mechanism, adjust this.
16647 if test -x /usr/bin/objformat; then
16648 objformat=`/usr/bin/objformat`
16649 else
16650 case $host_os in
16651 freebsd[123]*) objformat=aout ;;
16652 *) objformat=elf ;;
16653 esac
16654 fi
16655 version_type=freebsd-$objformat
16656 case $version_type in
16657 freebsd-elf*)
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16659 need_version=no
16660 need_lib_prefix=no
16661 ;;
16662 freebsd-*)
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16664 need_version=yes
16665 ;;
16666 esac
16667 shlibpath_var=LD_LIBRARY_PATH
16668 case $host_os in
16669 freebsd2*)
16670 shlibpath_overrides_runpath=yes
16671 ;;
16672 freebsd3.[01]* | freebsdelf3.[01]*)
16673 shlibpath_overrides_runpath=yes
16674 hardcode_into_libs=yes
16675 ;;
16676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16680 ;;
16681 freebsd*) # from 4.6 on
16682 shlibpath_overrides_runpath=yes
16683 hardcode_into_libs=yes
16684 ;;
16685 esac
16686 ;;
16687
16688gnu*)
16689 version_type=linux
16690 need_lib_prefix=no
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 hardcode_into_libs=yes
16696 ;;
16697
16698hpux9* | hpux10* | hpux11*)
16699 # Give a soname corresponding to the major version so that dld.sl refuses to
16700 # link against other versions.
16701 version_type=sunos
16702 need_lib_prefix=no
16703 need_version=no
16704 case $host_cpu in
16705 ia64*)
16706 shrext_cmds='.so'
16707 hardcode_into_libs=yes
16708 dynamic_linker="$host_os dld.so"
16709 shlibpath_var=LD_LIBRARY_PATH
16710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 soname_spec='${libname}${release}${shared_ext}$major'
16713 if test "X$HPUX_IA64_MODE" = X32; then
16714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16715 else
16716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16717 fi
16718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16719 ;;
16720 hppa*64*)
16721 shrext_cmds='.sl'
16722 hardcode_into_libs=yes
16723 dynamic_linker="$host_os dld.sl"
16724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730 ;;
16731 *)
16732 shrext_cmds='.sl'
16733 dynamic_linker="$host_os dld.sl"
16734 shlibpath_var=SHLIB_PATH
16735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 ;;
16739 esac
16740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16741 postinstall_cmds='chmod 555 $lib'
16742 ;;
16743
16744interix3*)
16745 version_type=linux
16746 need_lib_prefix=no
16747 need_version=no
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=no
16753 hardcode_into_libs=yes
16754 ;;
16755
16756irix5* | irix6* | nonstopux*)
16757 case $host_os in
16758 nonstopux*) version_type=nonstopux ;;
16759 *)
16760 if test "$lt_cv_prog_gnu_ld" = yes; then
16761 version_type=linux
16762 else
16763 version_type=irix
16764 fi ;;
16765 esac
16766 need_lib_prefix=no
16767 need_version=no
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16770 case $host_os in
16771 irix5* | nonstopux*)
16772 libsuff= shlibsuff=
16773 ;;
16774 *)
16775 case $LD in # libtool.m4 will add one of these switches to LD
16776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16777 libsuff= shlibsuff= libmagic=32-bit;;
16778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16779 libsuff=32 shlibsuff=N32 libmagic=N32;;
16780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16782 *) libsuff= shlibsuff= libmagic=never-match;;
16783 esac
16784 ;;
16785 esac
16786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16787 shlibpath_overrides_runpath=no
16788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16790 hardcode_into_libs=yes
16791 ;;
16792
16793# No shared lib support for Linux oldld, aout, or coff.
16794linux*oldld* | linux*aout* | linux*coff*)
16795 dynamic_linker=no
16796 ;;
16797
16798# This must be Linux ELF.
16799linux*)
16800 version_type=linux
16801 need_lib_prefix=no
16802 need_version=no
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath=no
16808 # This implies no fast_install, which is unacceptable.
16809 # Some rework will be needed to allow for fast_install
16810 # before this can be enabled.
16811 hardcode_into_libs=yes
16812
16813 # Append ld.so.conf contents to the search path
16814 if test -f /etc/ld.so.conf; then
16815 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' ' '`
16816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16817 fi
16818
16819 # We used to test for /lib/ld.so.1 and disable shared libraries on
16820 # powerpc, because MkLinux only supported shared libraries with the
16821 # GNU dynamic linker. Since this was broken with cross compilers,
16822 # most powerpc-linux boxes support dynamic linking these days and
16823 # people can always --disable-shared, the test was removed, and we
16824 # assume the GNU/Linux dynamic linker is in use.
16825 dynamic_linker='GNU/Linux ld.so'
16826 ;;
16827
16828knetbsd*-gnu)
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16837 dynamic_linker='GNU ld.so'
16838 ;;
16839
16840netbsd*)
16841 version_type=sunos
16842 need_lib_prefix=no
16843 need_version=no
16844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847 dynamic_linker='NetBSD (a.out) ld.so'
16848 else
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 dynamic_linker='NetBSD ld.elf_so'
16852 fi
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16856 ;;
16857
16858newsos6)
16859 version_type=linux
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=yes
16863 ;;
16864
16865nto-qnx*)
16866 version_type=linux
16867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=yes
16873 ;;
16874
16875openbsd*)
16876 version_type=sunos
16877 sys_lib_dlsearch_path_spec="/usr/lib"
16878 need_lib_prefix=no
16879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16880 case $host_os in
16881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16882 *) need_version=no ;;
16883 esac
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16888 case $host_os in
16889 openbsd2.[89] | openbsd2.[89].*)
16890 shlibpath_overrides_runpath=no
16891 ;;
16892 *)
16893 shlibpath_overrides_runpath=yes
16894 ;;
16895 esac
16896 else
16897 shlibpath_overrides_runpath=yes
16898 fi
16899 ;;
16900
16901os2*)
16902 libname_spec='$name'
16903 shrext_cmds=".dll"
16904 need_lib_prefix=no
16905 library_names_spec='$libname${shared_ext} $libname.a'
16906 dynamic_linker='OS/2 ld.exe'
16907 shlibpath_var=LIBPATH
16908 ;;
16909
16910osf3* | osf4* | osf5*)
16911 version_type=osf
16912 need_lib_prefix=no
16913 need_version=no
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16919 ;;
16920
16921solaris*)
16922 version_type=linux
16923 need_lib_prefix=no
16924 need_version=no
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 shlibpath_overrides_runpath=yes
16929 hardcode_into_libs=yes
16930 # ldd complains unless libraries are executable
16931 postinstall_cmds='chmod +x $lib'
16932 ;;
16933
16934sunos4*)
16935 version_type=sunos
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 shlibpath_overrides_runpath=yes
16940 if test "$with_gnu_ld" = yes; then
16941 need_lib_prefix=no
16942 fi
16943 need_version=yes
16944 ;;
16945
16946sysv4 | sysv4.3*)
16947 version_type=linux
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 case $host_vendor in
16952 sni)
16953 shlibpath_overrides_runpath=no
16954 need_lib_prefix=no
16955 export_dynamic_flag_spec='${wl}-Blargedynsym'
16956 runpath_var=LD_RUN_PATH
16957 ;;
16958 siemens)
16959 need_lib_prefix=no
16960 ;;
16961 motorola)
16962 need_lib_prefix=no
16963 need_version=no
16964 shlibpath_overrides_runpath=no
16965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16966 ;;
16967 esac
16968 ;;
16969
16970sysv4*MP*)
16971 if test -d /usr/nec ;then
16972 version_type=linux
16973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16974 soname_spec='$libname${shared_ext}.$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 fi
16977 ;;
16978
16979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16980 version_type=freebsd-elf
16981 need_lib_prefix=no
16982 need_version=no
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16984 soname_spec='${libname}${release}${shared_ext}$major'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 hardcode_into_libs=yes
16987 if test "$with_gnu_ld" = yes; then
16988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16989 shlibpath_overrides_runpath=no
16990 else
16991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16992 shlibpath_overrides_runpath=yes
16993 case $host_os in
16994 sco3.2v5*)
16995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16996 ;;
16997 esac
16998 fi
16999 sys_lib_dlsearch_path_spec='/usr/lib'
17000 ;;
17001
17002uts4*)
17003 version_type=linux
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 ;;
17008
17009*)
17010 dynamic_linker=no
17011 ;;
17012esac
17013{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17014echo "${ECHO_T}$dynamic_linker" >&6; }
17015test "$dynamic_linker" = no && can_build_shared=no
17016
17017variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17018if test "$GCC" = yes; then
17019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17020fi
17021
17022{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17023echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17024hardcode_action=
17025if test -n "$hardcode_libdir_flag_spec" || \
17026 test -n "$runpath_var" || \
17027 test "X$hardcode_automatic" = "Xyes" ; then
17028
17029 # We can hardcode non-existant directories.
17030 if test "$hardcode_direct" != no &&
17031 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17032 # have to relink, otherwise we might link with an installed library
17033 # when we should be linking with a yet-to-be-installed one
17034 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17035 test "$hardcode_minus_L" != no; then
17036 # Linking always hardcodes the temporary library directory.
17037 hardcode_action=relink
17038 else
17039 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17040 hardcode_action=immediate
17041 fi
17042else
17043 # We cannot hardcode anything, or else we can only hardcode existing
17044 # directories.
17045 hardcode_action=unsupported
17046fi
17047{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17048echo "${ECHO_T}$hardcode_action" >&6; }
17049
17050if test "$hardcode_action" = relink; then
17051 # Fast installation is not supported
17052 enable_fast_install=no
17053elif test "$shlibpath_overrides_runpath" = yes ||
17054 test "$enable_shared" = no; then
17055 # Fast installation is not necessary
17056 enable_fast_install=needless
17057fi
17058
17059striplib=
17060old_striplib=
17061{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17062echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17063if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17066 { echo "$as_me:$LINENO: result: yes" >&5
17067echo "${ECHO_T}yes" >&6; }
17068else
17069# FIXME - insert some real tests, host_os isn't really good enough
17070 case $host_os in
17071 darwin*)
17072 if test -n "$STRIP" ; then
17073 striplib="$STRIP -x"
17074 { echo "$as_me:$LINENO: result: yes" >&5
17075echo "${ECHO_T}yes" >&6; }
17076 else
17077 { echo "$as_me:$LINENO: result: no" >&5
17078echo "${ECHO_T}no" >&6; }
17079fi
17080 ;;
17081 *)
17082 { echo "$as_me:$LINENO: result: no" >&5
17083echo "${ECHO_T}no" >&6; }
17084 ;;
17085 esac
17086fi
17087
17088if test "x$enable_dlopen" != xyes; then
17089 enable_dlopen=unknown
17090 enable_dlopen_self=unknown
17091 enable_dlopen_self_static=unknown
17092else
17093 lt_cv_dlopen=no
17094 lt_cv_dlopen_libs=
17095
17096 case $host_os in
17097 beos*)
17098 lt_cv_dlopen="load_add_on"
17099 lt_cv_dlopen_libs=
17100 lt_cv_dlopen_self=yes
17101 ;;
17102
17103 mingw* | pw32*)
17104 lt_cv_dlopen="LoadLibrary"
17105 lt_cv_dlopen_libs=
17106 ;;
17107
17108 cygwin*)
17109 lt_cv_dlopen="dlopen"
17110 lt_cv_dlopen_libs=
17111 ;;
17112
17113 darwin*)
17114 # if libdl is installed we need to link against it
17115 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17116echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17117if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 ac_check_lib_save_LIBS=$LIBS
17121LIBS="-ldl $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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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_dl_dlopen=yes
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_lib_dl_dlopen=no
17184fi
17185
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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_dl_dlopen" >&5
17191echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17192if test $ac_cv_lib_dl_dlopen = yes; then
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17194else
17195
17196 lt_cv_dlopen="dyld"
17197 lt_cv_dlopen_libs=
17198 lt_cv_dlopen_self=yes
17199
17200fi
17201
17202 ;;
17203
17204 *)
17205 { echo "$as_me:$LINENO: checking for shl_load" >&5
17206echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17207if test "${ac_cv_func_shl_load+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218#define shl_load innocuous_shl_load
17219
17220/* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char shl_load (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17224
17225#ifdef __STDC__
17226# include <limits.h>
17227#else
17228# include <assert.h>
17229#endif
17230
17231#undef shl_load
17232
17233/* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17236#ifdef __cplusplus
17237extern "C"
17238#endif
17239char shl_load ();
17240/* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243#if defined __stub_shl_load || defined __stub___shl_load
17244choke me
17245#endif
17246
17247int
17248main ()
17249{
17250return shl_load ();
17251 ;
17252 return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext conftest$ac_exeext
17256if { (ac_try="$ac_link"
17257case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017289 ac_cv_func_shl_load=yes
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_func_shl_load=no
17295fi
17296
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017297rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017298 conftest$ac_exeext conftest.$ac_ext
17299fi
17300{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17301echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17302if test $ac_cv_func_shl_load = yes; then
17303 lt_cv_dlopen="shl_load"
17304else
17305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17306echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17307if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17309else
17310 ac_check_lib_save_LIBS=$LIBS
17311LIBS="-ldld $LIBS"
17312cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318
17319/* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char shl_load ();
17326int
17327main ()
17328{
17329return shl_load ();
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext conftest$ac_exeext
17335if { (ac_try="$ac_link"
17336case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17355 ac_status=$?
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017368 ac_cv_lib_dld_shl_load=yes
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373 ac_cv_lib_dld_shl_load=no
17374fi
17375
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017376rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017377 conftest$ac_exeext conftest.$ac_ext
17378LIBS=$ac_check_lib_save_LIBS
17379fi
17380{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17381echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17382if test $ac_cv_lib_dld_shl_load = yes; then
17383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17384else
17385 { echo "$as_me:$LINENO: checking for dlopen" >&5
17386echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17387if test "${ac_cv_func_dlopen+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389else
17390 cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398#define dlopen innocuous_dlopen
17399
17400/* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char dlopen (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17404
17405#ifdef __STDC__
17406# include <limits.h>
17407#else
17408# include <assert.h>
17409#endif
17410
17411#undef dlopen
17412
17413/* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17416#ifdef __cplusplus
17417extern "C"
17418#endif
17419char dlopen ();
17420/* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423#if defined __stub_dlopen || defined __stub___dlopen
17424choke me
17425#endif
17426
17427int
17428main ()
17429{
17430return dlopen ();
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext conftest$ac_exeext
17436if { (ac_try="$ac_link"
17437case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017469 ac_cv_func_dlopen=yes
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_cv_func_dlopen=no
17475fi
17476
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017477rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017478 conftest$ac_exeext conftest.$ac_ext
17479fi
17480{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17481echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17482if test $ac_cv_func_dlopen = yes; then
17483 lt_cv_dlopen="dlopen"
17484else
17485 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17486echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17487if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489else
17490 ac_check_lib_save_LIBS=$LIBS
17491LIBS="-ldl $LIBS"
17492cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498
17499/* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17502#ifdef __cplusplus
17503extern "C"
17504#endif
17505char dlopen ();
17506int
17507main ()
17508{
17509return dlopen ();
17510 ;
17511 return 0;
17512}
17513_ACEOF
17514rm -f conftest.$ac_objext conftest$ac_exeext
17515if { (ac_try="$ac_link"
17516case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519esac
17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17532esac
17533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest$ac_exeext'
17539 { (case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542esac
17543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_try") 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017548 ac_cv_lib_dl_dlopen=yes
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_cv_lib_dl_dlopen=no
17554fi
17555
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017556rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017557 conftest$ac_exeext conftest.$ac_ext
17558LIBS=$ac_check_lib_save_LIBS
17559fi
17560{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17562if test $ac_cv_lib_dl_dlopen = yes; then
17563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17564else
17565 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17566echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17567if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17569else
17570 ac_check_lib_save_LIBS=$LIBS
17571LIBS="-lsvld $LIBS"
17572cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578
17579/* Override any GCC internal prototype to avoid an error.
17580 Use char because int might match the return type of a GCC
17581 builtin and then its argument prototype would still apply. */
17582#ifdef __cplusplus
17583extern "C"
17584#endif
17585char dlopen ();
17586int
17587main ()
17588{
17589return dlopen ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext conftest$ac_exeext
17595if { (ac_try="$ac_link"
17596case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17602 ac_status=$?
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017628 ac_cv_lib_svld_dlopen=yes
17629else
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 ac_cv_lib_svld_dlopen=no
17634fi
17635
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017636rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017637 conftest$ac_exeext conftest.$ac_ext
17638LIBS=$ac_check_lib_save_LIBS
17639fi
17640{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17641echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17642if test $ac_cv_lib_svld_dlopen = yes; then
17643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17644else
17645 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17646echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17647if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649else
17650 ac_check_lib_save_LIBS=$LIBS
17651LIBS="-ldld $LIBS"
17652cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658
17659/* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17662#ifdef __cplusplus
17663extern "C"
17664#endif
17665char dld_link ();
17666int
17667main ()
17668{
17669return dld_link ();
17670 ;
17671 return 0;
17672}
17673_ACEOF
17674rm -f conftest.$ac_objext conftest$ac_exeext
17675if { (ac_try="$ac_link"
17676case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_link") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692esac
17693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest$ac_exeext'
17699 { (case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_try") 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017708 ac_cv_lib_dld_dld_link=yes
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_lib_dld_dld_link=no
17714fi
17715
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017716rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017717 conftest$ac_exeext conftest.$ac_ext
17718LIBS=$ac_check_lib_save_LIBS
17719fi
17720{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17721echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17722if test $ac_cv_lib_dld_dld_link = yes; then
17723 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17724fi
17725
17726
17727fi
17728
17729
17730fi
17731
17732
17733fi
17734
17735
17736fi
17737
17738
17739fi
17740
17741 ;;
17742 esac
17743
17744 if test "x$lt_cv_dlopen" != xno; then
17745 enable_dlopen=yes
17746 else
17747 enable_dlopen=no
17748 fi
17749
17750 case $lt_cv_dlopen in
17751 dlopen)
17752 save_CPPFLAGS="$CPPFLAGS"
17753 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17754
17755 save_LDFLAGS="$LDFLAGS"
17756 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17757
17758 save_LIBS="$LIBS"
17759 LIBS="$lt_cv_dlopen_libs $LIBS"
17760
17761 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17762echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17763if test "${lt_cv_dlopen_self+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766 if test "$cross_compiling" = yes; then :
17767 lt_cv_dlopen_self=cross
17768else
17769 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17770 lt_status=$lt_dlunknown
17771 cat > conftest.$ac_ext <<EOF
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000017772#line 17772 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017773#include "confdefs.h"
17774
17775#if HAVE_DLFCN_H
17776#include <dlfcn.h>
17777#endif
17778
17779#include <stdio.h>
17780
17781#ifdef RTLD_GLOBAL
17782# define LT_DLGLOBAL RTLD_GLOBAL
17783#else
17784# ifdef DL_GLOBAL
17785# define LT_DLGLOBAL DL_GLOBAL
17786# else
17787# define LT_DLGLOBAL 0
17788# endif
17789#endif
17790
17791/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17792 find out it does not work in some platform. */
17793#ifndef LT_DLLAZY_OR_NOW
17794# ifdef RTLD_LAZY
17795# define LT_DLLAZY_OR_NOW RTLD_LAZY
17796# else
17797# ifdef DL_LAZY
17798# define LT_DLLAZY_OR_NOW DL_LAZY
17799# else
17800# ifdef RTLD_NOW
17801# define LT_DLLAZY_OR_NOW RTLD_NOW
17802# else
17803# ifdef DL_NOW
17804# define LT_DLLAZY_OR_NOW DL_NOW
17805# else
17806# define LT_DLLAZY_OR_NOW 0
17807# endif
17808# endif
17809# endif
17810# endif
17811#endif
17812
17813#ifdef __cplusplus
17814extern "C" void exit (int);
17815#endif
17816
17817void fnord() { int i=42;}
17818int main ()
17819{
17820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17821 int status = $lt_dlunknown;
17822
17823 if (self)
17824 {
17825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17826 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17827 /* dlclose (self); */
17828 }
17829 else
17830 puts (dlerror ());
17831
17832 exit (status);
17833}
17834EOF
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17840 (./conftest; exit; ) >&5 2>/dev/null
17841 lt_status=$?
17842 case x$lt_status in
17843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17846 esac
17847 else :
17848 # compilation failed
17849 lt_cv_dlopen_self=no
17850 fi
17851fi
17852rm -fr conftest*
17853
17854
17855fi
17856{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17857echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17858
17859 if test "x$lt_cv_dlopen_self" = xyes; then
17860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17861 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17862echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17863if test "${lt_cv_dlopen_self_static+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865else
17866 if test "$cross_compiling" = yes; then :
17867 lt_cv_dlopen_self_static=cross
17868else
17869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17870 lt_status=$lt_dlunknown
17871 cat > conftest.$ac_ext <<EOF
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000017872#line 17872 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017873#include "confdefs.h"
17874
17875#if HAVE_DLFCN_H
17876#include <dlfcn.h>
17877#endif
17878
17879#include <stdio.h>
17880
17881#ifdef RTLD_GLOBAL
17882# define LT_DLGLOBAL RTLD_GLOBAL
17883#else
17884# ifdef DL_GLOBAL
17885# define LT_DLGLOBAL DL_GLOBAL
17886# else
17887# define LT_DLGLOBAL 0
17888# endif
17889#endif
17890
17891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17892 find out it does not work in some platform. */
17893#ifndef LT_DLLAZY_OR_NOW
17894# ifdef RTLD_LAZY
17895# define LT_DLLAZY_OR_NOW RTLD_LAZY
17896# else
17897# ifdef DL_LAZY
17898# define LT_DLLAZY_OR_NOW DL_LAZY
17899# else
17900# ifdef RTLD_NOW
17901# define LT_DLLAZY_OR_NOW RTLD_NOW
17902# else
17903# ifdef DL_NOW
17904# define LT_DLLAZY_OR_NOW DL_NOW
17905# else
17906# define LT_DLLAZY_OR_NOW 0
17907# endif
17908# endif
17909# endif
17910# endif
17911#endif
17912
17913#ifdef __cplusplus
17914extern "C" void exit (int);
17915#endif
17916
17917void fnord() { int i=42;}
17918int main ()
17919{
17920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17921 int status = $lt_dlunknown;
17922
17923 if (self)
17924 {
17925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17927 /* dlclose (self); */
17928 }
17929 else
17930 puts (dlerror ());
17931
17932 exit (status);
17933}
17934EOF
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17940 (./conftest; exit; ) >&5 2>/dev/null
17941 lt_status=$?
17942 case x$lt_status in
17943 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17944 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17945 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17946 esac
17947 else :
17948 # compilation failed
17949 lt_cv_dlopen_self_static=no
17950 fi
17951fi
17952rm -fr conftest*
17953
17954
17955fi
17956{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17957echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17958 fi
17959
17960 CPPFLAGS="$save_CPPFLAGS"
17961 LDFLAGS="$save_LDFLAGS"
17962 LIBS="$save_LIBS"
17963 ;;
17964 esac
17965
17966 case $lt_cv_dlopen_self in
17967 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17968 *) enable_dlopen_self=unknown ;;
17969 esac
17970
17971 case $lt_cv_dlopen_self_static in
17972 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17973 *) enable_dlopen_self_static=unknown ;;
17974 esac
17975fi
17976
17977
17978# Report which library types will actually be built
17979{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17980echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17981{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17982echo "${ECHO_T}$can_build_shared" >&6; }
17983
17984{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17985echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17986test "$can_build_shared" = "no" && enable_shared=no
17987
17988# On AIX, shared libraries and static libraries use the same namespace, and
17989# are all built from PIC.
17990case $host_os in
17991aix3*)
17992 test "$enable_shared" = yes && enable_static=no
17993 if test -n "$RANLIB"; then
17994 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17995 postinstall_cmds='$RANLIB $lib'
17996 fi
17997 ;;
17998
17999aix4* | aix5*)
18000 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18001 test "$enable_shared" = yes && enable_static=no
18002 fi
18003 ;;
18004esac
18005{ echo "$as_me:$LINENO: result: $enable_shared" >&5
18006echo "${ECHO_T}$enable_shared" >&6; }
18007
18008{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18009echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18010# Make sure either enable_shared or enable_static is yes.
18011test "$enable_shared" = yes || enable_static=yes
18012{ echo "$as_me:$LINENO: result: $enable_static" >&5
18013echo "${ECHO_T}$enable_static" >&6; }
18014
18015# The else clause should only fire when bootstrapping the
18016# libtool distribution, otherwise you forgot to ship ltmain.sh
18017# with your package, and you will get complaints that there are
18018# no rules to generate ltmain.sh.
18019if test -f "$ltmain"; then
18020 # See if we are running on zsh, and set the options which allow our commands through
18021 # without removal of \ escapes.
18022 if test -n "${ZSH_VERSION+set}" ; then
18023 setopt NO_GLOB_SUBST
18024 fi
18025 # Now quote all the things that may contain metacharacters while being
18026 # careful not to overquote the AC_SUBSTed values. We take copies of the
18027 # variables and quote the copies for generation of the libtool script.
18028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18029 SED SHELL STRIP \
18030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18032 deplibs_check_method reload_flag reload_cmds need_locks \
18033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18034 lt_cv_sys_global_symbol_to_c_name_address \
18035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18036 old_postinstall_cmds old_postuninstall_cmds \
18037 compiler \
18038 CC \
18039 LD \
18040 lt_prog_compiler_wl \
18041 lt_prog_compiler_pic \
18042 lt_prog_compiler_static \
18043 lt_prog_compiler_no_builtin_flag \
18044 export_dynamic_flag_spec \
18045 thread_safe_flag_spec \
18046 whole_archive_flag_spec \
18047 enable_shared_with_static_runtimes \
18048 old_archive_cmds \
18049 old_archive_from_new_cmds \
18050 predep_objects \
18051 postdep_objects \
18052 predeps \
18053 postdeps \
18054 compiler_lib_search_path \
18055 archive_cmds \
18056 archive_expsym_cmds \
18057 postinstall_cmds \
18058 postuninstall_cmds \
18059 old_archive_from_expsyms_cmds \
18060 allow_undefined_flag \
18061 no_undefined_flag \
18062 export_symbols_cmds \
18063 hardcode_libdir_flag_spec \
18064 hardcode_libdir_flag_spec_ld \
18065 hardcode_libdir_separator \
18066 hardcode_automatic \
18067 module_cmds \
18068 module_expsym_cmds \
18069 lt_cv_prog_compiler_c_o \
18070 exclude_expsyms \
18071 include_expsyms; do
18072
18073 case $var in
18074 old_archive_cmds | \
18075 old_archive_from_new_cmds | \
18076 archive_cmds | \
18077 archive_expsym_cmds | \
18078 module_cmds | \
18079 module_expsym_cmds | \
18080 old_archive_from_expsyms_cmds | \
18081 export_symbols_cmds | \
18082 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18083 postinstall_cmds | postuninstall_cmds | \
18084 old_postinstall_cmds | old_postuninstall_cmds | \
18085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18086 # Double-quote double-evaled strings.
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18088 ;;
18089 *)
18090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18091 ;;
18092 esac
18093 done
18094
18095 case $lt_echo in
18096 *'\$0 --fallback-echo"')
18097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18098 ;;
18099 esac
18100
18101cfgfile="${ofile}T"
18102 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18103 $rm -f "$cfgfile"
18104 { echo "$as_me:$LINENO: creating $ofile" >&5
18105echo "$as_me: creating $ofile" >&6;}
18106
18107 cat <<__EOF__ >> "$cfgfile"
18108#! $SHELL
18109
18110# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18111# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18112# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18113#
18114# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18115# Free Software Foundation, Inc.
18116#
18117# This file is part of GNU Libtool:
18118# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18119#
18120# This program is free software; you can redistribute it and/or modify
18121# it under the terms of the GNU General Public License as published by
18122# the Free Software Foundation; either version 2 of the License, or
18123# (at your option) any later version.
18124#
18125# This program is distributed in the hope that it will be useful, but
18126# WITHOUT ANY WARRANTY; without even the implied warranty of
18127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18128# General Public License for more details.
18129#
18130# You should have received a copy of the GNU General Public License
18131# along with this program; if not, write to the Free Software
18132# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18133#
18134# As a special exception to the GNU General Public License, if you
18135# distribute this file as part of a program that contains a
18136# configuration script generated by Autoconf, you may include it under
18137# the same distribution terms that you use for the rest of that program.
18138
18139# A sed program that does not truncate output.
18140SED=$lt_SED
18141
18142# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18143Xsed="$SED -e 1s/^X//"
18144
18145# The HP-UX ksh and POSIX shell print the target directory to stdout
18146# if CDPATH is set.
18147(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18148
18149# The names of the tagged configurations supported by this script.
18150available_tags=
18151
18152# ### BEGIN LIBTOOL CONFIG
18153
18154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18155
18156# Shell to use when invoking shell scripts.
18157SHELL=$lt_SHELL
18158
18159# Whether or not to build shared libraries.
18160build_libtool_libs=$enable_shared
18161
18162# Whether or not to build static libraries.
18163build_old_libs=$enable_static
18164
18165# Whether or not to add -lc for building shared libraries.
18166build_libtool_need_lc=$archive_cmds_need_lc
18167
18168# Whether or not to disallow shared libs when runtime libs are static
18169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18170
18171# Whether or not to optimize for fast installation.
18172fast_install=$enable_fast_install
18173
18174# The host system.
18175host_alias=$host_alias
18176host=$host
18177host_os=$host_os
18178
18179# The build system.
18180build_alias=$build_alias
18181build=$build
18182build_os=$build_os
18183
18184# An echo program that does not interpret backslashes.
18185echo=$lt_echo
18186
18187# The archiver.
18188AR=$lt_AR
18189AR_FLAGS=$lt_AR_FLAGS
18190
18191# A C compiler.
18192LTCC=$lt_LTCC
18193
18194# LTCC compiler flags.
18195LTCFLAGS=$lt_LTCFLAGS
18196
18197# A language-specific compiler.
18198CC=$lt_compiler
18199
18200# Is the compiler the GNU C compiler?
18201with_gcc=$GCC
18202
18203# An ERE matcher.
18204EGREP=$lt_EGREP
18205
18206# The linker used to build libraries.
18207LD=$lt_LD
18208
18209# Whether we need hard or soft links.
18210LN_S=$lt_LN_S
18211
18212# A BSD-compatible nm program.
18213NM=$lt_NM
18214
18215# A symbol stripping program
18216STRIP=$lt_STRIP
18217
18218# Used to examine libraries when file_magic_cmd begins "file"
18219MAGIC_CMD=$MAGIC_CMD
18220
18221# Used on cygwin: DLL creation program.
18222DLLTOOL="$DLLTOOL"
18223
18224# Used on cygwin: object dumper.
18225OBJDUMP="$OBJDUMP"
18226
18227# Used on cygwin: assembler.
18228AS="$AS"
18229
18230# The name of the directory that contains temporary libtool files.
18231objdir=$objdir
18232
18233# How to create reloadable object files.
18234reload_flag=$lt_reload_flag
18235reload_cmds=$lt_reload_cmds
18236
18237# How to pass a linker flag through the compiler.
18238wl=$lt_lt_prog_compiler_wl
18239
18240# Object file suffix (normally "o").
18241objext="$ac_objext"
18242
18243# Old archive suffix (normally "a").
18244libext="$libext"
18245
18246# Shared library suffix (normally ".so").
18247shrext_cmds='$shrext_cmds'
18248
18249# Executable file suffix (normally "").
18250exeext="$exeext"
18251
18252# Additional compiler flags for building library objects.
18253pic_flag=$lt_lt_prog_compiler_pic
18254pic_mode=$pic_mode
18255
18256# What is the maximum length of a command?
18257max_cmd_len=$lt_cv_sys_max_cmd_len
18258
18259# Does compiler simultaneously support -c and -o options?
18260compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18261
18262# Must we lock files when doing compilation?
18263need_locks=$lt_need_locks
18264
18265# Do we need the lib prefix for modules?
18266need_lib_prefix=$need_lib_prefix
18267
18268# Do we need a version for libraries?
18269need_version=$need_version
18270
18271# Whether dlopen is supported.
18272dlopen_support=$enable_dlopen
18273
18274# Whether dlopen of programs is supported.
18275dlopen_self=$enable_dlopen_self
18276
18277# Whether dlopen of statically linked programs is supported.
18278dlopen_self_static=$enable_dlopen_self_static
18279
18280# Compiler flag to prevent dynamic linking.
18281link_static_flag=$lt_lt_prog_compiler_static
18282
18283# Compiler flag to turn off builtin functions.
18284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18285
18286# Compiler flag to allow reflexive dlopens.
18287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18288
18289# Compiler flag to generate shared objects directly from archives.
18290whole_archive_flag_spec=$lt_whole_archive_flag_spec
18291
18292# Compiler flag to generate thread-safe objects.
18293thread_safe_flag_spec=$lt_thread_safe_flag_spec
18294
18295# Library versioning type.
18296version_type=$version_type
18297
18298# Format of library name prefix.
18299libname_spec=$lt_libname_spec
18300
18301# List of archive names. First name is the real one, the rest are links.
18302# The last name is the one that the linker finds with -lNAME.
18303library_names_spec=$lt_library_names_spec
18304
18305# The coded name of the library, if different from the real name.
18306soname_spec=$lt_soname_spec
18307
18308# Commands used to build and install an old-style archive.
18309RANLIB=$lt_RANLIB
18310old_archive_cmds=$lt_old_archive_cmds
18311old_postinstall_cmds=$lt_old_postinstall_cmds
18312old_postuninstall_cmds=$lt_old_postuninstall_cmds
18313
18314# Create an old-style archive from a shared archive.
18315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18316
18317# Create a temporary old-style archive to link instead of a shared archive.
18318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18319
18320# Commands used to build and install a shared archive.
18321archive_cmds=$lt_archive_cmds
18322archive_expsym_cmds=$lt_archive_expsym_cmds
18323postinstall_cmds=$lt_postinstall_cmds
18324postuninstall_cmds=$lt_postuninstall_cmds
18325
18326# Commands used to build a loadable module (assumed same as above if empty)
18327module_cmds=$lt_module_cmds
18328module_expsym_cmds=$lt_module_expsym_cmds
18329
18330# Commands to strip libraries.
18331old_striplib=$lt_old_striplib
18332striplib=$lt_striplib
18333
18334# Dependencies to place before the objects being linked to create a
18335# shared library.
18336predep_objects=$lt_predep_objects
18337
18338# Dependencies to place after the objects being linked to create a
18339# shared library.
18340postdep_objects=$lt_postdep_objects
18341
18342# Dependencies to place before the objects being linked to create a
18343# shared library.
18344predeps=$lt_predeps
18345
18346# Dependencies to place after the objects being linked to create a
18347# shared library.
18348postdeps=$lt_postdeps
18349
18350# The library search path used internally by the compiler when linking
18351# a shared library.
18352compiler_lib_search_path=$lt_compiler_lib_search_path
18353
18354# Method to check whether dependent libraries are shared objects.
18355deplibs_check_method=$lt_deplibs_check_method
18356
18357# Command to use when deplibs_check_method == file_magic.
18358file_magic_cmd=$lt_file_magic_cmd
18359
18360# Flag that allows shared libraries with undefined symbols to be built.
18361allow_undefined_flag=$lt_allow_undefined_flag
18362
18363# Flag that forces no undefined symbols.
18364no_undefined_flag=$lt_no_undefined_flag
18365
18366# Commands used to finish a libtool library installation in a directory.
18367finish_cmds=$lt_finish_cmds
18368
18369# Same as above, but a single script fragment to be evaled but not shown.
18370finish_eval=$lt_finish_eval
18371
18372# Take the output of nm and produce a listing of raw symbols and C names.
18373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18374
18375# Transform the output of nm in a proper C declaration
18376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18377
18378# Transform the output of nm in a C name address pair
18379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18380
18381# This is the shared library runtime path variable.
18382runpath_var=$runpath_var
18383
18384# This is the shared library path variable.
18385shlibpath_var=$shlibpath_var
18386
18387# Is shlibpath searched before the hard-coded library search path?
18388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18389
18390# How to hardcode a shared library path into an executable.
18391hardcode_action=$hardcode_action
18392
18393# Whether we should hardcode library paths into libraries.
18394hardcode_into_libs=$hardcode_into_libs
18395
18396# Flag to hardcode \$libdir into a binary during linking.
18397# This must work even if \$libdir does not exist.
18398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18399
18400# If ld is used when linking, flag to hardcode \$libdir into
18401# a binary during linking. This must work even if \$libdir does
18402# not exist.
18403hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18404
18405# Whether we need a single -rpath flag with a separated argument.
18406hardcode_libdir_separator=$lt_hardcode_libdir_separator
18407
18408# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409# resulting binary.
18410hardcode_direct=$hardcode_direct
18411
18412# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413# resulting binary.
18414hardcode_minus_L=$hardcode_minus_L
18415
18416# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417# the resulting binary.
18418hardcode_shlibpath_var=$hardcode_shlibpath_var
18419
18420# Set to yes if building a shared library automatically hardcodes DIR into the library
18421# and all subsequent libraries and executables linked against it.
18422hardcode_automatic=$hardcode_automatic
18423
18424# Variables whose values should be saved in libtool wrapper scripts and
18425# restored at relink time.
18426variables_saved_for_relink="$variables_saved_for_relink"
18427
18428# Whether libtool must link a program against all its dependency libraries.
18429link_all_deplibs=$link_all_deplibs
18430
18431# Compile-time system search path for libraries
18432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18433
18434# Run-time system search path for libraries
18435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18436
18437# Fix the shell variable \$srcfile for the compiler.
18438fix_srcfile_path="$fix_srcfile_path"
18439
18440# Set to yes if exported symbols are required.
18441always_export_symbols=$always_export_symbols
18442
18443# The commands to list exported symbols.
18444export_symbols_cmds=$lt_export_symbols_cmds
18445
18446# The commands to extract the exported symbol list from a shared archive.
18447extract_expsyms_cmds=$lt_extract_expsyms_cmds
18448
18449# Symbols that should not be listed in the preloaded symbols.
18450exclude_expsyms=$lt_exclude_expsyms
18451
18452# Symbols that must always be exported.
18453include_expsyms=$lt_include_expsyms
18454
18455# ### END LIBTOOL CONFIG
18456
18457__EOF__
18458
18459
18460 case $host_os in
18461 aix3*)
18462 cat <<\EOF >> "$cfgfile"
18463
18464# AIX sometimes has problems with the GCC collect2 program. For some
18465# reason, if we set the COLLECT_NAMES environment variable, the problems
18466# vanish in a puff of smoke.
18467if test "X${COLLECT_NAMES+set}" != Xset; then
18468 COLLECT_NAMES=
18469 export COLLECT_NAMES
18470fi
18471EOF
18472 ;;
18473 esac
18474
18475 # We use sed instead of cat because bash on DJGPP gets confused if
18476 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18477 # text mode, it properly converts lines to CR/LF. This bash problem
18478 # is reportedly fixed, but why not run on old versions too?
18479 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18480
18481 mv -f "$cfgfile" "$ofile" || \
18482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18483 chmod +x "$ofile"
18484
18485else
18486 # If there is no Makefile yet, we rely on a make rule to execute
18487 # `config.status --recheck' to rerun these tests and create the
18488 # libtool script then.
18489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18490 if test -f "$ltmain_in"; then
18491 test -f Makefile && make "$ltmain"
18492 fi
18493fi
18494
18495
18496ac_ext=c
18497ac_cpp='$CPP $CPPFLAGS'
18498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18500ac_compiler_gnu=$ac_cv_c_compiler_gnu
18501
18502CC="$lt_save_CC"
18503
18504
18505# Check whether --with-tags was given.
18506if test "${with_tags+set}" = set; then
18507 withval=$with_tags; tagnames="$withval"
18508fi
18509
18510
18511if test -f "$ltmain" && test -n "$tagnames"; then
18512 if test ! -f "${ofile}"; then
18513 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18514echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18515 fi
18516
18517 if test -z "$LTCC"; then
18518 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18519 if test -z "$LTCC"; then
18520 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18521echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18522 else
18523 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18524echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18525 fi
18526 fi
18527 if test -z "$LTCFLAGS"; then
18528 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18529 fi
18530
18531 # Extract list of available tagged configurations in $ofile.
18532 # Note that this assumes the entire list is on one line.
18533 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18534
18535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18536 for tagname in $tagnames; do
18537 IFS="$lt_save_ifs"
18538 # Check whether tagname contains only valid characters
18539 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18540 "") ;;
18541 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18542echo "$as_me: error: invalid tag name: $tagname" >&2;}
18543 { (exit 1); exit 1; }; }
18544 ;;
18545 esac
18546
18547 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18548 then
18549 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18550echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18551 { (exit 1); exit 1; }; }
18552 fi
18553
18554 # Update the list of available tags.
18555 if test -n "$tagname"; then
18556 echo appending configuration tag \"$tagname\" to $ofile
18557
18558 case $tagname in
18559 CXX)
18560 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18561 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18562 (test "X$CXX" != "Xg++"))) ; then
18563 ac_ext=cpp
18564ac_cpp='$CXXCPP $CPPFLAGS'
18565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18568
18569
18570
18571
18572archive_cmds_need_lc_CXX=no
18573allow_undefined_flag_CXX=
18574always_export_symbols_CXX=no
18575archive_expsym_cmds_CXX=
18576export_dynamic_flag_spec_CXX=
18577hardcode_direct_CXX=no
18578hardcode_libdir_flag_spec_CXX=
18579hardcode_libdir_flag_spec_ld_CXX=
18580hardcode_libdir_separator_CXX=
18581hardcode_minus_L_CXX=no
18582hardcode_shlibpath_var_CXX=unsupported
18583hardcode_automatic_CXX=no
18584module_cmds_CXX=
18585module_expsym_cmds_CXX=
18586link_all_deplibs_CXX=unknown
18587old_archive_cmds_CXX=$old_archive_cmds
18588no_undefined_flag_CXX=
18589whole_archive_flag_spec_CXX=
18590enable_shared_with_static_runtimes_CXX=no
18591
18592# Dependencies to place before and after the object being linked:
18593predep_objects_CXX=
18594postdep_objects_CXX=
18595predeps_CXX=
18596postdeps_CXX=
18597compiler_lib_search_path_CXX=
18598
18599# Source file extension for C++ test sources.
18600ac_ext=cpp
18601
18602# Object file extension for compiled C++ test sources.
18603objext=o
18604objext_CXX=$objext
18605
18606# Code to be used in simple compile tests
18607lt_simple_compile_test_code="int some_variable = 0;\n"
18608
18609# Code to be used in simple link tests
18610lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18611
18612# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18613
18614# If no C compiler was specified, use CC.
18615LTCC=${LTCC-"$CC"}
18616
18617# If no C compiler flags were specified, use CFLAGS.
18618LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18619
18620# Allow CC to be a program name with arguments.
18621compiler=$CC
18622
18623
18624# save warnings/boilerplate of simple test code
18625ac_outfile=conftest.$ac_objext
18626printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18628_lt_compiler_boilerplate=`cat conftest.err`
18629$rm conftest*
18630
18631ac_outfile=conftest.$ac_objext
18632printf "$lt_simple_link_test_code" >conftest.$ac_ext
18633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18634_lt_linker_boilerplate=`cat conftest.err`
18635$rm conftest*
18636
18637
18638# Allow CC to be a program name with arguments.
18639lt_save_CC=$CC
18640lt_save_LD=$LD
18641lt_save_GCC=$GCC
18642GCC=$GXX
18643lt_save_with_gnu_ld=$with_gnu_ld
18644lt_save_path_LD=$lt_cv_path_LD
18645if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18646 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18647else
18648 $as_unset lt_cv_prog_gnu_ld
18649fi
18650if test -n "${lt_cv_path_LDCXX+set}"; then
18651 lt_cv_path_LD=$lt_cv_path_LDCXX
18652else
18653 $as_unset lt_cv_path_LD
18654fi
18655test -z "${LDCXX+set}" || LD=$LDCXX
18656CC=${CXX-"c++"}
18657compiler=$CC
18658compiler_CXX=$CC
18659for cc_temp in $compiler""; do
18660 case $cc_temp in
18661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18663 \-*) ;;
18664 *) break;;
18665 esac
18666done
18667cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18668
18669
18670# We don't want -fno-exception wen compiling C++ code, so set the
18671# no_builtin_flag separately
18672if test "$GXX" = yes; then
18673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18674else
18675 lt_prog_compiler_no_builtin_flag_CXX=
18676fi
18677
18678if test "$GXX" = yes; then
18679 # Set up default GNU C++ configuration
18680
18681
18682# Check whether --with-gnu-ld was given.
18683if test "${with_gnu_ld+set}" = set; then
18684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18685else
18686 with_gnu_ld=no
18687fi
18688
18689ac_prog=ld
18690if test "$GCC" = yes; then
18691 # Check if gcc -print-prog-name=ld gives a path.
18692 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18693echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18694 case $host in
18695 *-*-mingw*)
18696 # gcc leaves a trailing carriage return which upsets mingw
18697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18698 *)
18699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18700 esac
18701 case $ac_prog in
18702 # Accept absolute paths.
18703 [\\/]* | ?:[\\/]*)
18704 re_direlt='/[^/][^/]*/\.\./'
18705 # Canonicalize the pathname of ld
18706 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18707 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18708 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18709 done
18710 test -z "$LD" && LD="$ac_prog"
18711 ;;
18712 "")
18713 # If it fails, then pretend we aren't using GCC.
18714 ac_prog=ld
18715 ;;
18716 *)
18717 # If it is relative, then search for the first ld in PATH.
18718 with_gnu_ld=unknown
18719 ;;
18720 esac
18721elif test "$with_gnu_ld" = yes; then
18722 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18723echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18724else
18725 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18726echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18727fi
18728if test "${lt_cv_path_LD+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 if test -z "$LD"; then
18732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18733 for ac_dir in $PATH; do
18734 IFS="$lt_save_ifs"
18735 test -z "$ac_dir" && ac_dir=.
18736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18737 lt_cv_path_LD="$ac_dir/$ac_prog"
18738 # Check to see if the program is GNU ld. I'd rather use --version,
18739 # but apparently some variants of GNU ld only accept -v.
18740 # Break only if it was the GNU/non-GNU ld that we prefer.
18741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18742 *GNU* | *'with BFD'*)
18743 test "$with_gnu_ld" != no && break
18744 ;;
18745 *)
18746 test "$with_gnu_ld" != yes && break
18747 ;;
18748 esac
18749 fi
18750 done
18751 IFS="$lt_save_ifs"
18752else
18753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18754fi
18755fi
18756
18757LD="$lt_cv_path_LD"
18758if test -n "$LD"; then
18759 { echo "$as_me:$LINENO: result: $LD" >&5
18760echo "${ECHO_T}$LD" >&6; }
18761else
18762 { echo "$as_me:$LINENO: result: no" >&5
18763echo "${ECHO_T}no" >&6; }
18764fi
18765test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18766echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18767 { (exit 1); exit 1; }; }
18768{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18769echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18770if test "${lt_cv_prog_gnu_ld+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772else
18773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18774case `$LD -v 2>&1 </dev/null` in
18775*GNU* | *'with BFD'*)
18776 lt_cv_prog_gnu_ld=yes
18777 ;;
18778*)
18779 lt_cv_prog_gnu_ld=no
18780 ;;
18781esac
18782fi
18783{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18784echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18785with_gnu_ld=$lt_cv_prog_gnu_ld
18786
18787
18788
18789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18790 # archiving commands below assume that GNU ld is being used.
18791 if test "$with_gnu_ld" = yes; then
18792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18793 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'
18794
18795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18797
18798 # If archive_cmds runs LD, not CC, wlarc should be empty
18799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18800 # investigate it a little bit more. (MM)
18801 wlarc='${wl}'
18802
18803 # ancient GNU ld didn't support --whole-archive et. al.
18804 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18805 grep 'no-whole-archive' > /dev/null; then
18806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18807 else
18808 whole_archive_flag_spec_CXX=
18809 fi
18810 else
18811 with_gnu_ld=no
18812 wlarc=
18813
18814 # A generic and very simple default shared library creation
18815 # command for GNU C++ for the case where it uses the native
18816 # linker, instead of GNU ld. If possible, this setting should
18817 # overridden to take advantage of the native linker features on
18818 # the platform it is being used on.
18819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18820 fi
18821
18822 # Commands to make compiler produce verbose output that lists
18823 # what "hidden" libraries, object files and flags are used when
18824 # linking a shared library.
18825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18826
18827else
18828 GXX=no
18829 with_gnu_ld=no
18830 wlarc=
18831fi
18832
18833# PORTME: fill in a description of your system's C++ link characteristics
18834{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18835echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18836ld_shlibs_CXX=yes
18837case $host_os in
18838 aix3*)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 aix4* | aix5*)
18843 if test "$host_cpu" = ia64; then
18844 # On IA64, the linker does run time linking by default, so we don't
18845 # have to do anything special.
18846 aix_use_runtimelinking=no
18847 exp_sym_flag='-Bexport'
18848 no_entry_flag=""
18849 else
18850 aix_use_runtimelinking=no
18851
18852 # Test if we are trying to use run time linking or normal
18853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18854 # need to do runtime linking.
18855 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18856 for ld_flag in $LDFLAGS; do
18857 case $ld_flag in
18858 *-brtl*)
18859 aix_use_runtimelinking=yes
18860 break
18861 ;;
18862 esac
18863 done
18864 ;;
18865 esac
18866
18867 exp_sym_flag='-bexport'
18868 no_entry_flag='-bnoentry'
18869 fi
18870
18871 # When large executables or shared objects are built, AIX ld can
18872 # have problems creating the table of contents. If linking a library
18873 # or program results in "error TOC overflow" add -mminimal-toc to
18874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18876
18877 archive_cmds_CXX=''
18878 hardcode_direct_CXX=yes
18879 hardcode_libdir_separator_CXX=':'
18880 link_all_deplibs_CXX=yes
18881
18882 if test "$GXX" = yes; then
18883 case $host_os in aix4.[012]|aix4.[012].*)
18884 # We only want to do this on AIX 4.2 and lower, the check
18885 # below for broken collect2 doesn't work under 4.3+
18886 collect2name=`${CC} -print-prog-name=collect2`
18887 if test -f "$collect2name" && \
18888 strings "$collect2name" | grep resolve_lib_name >/dev/null
18889 then
18890 # We have reworked collect2
18891 hardcode_direct_CXX=yes
18892 else
18893 # We have old collect2
18894 hardcode_direct_CXX=unsupported
18895 # It fails to find uninstalled libraries when the uninstalled
18896 # path is not listed in the libpath. Setting hardcode_minus_L
18897 # to unsupported forces relinking
18898 hardcode_minus_L_CXX=yes
18899 hardcode_libdir_flag_spec_CXX='-L$libdir'
18900 hardcode_libdir_separator_CXX=
18901 fi
18902 ;;
18903 esac
18904 shared_flag='-shared'
18905 if test "$aix_use_runtimelinking" = yes; then
18906 shared_flag="$shared_flag "'${wl}-G'
18907 fi
18908 else
18909 # not using gcc
18910 if test "$host_cpu" = ia64; then
18911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18912 # chokes on -Wl,-G. The following line is correct:
18913 shared_flag='-G'
18914 else
18915 if test "$aix_use_runtimelinking" = yes; then
18916 shared_flag='${wl}-G'
18917 else
18918 shared_flag='${wl}-bM:SRE'
18919 fi
18920 fi
18921 fi
18922
18923 # It seems that -bexpall does not export symbols beginning with
18924 # underscore (_), so it is better to generate a list of symbols to export.
18925 always_export_symbols_CXX=yes
18926 if test "$aix_use_runtimelinking" = yes; then
18927 # Warning - without using the other runtime loading flags (-brtl),
18928 # -berok will link without error, but may produce a broken library.
18929 allow_undefined_flag_CXX='-berok'
18930 # Determine the default libpath from the value encoded in an empty executable.
18931 cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937
18938int
18939main ()
18940{
18941
18942 ;
18943 return 0;
18944}
18945_ACEOF
18946rm -f conftest.$ac_objext conftest$ac_exeext
18947if { (ac_try="$ac_link"
18948case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18954 ac_status=$?
18955 grep -v '^ *+' conftest.er1 >conftest.err
18956 rm -f conftest.er1
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018959 (exit $ac_status); } &&
18960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964esac
18965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest$ac_exeext'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018980
18981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18982}'`
18983# Check for a 64-bit object if we didn't find anything.
18984if 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; }
18985}'`; fi
18986else
18987 echo "$as_me: failed program was:" >&5
18988sed 's/^/| /' conftest.$ac_ext >&5
18989
18990
18991fi
18992
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018993rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018994 conftest$ac_exeext conftest.$ac_ext
18995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18996
18997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18998
18999 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"
19000 else
19001 if test "$host_cpu" = ia64; then
19002 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19003 allow_undefined_flag_CXX="-z nodefs"
19004 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"
19005 else
19006 # Determine the default libpath from the value encoded in an empty executable.
19007 cat >conftest.$ac_ext <<_ACEOF
19008/* confdefs.h. */
19009_ACEOF
19010cat confdefs.h >>conftest.$ac_ext
19011cat >>conftest.$ac_ext <<_ACEOF
19012/* end confdefs.h. */
19013
19014int
19015main ()
19016{
19017
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext conftest$ac_exeext
19023if { (ac_try="$ac_link"
19024case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19030 ac_status=$?
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000019035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019056
19057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19058}'`
19059# Check for a 64-bit object if we didn't find anything.
19060if 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; }
19061}'`; fi
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066
19067fi
19068
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000019069rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019070 conftest$ac_exeext conftest.$ac_ext
19071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19072
19073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19074 # Warning - without using the other run time loading flags,
19075 # -berok will link without error, but may produce a broken library.
19076 no_undefined_flag_CXX=' ${wl}-bernotok'
19077 allow_undefined_flag_CXX=' ${wl}-berok'
19078 # Exported symbols can be pulled into shared objects from archives
19079 whole_archive_flag_spec_CXX='$convenience'
19080 archive_cmds_need_lc_CXX=yes
19081 # This is similar to how AIX traditionally builds its shared libraries.
19082 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'
19083 fi
19084 fi
19085 ;;
19086
19087 beos*)
19088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19089 allow_undefined_flag_CXX=unsupported
19090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19091 # support --undefined. This deserves some investigation. FIXME
19092 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19093 else
19094 ld_shlibs_CXX=no
19095 fi
19096 ;;
19097
19098 chorus*)
19099 case $cc_basename in
19100 *)
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19103 ;;
19104 esac
19105 ;;
19106
19107 cygwin* | mingw* | pw32*)
19108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19109 # as there is no search path for DLLs.
19110 hardcode_libdir_flag_spec_CXX='-L$libdir'
19111 allow_undefined_flag_CXX=unsupported
19112 always_export_symbols_CXX=no
19113 enable_shared_with_static_runtimes_CXX=yes
19114
19115 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19116 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'
19117 # If the export-symbols file already is a .def file (1st line
19118 # is EXPORTS), use it as is; otherwise, prepend...
19119 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19120 cp $export_symbols $output_objdir/$soname.def;
19121 else
19122 echo EXPORTS > $output_objdir/$soname.def;
19123 cat $export_symbols >> $output_objdir/$soname.def;
19124 fi~
19125 $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'
19126 else
19127 ld_shlibs_CXX=no
19128 fi
19129 ;;
19130 darwin* | rhapsody*)
19131 case $host_os in
19132 rhapsody* | darwin1.[012])
19133 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19134 ;;
19135 *) # Darwin 1.3 on
19136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19137 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19138 else
19139 case ${MACOSX_DEPLOYMENT_TARGET} in
19140 10.[012])
19141 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19142 ;;
19143 10.*)
19144 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19145 ;;
19146 esac
19147 fi
19148 ;;
19149 esac
19150 archive_cmds_need_lc_CXX=no
19151 hardcode_direct_CXX=no
19152 hardcode_automatic_CXX=yes
19153 hardcode_shlibpath_var_CXX=unsupported
19154 whole_archive_flag_spec_CXX=''
19155 link_all_deplibs_CXX=yes
19156
19157 if test "$GXX" = yes ; then
19158 lt_int_apple_cc_single_mod=no
19159 output_verbose_link_cmd='echo'
19160 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19161 lt_int_apple_cc_single_mod=yes
19162 fi
19163 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19164 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19165 else
19166 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'
19167 fi
19168 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19171 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}'
19172 else
19173 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}'
19174 fi
19175 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}'
19176 else
19177 case $cc_basename in
19178 xlc*)
19179 output_verbose_link_cmd='echo'
19180 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'
19181 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19183 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}'
19184 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}'
19185 ;;
19186 *)
19187 ld_shlibs_CXX=no
19188 ;;
19189 esac
19190 fi
19191 ;;
19192
19193 dgux*)
19194 case $cc_basename in
19195 ec++*)
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19198 ;;
19199 ghcx*)
19200 # Green Hills C++ Compiler
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19203 ;;
19204 *)
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19207 ;;
19208 esac
19209 ;;
19210 freebsd[12]*)
19211 # C++ shared libraries reported to be fairly broken before switch to ELF
19212 ld_shlibs_CXX=no
19213 ;;
19214 freebsd-elf*)
19215 archive_cmds_need_lc_CXX=no
19216 ;;
19217 freebsd* | kfreebsd*-gnu | dragonfly*)
19218 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19219 # conventions
19220 ld_shlibs_CXX=yes
19221 ;;
19222 gnu*)
19223 ;;
19224 hpux9*)
19225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19226 hardcode_libdir_separator_CXX=:
19227 export_dynamic_flag_spec_CXX='${wl}-E'
19228 hardcode_direct_CXX=yes
19229 hardcode_minus_L_CXX=yes # Not in the search PATH,
19230 # but as the default
19231 # location of the library.
19232
19233 case $cc_basename in
19234 CC*)
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19237 ;;
19238 aCC*)
19239 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'
19240 # Commands to make compiler produce verbose output that lists
19241 # what "hidden" libraries, object files and flags are used when
19242 # linking a shared library.
19243 #
19244 # There doesn't appear to be a way to prevent this compiler from
19245 # explicitly linking system object files so we need to strip them
19246 # from the output so that they don't get included in the library
19247 # dependencies.
19248 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'
19249 ;;
19250 *)
19251 if test "$GXX" = yes; then
19252 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'
19253 else
19254 # FIXME: insert proper C++ library support
19255 ld_shlibs_CXX=no
19256 fi
19257 ;;
19258 esac
19259 ;;
19260 hpux10*|hpux11*)
19261 if test $with_gnu_ld = no; then
19262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19264
19265 case $host_cpu in
19266 hppa*64*|ia64*)
19267 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19268 ;;
19269 *)
19270 export_dynamic_flag_spec_CXX='${wl}-E'
19271 ;;
19272 esac
19273 fi
19274 case $host_cpu in
19275 hppa*64*|ia64*)
19276 hardcode_direct_CXX=no
19277 hardcode_shlibpath_var_CXX=no
19278 ;;
19279 *)
19280 hardcode_direct_CXX=yes
19281 hardcode_minus_L_CXX=yes # Not in the search PATH,
19282 # but as the default
19283 # location of the library.
19284 ;;
19285 esac
19286
19287 case $cc_basename in
19288 CC*)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292 aCC*)
19293 case $host_cpu in
19294 hppa*64*)
19295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296 ;;
19297 ia64*)
19298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299 ;;
19300 *)
19301 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19302 ;;
19303 esac
19304 # Commands to make compiler produce verbose output that lists
19305 # what "hidden" libraries, object files and flags are used when
19306 # linking a shared library.
19307 #
19308 # There doesn't appear to be a way to prevent this compiler from
19309 # explicitly linking system object files so we need to strip them
19310 # from the output so that they don't get included in the library
19311 # dependencies.
19312 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'
19313 ;;
19314 *)
19315 if test "$GXX" = yes; then
19316 if test $with_gnu_ld = no; then
19317 case $host_cpu in
19318 hppa*64*)
19319 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19320 ;;
19321 ia64*)
19322 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19323 ;;
19324 *)
19325 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'
19326 ;;
19327 esac
19328 fi
19329 else
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 fi
19333 ;;
19334 esac
19335 ;;
19336 interix3*)
19337 hardcode_direct_CXX=no
19338 hardcode_shlibpath_var_CXX=no
19339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19340 export_dynamic_flag_spec_CXX='${wl}-E'
19341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19342 # Instead, shared libraries are loaded at an image base (0x10000000 by
19343 # default) and relocated if they conflict, which is a slow very memory
19344 # consuming and fragmenting process. To avoid this, we pick a random,
19345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19347 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'
19348 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'
19349 ;;
19350 irix5* | irix6*)
19351 case $cc_basename in
19352 CC*)
19353 # SGI C++
19354 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'
19355
19356 # Archives containing C++ object files must be created using
19357 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19358 # necessary to make sure instantiated templates are included
19359 # in the archive.
19360 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19361 ;;
19362 *)
19363 if test "$GXX" = yes; then
19364 if test "$with_gnu_ld" = no; then
19365 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'
19366 else
19367 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'
19368 fi
19369 fi
19370 link_all_deplibs_CXX=yes
19371 ;;
19372 esac
19373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19374 hardcode_libdir_separator_CXX=:
19375 ;;
19376 linux*)
19377 case $cc_basename in
19378 KCC*)
19379 # Kuck and Associates, Inc. (KAI) C++ Compiler
19380
19381 # KCC will only create a shared library if the output file
19382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19383 # to its proper name (with version) after linking.
19384 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'
19385 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'
19386 # Commands to make compiler produce verbose output that lists
19387 # what "hidden" libraries, object files and flags are used when
19388 # linking a shared library.
19389 #
19390 # There doesn't appear to be a way to prevent this compiler from
19391 # explicitly linking system object files so we need to strip them
19392 # from the output so that they don't get included in the library
19393 # dependencies.
19394 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'
19395
19396 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19398
19399 # Archives containing C++ object files must be created using
19400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19402 ;;
19403 icpc*)
19404 # Intel C++
19405 with_gnu_ld=yes
19406 # version 8.0 and above of icpc choke on multiply defined symbols
19407 # if we add $predep_objects and $postdep_objects, however 7.1 and
19408 # earlier do not add the objects themselves.
19409 case `$CC -V 2>&1` in
19410 *"Version 7."*)
19411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412 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'
19413 ;;
19414 *) # Version 8.0 or newer
19415 tmp_idyn=
19416 case $host_cpu in
19417 ia64*) tmp_idyn=' -i_dynamic';;
19418 esac
19419 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420 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'
19421 ;;
19422 esac
19423 archive_cmds_need_lc_CXX=no
19424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19426 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19427 ;;
19428 pgCC*)
19429 # Portland Group C++ compiler
19430 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19431 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'
19432
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435 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'
19436 ;;
19437 cxx*)
19438 # Compaq C++
19439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19440 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'
19441
19442 runpath_var=LD_RUN_PATH
19443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 #
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19453 # dependencies.
19454 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'
19455 ;;
19456 esac
19457 ;;
19458 lynxos*)
19459 # FIXME: insert proper C++ library support
19460 ld_shlibs_CXX=no
19461 ;;
19462 m88k*)
19463 # FIXME: insert proper C++ library support
19464 ld_shlibs_CXX=no
19465 ;;
19466 mvs*)
19467 case $cc_basename in
19468 cxx*)
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19471 ;;
19472 *)
19473 # FIXME: insert proper C++ library support
19474 ld_shlibs_CXX=no
19475 ;;
19476 esac
19477 ;;
19478 netbsd*)
19479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19480 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19481 wlarc=
19482 hardcode_libdir_flag_spec_CXX='-R$libdir'
19483 hardcode_direct_CXX=yes
19484 hardcode_shlibpath_var_CXX=no
19485 fi
19486 # Workaround some broken pre-1.5 toolchains
19487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19488 ;;
19489 openbsd2*)
19490 # C++ shared libraries are fairly broken
19491 ld_shlibs_CXX=no
19492 ;;
19493 openbsd*)
19494 hardcode_direct_CXX=yes
19495 hardcode_shlibpath_var_CXX=no
19496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19500 export_dynamic_flag_spec_CXX='${wl}-E'
19501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19502 fi
19503 output_verbose_link_cmd='echo'
19504 ;;
19505 osf3*)
19506 case $cc_basename in
19507 KCC*)
19508 # Kuck and Associates, Inc. (KAI) C++ Compiler
19509
19510 # KCC will only create a shared library if the output file
19511 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19512 # to its proper name (with version) after linking.
19513 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'
19514
19515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19516 hardcode_libdir_separator_CXX=:
19517
19518 # Archives containing C++ object files must be created using
19519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19521
19522 ;;
19523 RCC*)
19524 # Rational C++ 2.4.1
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19527 ;;
19528 cxx*)
19529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19530 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'
19531
19532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19533 hardcode_libdir_separator_CXX=:
19534
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19538 #
19539 # There doesn't appear to be a way to prevent this compiler from
19540 # explicitly linking system object files so we need to strip them
19541 # from the output so that they don't get included in the library
19542 # dependencies.
19543 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'
19544 ;;
19545 *)
19546 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19547 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19548 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'
19549
19550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19551 hardcode_libdir_separator_CXX=:
19552
19553 # Commands to make compiler produce verbose output that lists
19554 # what "hidden" libraries, object files and flags are used when
19555 # linking a shared library.
19556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19557
19558 else
19559 # FIXME: insert proper C++ library support
19560 ld_shlibs_CXX=no
19561 fi
19562 ;;
19563 esac
19564 ;;
19565 osf4* | osf5*)
19566 case $cc_basename in
19567 KCC*)
19568 # Kuck and Associates, Inc. (KAI) C++ Compiler
19569
19570 # KCC will only create a shared library if the output file
19571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19572 # to its proper name (with version) after linking.
19573 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'
19574
19575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19576 hardcode_libdir_separator_CXX=:
19577
19578 # Archives containing C++ object files must be created using
19579 # the KAI C++ compiler.
19580 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19581 ;;
19582 RCC*)
19583 # Rational C++ 2.4.1
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19586 ;;
19587 cxx*)
19588 allow_undefined_flag_CXX=' -expect_unresolved \*'
19589 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'
19590 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19591 echo "-hidden">> $lib.exp~
19592 $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~
19593 $rm $lib.exp'
19594
19595 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19596 hardcode_libdir_separator_CXX=:
19597
19598 # Commands to make compiler produce verbose output that lists
19599 # what "hidden" libraries, object files and flags are used when
19600 # linking a shared library.
19601 #
19602 # There doesn't appear to be a way to prevent this compiler from
19603 # explicitly linking system object files so we need to strip them
19604 # from the output so that they don't get included in the library
19605 # dependencies.
19606 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'
19607 ;;
19608 *)
19609 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19611 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'
19612
19613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19614 hardcode_libdir_separator_CXX=:
19615
19616 # Commands to make compiler produce verbose output that lists
19617 # what "hidden" libraries, object files and flags are used when
19618 # linking a shared library.
19619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19620
19621 else
19622 # FIXME: insert proper C++ library support
19623 ld_shlibs_CXX=no
19624 fi
19625 ;;
19626 esac
19627 ;;
19628 psos*)
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19631 ;;
19632 sunos4*)
19633 case $cc_basename in
19634 CC*)
19635 # Sun C++ 4.x
19636 # FIXME: insert proper C++ library support
19637 ld_shlibs_CXX=no
19638 ;;
19639 lcc*)
19640 # Lucid
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19643 ;;
19644 *)
19645 # FIXME: insert proper C++ library support
19646 ld_shlibs_CXX=no
19647 ;;
19648 esac
19649 ;;
19650 solaris*)
19651 case $cc_basename in
19652 CC*)
19653 # Sun C++ 4.2, 5.x and Centerline C++
19654 archive_cmds_need_lc_CXX=yes
19655 no_undefined_flag_CXX=' -zdefs'
19656 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19657 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19658 $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'
19659
19660 hardcode_libdir_flag_spec_CXX='-R$libdir'
19661 hardcode_shlibpath_var_CXX=no
19662 case $host_os in
19663 solaris2.[0-5] | solaris2.[0-5].*) ;;
19664 *)
19665 # The C++ compiler is used as linker so we must use $wl
19666 # flag to pass the commands to the underlying system
19667 # linker. We must also pass each convience library through
19668 # to the system linker between allextract/defaultextract.
19669 # The C++ compiler will combine linker options so we
19670 # cannot just pass the convience library names through
19671 # without $wl.
19672 # Supported since Solaris 2.6 (maybe 2.5.1?)
19673 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'
19674 ;;
19675 esac
19676 link_all_deplibs_CXX=yes
19677
19678 output_verbose_link_cmd='echo'
19679
19680 # Archives containing C++ object files must be created using
19681 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19682 # necessary to make sure instantiated templates are included
19683 # in the archive.
19684 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19685 ;;
19686 gcx*)
19687 # Green Hills C++ Compiler
19688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19689
19690 # The C++ compiler must be used to create the archive.
19691 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19692 ;;
19693 *)
19694 # GNU C++ compiler with Solaris linker
19695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19696 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19697 if $CC --version | grep -v '^2\.7' > /dev/null; then
19698 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19699 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19701
19702 # Commands to make compiler produce verbose output that lists
19703 # what "hidden" libraries, object files and flags are used when
19704 # linking a shared library.
19705 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19706 else
19707 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19708 # platform.
19709 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19711 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19712
19713 # Commands to make compiler produce verbose output that lists
19714 # what "hidden" libraries, object files and flags are used when
19715 # linking a shared library.
19716 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19717 fi
19718
19719 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19720 fi
19721 ;;
19722 esac
19723 ;;
19724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19725 no_undefined_flag_CXX='${wl}-z,text'
19726 archive_cmds_need_lc_CXX=no
19727 hardcode_shlibpath_var_CXX=no
19728 runpath_var='LD_RUN_PATH'
19729
19730 case $cc_basename in
19731 CC*)
19732 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19733 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 ;;
19735 *)
19736 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19738 ;;
19739 esac
19740 ;;
19741 sysv5* | sco3.2v5* | sco5v6*)
19742 # Note: We can NOT use -z defs as we might desire, because we do not
19743 # link with -lc, and that would cause any symbols used from libc to
19744 # always be unresolved, which means just about no library would
19745 # ever link correctly. If we're not using GNU ld we use -z text
19746 # though, which does catch some bad symbols but isn't as heavy-handed
19747 # as -z defs.
19748 # For security reasons, it is highly recommended that you always
19749 # use absolute paths for naming shared libraries, and exclude the
19750 # DT_RUNPATH tag from executables and libraries. But doing so
19751 # requires that you compile everything twice, which is a pain.
19752 # So that behaviour is only enabled if SCOABSPATH is set to a
19753 # non-empty value in the environment. Most likely only useful for
19754 # creating official distributions of packages.
19755 # This is a hack until libtool officially supports absolute path
19756 # names for shared libraries.
19757 no_undefined_flag_CXX='${wl}-z,text'
19758 allow_undefined_flag_CXX='${wl}-z,nodefs'
19759 archive_cmds_need_lc_CXX=no
19760 hardcode_shlibpath_var_CXX=no
19761 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19762 hardcode_libdir_separator_CXX=':'
19763 link_all_deplibs_CXX=yes
19764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19765 runpath_var='LD_RUN_PATH'
19766
19767 case $cc_basename in
19768 CC*)
19769 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19771 ;;
19772 *)
19773 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19775 ;;
19776 esac
19777 ;;
19778 tandem*)
19779 case $cc_basename in
19780 NCC*)
19781 # NonStop-UX NCC 3.20
19782 # FIXME: insert proper C++ library support
19783 ld_shlibs_CXX=no
19784 ;;
19785 *)
19786 # FIXME: insert proper C++ library support
19787 ld_shlibs_CXX=no
19788 ;;
19789 esac
19790 ;;
19791 vxworks*)
19792 # FIXME: insert proper C++ library support
19793 ld_shlibs_CXX=no
19794 ;;
19795 *)
19796 # FIXME: insert proper C++ library support
19797 ld_shlibs_CXX=no
19798 ;;
19799esac
19800{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19801echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19802test "$ld_shlibs_CXX" = no && can_build_shared=no
19803
19804GCC_CXX="$GXX"
19805LD_CXX="$LD"
19806
19807
19808cat > conftest.$ac_ext <<EOF
19809class Foo
19810{
19811public:
19812 Foo (void) { a = 0; }
19813private:
19814 int a;
19815};
19816EOF
19817
19818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819 (eval $ac_compile) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; then
19823 # Parse the compiler output and extract the necessary
19824 # objects, libraries and library flags.
19825
19826 # Sentinel used to keep track of whether or not we are before
19827 # the conftest object file.
19828 pre_test_object_deps_done=no
19829
19830 # The `*' in the case matches for architectures that use `case' in
19831 # $output_verbose_cmd can trigger glob expansion during the loop
19832 # eval without this substitution.
19833 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19834
19835 for p in `eval $output_verbose_link_cmd`; do
19836 case $p in
19837
19838 -L* | -R* | -l*)
19839 # Some compilers place space between "-{L,R}" and the path.
19840 # Remove the space.
19841 if test $p = "-L" \
19842 || test $p = "-R"; then
19843 prev=$p
19844 continue
19845 else
19846 prev=
19847 fi
19848
19849 if test "$pre_test_object_deps_done" = no; then
19850 case $p in
19851 -L* | -R*)
19852 # Internal compiler library paths should come after those
19853 # provided the user. The postdeps already come after the
19854 # user supplied libs so there is no need to process them.
19855 if test -z "$compiler_lib_search_path_CXX"; then
19856 compiler_lib_search_path_CXX="${prev}${p}"
19857 else
19858 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19859 fi
19860 ;;
19861 # The "-l" case would never come before the object being
19862 # linked, so don't bother handling this case.
19863 esac
19864 else
19865 if test -z "$postdeps_CXX"; then
19866 postdeps_CXX="${prev}${p}"
19867 else
19868 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19869 fi
19870 fi
19871 ;;
19872
19873 *.$objext)
19874 # This assumes that the test object file only shows up
19875 # once in the compiler output.
19876 if test "$p" = "conftest.$objext"; then
19877 pre_test_object_deps_done=yes
19878 continue
19879 fi
19880
19881 if test "$pre_test_object_deps_done" = no; then
19882 if test -z "$predep_objects_CXX"; then
19883 predep_objects_CXX="$p"
19884 else
19885 predep_objects_CXX="$predep_objects_CXX $p"
19886 fi
19887 else
19888 if test -z "$postdep_objects_CXX"; then
19889 postdep_objects_CXX="$p"
19890 else
19891 postdep_objects_CXX="$postdep_objects_CXX $p"
19892 fi
19893 fi
19894 ;;
19895
19896 *) ;; # Ignore the rest.
19897
19898 esac
19899 done
19900
19901 # Clean up.
19902 rm -f a.out a.exe
19903else
19904 echo "libtool.m4: error: problem compiling CXX test program"
19905fi
19906
19907$rm -f confest.$objext
19908
19909# PORTME: override above test on systems where it is broken
19910case $host_os in
19911interix3*)
19912 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19913 # hack all around it, let's just trust "g++" to DTRT.
19914 predep_objects_CXX=
19915 postdep_objects_CXX=
19916 postdeps_CXX=
19917 ;;
19918
19919solaris*)
19920 case $cc_basename in
19921 CC*)
19922 # Adding this requires a known-good setup of shared libraries for
19923 # Sun compiler versions before 5.6, else PIC objects from an old
19924 # archive will be linked into the output, leading to subtle bugs.
19925 postdeps_CXX='-lCstd -lCrun'
19926 ;;
19927 esac
19928 ;;
19929esac
19930
19931
19932case " $postdeps_CXX " in
19933*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19934esac
19935
19936lt_prog_compiler_wl_CXX=
19937lt_prog_compiler_pic_CXX=
19938lt_prog_compiler_static_CXX=
19939
19940{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19941echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19942
19943 # C++ specific cases for pic, static, wl, etc.
19944 if test "$GXX" = yes; then
19945 lt_prog_compiler_wl_CXX='-Wl,'
19946 lt_prog_compiler_static_CXX='-static'
19947
19948 case $host_os in
19949 aix*)
19950 # All AIX code is PIC.
19951 if test "$host_cpu" = ia64; then
19952 # AIX 5 now supports IA64 processor
19953 lt_prog_compiler_static_CXX='-Bstatic'
19954 fi
19955 ;;
19956 amigaos*)
19957 # FIXME: we need at least 68020 code to build shared libraries, but
19958 # adding the `-m68020' flag to GCC prevents building anything better,
19959 # like `-m68040'.
19960 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19961 ;;
19962 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19963 # PIC is the default for these OSes.
19964 ;;
19965 mingw* | os2* | pw32*)
19966 # This hack is so that the source file can tell whether it is being
19967 # built for inclusion in a dll (and should export symbols for example).
19968 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19969 ;;
19970 darwin* | rhapsody*)
19971 # PIC is the default on this platform
19972 # Common symbols not allowed in MH_DYLIB files
19973 lt_prog_compiler_pic_CXX='-fno-common'
19974 ;;
19975 *djgpp*)
19976 # DJGPP does not support shared libraries at all
19977 lt_prog_compiler_pic_CXX=
19978 ;;
19979 interix3*)
19980 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19981 # Instead, we relocate shared libraries at runtime.
19982 ;;
19983 sysv4*MP*)
19984 if test -d /usr/nec; then
19985 lt_prog_compiler_pic_CXX=-Kconform_pic
19986 fi
19987 ;;
19988 hpux*)
19989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19990 # not for PA HP-UX.
19991 case $host_cpu in
19992 hppa*64*|ia64*)
19993 ;;
19994 *)
19995 lt_prog_compiler_pic_CXX='-fPIC'
19996 ;;
19997 esac
19998 ;;
19999 *)
20000 lt_prog_compiler_pic_CXX='-fPIC'
20001 ;;
20002 esac
20003 else
20004 case $host_os in
20005 aix4* | aix5*)
20006 # All AIX code is PIC.
20007 if test "$host_cpu" = ia64; then
20008 # AIX 5 now supports IA64 processor
20009 lt_prog_compiler_static_CXX='-Bstatic'
20010 else
20011 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20012 fi
20013 ;;
20014 chorus*)
20015 case $cc_basename in
20016 cxch68*)
20017 # Green Hills C++ Compiler
20018 # _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"
20019 ;;
20020 esac
20021 ;;
20022 darwin*)
20023 # PIC is the default on this platform
20024 # Common symbols not allowed in MH_DYLIB files
20025 case $cc_basename in
20026 xlc*)
20027 lt_prog_compiler_pic_CXX='-qnocommon'
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 ;;
20030 esac
20031 ;;
20032 dgux*)
20033 case $cc_basename in
20034 ec++*)
20035 lt_prog_compiler_pic_CXX='-KPIC'
20036 ;;
20037 ghcx*)
20038 # Green Hills C++ Compiler
20039 lt_prog_compiler_pic_CXX='-pic'
20040 ;;
20041 *)
20042 ;;
20043 esac
20044 ;;
20045 freebsd* | kfreebsd*-gnu | dragonfly*)
20046 # FreeBSD uses GNU C++
20047 ;;
20048 hpux9* | hpux10* | hpux11*)
20049 case $cc_basename in
20050 CC*)
20051 lt_prog_compiler_wl_CXX='-Wl,'
20052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20053 if test "$host_cpu" != ia64; then
20054 lt_prog_compiler_pic_CXX='+Z'
20055 fi
20056 ;;
20057 aCC*)
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20060 case $host_cpu in
20061 hppa*64*|ia64*)
20062 # +Z the default
20063 ;;
20064 *)
20065 lt_prog_compiler_pic_CXX='+Z'
20066 ;;
20067 esac
20068 ;;
20069 *)
20070 ;;
20071 esac
20072 ;;
20073 interix*)
20074 # This is c89, which is MS Visual C++ (no shared libs)
20075 # Anyone wants to do a port?
20076 ;;
20077 irix5* | irix6* | nonstopux*)
20078 case $cc_basename in
20079 CC*)
20080 lt_prog_compiler_wl_CXX='-Wl,'
20081 lt_prog_compiler_static_CXX='-non_shared'
20082 # CC pic flag -KPIC is the default.
20083 ;;
20084 *)
20085 ;;
20086 esac
20087 ;;
20088 linux*)
20089 case $cc_basename in
20090 KCC*)
20091 # KAI C++ Compiler
20092 lt_prog_compiler_wl_CXX='--backend -Wl,'
20093 lt_prog_compiler_pic_CXX='-fPIC'
20094 ;;
20095 icpc* | ecpc*)
20096 # Intel C++
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 lt_prog_compiler_pic_CXX='-KPIC'
20099 lt_prog_compiler_static_CXX='-static'
20100 ;;
20101 pgCC*)
20102 # Portland Group C++ compiler.
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_pic_CXX='-fpic'
20105 lt_prog_compiler_static_CXX='-Bstatic'
20106 ;;
20107 cxx*)
20108 # Compaq C++
20109 # Make sure the PIC flag is empty. It appears that all Alpha
20110 # Linux and Compaq Tru64 Unix objects are PIC.
20111 lt_prog_compiler_pic_CXX=
20112 lt_prog_compiler_static_CXX='-non_shared'
20113 ;;
20114 *)
20115 ;;
20116 esac
20117 ;;
20118 lynxos*)
20119 ;;
20120 m88k*)
20121 ;;
20122 mvs*)
20123 case $cc_basename in
20124 cxx*)
20125 lt_prog_compiler_pic_CXX='-W c,exportall'
20126 ;;
20127 *)
20128 ;;
20129 esac
20130 ;;
20131 netbsd*)
20132 ;;
20133 osf3* | osf4* | osf5*)
20134 case $cc_basename in
20135 KCC*)
20136 lt_prog_compiler_wl_CXX='--backend -Wl,'
20137 ;;
20138 RCC*)
20139 # Rational C++ 2.4.1
20140 lt_prog_compiler_pic_CXX='-pic'
20141 ;;
20142 cxx*)
20143 # Digital/Compaq C++
20144 lt_prog_compiler_wl_CXX='-Wl,'
20145 # Make sure the PIC flag is empty. It appears that all Alpha
20146 # Linux and Compaq Tru64 Unix objects are PIC.
20147 lt_prog_compiler_pic_CXX=
20148 lt_prog_compiler_static_CXX='-non_shared'
20149 ;;
20150 *)
20151 ;;
20152 esac
20153 ;;
20154 psos*)
20155 ;;
20156 solaris*)
20157 case $cc_basename in
20158 CC*)
20159 # Sun C++ 4.2, 5.x and Centerline C++
20160 lt_prog_compiler_pic_CXX='-KPIC'
20161 lt_prog_compiler_static_CXX='-Bstatic'
20162 lt_prog_compiler_wl_CXX='-Qoption ld '
20163 ;;
20164 gcx*)
20165 # Green Hills C++ Compiler
20166 lt_prog_compiler_pic_CXX='-PIC'
20167 ;;
20168 *)
20169 ;;
20170 esac
20171 ;;
20172 sunos4*)
20173 case $cc_basename in
20174 CC*)
20175 # Sun C++ 4.x
20176 lt_prog_compiler_pic_CXX='-pic'
20177 lt_prog_compiler_static_CXX='-Bstatic'
20178 ;;
20179 lcc*)
20180 # Lucid
20181 lt_prog_compiler_pic_CXX='-pic'
20182 ;;
20183 *)
20184 ;;
20185 esac
20186 ;;
20187 tandem*)
20188 case $cc_basename in
20189 NCC*)
20190 # NonStop-UX NCC 3.20
20191 lt_prog_compiler_pic_CXX='-KPIC'
20192 ;;
20193 *)
20194 ;;
20195 esac
20196 ;;
20197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20198 case $cc_basename in
20199 CC*)
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-KPIC'
20202 lt_prog_compiler_static_CXX='-Bstatic'
20203 ;;
20204 esac
20205 ;;
20206 vxworks*)
20207 ;;
20208 *)
20209 lt_prog_compiler_can_build_shared_CXX=no
20210 ;;
20211 esac
20212 fi
20213
20214{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20215echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20216
20217#
20218# Check to make sure the PIC flag actually works.
20219#
20220if test -n "$lt_prog_compiler_pic_CXX"; then
20221
20222{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20223echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20224if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226else
20227 lt_prog_compiler_pic_works_CXX=no
20228 ac_outfile=conftest.$ac_objext
20229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20230 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 # The option is referenced via a variable to avoid confusing sed.
20236 lt_compile=`echo "$ac_compile" | $SED \
20237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000020240 (eval echo "\"\$as_me:20240: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020241 (eval "$lt_compile" 2>conftest.err)
20242 ac_status=$?
20243 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000020244 echo "$as_me:20244: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020245 if (exit $ac_status) && test -s "$ac_outfile"; then
20246 # The compiler can only warn and ignore the option if not recognized
20247 # So say no if there are warnings other than the usual output.
20248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20251 lt_prog_compiler_pic_works_CXX=yes
20252 fi
20253 fi
20254 $rm conftest*
20255
20256fi
20257{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20258echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20259
20260if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20261 case $lt_prog_compiler_pic_CXX in
20262 "" | " "*) ;;
20263 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20264 esac
20265else
20266 lt_prog_compiler_pic_CXX=
20267 lt_prog_compiler_can_build_shared_CXX=no
20268fi
20269
20270fi
20271case $host_os in
20272 # For platforms which do not support PIC, -DPIC is meaningless:
20273 *djgpp*)
20274 lt_prog_compiler_pic_CXX=
20275 ;;
20276 *)
20277 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20278 ;;
20279esac
20280
20281#
20282# Check to make sure the static flag actually works.
20283#
20284wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20285{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20287if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290 lt_prog_compiler_static_works_CXX=no
20291 save_LDFLAGS="$LDFLAGS"
20292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20293 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20295 # The linker can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 if test -s conftest.err; then
20298 # Append any errors to the config.log.
20299 cat conftest.err 1>&5
20300 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20302 if diff conftest.exp conftest.er2 >/dev/null; then
20303 lt_prog_compiler_static_works_CXX=yes
20304 fi
20305 else
20306 lt_prog_compiler_static_works_CXX=yes
20307 fi
20308 fi
20309 $rm conftest*
20310 LDFLAGS="$save_LDFLAGS"
20311
20312fi
20313{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20314echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20315
20316if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20317 :
20318else
20319 lt_prog_compiler_static_CXX=
20320fi
20321
20322
20323{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20325if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 lt_cv_prog_compiler_c_o_CXX=no
20329 $rm -r conftest 2>/dev/null
20330 mkdir conftest
20331 cd conftest
20332 mkdir out
20333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20334
20335 lt_compiler_flag="-o out/conftest2.$ac_objext"
20336 # Insert the option either (1) after the last *FLAGS variable, or
20337 # (2) before a word containing "conftest.", or (3) at the end.
20338 # Note that $ac_compile itself does not contain backslashes and begins
20339 # with a dollar sign (not a hyphen), so the echo should work correctly.
20340 lt_compile=`echo "$ac_compile" | $SED \
20341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000020344 (eval echo "\"\$as_me:20344: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020345 (eval "$lt_compile" 2>out/conftest.err)
20346 ac_status=$?
20347 cat out/conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000020348 echo "$as_me:20348: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20350 then
20351 # The compiler can only warn and ignore the option if not recognized
20352 # So say no if there are warnings
20353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20356 lt_cv_prog_compiler_c_o_CXX=yes
20357 fi
20358 fi
20359 chmod u+w . 2>&5
20360 $rm conftest*
20361 # SGI C++ compiler will create directory out/ii_files/ for
20362 # template instantiation
20363 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20364 $rm out/* && rmdir out
20365 cd ..
20366 rmdir conftest
20367 $rm conftest*
20368
20369fi
20370{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20371echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20372
20373
20374hard_links="nottested"
20375if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20376 # do not overwrite the value of need_locks provided by the user
20377 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20378echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20379 hard_links=yes
20380 $rm conftest*
20381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382 touch conftest.a
20383 ln conftest.a conftest.b 2>&5 || hard_links=no
20384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20385 { echo "$as_me:$LINENO: result: $hard_links" >&5
20386echo "${ECHO_T}$hard_links" >&6; }
20387 if test "$hard_links" = no; then
20388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20389echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20390 need_locks=warn
20391 fi
20392else
20393 need_locks=no
20394fi
20395
20396{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20398
20399 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20400 case $host_os in
20401 aix4* | aix5*)
20402 # If we're using GNU nm, then we don't want the "-C" option.
20403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20404 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20405 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'
20406 else
20407 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'
20408 fi
20409 ;;
20410 pw32*)
20411 export_symbols_cmds_CXX="$ltdll_cmds"
20412 ;;
20413 cygwin* | mingw*)
20414 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'
20415 ;;
20416 *)
20417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20418 ;;
20419 esac
20420
20421{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20422echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20423test "$ld_shlibs_CXX" = no && can_build_shared=no
20424
20425#
20426# Do we need to explicitly link libc?
20427#
20428case "x$archive_cmds_need_lc_CXX" in
20429x|xyes)
20430 # Assume -lc should be added
20431 archive_cmds_need_lc_CXX=yes
20432
20433 if test "$enable_shared" = yes && test "$GCC" = yes; then
20434 case $archive_cmds_CXX in
20435 *'~'*)
20436 # FIXME: we may have to deal with multi-command sequences.
20437 ;;
20438 '$CC '*)
20439 # Test whether the compiler implicitly links with -lc since on some
20440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20441 # to ld, don't add -lc before -lgcc.
20442 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20443echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20444 $rm conftest*
20445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20446
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } 2>conftest.err; then
20452 soname=conftest
20453 lib=conftest
20454 libobjs=conftest.$ac_objext
20455 deplibs=
20456 wl=$lt_prog_compiler_wl_CXX
20457 pic_flag=$lt_prog_compiler_pic_CXX
20458 compiler_flags=-v
20459 linker_flags=-v
20460 verstring=
20461 output_objdir=.
20462 libname=conftest
20463 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20464 allow_undefined_flag_CXX=
20465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20466 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }
20470 then
20471 archive_cmds_need_lc_CXX=no
20472 else
20473 archive_cmds_need_lc_CXX=yes
20474 fi
20475 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20476 else
20477 cat conftest.err 1>&5
20478 fi
20479 $rm conftest*
20480 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20481echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20482 ;;
20483 esac
20484 fi
20485 ;;
20486esac
20487
20488{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20489echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20490library_names_spec=
20491libname_spec='lib$name'
20492soname_spec=
20493shrext_cmds=".so"
20494postinstall_cmds=
20495postuninstall_cmds=
20496finish_cmds=
20497finish_eval=
20498shlibpath_var=
20499shlibpath_overrides_runpath=unknown
20500version_type=none
20501dynamic_linker="$host_os ld.so"
20502sys_lib_dlsearch_path_spec="/lib /usr/lib"
20503if test "$GCC" = yes; then
20504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20506 # if the path contains ";" then we assume it to be the separator
20507 # otherwise default to the standard path separator (i.e. ":") - it is
20508 # assumed that no part of a normal pathname contains ";" but that should
20509 # okay in the real world where ";" in dirpaths is itself problematic.
20510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20511 else
20512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20513 fi
20514else
20515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20516fi
20517need_lib_prefix=unknown
20518hardcode_into_libs=no
20519
20520# when you set need_version to no, make sure it does not cause -set_version
20521# flags to be left without arguments
20522need_version=unknown
20523
20524case $host_os in
20525aix3*)
20526 version_type=linux
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20528 shlibpath_var=LIBPATH
20529
20530 # AIX 3 has no versioning support, so we append a major version to the name.
20531 soname_spec='${libname}${release}${shared_ext}$major'
20532 ;;
20533
20534aix4* | aix5*)
20535 version_type=linux
20536 need_lib_prefix=no
20537 need_version=no
20538 hardcode_into_libs=yes
20539 if test "$host_cpu" = ia64; then
20540 # AIX 5 supports IA64
20541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 else
20544 # With GCC up to 2.95.x, collect2 would create an import file
20545 # for dependence libraries. The import file would start with
20546 # the line `#! .'. This would cause the generated library to
20547 # depend on `.', always an invalid library. This was fixed in
20548 # development snapshots of GCC prior to 3.0.
20549 case $host_os in
20550 aix4 | aix4.[01] | aix4.[01].*)
20551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20552 echo ' yes '
20553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20554 :
20555 else
20556 can_build_shared=no
20557 fi
20558 ;;
20559 esac
20560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20561 # soname into executable. Probably we can add versioning support to
20562 # collect2, so additional links can be useful in future.
20563 if test "$aix_use_runtimelinking" = yes; then
20564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20565 # instead of lib<name>.a to let people know that these are not
20566 # typical AIX shared libraries.
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 else
20569 # We preserve .a as extension for shared libraries through AIX4.2
20570 # and later when we are not doing run time linking.
20571 library_names_spec='${libname}${release}.a $libname.a'
20572 soname_spec='${libname}${release}${shared_ext}$major'
20573 fi
20574 shlibpath_var=LIBPATH
20575 fi
20576 ;;
20577
20578amigaos*)
20579 library_names_spec='$libname.ixlibrary $libname.a'
20580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20581 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'
20582 ;;
20583
20584beos*)
20585 library_names_spec='${libname}${shared_ext}'
20586 dynamic_linker="$host_os ld.so"
20587 shlibpath_var=LIBRARY_PATH
20588 ;;
20589
20590bsdi[45]*)
20591 version_type=linux
20592 need_version=no
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20599 # the default ld.so.conf also contains /usr/contrib/lib and
20600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20601 # libtool to hard-code these into programs
20602 ;;
20603
20604cygwin* | mingw* | pw32*)
20605 version_type=windows
20606 shrext_cmds=".dll"
20607 need_version=no
20608 need_lib_prefix=no
20609
20610 case $GCC,$host_os in
20611 yes,cygwin* | yes,mingw* | yes,pw32*)
20612 library_names_spec='$libname.dll.a'
20613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20614 postinstall_cmds='base_file=`basename \${file}`~
20615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20616 dldir=$destdir/`dirname \$dlpath`~
20617 test -d \$dldir || mkdir -p \$dldir~
20618 $install_prog $dir/$dlname \$dldir/$dlname~
20619 chmod a+x \$dldir/$dlname'
20620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20621 dlpath=$dir/\$dldll~
20622 $rm \$dlpath'
20623 shlibpath_overrides_runpath=yes
20624
20625 case $host_os in
20626 cygwin*)
20627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20630 ;;
20631 mingw*)
20632 # MinGW DLLs use traditional 'lib' prefix
20633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20636 # It is most probably a Windows format PATH printed by
20637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20638 # path with ; separators, and with drive letters. We can handle the
20639 # drive letters (cygwin fileutils understands them), so leave them,
20640 # especially as we might pass files found there to a mingw objdump,
20641 # which wouldn't understand a cygwinified path. Ahh.
20642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20643 else
20644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20645 fi
20646 ;;
20647 pw32*)
20648 # pw32 DLLs use 'pw' prefix rather than 'lib'
20649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20650 ;;
20651 esac
20652 ;;
20653
20654 *)
20655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20656 ;;
20657 esac
20658 dynamic_linker='Win32 ld.exe'
20659 # FIXME: first we should search . and the directory the executable is in
20660 shlibpath_var=PATH
20661 ;;
20662
20663darwin* | rhapsody*)
20664 dynamic_linker="$host_os dyld"
20665 version_type=darwin
20666 need_lib_prefix=no
20667 need_version=no
20668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20669 soname_spec='${libname}${release}${major}$shared_ext'
20670 shlibpath_overrides_runpath=yes
20671 shlibpath_var=DYLD_LIBRARY_PATH
20672 shrext_cmds='.dylib'
20673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20674 if test "$GCC" = yes; then
20675 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"`
20676 else
20677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20678 fi
20679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20680 ;;
20681
20682dgux*)
20683 version_type=linux
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 ;;
20690
20691freebsd1*)
20692 dynamic_linker=no
20693 ;;
20694
20695kfreebsd*-gnu)
20696 version_type=linux
20697 need_lib_prefix=no
20698 need_version=no
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=no
20703 hardcode_into_libs=yes
20704 dynamic_linker='GNU ld.so'
20705 ;;
20706
20707freebsd* | dragonfly*)
20708 # DragonFly does not have aout. When/if they implement a new
20709 # versioning mechanism, adjust this.
20710 if test -x /usr/bin/objformat; then
20711 objformat=`/usr/bin/objformat`
20712 else
20713 case $host_os in
20714 freebsd[123]*) objformat=aout ;;
20715 *) objformat=elf ;;
20716 esac
20717 fi
20718 version_type=freebsd-$objformat
20719 case $version_type in
20720 freebsd-elf*)
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20722 need_version=no
20723 need_lib_prefix=no
20724 ;;
20725 freebsd-*)
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20727 need_version=yes
20728 ;;
20729 esac
20730 shlibpath_var=LD_LIBRARY_PATH
20731 case $host_os in
20732 freebsd2*)
20733 shlibpath_overrides_runpath=yes
20734 ;;
20735 freebsd3.[01]* | freebsdelf3.[01]*)
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20738 ;;
20739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20741 shlibpath_overrides_runpath=no
20742 hardcode_into_libs=yes
20743 ;;
20744 freebsd*) # from 4.6 on
20745 shlibpath_overrides_runpath=yes
20746 hardcode_into_libs=yes
20747 ;;
20748 esac
20749 ;;
20750
20751gnu*)
20752 version_type=linux
20753 need_lib_prefix=no
20754 need_version=no
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 hardcode_into_libs=yes
20759 ;;
20760
20761hpux9* | hpux10* | hpux11*)
20762 # Give a soname corresponding to the major version so that dld.sl refuses to
20763 # link against other versions.
20764 version_type=sunos
20765 need_lib_prefix=no
20766 need_version=no
20767 case $host_cpu in
20768 ia64*)
20769 shrext_cmds='.so'
20770 hardcode_into_libs=yes
20771 dynamic_linker="$host_os dld.so"
20772 shlibpath_var=LD_LIBRARY_PATH
20773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775 soname_spec='${libname}${release}${shared_ext}$major'
20776 if test "X$HPUX_IA64_MODE" = X32; then
20777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20778 else
20779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20780 fi
20781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20782 ;;
20783 hppa*64*)
20784 shrext_cmds='.sl'
20785 hardcode_into_libs=yes
20786 dynamic_linker="$host_os dld.sl"
20787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20793 ;;
20794 *)
20795 shrext_cmds='.sl'
20796 dynamic_linker="$host_os dld.sl"
20797 shlibpath_var=SHLIB_PATH
20798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 ;;
20802 esac
20803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20804 postinstall_cmds='chmod 555 $lib'
20805 ;;
20806
20807interix3*)
20808 version_type=linux
20809 need_lib_prefix=no
20810 need_version=no
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20814 shlibpath_var=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath=no
20816 hardcode_into_libs=yes
20817 ;;
20818
20819irix5* | irix6* | nonstopux*)
20820 case $host_os in
20821 nonstopux*) version_type=nonstopux ;;
20822 *)
20823 if test "$lt_cv_prog_gnu_ld" = yes; then
20824 version_type=linux
20825 else
20826 version_type=irix
20827 fi ;;
20828 esac
20829 need_lib_prefix=no
20830 need_version=no
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20833 case $host_os in
20834 irix5* | nonstopux*)
20835 libsuff= shlibsuff=
20836 ;;
20837 *)
20838 case $LD in # libtool.m4 will add one of these switches to LD
20839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20840 libsuff= shlibsuff= libmagic=32-bit;;
20841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20842 libsuff=32 shlibsuff=N32 libmagic=N32;;
20843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20845 *) libsuff= shlibsuff= libmagic=never-match;;
20846 esac
20847 ;;
20848 esac
20849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20850 shlibpath_overrides_runpath=no
20851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20853 hardcode_into_libs=yes
20854 ;;
20855
20856# No shared lib support for Linux oldld, aout, or coff.
20857linux*oldld* | linux*aout* | linux*coff*)
20858 dynamic_linker=no
20859 ;;
20860
20861# This must be Linux ELF.
20862linux*)
20863 version_type=linux
20864 need_lib_prefix=no
20865 need_version=no
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20869 shlibpath_var=LD_LIBRARY_PATH
20870 shlibpath_overrides_runpath=no
20871 # This implies no fast_install, which is unacceptable.
20872 # Some rework will be needed to allow for fast_install
20873 # before this can be enabled.
20874 hardcode_into_libs=yes
20875
20876 # Append ld.so.conf contents to the search path
20877 if test -f /etc/ld.so.conf; then
20878 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' ' '`
20879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20880 fi
20881
20882 # We used to test for /lib/ld.so.1 and disable shared libraries on
20883 # powerpc, because MkLinux only supported shared libraries with the
20884 # GNU dynamic linker. Since this was broken with cross compilers,
20885 # most powerpc-linux boxes support dynamic linking these days and
20886 # people can always --disable-shared, the test was removed, and we
20887 # assume the GNU/Linux dynamic linker is in use.
20888 dynamic_linker='GNU/Linux ld.so'
20889 ;;
20890
20891knetbsd*-gnu)
20892 version_type=linux
20893 need_lib_prefix=no
20894 need_version=no
20895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20896 soname_spec='${libname}${release}${shared_ext}$major'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath=no
20899 hardcode_into_libs=yes
20900 dynamic_linker='GNU ld.so'
20901 ;;
20902
20903netbsd*)
20904 version_type=sunos
20905 need_lib_prefix=no
20906 need_version=no
20907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20910 dynamic_linker='NetBSD (a.out) ld.so'
20911 else
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 dynamic_linker='NetBSD ld.elf_so'
20915 fi
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=yes
20918 hardcode_into_libs=yes
20919 ;;
20920
20921newsos6)
20922 version_type=linux
20923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 shlibpath_overrides_runpath=yes
20926 ;;
20927
20928nto-qnx*)
20929 version_type=linux
20930 need_lib_prefix=no
20931 need_version=no
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=yes
20936 ;;
20937
20938openbsd*)
20939 version_type=sunos
20940 sys_lib_dlsearch_path_spec="/usr/lib"
20941 need_lib_prefix=no
20942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20943 case $host_os in
20944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20945 *) need_version=no ;;
20946 esac
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20951 case $host_os in
20952 openbsd2.[89] | openbsd2.[89].*)
20953 shlibpath_overrides_runpath=no
20954 ;;
20955 *)
20956 shlibpath_overrides_runpath=yes
20957 ;;
20958 esac
20959 else
20960 shlibpath_overrides_runpath=yes
20961 fi
20962 ;;
20963
20964os2*)
20965 libname_spec='$name'
20966 shrext_cmds=".dll"
20967 need_lib_prefix=no
20968 library_names_spec='$libname${shared_ext} $libname.a'
20969 dynamic_linker='OS/2 ld.exe'
20970 shlibpath_var=LIBPATH
20971 ;;
20972
20973osf3* | osf4* | osf5*)
20974 version_type=osf
20975 need_lib_prefix=no
20976 need_version=no
20977 soname_spec='${libname}${release}${shared_ext}$major'
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 shlibpath_var=LD_LIBRARY_PATH
20980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20982 ;;
20983
20984solaris*)
20985 version_type=linux
20986 need_lib_prefix=no
20987 need_version=no
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20989 soname_spec='${libname}${release}${shared_ext}$major'
20990 shlibpath_var=LD_LIBRARY_PATH
20991 shlibpath_overrides_runpath=yes
20992 hardcode_into_libs=yes
20993 # ldd complains unless libraries are executable
20994 postinstall_cmds='chmod +x $lib'
20995 ;;
20996
20997sunos4*)
20998 version_type=sunos
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 shlibpath_overrides_runpath=yes
21003 if test "$with_gnu_ld" = yes; then
21004 need_lib_prefix=no
21005 fi
21006 need_version=yes
21007 ;;
21008
21009sysv4 | sysv4.3*)
21010 version_type=linux
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 case $host_vendor in
21015 sni)
21016 shlibpath_overrides_runpath=no
21017 need_lib_prefix=no
21018 export_dynamic_flag_spec='${wl}-Blargedynsym'
21019 runpath_var=LD_RUN_PATH
21020 ;;
21021 siemens)
21022 need_lib_prefix=no
21023 ;;
21024 motorola)
21025 need_lib_prefix=no
21026 need_version=no
21027 shlibpath_overrides_runpath=no
21028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21029 ;;
21030 esac
21031 ;;
21032
21033sysv4*MP*)
21034 if test -d /usr/nec ;then
21035 version_type=linux
21036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21037 soname_spec='$libname${shared_ext}.$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 fi
21040 ;;
21041
21042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21043 version_type=freebsd-elf
21044 need_lib_prefix=no
21045 need_version=no
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 hardcode_into_libs=yes
21050 if test "$with_gnu_ld" = yes; then
21051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21052 shlibpath_overrides_runpath=no
21053 else
21054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21055 shlibpath_overrides_runpath=yes
21056 case $host_os in
21057 sco3.2v5*)
21058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21059 ;;
21060 esac
21061 fi
21062 sys_lib_dlsearch_path_spec='/usr/lib'
21063 ;;
21064
21065uts4*)
21066 version_type=linux
21067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068 soname_spec='${libname}${release}${shared_ext}$major'
21069 shlibpath_var=LD_LIBRARY_PATH
21070 ;;
21071
21072*)
21073 dynamic_linker=no
21074 ;;
21075esac
21076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21077echo "${ECHO_T}$dynamic_linker" >&6; }
21078test "$dynamic_linker" = no && can_build_shared=no
21079
21080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21081if test "$GCC" = yes; then
21082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21083fi
21084
21085{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21087hardcode_action_CXX=
21088if test -n "$hardcode_libdir_flag_spec_CXX" || \
21089 test -n "$runpath_var_CXX" || \
21090 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21091
21092 # We can hardcode non-existant directories.
21093 if test "$hardcode_direct_CXX" != no &&
21094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21095 # have to relink, otherwise we might link with an installed library
21096 # when we should be linking with a yet-to-be-installed one
21097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21098 test "$hardcode_minus_L_CXX" != no; then
21099 # Linking always hardcodes the temporary library directory.
21100 hardcode_action_CXX=relink
21101 else
21102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21103 hardcode_action_CXX=immediate
21104 fi
21105else
21106 # We cannot hardcode anything, or else we can only hardcode existing
21107 # directories.
21108 hardcode_action_CXX=unsupported
21109fi
21110{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21111echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21112
21113if test "$hardcode_action_CXX" = relink; then
21114 # Fast installation is not supported
21115 enable_fast_install=no
21116elif test "$shlibpath_overrides_runpath" = yes ||
21117 test "$enable_shared" = no; then
21118 # Fast installation is not necessary
21119 enable_fast_install=needless
21120fi
21121
21122
21123# The else clause should only fire when bootstrapping the
21124# libtool distribution, otherwise you forgot to ship ltmain.sh
21125# with your package, and you will get complaints that there are
21126# no rules to generate ltmain.sh.
21127if test -f "$ltmain"; then
21128 # See if we are running on zsh, and set the options which allow our commands through
21129 # without removal of \ escapes.
21130 if test -n "${ZSH_VERSION+set}" ; then
21131 setopt NO_GLOB_SUBST
21132 fi
21133 # Now quote all the things that may contain metacharacters while being
21134 # careful not to overquote the AC_SUBSTed values. We take copies of the
21135 # variables and quote the copies for generation of the libtool script.
21136 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21137 SED SHELL STRIP \
21138 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21139 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21140 deplibs_check_method reload_flag reload_cmds need_locks \
21141 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21142 lt_cv_sys_global_symbol_to_c_name_address \
21143 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21144 old_postinstall_cmds old_postuninstall_cmds \
21145 compiler_CXX \
21146 CC_CXX \
21147 LD_CXX \
21148 lt_prog_compiler_wl_CXX \
21149 lt_prog_compiler_pic_CXX \
21150 lt_prog_compiler_static_CXX \
21151 lt_prog_compiler_no_builtin_flag_CXX \
21152 export_dynamic_flag_spec_CXX \
21153 thread_safe_flag_spec_CXX \
21154 whole_archive_flag_spec_CXX \
21155 enable_shared_with_static_runtimes_CXX \
21156 old_archive_cmds_CXX \
21157 old_archive_from_new_cmds_CXX \
21158 predep_objects_CXX \
21159 postdep_objects_CXX \
21160 predeps_CXX \
21161 postdeps_CXX \
21162 compiler_lib_search_path_CXX \
21163 archive_cmds_CXX \
21164 archive_expsym_cmds_CXX \
21165 postinstall_cmds_CXX \
21166 postuninstall_cmds_CXX \
21167 old_archive_from_expsyms_cmds_CXX \
21168 allow_undefined_flag_CXX \
21169 no_undefined_flag_CXX \
21170 export_symbols_cmds_CXX \
21171 hardcode_libdir_flag_spec_CXX \
21172 hardcode_libdir_flag_spec_ld_CXX \
21173 hardcode_libdir_separator_CXX \
21174 hardcode_automatic_CXX \
21175 module_cmds_CXX \
21176 module_expsym_cmds_CXX \
21177 lt_cv_prog_compiler_c_o_CXX \
21178 exclude_expsyms_CXX \
21179 include_expsyms_CXX; do
21180
21181 case $var in
21182 old_archive_cmds_CXX | \
21183 old_archive_from_new_cmds_CXX | \
21184 archive_cmds_CXX | \
21185 archive_expsym_cmds_CXX | \
21186 module_cmds_CXX | \
21187 module_expsym_cmds_CXX | \
21188 old_archive_from_expsyms_cmds_CXX | \
21189 export_symbols_cmds_CXX | \
21190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21191 postinstall_cmds | postuninstall_cmds | \
21192 old_postinstall_cmds | old_postuninstall_cmds | \
21193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21194 # Double-quote double-evaled strings.
21195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21196 ;;
21197 *)
21198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21199 ;;
21200 esac
21201 done
21202
21203 case $lt_echo in
21204 *'\$0 --fallback-echo"')
21205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21206 ;;
21207 esac
21208
21209cfgfile="$ofile"
21210
21211 cat <<__EOF__ >> "$cfgfile"
21212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21213
21214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21215
21216# Shell to use when invoking shell scripts.
21217SHELL=$lt_SHELL
21218
21219# Whether or not to build shared libraries.
21220build_libtool_libs=$enable_shared
21221
21222# Whether or not to build static libraries.
21223build_old_libs=$enable_static
21224
21225# Whether or not to add -lc for building shared libraries.
21226build_libtool_need_lc=$archive_cmds_need_lc_CXX
21227
21228# Whether or not to disallow shared libs when runtime libs are static
21229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21230
21231# Whether or not to optimize for fast installation.
21232fast_install=$enable_fast_install
21233
21234# The host system.
21235host_alias=$host_alias
21236host=$host
21237host_os=$host_os
21238
21239# The build system.
21240build_alias=$build_alias
21241build=$build
21242build_os=$build_os
21243
21244# An echo program that does not interpret backslashes.
21245echo=$lt_echo
21246
21247# The archiver.
21248AR=$lt_AR
21249AR_FLAGS=$lt_AR_FLAGS
21250
21251# A C compiler.
21252LTCC=$lt_LTCC
21253
21254# LTCC compiler flags.
21255LTCFLAGS=$lt_LTCFLAGS
21256
21257# A language-specific compiler.
21258CC=$lt_compiler_CXX
21259
21260# Is the compiler the GNU C compiler?
21261with_gcc=$GCC_CXX
21262
21263# An ERE matcher.
21264EGREP=$lt_EGREP
21265
21266# The linker used to build libraries.
21267LD=$lt_LD_CXX
21268
21269# Whether we need hard or soft links.
21270LN_S=$lt_LN_S
21271
21272# A BSD-compatible nm program.
21273NM=$lt_NM
21274
21275# A symbol stripping program
21276STRIP=$lt_STRIP
21277
21278# Used to examine libraries when file_magic_cmd begins "file"
21279MAGIC_CMD=$MAGIC_CMD
21280
21281# Used on cygwin: DLL creation program.
21282DLLTOOL="$DLLTOOL"
21283
21284# Used on cygwin: object dumper.
21285OBJDUMP="$OBJDUMP"
21286
21287# Used on cygwin: assembler.
21288AS="$AS"
21289
21290# The name of the directory that contains temporary libtool files.
21291objdir=$objdir
21292
21293# How to create reloadable object files.
21294reload_flag=$lt_reload_flag
21295reload_cmds=$lt_reload_cmds
21296
21297# How to pass a linker flag through the compiler.
21298wl=$lt_lt_prog_compiler_wl_CXX
21299
21300# Object file suffix (normally "o").
21301objext="$ac_objext"
21302
21303# Old archive suffix (normally "a").
21304libext="$libext"
21305
21306# Shared library suffix (normally ".so").
21307shrext_cmds='$shrext_cmds'
21308
21309# Executable file suffix (normally "").
21310exeext="$exeext"
21311
21312# Additional compiler flags for building library objects.
21313pic_flag=$lt_lt_prog_compiler_pic_CXX
21314pic_mode=$pic_mode
21315
21316# What is the maximum length of a command?
21317max_cmd_len=$lt_cv_sys_max_cmd_len
21318
21319# Does compiler simultaneously support -c and -o options?
21320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21321
21322# Must we lock files when doing compilation?
21323need_locks=$lt_need_locks
21324
21325# Do we need the lib prefix for modules?
21326need_lib_prefix=$need_lib_prefix
21327
21328# Do we need a version for libraries?
21329need_version=$need_version
21330
21331# Whether dlopen is supported.
21332dlopen_support=$enable_dlopen
21333
21334# Whether dlopen of programs is supported.
21335dlopen_self=$enable_dlopen_self
21336
21337# Whether dlopen of statically linked programs is supported.
21338dlopen_self_static=$enable_dlopen_self_static
21339
21340# Compiler flag to prevent dynamic linking.
21341link_static_flag=$lt_lt_prog_compiler_static_CXX
21342
21343# Compiler flag to turn off builtin functions.
21344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21345
21346# Compiler flag to allow reflexive dlopens.
21347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21348
21349# Compiler flag to generate shared objects directly from archives.
21350whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21351
21352# Compiler flag to generate thread-safe objects.
21353thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21354
21355# Library versioning type.
21356version_type=$version_type
21357
21358# Format of library name prefix.
21359libname_spec=$lt_libname_spec
21360
21361# List of archive names. First name is the real one, the rest are links.
21362# The last name is the one that the linker finds with -lNAME.
21363library_names_spec=$lt_library_names_spec
21364
21365# The coded name of the library, if different from the real name.
21366soname_spec=$lt_soname_spec
21367
21368# Commands used to build and install an old-style archive.
21369RANLIB=$lt_RANLIB
21370old_archive_cmds=$lt_old_archive_cmds_CXX
21371old_postinstall_cmds=$lt_old_postinstall_cmds
21372old_postuninstall_cmds=$lt_old_postuninstall_cmds
21373
21374# Create an old-style archive from a shared archive.
21375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21376
21377# Create a temporary old-style archive to link instead of a shared archive.
21378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21379
21380# Commands used to build and install a shared archive.
21381archive_cmds=$lt_archive_cmds_CXX
21382archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21383postinstall_cmds=$lt_postinstall_cmds
21384postuninstall_cmds=$lt_postuninstall_cmds
21385
21386# Commands used to build a loadable module (assumed same as above if empty)
21387module_cmds=$lt_module_cmds_CXX
21388module_expsym_cmds=$lt_module_expsym_cmds_CXX
21389
21390# Commands to strip libraries.
21391old_striplib=$lt_old_striplib
21392striplib=$lt_striplib
21393
21394# Dependencies to place before the objects being linked to create a
21395# shared library.
21396predep_objects=$lt_predep_objects_CXX
21397
21398# Dependencies to place after the objects being linked to create a
21399# shared library.
21400postdep_objects=$lt_postdep_objects_CXX
21401
21402# Dependencies to place before the objects being linked to create a
21403# shared library.
21404predeps=$lt_predeps_CXX
21405
21406# Dependencies to place after the objects being linked to create a
21407# shared library.
21408postdeps=$lt_postdeps_CXX
21409
21410# The library search path used internally by the compiler when linking
21411# a shared library.
21412compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21413
21414# Method to check whether dependent libraries are shared objects.
21415deplibs_check_method=$lt_deplibs_check_method
21416
21417# Command to use when deplibs_check_method == file_magic.
21418file_magic_cmd=$lt_file_magic_cmd
21419
21420# Flag that allows shared libraries with undefined symbols to be built.
21421allow_undefined_flag=$lt_allow_undefined_flag_CXX
21422
21423# Flag that forces no undefined symbols.
21424no_undefined_flag=$lt_no_undefined_flag_CXX
21425
21426# Commands used to finish a libtool library installation in a directory.
21427finish_cmds=$lt_finish_cmds
21428
21429# Same as above, but a single script fragment to be evaled but not shown.
21430finish_eval=$lt_finish_eval
21431
21432# Take the output of nm and produce a listing of raw symbols and C names.
21433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21434
21435# Transform the output of nm in a proper C declaration
21436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21437
21438# Transform the output of nm in a C name address pair
21439global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21440
21441# This is the shared library runtime path variable.
21442runpath_var=$runpath_var
21443
21444# This is the shared library path variable.
21445shlibpath_var=$shlibpath_var
21446
21447# Is shlibpath searched before the hard-coded library search path?
21448shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21449
21450# How to hardcode a shared library path into an executable.
21451hardcode_action=$hardcode_action_CXX
21452
21453# Whether we should hardcode library paths into libraries.
21454hardcode_into_libs=$hardcode_into_libs
21455
21456# Flag to hardcode \$libdir into a binary during linking.
21457# This must work even if \$libdir does not exist.
21458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21459
21460# If ld is used when linking, flag to hardcode \$libdir into
21461# a binary during linking. This must work even if \$libdir does
21462# not exist.
21463hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21464
21465# Whether we need a single -rpath flag with a separated argument.
21466hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21467
21468# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21469# resulting binary.
21470hardcode_direct=$hardcode_direct_CXX
21471
21472# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21473# resulting binary.
21474hardcode_minus_L=$hardcode_minus_L_CXX
21475
21476# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21477# the resulting binary.
21478hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21479
21480# Set to yes if building a shared library automatically hardcodes DIR into the library
21481# and all subsequent libraries and executables linked against it.
21482hardcode_automatic=$hardcode_automatic_CXX
21483
21484# Variables whose values should be saved in libtool wrapper scripts and
21485# restored at relink time.
21486variables_saved_for_relink="$variables_saved_for_relink"
21487
21488# Whether libtool must link a program against all its dependency libraries.
21489link_all_deplibs=$link_all_deplibs_CXX
21490
21491# Compile-time system search path for libraries
21492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21493
21494# Run-time system search path for libraries
21495sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21496
21497# Fix the shell variable \$srcfile for the compiler.
21498fix_srcfile_path="$fix_srcfile_path_CXX"
21499
21500# Set to yes if exported symbols are required.
21501always_export_symbols=$always_export_symbols_CXX
21502
21503# The commands to list exported symbols.
21504export_symbols_cmds=$lt_export_symbols_cmds_CXX
21505
21506# The commands to extract the exported symbol list from a shared archive.
21507extract_expsyms_cmds=$lt_extract_expsyms_cmds
21508
21509# Symbols that should not be listed in the preloaded symbols.
21510exclude_expsyms=$lt_exclude_expsyms_CXX
21511
21512# Symbols that must always be exported.
21513include_expsyms=$lt_include_expsyms_CXX
21514
21515# ### END LIBTOOL TAG CONFIG: $tagname
21516
21517__EOF__
21518
21519
21520else
21521 # If there is no Makefile yet, we rely on a make rule to execute
21522 # `config.status --recheck' to rerun these tests and create the
21523 # libtool script then.
21524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21525 if test -f "$ltmain_in"; then
21526 test -f Makefile && make "$ltmain"
21527 fi
21528fi
21529
21530
21531ac_ext=c
21532ac_cpp='$CPP $CPPFLAGS'
21533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21535ac_compiler_gnu=$ac_cv_c_compiler_gnu
21536
21537CC=$lt_save_CC
21538LDCXX=$LD
21539LD=$lt_save_LD
21540GCC=$lt_save_GCC
21541with_gnu_ldcxx=$with_gnu_ld
21542with_gnu_ld=$lt_save_with_gnu_ld
21543lt_cv_path_LDCXX=$lt_cv_path_LD
21544lt_cv_path_LD=$lt_save_path_LD
21545lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21546lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21547
21548 else
21549 tagname=""
21550 fi
21551 ;;
21552
21553 F77)
21554 if test -n "$F77" && test "X$F77" != "Xno"; then
21555
21556ac_ext=f
21557ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21558ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21559ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21560
21561
21562archive_cmds_need_lc_F77=no
21563allow_undefined_flag_F77=
21564always_export_symbols_F77=no
21565archive_expsym_cmds_F77=
21566export_dynamic_flag_spec_F77=
21567hardcode_direct_F77=no
21568hardcode_libdir_flag_spec_F77=
21569hardcode_libdir_flag_spec_ld_F77=
21570hardcode_libdir_separator_F77=
21571hardcode_minus_L_F77=no
21572hardcode_automatic_F77=no
21573module_cmds_F77=
21574module_expsym_cmds_F77=
21575link_all_deplibs_F77=unknown
21576old_archive_cmds_F77=$old_archive_cmds
21577no_undefined_flag_F77=
21578whole_archive_flag_spec_F77=
21579enable_shared_with_static_runtimes_F77=no
21580
21581# Source file extension for f77 test sources.
21582ac_ext=f
21583
21584# Object file extension for compiled f77 test sources.
21585objext=o
21586objext_F77=$objext
21587
21588# Code to be used in simple compile tests
21589lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21590
21591# Code to be used in simple link tests
21592lt_simple_link_test_code=" program t\n end\n"
21593
21594# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21595
21596# If no C compiler was specified, use CC.
21597LTCC=${LTCC-"$CC"}
21598
21599# If no C compiler flags were specified, use CFLAGS.
21600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21601
21602# Allow CC to be a program name with arguments.
21603compiler=$CC
21604
21605
21606# save warnings/boilerplate of simple test code
21607ac_outfile=conftest.$ac_objext
21608printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21610_lt_compiler_boilerplate=`cat conftest.err`
21611$rm conftest*
21612
21613ac_outfile=conftest.$ac_objext
21614printf "$lt_simple_link_test_code" >conftest.$ac_ext
21615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21616_lt_linker_boilerplate=`cat conftest.err`
21617$rm conftest*
21618
21619
21620# Allow CC to be a program name with arguments.
21621lt_save_CC="$CC"
21622CC=${F77-"f77"}
21623compiler=$CC
21624compiler_F77=$CC
21625for cc_temp in $compiler""; do
21626 case $cc_temp in
21627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21629 \-*) ;;
21630 *) break;;
21631 esac
21632done
21633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21634
21635
21636{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21638{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21639echo "${ECHO_T}$can_build_shared" >&6; }
21640
21641{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21643test "$can_build_shared" = "no" && enable_shared=no
21644
21645# On AIX, shared libraries and static libraries use the same namespace, and
21646# are all built from PIC.
21647case $host_os in
21648aix3*)
21649 test "$enable_shared" = yes && enable_static=no
21650 if test -n "$RANLIB"; then
21651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21652 postinstall_cmds='$RANLIB $lib'
21653 fi
21654 ;;
21655aix4* | aix5*)
21656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21657 test "$enable_shared" = yes && enable_static=no
21658 fi
21659 ;;
21660esac
21661{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21662echo "${ECHO_T}$enable_shared" >&6; }
21663
21664{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21665echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21666# Make sure either enable_shared or enable_static is yes.
21667test "$enable_shared" = yes || enable_static=yes
21668{ echo "$as_me:$LINENO: result: $enable_static" >&5
21669echo "${ECHO_T}$enable_static" >&6; }
21670
21671GCC_F77="$G77"
21672LD_F77="$LD"
21673
21674lt_prog_compiler_wl_F77=
21675lt_prog_compiler_pic_F77=
21676lt_prog_compiler_static_F77=
21677
21678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21680
21681 if test "$GCC" = yes; then
21682 lt_prog_compiler_wl_F77='-Wl,'
21683 lt_prog_compiler_static_F77='-static'
21684
21685 case $host_os in
21686 aix*)
21687 # All AIX code is PIC.
21688 if test "$host_cpu" = ia64; then
21689 # AIX 5 now supports IA64 processor
21690 lt_prog_compiler_static_F77='-Bstatic'
21691 fi
21692 ;;
21693
21694 amigaos*)
21695 # FIXME: we need at least 68020 code to build shared libraries, but
21696 # adding the `-m68020' flag to GCC prevents building anything better,
21697 # like `-m68040'.
21698 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21699 ;;
21700
21701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21702 # PIC is the default for these OSes.
21703 ;;
21704
21705 mingw* | pw32* | os2*)
21706 # This hack is so that the source file can tell whether it is being
21707 # built for inclusion in a dll (and should export symbols for example).
21708 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21709 ;;
21710
21711 darwin* | rhapsody*)
21712 # PIC is the default on this platform
21713 # Common symbols not allowed in MH_DYLIB files
21714 lt_prog_compiler_pic_F77='-fno-common'
21715 ;;
21716
21717 interix3*)
21718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21719 # Instead, we relocate shared libraries at runtime.
21720 ;;
21721
21722 msdosdjgpp*)
21723 # Just because we use GCC doesn't mean we suddenly get shared libraries
21724 # on systems that don't support them.
21725 lt_prog_compiler_can_build_shared_F77=no
21726 enable_shared=no
21727 ;;
21728
21729 sysv4*MP*)
21730 if test -d /usr/nec; then
21731 lt_prog_compiler_pic_F77=-Kconform_pic
21732 fi
21733 ;;
21734
21735 hpux*)
21736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737 # not for PA HP-UX.
21738 case $host_cpu in
21739 hppa*64*|ia64*)
21740 # +Z the default
21741 ;;
21742 *)
21743 lt_prog_compiler_pic_F77='-fPIC'
21744 ;;
21745 esac
21746 ;;
21747
21748 *)
21749 lt_prog_compiler_pic_F77='-fPIC'
21750 ;;
21751 esac
21752 else
21753 # PORTME Check for flag to pass linker flags through the system compiler.
21754 case $host_os in
21755 aix*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 if test "$host_cpu" = ia64; then
21758 # AIX 5 now supports IA64 processor
21759 lt_prog_compiler_static_F77='-Bstatic'
21760 else
21761 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21762 fi
21763 ;;
21764 darwin*)
21765 # PIC is the default on this platform
21766 # Common symbols not allowed in MH_DYLIB files
21767 case $cc_basename in
21768 xlc*)
21769 lt_prog_compiler_pic_F77='-qnocommon'
21770 lt_prog_compiler_wl_F77='-Wl,'
21771 ;;
21772 esac
21773 ;;
21774
21775 mingw* | pw32* | os2*)
21776 # This hack is so that the source file can tell whether it is being
21777 # built for inclusion in a dll (and should export symbols for example).
21778 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21779 ;;
21780
21781 hpux9* | hpux10* | hpux11*)
21782 lt_prog_compiler_wl_F77='-Wl,'
21783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21784 # not for PA HP-UX.
21785 case $host_cpu in
21786 hppa*64*|ia64*)
21787 # +Z the default
21788 ;;
21789 *)
21790 lt_prog_compiler_pic_F77='+Z'
21791 ;;
21792 esac
21793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21794 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21795 ;;
21796
21797 irix5* | irix6* | nonstopux*)
21798 lt_prog_compiler_wl_F77='-Wl,'
21799 # PIC (with -KPIC) is the default.
21800 lt_prog_compiler_static_F77='-non_shared'
21801 ;;
21802
21803 newsos6)
21804 lt_prog_compiler_pic_F77='-KPIC'
21805 lt_prog_compiler_static_F77='-Bstatic'
21806 ;;
21807
21808 linux*)
21809 case $cc_basename in
21810 icc* | ecc*)
21811 lt_prog_compiler_wl_F77='-Wl,'
21812 lt_prog_compiler_pic_F77='-KPIC'
21813 lt_prog_compiler_static_F77='-static'
21814 ;;
21815 pgcc* | pgf77* | pgf90* | pgf95*)
21816 # Portland Group compilers (*not* the Pentium gcc compiler,
21817 # which looks to be a dead project)
21818 lt_prog_compiler_wl_F77='-Wl,'
21819 lt_prog_compiler_pic_F77='-fpic'
21820 lt_prog_compiler_static_F77='-Bstatic'
21821 ;;
21822 ccc*)
21823 lt_prog_compiler_wl_F77='-Wl,'
21824 # All Alpha code is PIC.
21825 lt_prog_compiler_static_F77='-non_shared'
21826 ;;
21827 esac
21828 ;;
21829
21830 osf3* | osf4* | osf5*)
21831 lt_prog_compiler_wl_F77='-Wl,'
21832 # All OSF/1 code is PIC.
21833 lt_prog_compiler_static_F77='-non_shared'
21834 ;;
21835
21836 solaris*)
21837 lt_prog_compiler_pic_F77='-KPIC'
21838 lt_prog_compiler_static_F77='-Bstatic'
21839 case $cc_basename in
21840 f77* | f90* | f95*)
21841 lt_prog_compiler_wl_F77='-Qoption ld ';;
21842 *)
21843 lt_prog_compiler_wl_F77='-Wl,';;
21844 esac
21845 ;;
21846
21847 sunos4*)
21848 lt_prog_compiler_wl_F77='-Qoption ld '
21849 lt_prog_compiler_pic_F77='-PIC'
21850 lt_prog_compiler_static_F77='-Bstatic'
21851 ;;
21852
21853 sysv4 | sysv4.2uw2* | sysv4.3*)
21854 lt_prog_compiler_wl_F77='-Wl,'
21855 lt_prog_compiler_pic_F77='-KPIC'
21856 lt_prog_compiler_static_F77='-Bstatic'
21857 ;;
21858
21859 sysv4*MP*)
21860 if test -d /usr/nec ;then
21861 lt_prog_compiler_pic_F77='-Kconform_pic'
21862 lt_prog_compiler_static_F77='-Bstatic'
21863 fi
21864 ;;
21865
21866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21867 lt_prog_compiler_wl_F77='-Wl,'
21868 lt_prog_compiler_pic_F77='-KPIC'
21869 lt_prog_compiler_static_F77='-Bstatic'
21870 ;;
21871
21872 unicos*)
21873 lt_prog_compiler_wl_F77='-Wl,'
21874 lt_prog_compiler_can_build_shared_F77=no
21875 ;;
21876
21877 uts4*)
21878 lt_prog_compiler_pic_F77='-pic'
21879 lt_prog_compiler_static_F77='-Bstatic'
21880 ;;
21881
21882 *)
21883 lt_prog_compiler_can_build_shared_F77=no
21884 ;;
21885 esac
21886 fi
21887
21888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21889echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21890
21891#
21892# Check to make sure the PIC flag actually works.
21893#
21894if test -n "$lt_prog_compiler_pic_F77"; then
21895
21896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21898if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900else
21901 lt_prog_compiler_pic_works_F77=no
21902 ac_outfile=conftest.$ac_objext
21903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21904 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21905 # Insert the option either (1) after the last *FLAGS variable, or
21906 # (2) before a word containing "conftest.", or (3) at the end.
21907 # Note that $ac_compile itself does not contain backslashes and begins
21908 # with a dollar sign (not a hyphen), so the echo should work correctly.
21909 # The option is referenced via a variable to avoid confusing sed.
21910 lt_compile=`echo "$ac_compile" | $SED \
21911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21913 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000021914 (eval echo "\"\$as_me:21914: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021915 (eval "$lt_compile" 2>conftest.err)
21916 ac_status=$?
21917 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000021918 echo "$as_me:21918: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021919 if (exit $ac_status) && test -s "$ac_outfile"; then
21920 # The compiler can only warn and ignore the option if not recognized
21921 # So say no if there are warnings other than the usual output.
21922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21925 lt_prog_compiler_pic_works_F77=yes
21926 fi
21927 fi
21928 $rm conftest*
21929
21930fi
21931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21932echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21933
21934if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21935 case $lt_prog_compiler_pic_F77 in
21936 "" | " "*) ;;
21937 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21938 esac
21939else
21940 lt_prog_compiler_pic_F77=
21941 lt_prog_compiler_can_build_shared_F77=no
21942fi
21943
21944fi
21945case $host_os in
21946 # For platforms which do not support PIC, -DPIC is meaningless:
21947 *djgpp*)
21948 lt_prog_compiler_pic_F77=
21949 ;;
21950 *)
21951 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21952 ;;
21953esac
21954
21955#
21956# Check to make sure the static flag actually works.
21957#
21958wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21961if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963else
21964 lt_prog_compiler_static_works_F77=no
21965 save_LDFLAGS="$LDFLAGS"
21966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21967 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21969 # The linker can only warn and ignore the option if not recognized
21970 # So say no if there are warnings
21971 if test -s conftest.err; then
21972 # Append any errors to the config.log.
21973 cat conftest.err 1>&5
21974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21976 if diff conftest.exp conftest.er2 >/dev/null; then
21977 lt_prog_compiler_static_works_F77=yes
21978 fi
21979 else
21980 lt_prog_compiler_static_works_F77=yes
21981 fi
21982 fi
21983 $rm conftest*
21984 LDFLAGS="$save_LDFLAGS"
21985
21986fi
21987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21988echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21989
21990if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21991 :
21992else
21993 lt_prog_compiler_static_F77=
21994fi
21995
21996
21997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21999if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22001else
22002 lt_cv_prog_compiler_c_o_F77=no
22003 $rm -r conftest 2>/dev/null
22004 mkdir conftest
22005 cd conftest
22006 mkdir out
22007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22008
22009 lt_compiler_flag="-o out/conftest2.$ac_objext"
22010 # Insert the option either (1) after the last *FLAGS variable, or
22011 # (2) before a word containing "conftest.", or (3) at the end.
22012 # Note that $ac_compile itself does not contain backslashes and begins
22013 # with a dollar sign (not a hyphen), so the echo should work correctly.
22014 lt_compile=`echo "$ac_compile" | $SED \
22015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22017 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000022018 (eval echo "\"\$as_me:22018: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022019 (eval "$lt_compile" 2>out/conftest.err)
22020 ac_status=$?
22021 cat out/conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000022022 echo "$as_me:22022: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22024 then
22025 # The compiler can only warn and ignore the option if not recognized
22026 # So say no if there are warnings
22027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22030 lt_cv_prog_compiler_c_o_F77=yes
22031 fi
22032 fi
22033 chmod u+w . 2>&5
22034 $rm conftest*
22035 # SGI C++ compiler will create directory out/ii_files/ for
22036 # template instantiation
22037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22038 $rm out/* && rmdir out
22039 cd ..
22040 rmdir conftest
22041 $rm conftest*
22042
22043fi
22044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22045echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22046
22047
22048hard_links="nottested"
22049if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22050 # do not overwrite the value of need_locks provided by the user
22051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22053 hard_links=yes
22054 $rm conftest*
22055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22056 touch conftest.a
22057 ln conftest.a conftest.b 2>&5 || hard_links=no
22058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22059 { echo "$as_me:$LINENO: result: $hard_links" >&5
22060echo "${ECHO_T}$hard_links" >&6; }
22061 if test "$hard_links" = no; then
22062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22064 need_locks=warn
22065 fi
22066else
22067 need_locks=no
22068fi
22069
22070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22072
22073 runpath_var=
22074 allow_undefined_flag_F77=
22075 enable_shared_with_static_runtimes_F77=no
22076 archive_cmds_F77=
22077 archive_expsym_cmds_F77=
22078 old_archive_From_new_cmds_F77=
22079 old_archive_from_expsyms_cmds_F77=
22080 export_dynamic_flag_spec_F77=
22081 whole_archive_flag_spec_F77=
22082 thread_safe_flag_spec_F77=
22083 hardcode_libdir_flag_spec_F77=
22084 hardcode_libdir_flag_spec_ld_F77=
22085 hardcode_libdir_separator_F77=
22086 hardcode_direct_F77=no
22087 hardcode_minus_L_F77=no
22088 hardcode_shlibpath_var_F77=unsupported
22089 link_all_deplibs_F77=unknown
22090 hardcode_automatic_F77=no
22091 module_cmds_F77=
22092 module_expsym_cmds_F77=
22093 always_export_symbols_F77=no
22094 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22095 # include_expsyms should be a list of space-separated symbols to be *always*
22096 # included in the symbol list
22097 include_expsyms_F77=
22098 # exclude_expsyms can be an extended regexp of symbols to exclude
22099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22101 # as well as any symbol that contains `d'.
22102 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22104 # platforms (ab)use it in PIC code, but their linkers get confused if
22105 # the symbol is explicitly referenced. Since portable code cannot
22106 # rely on this symbol name, it's probably fine to never include it in
22107 # preloaded symbol tables.
22108 extract_expsyms_cmds=
22109 # Just being paranoid about ensuring that cc_basename is set.
22110 for cc_temp in $compiler""; do
22111 case $cc_temp in
22112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22114 \-*) ;;
22115 *) break;;
22116 esac
22117done
22118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22119
22120 case $host_os in
22121 cygwin* | mingw* | pw32*)
22122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22123 # When not using gcc, we currently assume that we are using
22124 # Microsoft Visual C++.
22125 if test "$GCC" != yes; then
22126 with_gnu_ld=no
22127 fi
22128 ;;
22129 interix*)
22130 # we just hope/assume this is gcc and not c89 (= MSVC++)
22131 with_gnu_ld=yes
22132 ;;
22133 openbsd*)
22134 with_gnu_ld=no
22135 ;;
22136 esac
22137
22138 ld_shlibs_F77=yes
22139 if test "$with_gnu_ld" = yes; then
22140 # If archive_cmds runs LD, not CC, wlarc should be empty
22141 wlarc='${wl}'
22142
22143 # Set some defaults for GNU ld with shared library support. These
22144 # are reset later if shared libraries are not supported. Putting them
22145 # here allows them to be overridden if necessary.
22146 runpath_var=LD_RUN_PATH
22147 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22148 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22149 # ancient GNU ld didn't support --whole-archive et. al.
22150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22151 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22152 else
22153 whole_archive_flag_spec_F77=
22154 fi
22155 supports_anon_versioning=no
22156 case `$LD -v 2>/dev/null` in
22157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22160 *\ 2.11.*) ;; # other 2.11 versions
22161 *) supports_anon_versioning=yes ;;
22162 esac
22163
22164 # See if GNU ld supports shared libraries.
22165 case $host_os in
22166 aix3* | aix4* | aix5*)
22167 # On AIX/PPC, the GNU linker is very broken
22168 if test "$host_cpu" != ia64; then
22169 ld_shlibs_F77=no
22170 cat <<EOF 1>&2
22171
22172*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22173*** to be unable to reliably create shared libraries on AIX.
22174*** Therefore, libtool is disabling shared libraries support. If you
22175*** really care for shared libraries, you may want to modify your PATH
22176*** so that a non-GNU linker is found, and then restart.
22177
22178EOF
22179 fi
22180 ;;
22181
22182 amigaos*)
22183 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)'
22184 hardcode_libdir_flag_spec_F77='-L$libdir'
22185 hardcode_minus_L_F77=yes
22186
22187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22188 # that the semantics of dynamic libraries on AmigaOS, at least up
22189 # to version 4, is to share data among multiple programs linked
22190 # with the same dynamic library. Since this doesn't match the
22191 # behavior of shared libraries on other platforms, we can't use
22192 # them.
22193 ld_shlibs_F77=no
22194 ;;
22195
22196 beos*)
22197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22198 allow_undefined_flag_F77=unsupported
22199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22200 # support --undefined. This deserves some investigation. FIXME
22201 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22202 else
22203 ld_shlibs_F77=no
22204 fi
22205 ;;
22206
22207 cygwin* | mingw* | pw32*)
22208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22209 # as there is no search path for DLLs.
22210 hardcode_libdir_flag_spec_F77='-L$libdir'
22211 allow_undefined_flag_F77=unsupported
22212 always_export_symbols_F77=no
22213 enable_shared_with_static_runtimes_F77=yes
22214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22215
22216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22218 # If the export-symbols file already is a .def file (1st line
22219 # is EXPORTS), use it as is; otherwise, prepend...
22220 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22221 cp $export_symbols $output_objdir/$soname.def;
22222 else
22223 echo EXPORTS > $output_objdir/$soname.def;
22224 cat $export_symbols >> $output_objdir/$soname.def;
22225 fi~
22226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22227 else
22228 ld_shlibs_F77=no
22229 fi
22230 ;;
22231
22232 interix3*)
22233 hardcode_direct_F77=no
22234 hardcode_shlibpath_var_F77=no
22235 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22236 export_dynamic_flag_spec_F77='${wl}-E'
22237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22238 # Instead, shared libraries are loaded at an image base (0x10000000 by
22239 # default) and relocated if they conflict, which is a slow very memory
22240 # consuming and fragmenting process. To avoid this, we pick a random,
22241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22243 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'
22244 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'
22245 ;;
22246
22247 linux*)
22248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22249 tmp_addflag=
22250 case $cc_basename,$host_cpu in
22251 pgcc*) # Portland Group C compiler
22252 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'
22253 tmp_addflag=' $pic_flag'
22254 ;;
22255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22256 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'
22257 tmp_addflag=' $pic_flag -Mnomain' ;;
22258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22259 tmp_addflag=' -i_dynamic' ;;
22260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22261 tmp_addflag=' -i_dynamic -nofor_main' ;;
22262 ifc* | ifort*) # Intel Fortran compiler
22263 tmp_addflag=' -nofor_main' ;;
22264 esac
22265 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22266
22267 if test $supports_anon_versioning = yes; then
22268 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22270 $echo "local: *; };" >> $output_objdir/$libname.ver~
22271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22272 fi
22273 else
22274 ld_shlibs_F77=no
22275 fi
22276 ;;
22277
22278 netbsd*)
22279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22280 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22281 wlarc=
22282 else
22283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22284 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22285 fi
22286 ;;
22287
22288 solaris*)
22289 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22290 ld_shlibs_F77=no
22291 cat <<EOF 1>&2
22292
22293*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22294*** create shared libraries on Solaris systems. Therefore, libtool
22295*** is disabling shared libraries support. We urge you to upgrade GNU
22296*** binutils to release 2.9.1 or newer. Another option is to modify
22297*** your PATH or compiler configuration so that the native linker is
22298*** used, and then restart.
22299
22300EOF
22301 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22304 else
22305 ld_shlibs_F77=no
22306 fi
22307 ;;
22308
22309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22310 case `$LD -v 2>&1` in
22311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22312 ld_shlibs_F77=no
22313 cat <<_LT_EOF 1>&2
22314
22315*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22316*** reliably create shared libraries on SCO systems. Therefore, libtool
22317*** is disabling shared libraries support. We urge you to upgrade GNU
22318*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22319*** your PATH or compiler configuration so that the native linker is
22320*** used, and then restart.
22321
22322_LT_EOF
22323 ;;
22324 *)
22325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22326 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22327 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22328 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22329 else
22330 ld_shlibs_F77=no
22331 fi
22332 ;;
22333 esac
22334 ;;
22335
22336 sunos4*)
22337 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338 wlarc=
22339 hardcode_direct_F77=yes
22340 hardcode_shlibpath_var_F77=no
22341 ;;
22342
22343 *)
22344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22347 else
22348 ld_shlibs_F77=no
22349 fi
22350 ;;
22351 esac
22352
22353 if test "$ld_shlibs_F77" = no; then
22354 runpath_var=
22355 hardcode_libdir_flag_spec_F77=
22356 export_dynamic_flag_spec_F77=
22357 whole_archive_flag_spec_F77=
22358 fi
22359 else
22360 # PORTME fill in a description of your system's linker (not GNU ld)
22361 case $host_os in
22362 aix3*)
22363 allow_undefined_flag_F77=unsupported
22364 always_export_symbols_F77=yes
22365 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'
22366 # Note: this linker hardcodes the directories in LIBPATH if there
22367 # are no directories specified by -L.
22368 hardcode_minus_L_F77=yes
22369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22370 # Neither direct hardcoding nor static linking is supported with a
22371 # broken collect2.
22372 hardcode_direct_F77=unsupported
22373 fi
22374 ;;
22375
22376 aix4* | aix5*)
22377 if test "$host_cpu" = ia64; then
22378 # On IA64, the linker does run time linking by default, so we don't
22379 # have to do anything special.
22380 aix_use_runtimelinking=no
22381 exp_sym_flag='-Bexport'
22382 no_entry_flag=""
22383 else
22384 # If we're using GNU nm, then we don't want the "-C" option.
22385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22386 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22387 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'
22388 else
22389 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'
22390 fi
22391 aix_use_runtimelinking=no
22392
22393 # Test if we are trying to use run time linking or normal
22394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22395 # need to do runtime linking.
22396 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22397 for ld_flag in $LDFLAGS; do
22398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22399 aix_use_runtimelinking=yes
22400 break
22401 fi
22402 done
22403 ;;
22404 esac
22405
22406 exp_sym_flag='-bexport'
22407 no_entry_flag='-bnoentry'
22408 fi
22409
22410 # When large executables or shared objects are built, AIX ld can
22411 # have problems creating the table of contents. If linking a library
22412 # or program results in "error TOC overflow" add -mminimal-toc to
22413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22415
22416 archive_cmds_F77=''
22417 hardcode_direct_F77=yes
22418 hardcode_libdir_separator_F77=':'
22419 link_all_deplibs_F77=yes
22420
22421 if test "$GCC" = yes; then
22422 case $host_os in aix4.[012]|aix4.[012].*)
22423 # We only want to do this on AIX 4.2 and lower, the check
22424 # below for broken collect2 doesn't work under 4.3+
22425 collect2name=`${CC} -print-prog-name=collect2`
22426 if test -f "$collect2name" && \
22427 strings "$collect2name" | grep resolve_lib_name >/dev/null
22428 then
22429 # We have reworked collect2
22430 hardcode_direct_F77=yes
22431 else
22432 # We have old collect2
22433 hardcode_direct_F77=unsupported
22434 # It fails to find uninstalled libraries when the uninstalled
22435 # path is not listed in the libpath. Setting hardcode_minus_L
22436 # to unsupported forces relinking
22437 hardcode_minus_L_F77=yes
22438 hardcode_libdir_flag_spec_F77='-L$libdir'
22439 hardcode_libdir_separator_F77=
22440 fi
22441 ;;
22442 esac
22443 shared_flag='-shared'
22444 if test "$aix_use_runtimelinking" = yes; then
22445 shared_flag="$shared_flag "'${wl}-G'
22446 fi
22447 else
22448 # not using gcc
22449 if test "$host_cpu" = ia64; then
22450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22451 # chokes on -Wl,-G. The following line is correct:
22452 shared_flag='-G'
22453 else
22454 if test "$aix_use_runtimelinking" = yes; then
22455 shared_flag='${wl}-G'
22456 else
22457 shared_flag='${wl}-bM:SRE'
22458 fi
22459 fi
22460 fi
22461
22462 # It seems that -bexpall does not export symbols beginning with
22463 # underscore (_), so it is better to generate a list of symbols to export.
22464 always_export_symbols_F77=yes
22465 if test "$aix_use_runtimelinking" = yes; then
22466 # Warning - without using the other runtime loading flags (-brtl),
22467 # -berok will link without error, but may produce a broken library.
22468 allow_undefined_flag_F77='-berok'
22469 # Determine the default libpath from the value encoded in an empty executable.
22470 cat >conftest.$ac_ext <<_ACEOF
22471 program main
22472
22473 end
22474_ACEOF
22475rm -f conftest.$ac_objext conftest$ac_exeext
22476if { (ac_try="$ac_link"
22477case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22480esac
22481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_link") 2>conftest.er1
22483 ac_status=$?
22484 grep -v '^ *+' conftest.er1 >conftest.err
22485 rm -f conftest.er1
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493esac
22494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest$ac_exeext'
22500 { (case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22503esac
22504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_try") 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022509
22510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22511}'`
22512# Check for a 64-bit object if we didn't find anything.
22513if 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; }
22514}'`; fi
22515else
22516 echo "$as_me: failed program was:" >&5
22517sed 's/^/| /' conftest.$ac_ext >&5
22518
22519
22520fi
22521
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022522rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022523 conftest$ac_exeext conftest.$ac_ext
22524if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22525
22526 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22527 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"
22528 else
22529 if test "$host_cpu" = ia64; then
22530 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22531 allow_undefined_flag_F77="-z nodefs"
22532 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"
22533 else
22534 # Determine the default libpath from the value encoded in an empty executable.
22535 cat >conftest.$ac_ext <<_ACEOF
22536 program main
22537
22538 end
22539_ACEOF
22540rm -f conftest.$ac_objext conftest$ac_exeext
22541if { (ac_try="$ac_link"
22542case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545esac
22546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022553 (exit $ac_status); } &&
22554 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558esac
22559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest$ac_exeext'
22565 { (case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568esac
22569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_try") 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022574
22575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22576}'`
22577# Check for a 64-bit object if we didn't find anything.
22578if 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; }
22579}'`; fi
22580else
22581 echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584
22585fi
22586
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022587rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022588 conftest$ac_exeext conftest.$ac_ext
22589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22590
22591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22592 # Warning - without using the other run time loading flags,
22593 # -berok will link without error, but may produce a broken library.
22594 no_undefined_flag_F77=' ${wl}-bernotok'
22595 allow_undefined_flag_F77=' ${wl}-berok'
22596 # Exported symbols can be pulled into shared objects from archives
22597 whole_archive_flag_spec_F77='$convenience'
22598 archive_cmds_need_lc_F77=yes
22599 # This is similar to how AIX traditionally builds its shared libraries.
22600 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'
22601 fi
22602 fi
22603 ;;
22604
22605 amigaos*)
22606 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)'
22607 hardcode_libdir_flag_spec_F77='-L$libdir'
22608 hardcode_minus_L_F77=yes
22609 # see comment about different semantics on the GNU ld section
22610 ld_shlibs_F77=no
22611 ;;
22612
22613 bsdi[45]*)
22614 export_dynamic_flag_spec_F77=-rdynamic
22615 ;;
22616
22617 cygwin* | mingw* | pw32*)
22618 # When not using gcc, we currently assume that we are using
22619 # Microsoft Visual C++.
22620 # hardcode_libdir_flag_spec is actually meaningless, as there is
22621 # no search path for DLLs.
22622 hardcode_libdir_flag_spec_F77=' '
22623 allow_undefined_flag_F77=unsupported
22624 # Tell ltmain to make .lib files, not .a files.
22625 libext=lib
22626 # Tell ltmain to make .dll files, not .so files.
22627 shrext_cmds=".dll"
22628 # FIXME: Setting linknames here is a bad hack.
22629 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22630 # The linker will automatically build a .lib file if we build a DLL.
22631 old_archive_From_new_cmds_F77='true'
22632 # FIXME: Should let the user specify the lib program.
22633 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22634 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22635 enable_shared_with_static_runtimes_F77=yes
22636 ;;
22637
22638 darwin* | rhapsody*)
22639 case $host_os in
22640 rhapsody* | darwin1.[012])
22641 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22642 ;;
22643 *) # Darwin 1.3 on
22644 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22645 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22646 else
22647 case ${MACOSX_DEPLOYMENT_TARGET} in
22648 10.[012])
22649 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22650 ;;
22651 10.*)
22652 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22653 ;;
22654 esac
22655 fi
22656 ;;
22657 esac
22658 archive_cmds_need_lc_F77=no
22659 hardcode_direct_F77=no
22660 hardcode_automatic_F77=yes
22661 hardcode_shlibpath_var_F77=unsupported
22662 whole_archive_flag_spec_F77=''
22663 link_all_deplibs_F77=yes
22664 if test "$GCC" = yes ; then
22665 output_verbose_link_cmd='echo'
22666 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22667 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22668 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22669 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}'
22670 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}'
22671 else
22672 case $cc_basename in
22673 xlc*)
22674 output_verbose_link_cmd='echo'
22675 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22676 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22678 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}'
22679 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}'
22680 ;;
22681 *)
22682 ld_shlibs_F77=no
22683 ;;
22684 esac
22685 fi
22686 ;;
22687
22688 dgux*)
22689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_F77='-L$libdir'
22691 hardcode_shlibpath_var_F77=no
22692 ;;
22693
22694 freebsd1*)
22695 ld_shlibs_F77=no
22696 ;;
22697
22698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22699 # support. Future versions do this automatically, but an explicit c++rt0.o
22700 # does not break anything, and helps significantly (at the cost of a little
22701 # extra space).
22702 freebsd2.2*)
22703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22704 hardcode_libdir_flag_spec_F77='-R$libdir'
22705 hardcode_direct_F77=yes
22706 hardcode_shlibpath_var_F77=no
22707 ;;
22708
22709 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22710 freebsd2*)
22711 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22712 hardcode_direct_F77=yes
22713 hardcode_minus_L_F77=yes
22714 hardcode_shlibpath_var_F77=no
22715 ;;
22716
22717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22718 freebsd* | kfreebsd*-gnu | dragonfly*)
22719 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22720 hardcode_libdir_flag_spec_F77='-R$libdir'
22721 hardcode_direct_F77=yes
22722 hardcode_shlibpath_var_F77=no
22723 ;;
22724
22725 hpux9*)
22726 if test "$GCC" = yes; then
22727 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'
22728 else
22729 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'
22730 fi
22731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22732 hardcode_libdir_separator_F77=:
22733 hardcode_direct_F77=yes
22734
22735 # hardcode_minus_L: Not really in the search PATH,
22736 # but as the default location of the library.
22737 hardcode_minus_L_F77=yes
22738 export_dynamic_flag_spec_F77='${wl}-E'
22739 ;;
22740
22741 hpux10*)
22742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22743 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22744 else
22745 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22746 fi
22747 if test "$with_gnu_ld" = no; then
22748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22749 hardcode_libdir_separator_F77=:
22750
22751 hardcode_direct_F77=yes
22752 export_dynamic_flag_spec_F77='${wl}-E'
22753
22754 # hardcode_minus_L: Not really in the search PATH,
22755 # but as the default location of the library.
22756 hardcode_minus_L_F77=yes
22757 fi
22758 ;;
22759
22760 hpux11*)
22761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22762 case $host_cpu in
22763 hppa*64*)
22764 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22765 ;;
22766 ia64*)
22767 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22768 ;;
22769 *)
22770 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22771 ;;
22772 esac
22773 else
22774 case $host_cpu in
22775 hppa*64*)
22776 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22777 ;;
22778 ia64*)
22779 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22780 ;;
22781 *)
22782 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22783 ;;
22784 esac
22785 fi
22786 if test "$with_gnu_ld" = no; then
22787 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22788 hardcode_libdir_separator_F77=:
22789
22790 case $host_cpu in
22791 hppa*64*|ia64*)
22792 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22793 hardcode_direct_F77=no
22794 hardcode_shlibpath_var_F77=no
22795 ;;
22796 *)
22797 hardcode_direct_F77=yes
22798 export_dynamic_flag_spec_F77='${wl}-E'
22799
22800 # hardcode_minus_L: Not really in the search PATH,
22801 # but as the default location of the library.
22802 hardcode_minus_L_F77=yes
22803 ;;
22804 esac
22805 fi
22806 ;;
22807
22808 irix5* | irix6* | nonstopux*)
22809 if test "$GCC" = yes; then
22810 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'
22811 else
22812 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'
22813 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22814 fi
22815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22816 hardcode_libdir_separator_F77=:
22817 link_all_deplibs_F77=yes
22818 ;;
22819
22820 netbsd*)
22821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22823 else
22824 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22825 fi
22826 hardcode_libdir_flag_spec_F77='-R$libdir'
22827 hardcode_direct_F77=yes
22828 hardcode_shlibpath_var_F77=no
22829 ;;
22830
22831 newsos6)
22832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22833 hardcode_direct_F77=yes
22834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22835 hardcode_libdir_separator_F77=:
22836 hardcode_shlibpath_var_F77=no
22837 ;;
22838
22839 openbsd*)
22840 hardcode_direct_F77=yes
22841 hardcode_shlibpath_var_F77=no
22842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22843 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22845 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22846 export_dynamic_flag_spec_F77='${wl}-E'
22847 else
22848 case $host_os in
22849 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22851 hardcode_libdir_flag_spec_F77='-R$libdir'
22852 ;;
22853 *)
22854 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22855 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22856 ;;
22857 esac
22858 fi
22859 ;;
22860
22861 os2*)
22862 hardcode_libdir_flag_spec_F77='-L$libdir'
22863 hardcode_minus_L_F77=yes
22864 allow_undefined_flag_F77=unsupported
22865 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'
22866 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22867 ;;
22868
22869 osf3*)
22870 if test "$GCC" = yes; then
22871 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22872 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'
22873 else
22874 allow_undefined_flag_F77=' -expect_unresolved \*'
22875 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'
22876 fi
22877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22878 hardcode_libdir_separator_F77=:
22879 ;;
22880
22881 osf4* | osf5*) # as osf3* with the addition of -msym flag
22882 if test "$GCC" = yes; then
22883 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22884 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'
22885 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22886 else
22887 allow_undefined_flag_F77=' -expect_unresolved \*'
22888 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'
22889 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~
22890 $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'
22891
22892 # Both c and cxx compiler support -rpath directly
22893 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22894 fi
22895 hardcode_libdir_separator_F77=:
22896 ;;
22897
22898 solaris*)
22899 no_undefined_flag_F77=' -z text'
22900 if test "$GCC" = yes; then
22901 wlarc='${wl}'
22902 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22903 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22904 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22905 else
22906 wlarc=''
22907 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22908 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22910 fi
22911 hardcode_libdir_flag_spec_F77='-R$libdir'
22912 hardcode_shlibpath_var_F77=no
22913 case $host_os in
22914 solaris2.[0-5] | solaris2.[0-5].*) ;;
22915 *)
22916 # The compiler driver will combine linker options so we
22917 # cannot just pass the convience library names through
22918 # without $wl, iff we do not link with $LD.
22919 # Luckily, gcc supports the same syntax we need for Sun Studio.
22920 # Supported since Solaris 2.6 (maybe 2.5.1?)
22921 case $wlarc in
22922 '')
22923 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22924 *)
22925 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' ;;
22926 esac ;;
22927 esac
22928 link_all_deplibs_F77=yes
22929 ;;
22930
22931 sunos4*)
22932 if test "x$host_vendor" = xsequent; then
22933 # Use $CC to link under sequent, because it throws in some extra .o
22934 # files that make .init and .fini sections work.
22935 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22936 else
22937 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22938 fi
22939 hardcode_libdir_flag_spec_F77='-L$libdir'
22940 hardcode_direct_F77=yes
22941 hardcode_minus_L_F77=yes
22942 hardcode_shlibpath_var_F77=no
22943 ;;
22944
22945 sysv4)
22946 case $host_vendor in
22947 sni)
22948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22949 hardcode_direct_F77=yes # is this really true???
22950 ;;
22951 siemens)
22952 ## LD is ld it makes a PLAMLIB
22953 ## CC just makes a GrossModule.
22954 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22955 reload_cmds_F77='$CC -r -o $output$reload_objs'
22956 hardcode_direct_F77=no
22957 ;;
22958 motorola)
22959 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22960 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22961 ;;
22962 esac
22963 runpath_var='LD_RUN_PATH'
22964 hardcode_shlibpath_var_F77=no
22965 ;;
22966
22967 sysv4.3*)
22968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22969 hardcode_shlibpath_var_F77=no
22970 export_dynamic_flag_spec_F77='-Bexport'
22971 ;;
22972
22973 sysv4*MP*)
22974 if test -d /usr/nec; then
22975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22976 hardcode_shlibpath_var_F77=no
22977 runpath_var=LD_RUN_PATH
22978 hardcode_runpath_var=yes
22979 ld_shlibs_F77=yes
22980 fi
22981 ;;
22982
22983 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22984 no_undefined_flag_F77='${wl}-z,text'
22985 archive_cmds_need_lc_F77=no
22986 hardcode_shlibpath_var_F77=no
22987 runpath_var='LD_RUN_PATH'
22988
22989 if test "$GCC" = yes; then
22990 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22991 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22992 else
22993 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22994 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22995 fi
22996 ;;
22997
22998 sysv5* | sco3.2v5* | sco5v6*)
22999 # Note: We can NOT use -z defs as we might desire, because we do not
23000 # link with -lc, and that would cause any symbols used from libc to
23001 # always be unresolved, which means just about no library would
23002 # ever link correctly. If we're not using GNU ld we use -z text
23003 # though, which does catch some bad symbols but isn't as heavy-handed
23004 # as -z defs.
23005 no_undefined_flag_F77='${wl}-z,text'
23006 allow_undefined_flag_F77='${wl}-z,nodefs'
23007 archive_cmds_need_lc_F77=no
23008 hardcode_shlibpath_var_F77=no
23009 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23010 hardcode_libdir_separator_F77=':'
23011 link_all_deplibs_F77=yes
23012 export_dynamic_flag_spec_F77='${wl}-Bexport'
23013 runpath_var='LD_RUN_PATH'
23014
23015 if test "$GCC" = yes; then
23016 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23017 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23018 else
23019 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23020 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23021 fi
23022 ;;
23023
23024 uts4*)
23025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23026 hardcode_libdir_flag_spec_F77='-L$libdir'
23027 hardcode_shlibpath_var_F77=no
23028 ;;
23029
23030 *)
23031 ld_shlibs_F77=no
23032 ;;
23033 esac
23034 fi
23035
23036{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23037echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23038test "$ld_shlibs_F77" = no && can_build_shared=no
23039
23040#
23041# Do we need to explicitly link libc?
23042#
23043case "x$archive_cmds_need_lc_F77" in
23044x|xyes)
23045 # Assume -lc should be added
23046 archive_cmds_need_lc_F77=yes
23047
23048 if test "$enable_shared" = yes && test "$GCC" = yes; then
23049 case $archive_cmds_F77 in
23050 *'~'*)
23051 # FIXME: we may have to deal with multi-command sequences.
23052 ;;
23053 '$CC '*)
23054 # Test whether the compiler implicitly links with -lc since on some
23055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23056 # to ld, don't add -lc before -lgcc.
23057 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23058echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23059 $rm conftest*
23060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23061
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063 (eval $ac_compile) 2>&5
23064 ac_status=$?
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } 2>conftest.err; then
23067 soname=conftest
23068 lib=conftest
23069 libobjs=conftest.$ac_objext
23070 deplibs=
23071 wl=$lt_prog_compiler_wl_F77
23072 pic_flag=$lt_prog_compiler_pic_F77
23073 compiler_flags=-v
23074 linker_flags=-v
23075 verstring=
23076 output_objdir=.
23077 libname=conftest
23078 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23079 allow_undefined_flag_F77=
23080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23081 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }
23085 then
23086 archive_cmds_need_lc_F77=no
23087 else
23088 archive_cmds_need_lc_F77=yes
23089 fi
23090 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23091 else
23092 cat conftest.err 1>&5
23093 fi
23094 $rm conftest*
23095 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23096echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23097 ;;
23098 esac
23099 fi
23100 ;;
23101esac
23102
23103{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23105library_names_spec=
23106libname_spec='lib$name'
23107soname_spec=
23108shrext_cmds=".so"
23109postinstall_cmds=
23110postuninstall_cmds=
23111finish_cmds=
23112finish_eval=
23113shlibpath_var=
23114shlibpath_overrides_runpath=unknown
23115version_type=none
23116dynamic_linker="$host_os ld.so"
23117sys_lib_dlsearch_path_spec="/lib /usr/lib"
23118if test "$GCC" = yes; then
23119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23121 # if the path contains ";" then we assume it to be the separator
23122 # otherwise default to the standard path separator (i.e. ":") - it is
23123 # assumed that no part of a normal pathname contains ";" but that should
23124 # okay in the real world where ";" in dirpaths is itself problematic.
23125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23126 else
23127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23128 fi
23129else
23130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23131fi
23132need_lib_prefix=unknown
23133hardcode_into_libs=no
23134
23135# when you set need_version to no, make sure it does not cause -set_version
23136# flags to be left without arguments
23137need_version=unknown
23138
23139case $host_os in
23140aix3*)
23141 version_type=linux
23142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23143 shlibpath_var=LIBPATH
23144
23145 # AIX 3 has no versioning support, so we append a major version to the name.
23146 soname_spec='${libname}${release}${shared_ext}$major'
23147 ;;
23148
23149aix4* | aix5*)
23150 version_type=linux
23151 need_lib_prefix=no
23152 need_version=no
23153 hardcode_into_libs=yes
23154 if test "$host_cpu" = ia64; then
23155 # AIX 5 supports IA64
23156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23157 shlibpath_var=LD_LIBRARY_PATH
23158 else
23159 # With GCC up to 2.95.x, collect2 would create an import file
23160 # for dependence libraries. The import file would start with
23161 # the line `#! .'. This would cause the generated library to
23162 # depend on `.', always an invalid library. This was fixed in
23163 # development snapshots of GCC prior to 3.0.
23164 case $host_os in
23165 aix4 | aix4.[01] | aix4.[01].*)
23166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23167 echo ' yes '
23168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23169 :
23170 else
23171 can_build_shared=no
23172 fi
23173 ;;
23174 esac
23175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23176 # soname into executable. Probably we can add versioning support to
23177 # collect2, so additional links can be useful in future.
23178 if test "$aix_use_runtimelinking" = yes; then
23179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23180 # instead of lib<name>.a to let people know that these are not
23181 # typical AIX shared libraries.
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183 else
23184 # We preserve .a as extension for shared libraries through AIX4.2
23185 # and later when we are not doing run time linking.
23186 library_names_spec='${libname}${release}.a $libname.a'
23187 soname_spec='${libname}${release}${shared_ext}$major'
23188 fi
23189 shlibpath_var=LIBPATH
23190 fi
23191 ;;
23192
23193amigaos*)
23194 library_names_spec='$libname.ixlibrary $libname.a'
23195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23196 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'
23197 ;;
23198
23199beos*)
23200 library_names_spec='${libname}${shared_ext}'
23201 dynamic_linker="$host_os ld.so"
23202 shlibpath_var=LIBRARY_PATH
23203 ;;
23204
23205bsdi[45]*)
23206 version_type=linux
23207 need_version=no
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23211 shlibpath_var=LD_LIBRARY_PATH
23212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23214 # the default ld.so.conf also contains /usr/contrib/lib and
23215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23216 # libtool to hard-code these into programs
23217 ;;
23218
23219cygwin* | mingw* | pw32*)
23220 version_type=windows
23221 shrext_cmds=".dll"
23222 need_version=no
23223 need_lib_prefix=no
23224
23225 case $GCC,$host_os in
23226 yes,cygwin* | yes,mingw* | yes,pw32*)
23227 library_names_spec='$libname.dll.a'
23228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23229 postinstall_cmds='base_file=`basename \${file}`~
23230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23231 dldir=$destdir/`dirname \$dlpath`~
23232 test -d \$dldir || mkdir -p \$dldir~
23233 $install_prog $dir/$dlname \$dldir/$dlname~
23234 chmod a+x \$dldir/$dlname'
23235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23236 dlpath=$dir/\$dldll~
23237 $rm \$dlpath'
23238 shlibpath_overrides_runpath=yes
23239
23240 case $host_os in
23241 cygwin*)
23242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23245 ;;
23246 mingw*)
23247 # MinGW DLLs use traditional 'lib' prefix
23248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23251 # It is most probably a Windows format PATH printed by
23252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23253 # path with ; separators, and with drive letters. We can handle the
23254 # drive letters (cygwin fileutils understands them), so leave them,
23255 # especially as we might pass files found there to a mingw objdump,
23256 # which wouldn't understand a cygwinified path. Ahh.
23257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23258 else
23259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23260 fi
23261 ;;
23262 pw32*)
23263 # pw32 DLLs use 'pw' prefix rather than 'lib'
23264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23265 ;;
23266 esac
23267 ;;
23268
23269 *)
23270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23271 ;;
23272 esac
23273 dynamic_linker='Win32 ld.exe'
23274 # FIXME: first we should search . and the directory the executable is in
23275 shlibpath_var=PATH
23276 ;;
23277
23278darwin* | rhapsody*)
23279 dynamic_linker="$host_os dyld"
23280 version_type=darwin
23281 need_lib_prefix=no
23282 need_version=no
23283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23284 soname_spec='${libname}${release}${major}$shared_ext'
23285 shlibpath_overrides_runpath=yes
23286 shlibpath_var=DYLD_LIBRARY_PATH
23287 shrext_cmds='.dylib'
23288 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23289 if test "$GCC" = yes; then
23290 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"`
23291 else
23292 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23293 fi
23294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23295 ;;
23296
23297dgux*)
23298 version_type=linux
23299 need_lib_prefix=no
23300 need_version=no
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23302 soname_spec='${libname}${release}${shared_ext}$major'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 ;;
23305
23306freebsd1*)
23307 dynamic_linker=no
23308 ;;
23309
23310kfreebsd*-gnu)
23311 version_type=linux
23312 need_lib_prefix=no
23313 need_version=no
23314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23315 soname_spec='${libname}${release}${shared_ext}$major'
23316 shlibpath_var=LD_LIBRARY_PATH
23317 shlibpath_overrides_runpath=no
23318 hardcode_into_libs=yes
23319 dynamic_linker='GNU ld.so'
23320 ;;
23321
23322freebsd* | dragonfly*)
23323 # DragonFly does not have aout. When/if they implement a new
23324 # versioning mechanism, adjust this.
23325 if test -x /usr/bin/objformat; then
23326 objformat=`/usr/bin/objformat`
23327 else
23328 case $host_os in
23329 freebsd[123]*) objformat=aout ;;
23330 *) objformat=elf ;;
23331 esac
23332 fi
23333 version_type=freebsd-$objformat
23334 case $version_type in
23335 freebsd-elf*)
23336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23337 need_version=no
23338 need_lib_prefix=no
23339 ;;
23340 freebsd-*)
23341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23342 need_version=yes
23343 ;;
23344 esac
23345 shlibpath_var=LD_LIBRARY_PATH
23346 case $host_os in
23347 freebsd2*)
23348 shlibpath_overrides_runpath=yes
23349 ;;
23350 freebsd3.[01]* | freebsdelf3.[01]*)
23351 shlibpath_overrides_runpath=yes
23352 hardcode_into_libs=yes
23353 ;;
23354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23356 shlibpath_overrides_runpath=no
23357 hardcode_into_libs=yes
23358 ;;
23359 freebsd*) # from 4.6 on
23360 shlibpath_overrides_runpath=yes
23361 hardcode_into_libs=yes
23362 ;;
23363 esac
23364 ;;
23365
23366gnu*)
23367 version_type=linux
23368 need_lib_prefix=no
23369 need_version=no
23370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 shlibpath_var=LD_LIBRARY_PATH
23373 hardcode_into_libs=yes
23374 ;;
23375
23376hpux9* | hpux10* | hpux11*)
23377 # Give a soname corresponding to the major version so that dld.sl refuses to
23378 # link against other versions.
23379 version_type=sunos
23380 need_lib_prefix=no
23381 need_version=no
23382 case $host_cpu in
23383 ia64*)
23384 shrext_cmds='.so'
23385 hardcode_into_libs=yes
23386 dynamic_linker="$host_os dld.so"
23387 shlibpath_var=LD_LIBRARY_PATH
23388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23390 soname_spec='${libname}${release}${shared_ext}$major'
23391 if test "X$HPUX_IA64_MODE" = X32; then
23392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23393 else
23394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23395 fi
23396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23397 ;;
23398 hppa*64*)
23399 shrext_cmds='.sl'
23400 hardcode_into_libs=yes
23401 dynamic_linker="$host_os dld.sl"
23402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405 soname_spec='${libname}${release}${shared_ext}$major'
23406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23408 ;;
23409 *)
23410 shrext_cmds='.sl'
23411 dynamic_linker="$host_os dld.sl"
23412 shlibpath_var=SHLIB_PATH
23413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23415 soname_spec='${libname}${release}${shared_ext}$major'
23416 ;;
23417 esac
23418 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23419 postinstall_cmds='chmod 555 $lib'
23420 ;;
23421
23422interix3*)
23423 version_type=linux
23424 need_lib_prefix=no
23425 need_version=no
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23429 shlibpath_var=LD_LIBRARY_PATH
23430 shlibpath_overrides_runpath=no
23431 hardcode_into_libs=yes
23432 ;;
23433
23434irix5* | irix6* | nonstopux*)
23435 case $host_os in
23436 nonstopux*) version_type=nonstopux ;;
23437 *)
23438 if test "$lt_cv_prog_gnu_ld" = yes; then
23439 version_type=linux
23440 else
23441 version_type=irix
23442 fi ;;
23443 esac
23444 need_lib_prefix=no
23445 need_version=no
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23448 case $host_os in
23449 irix5* | nonstopux*)
23450 libsuff= shlibsuff=
23451 ;;
23452 *)
23453 case $LD in # libtool.m4 will add one of these switches to LD
23454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23455 libsuff= shlibsuff= libmagic=32-bit;;
23456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23457 libsuff=32 shlibsuff=N32 libmagic=N32;;
23458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23460 *) libsuff= shlibsuff= libmagic=never-match;;
23461 esac
23462 ;;
23463 esac
23464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23465 shlibpath_overrides_runpath=no
23466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23468 hardcode_into_libs=yes
23469 ;;
23470
23471# No shared lib support for Linux oldld, aout, or coff.
23472linux*oldld* | linux*aout* | linux*coff*)
23473 dynamic_linker=no
23474 ;;
23475
23476# This must be Linux ELF.
23477linux*)
23478 version_type=linux
23479 need_lib_prefix=no
23480 need_version=no
23481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23482 soname_spec='${libname}${release}${shared_ext}$major'
23483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23484 shlibpath_var=LD_LIBRARY_PATH
23485 shlibpath_overrides_runpath=no
23486 # This implies no fast_install, which is unacceptable.
23487 # Some rework will be needed to allow for fast_install
23488 # before this can be enabled.
23489 hardcode_into_libs=yes
23490
23491 # Append ld.so.conf contents to the search path
23492 if test -f /etc/ld.so.conf; then
23493 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' ' '`
23494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23495 fi
23496
23497 # We used to test for /lib/ld.so.1 and disable shared libraries on
23498 # powerpc, because MkLinux only supported shared libraries with the
23499 # GNU dynamic linker. Since this was broken with cross compilers,
23500 # most powerpc-linux boxes support dynamic linking these days and
23501 # people can always --disable-shared, the test was removed, and we
23502 # assume the GNU/Linux dynamic linker is in use.
23503 dynamic_linker='GNU/Linux ld.so'
23504 ;;
23505
23506knetbsd*-gnu)
23507 version_type=linux
23508 need_lib_prefix=no
23509 need_version=no
23510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23511 soname_spec='${libname}${release}${shared_ext}$major'
23512 shlibpath_var=LD_LIBRARY_PATH
23513 shlibpath_overrides_runpath=no
23514 hardcode_into_libs=yes
23515 dynamic_linker='GNU ld.so'
23516 ;;
23517
23518netbsd*)
23519 version_type=sunos
23520 need_lib_prefix=no
23521 need_version=no
23522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23525 dynamic_linker='NetBSD (a.out) ld.so'
23526 else
23527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23528 soname_spec='${libname}${release}${shared_ext}$major'
23529 dynamic_linker='NetBSD ld.elf_so'
23530 fi
23531 shlibpath_var=LD_LIBRARY_PATH
23532 shlibpath_overrides_runpath=yes
23533 hardcode_into_libs=yes
23534 ;;
23535
23536newsos6)
23537 version_type=linux
23538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 shlibpath_overrides_runpath=yes
23541 ;;
23542
23543nto-qnx*)
23544 version_type=linux
23545 need_lib_prefix=no
23546 need_version=no
23547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23548 soname_spec='${libname}${release}${shared_ext}$major'
23549 shlibpath_var=LD_LIBRARY_PATH
23550 shlibpath_overrides_runpath=yes
23551 ;;
23552
23553openbsd*)
23554 version_type=sunos
23555 sys_lib_dlsearch_path_spec="/usr/lib"
23556 need_lib_prefix=no
23557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23558 case $host_os in
23559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23560 *) need_version=no ;;
23561 esac
23562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23564 shlibpath_var=LD_LIBRARY_PATH
23565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23566 case $host_os in
23567 openbsd2.[89] | openbsd2.[89].*)
23568 shlibpath_overrides_runpath=no
23569 ;;
23570 *)
23571 shlibpath_overrides_runpath=yes
23572 ;;
23573 esac
23574 else
23575 shlibpath_overrides_runpath=yes
23576 fi
23577 ;;
23578
23579os2*)
23580 libname_spec='$name'
23581 shrext_cmds=".dll"
23582 need_lib_prefix=no
23583 library_names_spec='$libname${shared_ext} $libname.a'
23584 dynamic_linker='OS/2 ld.exe'
23585 shlibpath_var=LIBPATH
23586 ;;
23587
23588osf3* | osf4* | osf5*)
23589 version_type=osf
23590 need_lib_prefix=no
23591 need_version=no
23592 soname_spec='${libname}${release}${shared_ext}$major'
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 shlibpath_var=LD_LIBRARY_PATH
23595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23597 ;;
23598
23599solaris*)
23600 version_type=linux
23601 need_lib_prefix=no
23602 need_version=no
23603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23604 soname_spec='${libname}${release}${shared_ext}$major'
23605 shlibpath_var=LD_LIBRARY_PATH
23606 shlibpath_overrides_runpath=yes
23607 hardcode_into_libs=yes
23608 # ldd complains unless libraries are executable
23609 postinstall_cmds='chmod +x $lib'
23610 ;;
23611
23612sunos4*)
23613 version_type=sunos
23614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23616 shlibpath_var=LD_LIBRARY_PATH
23617 shlibpath_overrides_runpath=yes
23618 if test "$with_gnu_ld" = yes; then
23619 need_lib_prefix=no
23620 fi
23621 need_version=yes
23622 ;;
23623
23624sysv4 | sysv4.3*)
23625 version_type=linux
23626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23627 soname_spec='${libname}${release}${shared_ext}$major'
23628 shlibpath_var=LD_LIBRARY_PATH
23629 case $host_vendor in
23630 sni)
23631 shlibpath_overrides_runpath=no
23632 need_lib_prefix=no
23633 export_dynamic_flag_spec='${wl}-Blargedynsym'
23634 runpath_var=LD_RUN_PATH
23635 ;;
23636 siemens)
23637 need_lib_prefix=no
23638 ;;
23639 motorola)
23640 need_lib_prefix=no
23641 need_version=no
23642 shlibpath_overrides_runpath=no
23643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23644 ;;
23645 esac
23646 ;;
23647
23648sysv4*MP*)
23649 if test -d /usr/nec ;then
23650 version_type=linux
23651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23652 soname_spec='$libname${shared_ext}.$major'
23653 shlibpath_var=LD_LIBRARY_PATH
23654 fi
23655 ;;
23656
23657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23658 version_type=freebsd-elf
23659 need_lib_prefix=no
23660 need_version=no
23661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23662 soname_spec='${libname}${release}${shared_ext}$major'
23663 shlibpath_var=LD_LIBRARY_PATH
23664 hardcode_into_libs=yes
23665 if test "$with_gnu_ld" = yes; then
23666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23667 shlibpath_overrides_runpath=no
23668 else
23669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23670 shlibpath_overrides_runpath=yes
23671 case $host_os in
23672 sco3.2v5*)
23673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23674 ;;
23675 esac
23676 fi
23677 sys_lib_dlsearch_path_spec='/usr/lib'
23678 ;;
23679
23680uts4*)
23681 version_type=linux
23682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23683 soname_spec='${libname}${release}${shared_ext}$major'
23684 shlibpath_var=LD_LIBRARY_PATH
23685 ;;
23686
23687*)
23688 dynamic_linker=no
23689 ;;
23690esac
23691{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23692echo "${ECHO_T}$dynamic_linker" >&6; }
23693test "$dynamic_linker" = no && can_build_shared=no
23694
23695variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23696if test "$GCC" = yes; then
23697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23698fi
23699
23700{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23701echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23702hardcode_action_F77=
23703if test -n "$hardcode_libdir_flag_spec_F77" || \
23704 test -n "$runpath_var_F77" || \
23705 test "X$hardcode_automatic_F77" = "Xyes" ; then
23706
23707 # We can hardcode non-existant directories.
23708 if test "$hardcode_direct_F77" != no &&
23709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23710 # have to relink, otherwise we might link with an installed library
23711 # when we should be linking with a yet-to-be-installed one
23712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23713 test "$hardcode_minus_L_F77" != no; then
23714 # Linking always hardcodes the temporary library directory.
23715 hardcode_action_F77=relink
23716 else
23717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23718 hardcode_action_F77=immediate
23719 fi
23720else
23721 # We cannot hardcode anything, or else we can only hardcode existing
23722 # directories.
23723 hardcode_action_F77=unsupported
23724fi
23725{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23726echo "${ECHO_T}$hardcode_action_F77" >&6; }
23727
23728if test "$hardcode_action_F77" = relink; then
23729 # Fast installation is not supported
23730 enable_fast_install=no
23731elif test "$shlibpath_overrides_runpath" = yes ||
23732 test "$enable_shared" = no; then
23733 # Fast installation is not necessary
23734 enable_fast_install=needless
23735fi
23736
23737
23738# The else clause should only fire when bootstrapping the
23739# libtool distribution, otherwise you forgot to ship ltmain.sh
23740# with your package, and you will get complaints that there are
23741# no rules to generate ltmain.sh.
23742if test -f "$ltmain"; then
23743 # See if we are running on zsh, and set the options which allow our commands through
23744 # without removal of \ escapes.
23745 if test -n "${ZSH_VERSION+set}" ; then
23746 setopt NO_GLOB_SUBST
23747 fi
23748 # Now quote all the things that may contain metacharacters while being
23749 # careful not to overquote the AC_SUBSTed values. We take copies of the
23750 # variables and quote the copies for generation of the libtool script.
23751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23752 SED SHELL STRIP \
23753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23755 deplibs_check_method reload_flag reload_cmds need_locks \
23756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23757 lt_cv_sys_global_symbol_to_c_name_address \
23758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23759 old_postinstall_cmds old_postuninstall_cmds \
23760 compiler_F77 \
23761 CC_F77 \
23762 LD_F77 \
23763 lt_prog_compiler_wl_F77 \
23764 lt_prog_compiler_pic_F77 \
23765 lt_prog_compiler_static_F77 \
23766 lt_prog_compiler_no_builtin_flag_F77 \
23767 export_dynamic_flag_spec_F77 \
23768 thread_safe_flag_spec_F77 \
23769 whole_archive_flag_spec_F77 \
23770 enable_shared_with_static_runtimes_F77 \
23771 old_archive_cmds_F77 \
23772 old_archive_from_new_cmds_F77 \
23773 predep_objects_F77 \
23774 postdep_objects_F77 \
23775 predeps_F77 \
23776 postdeps_F77 \
23777 compiler_lib_search_path_F77 \
23778 archive_cmds_F77 \
23779 archive_expsym_cmds_F77 \
23780 postinstall_cmds_F77 \
23781 postuninstall_cmds_F77 \
23782 old_archive_from_expsyms_cmds_F77 \
23783 allow_undefined_flag_F77 \
23784 no_undefined_flag_F77 \
23785 export_symbols_cmds_F77 \
23786 hardcode_libdir_flag_spec_F77 \
23787 hardcode_libdir_flag_spec_ld_F77 \
23788 hardcode_libdir_separator_F77 \
23789 hardcode_automatic_F77 \
23790 module_cmds_F77 \
23791 module_expsym_cmds_F77 \
23792 lt_cv_prog_compiler_c_o_F77 \
23793 exclude_expsyms_F77 \
23794 include_expsyms_F77; do
23795
23796 case $var in
23797 old_archive_cmds_F77 | \
23798 old_archive_from_new_cmds_F77 | \
23799 archive_cmds_F77 | \
23800 archive_expsym_cmds_F77 | \
23801 module_cmds_F77 | \
23802 module_expsym_cmds_F77 | \
23803 old_archive_from_expsyms_cmds_F77 | \
23804 export_symbols_cmds_F77 | \
23805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23806 postinstall_cmds | postuninstall_cmds | \
23807 old_postinstall_cmds | old_postuninstall_cmds | \
23808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23809 # Double-quote double-evaled strings.
23810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23811 ;;
23812 *)
23813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23814 ;;
23815 esac
23816 done
23817
23818 case $lt_echo in
23819 *'\$0 --fallback-echo"')
23820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23821 ;;
23822 esac
23823
23824cfgfile="$ofile"
23825
23826 cat <<__EOF__ >> "$cfgfile"
23827# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23828
23829# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23830
23831# Shell to use when invoking shell scripts.
23832SHELL=$lt_SHELL
23833
23834# Whether or not to build shared libraries.
23835build_libtool_libs=$enable_shared
23836
23837# Whether or not to build static libraries.
23838build_old_libs=$enable_static
23839
23840# Whether or not to add -lc for building shared libraries.
23841build_libtool_need_lc=$archive_cmds_need_lc_F77
23842
23843# Whether or not to disallow shared libs when runtime libs are static
23844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23845
23846# Whether or not to optimize for fast installation.
23847fast_install=$enable_fast_install
23848
23849# The host system.
23850host_alias=$host_alias
23851host=$host
23852host_os=$host_os
23853
23854# The build system.
23855build_alias=$build_alias
23856build=$build
23857build_os=$build_os
23858
23859# An echo program that does not interpret backslashes.
23860echo=$lt_echo
23861
23862# The archiver.
23863AR=$lt_AR
23864AR_FLAGS=$lt_AR_FLAGS
23865
23866# A C compiler.
23867LTCC=$lt_LTCC
23868
23869# LTCC compiler flags.
23870LTCFLAGS=$lt_LTCFLAGS
23871
23872# A language-specific compiler.
23873CC=$lt_compiler_F77
23874
23875# Is the compiler the GNU C compiler?
23876with_gcc=$GCC_F77
23877
23878# An ERE matcher.
23879EGREP=$lt_EGREP
23880
23881# The linker used to build libraries.
23882LD=$lt_LD_F77
23883
23884# Whether we need hard or soft links.
23885LN_S=$lt_LN_S
23886
23887# A BSD-compatible nm program.
23888NM=$lt_NM
23889
23890# A symbol stripping program
23891STRIP=$lt_STRIP
23892
23893# Used to examine libraries when file_magic_cmd begins "file"
23894MAGIC_CMD=$MAGIC_CMD
23895
23896# Used on cygwin: DLL creation program.
23897DLLTOOL="$DLLTOOL"
23898
23899# Used on cygwin: object dumper.
23900OBJDUMP="$OBJDUMP"
23901
23902# Used on cygwin: assembler.
23903AS="$AS"
23904
23905# The name of the directory that contains temporary libtool files.
23906objdir=$objdir
23907
23908# How to create reloadable object files.
23909reload_flag=$lt_reload_flag
23910reload_cmds=$lt_reload_cmds
23911
23912# How to pass a linker flag through the compiler.
23913wl=$lt_lt_prog_compiler_wl_F77
23914
23915# Object file suffix (normally "o").
23916objext="$ac_objext"
23917
23918# Old archive suffix (normally "a").
23919libext="$libext"
23920
23921# Shared library suffix (normally ".so").
23922shrext_cmds='$shrext_cmds'
23923
23924# Executable file suffix (normally "").
23925exeext="$exeext"
23926
23927# Additional compiler flags for building library objects.
23928pic_flag=$lt_lt_prog_compiler_pic_F77
23929pic_mode=$pic_mode
23930
23931# What is the maximum length of a command?
23932max_cmd_len=$lt_cv_sys_max_cmd_len
23933
23934# Does compiler simultaneously support -c and -o options?
23935compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23936
23937# Must we lock files when doing compilation?
23938need_locks=$lt_need_locks
23939
23940# Do we need the lib prefix for modules?
23941need_lib_prefix=$need_lib_prefix
23942
23943# Do we need a version for libraries?
23944need_version=$need_version
23945
23946# Whether dlopen is supported.
23947dlopen_support=$enable_dlopen
23948
23949# Whether dlopen of programs is supported.
23950dlopen_self=$enable_dlopen_self
23951
23952# Whether dlopen of statically linked programs is supported.
23953dlopen_self_static=$enable_dlopen_self_static
23954
23955# Compiler flag to prevent dynamic linking.
23956link_static_flag=$lt_lt_prog_compiler_static_F77
23957
23958# Compiler flag to turn off builtin functions.
23959no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23960
23961# Compiler flag to allow reflexive dlopens.
23962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23963
23964# Compiler flag to generate shared objects directly from archives.
23965whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23966
23967# Compiler flag to generate thread-safe objects.
23968thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23969
23970# Library versioning type.
23971version_type=$version_type
23972
23973# Format of library name prefix.
23974libname_spec=$lt_libname_spec
23975
23976# List of archive names. First name is the real one, the rest are links.
23977# The last name is the one that the linker finds with -lNAME.
23978library_names_spec=$lt_library_names_spec
23979
23980# The coded name of the library, if different from the real name.
23981soname_spec=$lt_soname_spec
23982
23983# Commands used to build and install an old-style archive.
23984RANLIB=$lt_RANLIB
23985old_archive_cmds=$lt_old_archive_cmds_F77
23986old_postinstall_cmds=$lt_old_postinstall_cmds
23987old_postuninstall_cmds=$lt_old_postuninstall_cmds
23988
23989# Create an old-style archive from a shared archive.
23990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23991
23992# Create a temporary old-style archive to link instead of a shared archive.
23993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23994
23995# Commands used to build and install a shared archive.
23996archive_cmds=$lt_archive_cmds_F77
23997archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23998postinstall_cmds=$lt_postinstall_cmds
23999postuninstall_cmds=$lt_postuninstall_cmds
24000
24001# Commands used to build a loadable module (assumed same as above if empty)
24002module_cmds=$lt_module_cmds_F77
24003module_expsym_cmds=$lt_module_expsym_cmds_F77
24004
24005# Commands to strip libraries.
24006old_striplib=$lt_old_striplib
24007striplib=$lt_striplib
24008
24009# Dependencies to place before the objects being linked to create a
24010# shared library.
24011predep_objects=$lt_predep_objects_F77
24012
24013# Dependencies to place after the objects being linked to create a
24014# shared library.
24015postdep_objects=$lt_postdep_objects_F77
24016
24017# Dependencies to place before the objects being linked to create a
24018# shared library.
24019predeps=$lt_predeps_F77
24020
24021# Dependencies to place after the objects being linked to create a
24022# shared library.
24023postdeps=$lt_postdeps_F77
24024
24025# The library search path used internally by the compiler when linking
24026# a shared library.
24027compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24028
24029# Method to check whether dependent libraries are shared objects.
24030deplibs_check_method=$lt_deplibs_check_method
24031
24032# Command to use when deplibs_check_method == file_magic.
24033file_magic_cmd=$lt_file_magic_cmd
24034
24035# Flag that allows shared libraries with undefined symbols to be built.
24036allow_undefined_flag=$lt_allow_undefined_flag_F77
24037
24038# Flag that forces no undefined symbols.
24039no_undefined_flag=$lt_no_undefined_flag_F77
24040
24041# Commands used to finish a libtool library installation in a directory.
24042finish_cmds=$lt_finish_cmds
24043
24044# Same as above, but a single script fragment to be evaled but not shown.
24045finish_eval=$lt_finish_eval
24046
24047# Take the output of nm and produce a listing of raw symbols and C names.
24048global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24049
24050# Transform the output of nm in a proper C declaration
24051global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24052
24053# Transform the output of nm in a C name address pair
24054global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24055
24056# This is the shared library runtime path variable.
24057runpath_var=$runpath_var
24058
24059# This is the shared library path variable.
24060shlibpath_var=$shlibpath_var
24061
24062# Is shlibpath searched before the hard-coded library search path?
24063shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24064
24065# How to hardcode a shared library path into an executable.
24066hardcode_action=$hardcode_action_F77
24067
24068# Whether we should hardcode library paths into libraries.
24069hardcode_into_libs=$hardcode_into_libs
24070
24071# Flag to hardcode \$libdir into a binary during linking.
24072# This must work even if \$libdir does not exist.
24073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24074
24075# If ld is used when linking, flag to hardcode \$libdir into
24076# a binary during linking. This must work even if \$libdir does
24077# not exist.
24078hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24079
24080# Whether we need a single -rpath flag with a separated argument.
24081hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24082
24083# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24084# resulting binary.
24085hardcode_direct=$hardcode_direct_F77
24086
24087# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24088# resulting binary.
24089hardcode_minus_L=$hardcode_minus_L_F77
24090
24091# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24092# the resulting binary.
24093hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24094
24095# Set to yes if building a shared library automatically hardcodes DIR into the library
24096# and all subsequent libraries and executables linked against it.
24097hardcode_automatic=$hardcode_automatic_F77
24098
24099# Variables whose values should be saved in libtool wrapper scripts and
24100# restored at relink time.
24101variables_saved_for_relink="$variables_saved_for_relink"
24102
24103# Whether libtool must link a program against all its dependency libraries.
24104link_all_deplibs=$link_all_deplibs_F77
24105
24106# Compile-time system search path for libraries
24107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24108
24109# Run-time system search path for libraries
24110sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24111
24112# Fix the shell variable \$srcfile for the compiler.
24113fix_srcfile_path="$fix_srcfile_path_F77"
24114
24115# Set to yes if exported symbols are required.
24116always_export_symbols=$always_export_symbols_F77
24117
24118# The commands to list exported symbols.
24119export_symbols_cmds=$lt_export_symbols_cmds_F77
24120
24121# The commands to extract the exported symbol list from a shared archive.
24122extract_expsyms_cmds=$lt_extract_expsyms_cmds
24123
24124# Symbols that should not be listed in the preloaded symbols.
24125exclude_expsyms=$lt_exclude_expsyms_F77
24126
24127# Symbols that must always be exported.
24128include_expsyms=$lt_include_expsyms_F77
24129
24130# ### END LIBTOOL TAG CONFIG: $tagname
24131
24132__EOF__
24133
24134
24135else
24136 # If there is no Makefile yet, we rely on a make rule to execute
24137 # `config.status --recheck' to rerun these tests and create the
24138 # libtool script then.
24139 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24140 if test -f "$ltmain_in"; then
24141 test -f Makefile && make "$ltmain"
24142 fi
24143fi
24144
24145
24146ac_ext=c
24147ac_cpp='$CPP $CPPFLAGS'
24148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24150ac_compiler_gnu=$ac_cv_c_compiler_gnu
24151
24152CC="$lt_save_CC"
24153
24154 else
24155 tagname=""
24156 fi
24157 ;;
24158
24159 GCJ)
24160 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24161 ac_ext=c
24162ac_cpp='$CPP $CPPFLAGS'
24163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165ac_compiler_gnu=$ac_cv_c_compiler_gnu
24166
24167
24168# Source file extension for Java test sources.
24169ac_ext=java
24170
24171# Object file extension for compiled Java test sources.
24172objext=o
24173objext_GCJ=$objext
24174
24175# Code to be used in simple compile tests
24176lt_simple_compile_test_code="class foo {}\n"
24177
24178# Code to be used in simple link tests
24179lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24180
24181# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24182
24183# If no C compiler was specified, use CC.
24184LTCC=${LTCC-"$CC"}
24185
24186# If no C compiler flags were specified, use CFLAGS.
24187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24188
24189# Allow CC to be a program name with arguments.
24190compiler=$CC
24191
24192
24193# save warnings/boilerplate of simple test code
24194ac_outfile=conftest.$ac_objext
24195printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24197_lt_compiler_boilerplate=`cat conftest.err`
24198$rm conftest*
24199
24200ac_outfile=conftest.$ac_objext
24201printf "$lt_simple_link_test_code" >conftest.$ac_ext
24202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24203_lt_linker_boilerplate=`cat conftest.err`
24204$rm conftest*
24205
24206
24207# Allow CC to be a program name with arguments.
24208lt_save_CC="$CC"
24209CC=${GCJ-"gcj"}
24210compiler=$CC
24211compiler_GCJ=$CC
24212for cc_temp in $compiler""; do
24213 case $cc_temp in
24214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24216 \-*) ;;
24217 *) break;;
24218 esac
24219done
24220cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24221
24222
24223# GCJ did not exist at the time GCC didn't implicitly link libc in.
24224archive_cmds_need_lc_GCJ=no
24225
24226old_archive_cmds_GCJ=$old_archive_cmds
24227
24228
24229lt_prog_compiler_no_builtin_flag_GCJ=
24230
24231if test "$GCC" = yes; then
24232 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24233
24234
24235{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24236echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24237if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24239else
24240 lt_cv_prog_compiler_rtti_exceptions=no
24241 ac_outfile=conftest.$ac_objext
24242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24243 lt_compiler_flag="-fno-rtti -fno-exceptions"
24244 # Insert the option either (1) after the last *FLAGS variable, or
24245 # (2) before a word containing "conftest.", or (3) at the end.
24246 # Note that $ac_compile itself does not contain backslashes and begins
24247 # with a dollar sign (not a hyphen), so the echo should work correctly.
24248 # The option is referenced via a variable to avoid confusing sed.
24249 lt_compile=`echo "$ac_compile" | $SED \
24250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24252 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024253 (eval echo "\"\$as_me:24253: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024254 (eval "$lt_compile" 2>conftest.err)
24255 ac_status=$?
24256 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024257 echo "$as_me:24257: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024258 if (exit $ac_status) && test -s "$ac_outfile"; then
24259 # The compiler can only warn and ignore the option if not recognized
24260 # So say no if there are warnings other than the usual output.
24261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24264 lt_cv_prog_compiler_rtti_exceptions=yes
24265 fi
24266 fi
24267 $rm conftest*
24268
24269fi
24270{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24271echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24272
24273if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24274 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24275else
24276 :
24277fi
24278
24279fi
24280
24281lt_prog_compiler_wl_GCJ=
24282lt_prog_compiler_pic_GCJ=
24283lt_prog_compiler_static_GCJ=
24284
24285{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24286echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24287
24288 if test "$GCC" = yes; then
24289 lt_prog_compiler_wl_GCJ='-Wl,'
24290 lt_prog_compiler_static_GCJ='-static'
24291
24292 case $host_os in
24293 aix*)
24294 # All AIX code is PIC.
24295 if test "$host_cpu" = ia64; then
24296 # AIX 5 now supports IA64 processor
24297 lt_prog_compiler_static_GCJ='-Bstatic'
24298 fi
24299 ;;
24300
24301 amigaos*)
24302 # FIXME: we need at least 68020 code to build shared libraries, but
24303 # adding the `-m68020' flag to GCC prevents building anything better,
24304 # like `-m68040'.
24305 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24306 ;;
24307
24308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24309 # PIC is the default for these OSes.
24310 ;;
24311
24312 mingw* | pw32* | os2*)
24313 # This hack is so that the source file can tell whether it is being
24314 # built for inclusion in a dll (and should export symbols for example).
24315 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24316 ;;
24317
24318 darwin* | rhapsody*)
24319 # PIC is the default on this platform
24320 # Common symbols not allowed in MH_DYLIB files
24321 lt_prog_compiler_pic_GCJ='-fno-common'
24322 ;;
24323
24324 interix3*)
24325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24326 # Instead, we relocate shared libraries at runtime.
24327 ;;
24328
24329 msdosdjgpp*)
24330 # Just because we use GCC doesn't mean we suddenly get shared libraries
24331 # on systems that don't support them.
24332 lt_prog_compiler_can_build_shared_GCJ=no
24333 enable_shared=no
24334 ;;
24335
24336 sysv4*MP*)
24337 if test -d /usr/nec; then
24338 lt_prog_compiler_pic_GCJ=-Kconform_pic
24339 fi
24340 ;;
24341
24342 hpux*)
24343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344 # not for PA HP-UX.
24345 case $host_cpu in
24346 hppa*64*|ia64*)
24347 # +Z the default
24348 ;;
24349 *)
24350 lt_prog_compiler_pic_GCJ='-fPIC'
24351 ;;
24352 esac
24353 ;;
24354
24355 *)
24356 lt_prog_compiler_pic_GCJ='-fPIC'
24357 ;;
24358 esac
24359 else
24360 # PORTME Check for flag to pass linker flags through the system compiler.
24361 case $host_os in
24362 aix*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 if test "$host_cpu" = ia64; then
24365 # AIX 5 now supports IA64 processor
24366 lt_prog_compiler_static_GCJ='-Bstatic'
24367 else
24368 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24369 fi
24370 ;;
24371 darwin*)
24372 # PIC is the default on this platform
24373 # Common symbols not allowed in MH_DYLIB files
24374 case $cc_basename in
24375 xlc*)
24376 lt_prog_compiler_pic_GCJ='-qnocommon'
24377 lt_prog_compiler_wl_GCJ='-Wl,'
24378 ;;
24379 esac
24380 ;;
24381
24382 mingw* | pw32* | os2*)
24383 # This hack is so that the source file can tell whether it is being
24384 # built for inclusion in a dll (and should export symbols for example).
24385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24386 ;;
24387
24388 hpux9* | hpux10* | hpux11*)
24389 lt_prog_compiler_wl_GCJ='-Wl,'
24390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24391 # not for PA HP-UX.
24392 case $host_cpu in
24393 hppa*64*|ia64*)
24394 # +Z the default
24395 ;;
24396 *)
24397 lt_prog_compiler_pic_GCJ='+Z'
24398 ;;
24399 esac
24400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24401 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24402 ;;
24403
24404 irix5* | irix6* | nonstopux*)
24405 lt_prog_compiler_wl_GCJ='-Wl,'
24406 # PIC (with -KPIC) is the default.
24407 lt_prog_compiler_static_GCJ='-non_shared'
24408 ;;
24409
24410 newsos6)
24411 lt_prog_compiler_pic_GCJ='-KPIC'
24412 lt_prog_compiler_static_GCJ='-Bstatic'
24413 ;;
24414
24415 linux*)
24416 case $cc_basename in
24417 icc* | ecc*)
24418 lt_prog_compiler_wl_GCJ='-Wl,'
24419 lt_prog_compiler_pic_GCJ='-KPIC'
24420 lt_prog_compiler_static_GCJ='-static'
24421 ;;
24422 pgcc* | pgf77* | pgf90* | pgf95*)
24423 # Portland Group compilers (*not* the Pentium gcc compiler,
24424 # which looks to be a dead project)
24425 lt_prog_compiler_wl_GCJ='-Wl,'
24426 lt_prog_compiler_pic_GCJ='-fpic'
24427 lt_prog_compiler_static_GCJ='-Bstatic'
24428 ;;
24429 ccc*)
24430 lt_prog_compiler_wl_GCJ='-Wl,'
24431 # All Alpha code is PIC.
24432 lt_prog_compiler_static_GCJ='-non_shared'
24433 ;;
24434 esac
24435 ;;
24436
24437 osf3* | osf4* | osf5*)
24438 lt_prog_compiler_wl_GCJ='-Wl,'
24439 # All OSF/1 code is PIC.
24440 lt_prog_compiler_static_GCJ='-non_shared'
24441 ;;
24442
24443 solaris*)
24444 lt_prog_compiler_pic_GCJ='-KPIC'
24445 lt_prog_compiler_static_GCJ='-Bstatic'
24446 case $cc_basename in
24447 f77* | f90* | f95*)
24448 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24449 *)
24450 lt_prog_compiler_wl_GCJ='-Wl,';;
24451 esac
24452 ;;
24453
24454 sunos4*)
24455 lt_prog_compiler_wl_GCJ='-Qoption ld '
24456 lt_prog_compiler_pic_GCJ='-PIC'
24457 lt_prog_compiler_static_GCJ='-Bstatic'
24458 ;;
24459
24460 sysv4 | sysv4.2uw2* | sysv4.3*)
24461 lt_prog_compiler_wl_GCJ='-Wl,'
24462 lt_prog_compiler_pic_GCJ='-KPIC'
24463 lt_prog_compiler_static_GCJ='-Bstatic'
24464 ;;
24465
24466 sysv4*MP*)
24467 if test -d /usr/nec ;then
24468 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24469 lt_prog_compiler_static_GCJ='-Bstatic'
24470 fi
24471 ;;
24472
24473 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24474 lt_prog_compiler_wl_GCJ='-Wl,'
24475 lt_prog_compiler_pic_GCJ='-KPIC'
24476 lt_prog_compiler_static_GCJ='-Bstatic'
24477 ;;
24478
24479 unicos*)
24480 lt_prog_compiler_wl_GCJ='-Wl,'
24481 lt_prog_compiler_can_build_shared_GCJ=no
24482 ;;
24483
24484 uts4*)
24485 lt_prog_compiler_pic_GCJ='-pic'
24486 lt_prog_compiler_static_GCJ='-Bstatic'
24487 ;;
24488
24489 *)
24490 lt_prog_compiler_can_build_shared_GCJ=no
24491 ;;
24492 esac
24493 fi
24494
24495{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24496echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24497
24498#
24499# Check to make sure the PIC flag actually works.
24500#
24501if test -n "$lt_prog_compiler_pic_GCJ"; then
24502
24503{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24504echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24505if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507else
24508 lt_prog_compiler_pic_works_GCJ=no
24509 ac_outfile=conftest.$ac_objext
24510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24511 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24512 # Insert the option either (1) after the last *FLAGS variable, or
24513 # (2) before a word containing "conftest.", or (3) at the end.
24514 # Note that $ac_compile itself does not contain backslashes and begins
24515 # with a dollar sign (not a hyphen), so the echo should work correctly.
24516 # The option is referenced via a variable to avoid confusing sed.
24517 lt_compile=`echo "$ac_compile" | $SED \
24518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24520 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024521 (eval echo "\"\$as_me:24521: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024522 (eval "$lt_compile" 2>conftest.err)
24523 ac_status=$?
24524 cat conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024525 echo "$as_me:24525: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024526 if (exit $ac_status) && test -s "$ac_outfile"; then
24527 # The compiler can only warn and ignore the option if not recognized
24528 # So say no if there are warnings other than the usual output.
24529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24532 lt_prog_compiler_pic_works_GCJ=yes
24533 fi
24534 fi
24535 $rm conftest*
24536
24537fi
24538{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24539echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24540
24541if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24542 case $lt_prog_compiler_pic_GCJ in
24543 "" | " "*) ;;
24544 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24545 esac
24546else
24547 lt_prog_compiler_pic_GCJ=
24548 lt_prog_compiler_can_build_shared_GCJ=no
24549fi
24550
24551fi
24552case $host_os in
24553 # For platforms which do not support PIC, -DPIC is meaningless:
24554 *djgpp*)
24555 lt_prog_compiler_pic_GCJ=
24556 ;;
24557 *)
24558 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24559 ;;
24560esac
24561
24562#
24563# Check to make sure the static flag actually works.
24564#
24565wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24566{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24567echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24568if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
24570else
24571 lt_prog_compiler_static_works_GCJ=no
24572 save_LDFLAGS="$LDFLAGS"
24573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24574 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24576 # The linker can only warn and ignore the option if not recognized
24577 # So say no if there are warnings
24578 if test -s conftest.err; then
24579 # Append any errors to the config.log.
24580 cat conftest.err 1>&5
24581 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24583 if diff conftest.exp conftest.er2 >/dev/null; then
24584 lt_prog_compiler_static_works_GCJ=yes
24585 fi
24586 else
24587 lt_prog_compiler_static_works_GCJ=yes
24588 fi
24589 fi
24590 $rm conftest*
24591 LDFLAGS="$save_LDFLAGS"
24592
24593fi
24594{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24595echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24596
24597if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24598 :
24599else
24600 lt_prog_compiler_static_GCJ=
24601fi
24602
24603
24604{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24605echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24606if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24608else
24609 lt_cv_prog_compiler_c_o_GCJ=no
24610 $rm -r conftest 2>/dev/null
24611 mkdir conftest
24612 cd conftest
24613 mkdir out
24614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24615
24616 lt_compiler_flag="-o out/conftest2.$ac_objext"
24617 # Insert the option either (1) after the last *FLAGS variable, or
24618 # (2) before a word containing "conftest.", or (3) at the end.
24619 # Note that $ac_compile itself does not contain backslashes and begins
24620 # with a dollar sign (not a hyphen), so the echo should work correctly.
24621 lt_compile=`echo "$ac_compile" | $SED \
24622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24624 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024625 (eval echo "\"\$as_me:24625: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024626 (eval "$lt_compile" 2>out/conftest.err)
24627 ac_status=$?
24628 cat out/conftest.err >&5
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000024629 echo "$as_me:24629: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24631 then
24632 # The compiler can only warn and ignore the option if not recognized
24633 # So say no if there are warnings
24634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24637 lt_cv_prog_compiler_c_o_GCJ=yes
24638 fi
24639 fi
24640 chmod u+w . 2>&5
24641 $rm conftest*
24642 # SGI C++ compiler will create directory out/ii_files/ for
24643 # template instantiation
24644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24645 $rm out/* && rmdir out
24646 cd ..
24647 rmdir conftest
24648 $rm conftest*
24649
24650fi
24651{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24652echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24653
24654
24655hard_links="nottested"
24656if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24657 # do not overwrite the value of need_locks provided by the user
24658 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24659echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24660 hard_links=yes
24661 $rm conftest*
24662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24663 touch conftest.a
24664 ln conftest.a conftest.b 2>&5 || hard_links=no
24665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24666 { echo "$as_me:$LINENO: result: $hard_links" >&5
24667echo "${ECHO_T}$hard_links" >&6; }
24668 if test "$hard_links" = no; then
24669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24670echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24671 need_locks=warn
24672 fi
24673else
24674 need_locks=no
24675fi
24676
24677{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24678echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24679
24680 runpath_var=
24681 allow_undefined_flag_GCJ=
24682 enable_shared_with_static_runtimes_GCJ=no
24683 archive_cmds_GCJ=
24684 archive_expsym_cmds_GCJ=
24685 old_archive_From_new_cmds_GCJ=
24686 old_archive_from_expsyms_cmds_GCJ=
24687 export_dynamic_flag_spec_GCJ=
24688 whole_archive_flag_spec_GCJ=
24689 thread_safe_flag_spec_GCJ=
24690 hardcode_libdir_flag_spec_GCJ=
24691 hardcode_libdir_flag_spec_ld_GCJ=
24692 hardcode_libdir_separator_GCJ=
24693 hardcode_direct_GCJ=no
24694 hardcode_minus_L_GCJ=no
24695 hardcode_shlibpath_var_GCJ=unsupported
24696 link_all_deplibs_GCJ=unknown
24697 hardcode_automatic_GCJ=no
24698 module_cmds_GCJ=
24699 module_expsym_cmds_GCJ=
24700 always_export_symbols_GCJ=no
24701 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24702 # include_expsyms should be a list of space-separated symbols to be *always*
24703 # included in the symbol list
24704 include_expsyms_GCJ=
24705 # exclude_expsyms can be an extended regexp of symbols to exclude
24706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24708 # as well as any symbol that contains `d'.
24709 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24711 # platforms (ab)use it in PIC code, but their linkers get confused if
24712 # the symbol is explicitly referenced. Since portable code cannot
24713 # rely on this symbol name, it's probably fine to never include it in
24714 # preloaded symbol tables.
24715 extract_expsyms_cmds=
24716 # Just being paranoid about ensuring that cc_basename is set.
24717 for cc_temp in $compiler""; do
24718 case $cc_temp in
24719 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24720 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24721 \-*) ;;
24722 *) break;;
24723 esac
24724done
24725cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24726
24727 case $host_os in
24728 cygwin* | mingw* | pw32*)
24729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24730 # When not using gcc, we currently assume that we are using
24731 # Microsoft Visual C++.
24732 if test "$GCC" != yes; then
24733 with_gnu_ld=no
24734 fi
24735 ;;
24736 interix*)
24737 # we just hope/assume this is gcc and not c89 (= MSVC++)
24738 with_gnu_ld=yes
24739 ;;
24740 openbsd*)
24741 with_gnu_ld=no
24742 ;;
24743 esac
24744
24745 ld_shlibs_GCJ=yes
24746 if test "$with_gnu_ld" = yes; then
24747 # If archive_cmds runs LD, not CC, wlarc should be empty
24748 wlarc='${wl}'
24749
24750 # Set some defaults for GNU ld with shared library support. These
24751 # are reset later if shared libraries are not supported. Putting them
24752 # here allows them to be overridden if necessary.
24753 runpath_var=LD_RUN_PATH
24754 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24755 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24756 # ancient GNU ld didn't support --whole-archive et. al.
24757 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24758 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24759 else
24760 whole_archive_flag_spec_GCJ=
24761 fi
24762 supports_anon_versioning=no
24763 case `$LD -v 2>/dev/null` in
24764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24767 *\ 2.11.*) ;; # other 2.11 versions
24768 *) supports_anon_versioning=yes ;;
24769 esac
24770
24771 # See if GNU ld supports shared libraries.
24772 case $host_os in
24773 aix3* | aix4* | aix5*)
24774 # On AIX/PPC, the GNU linker is very broken
24775 if test "$host_cpu" != ia64; then
24776 ld_shlibs_GCJ=no
24777 cat <<EOF 1>&2
24778
24779*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24780*** to be unable to reliably create shared libraries on AIX.
24781*** Therefore, libtool is disabling shared libraries support. If you
24782*** really care for shared libraries, you may want to modify your PATH
24783*** so that a non-GNU linker is found, and then restart.
24784
24785EOF
24786 fi
24787 ;;
24788
24789 amigaos*)
24790 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)'
24791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24792 hardcode_minus_L_GCJ=yes
24793
24794 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24795 # that the semantics of dynamic libraries on AmigaOS, at least up
24796 # to version 4, is to share data among multiple programs linked
24797 # with the same dynamic library. Since this doesn't match the
24798 # behavior of shared libraries on other platforms, we can't use
24799 # them.
24800 ld_shlibs_GCJ=no
24801 ;;
24802
24803 beos*)
24804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24805 allow_undefined_flag_GCJ=unsupported
24806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24807 # support --undefined. This deserves some investigation. FIXME
24808 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24809 else
24810 ld_shlibs_GCJ=no
24811 fi
24812 ;;
24813
24814 cygwin* | mingw* | pw32*)
24815 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24816 # as there is no search path for DLLs.
24817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24818 allow_undefined_flag_GCJ=unsupported
24819 always_export_symbols_GCJ=no
24820 enable_shared_with_static_runtimes_GCJ=yes
24821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24822
24823 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24824 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24825 # If the export-symbols file already is a .def file (1st line
24826 # is EXPORTS), use it as is; otherwise, prepend...
24827 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24828 cp $export_symbols $output_objdir/$soname.def;
24829 else
24830 echo EXPORTS > $output_objdir/$soname.def;
24831 cat $export_symbols >> $output_objdir/$soname.def;
24832 fi~
24833 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24834 else
24835 ld_shlibs_GCJ=no
24836 fi
24837 ;;
24838
24839 interix3*)
24840 hardcode_direct_GCJ=no
24841 hardcode_shlibpath_var_GCJ=no
24842 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24843 export_dynamic_flag_spec_GCJ='${wl}-E'
24844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24845 # Instead, shared libraries are loaded at an image base (0x10000000 by
24846 # default) and relocated if they conflict, which is a slow very memory
24847 # consuming and fragmenting process. To avoid this, we pick a random,
24848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24850 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'
24851 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'
24852 ;;
24853
24854 linux*)
24855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24856 tmp_addflag=
24857 case $cc_basename,$host_cpu in
24858 pgcc*) # Portland Group C compiler
24859 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'
24860 tmp_addflag=' $pic_flag'
24861 ;;
24862 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24863 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'
24864 tmp_addflag=' $pic_flag -Mnomain' ;;
24865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24866 tmp_addflag=' -i_dynamic' ;;
24867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24868 tmp_addflag=' -i_dynamic -nofor_main' ;;
24869 ifc* | ifort*) # Intel Fortran compiler
24870 tmp_addflag=' -nofor_main' ;;
24871 esac
24872 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24873
24874 if test $supports_anon_versioning = yes; then
24875 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24877 $echo "local: *; };" >> $output_objdir/$libname.ver~
24878 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24879 fi
24880 else
24881 ld_shlibs_GCJ=no
24882 fi
24883 ;;
24884
24885 netbsd*)
24886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24887 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24888 wlarc=
24889 else
24890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24891 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24892 fi
24893 ;;
24894
24895 solaris*)
24896 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24897 ld_shlibs_GCJ=no
24898 cat <<EOF 1>&2
24899
24900*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24901*** create shared libraries on Solaris systems. Therefore, libtool
24902*** is disabling shared libraries support. We urge you to upgrade GNU
24903*** binutils to release 2.9.1 or newer. Another option is to modify
24904*** your PATH or compiler configuration so that the native linker is
24905*** used, and then restart.
24906
24907EOF
24908 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24910 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24911 else
24912 ld_shlibs_GCJ=no
24913 fi
24914 ;;
24915
24916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24917 case `$LD -v 2>&1` in
24918 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24919 ld_shlibs_GCJ=no
24920 cat <<_LT_EOF 1>&2
24921
24922*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24923*** reliably create shared libraries on SCO systems. Therefore, libtool
24924*** is disabling shared libraries support. We urge you to upgrade GNU
24925*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24926*** your PATH or compiler configuration so that the native linker is
24927*** used, and then restart.
24928
24929_LT_EOF
24930 ;;
24931 *)
24932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24933 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24934 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24935 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24936 else
24937 ld_shlibs_GCJ=no
24938 fi
24939 ;;
24940 esac
24941 ;;
24942
24943 sunos4*)
24944 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24945 wlarc=
24946 hardcode_direct_GCJ=yes
24947 hardcode_shlibpath_var_GCJ=no
24948 ;;
24949
24950 *)
24951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24952 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24953 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24954 else
24955 ld_shlibs_GCJ=no
24956 fi
24957 ;;
24958 esac
24959
24960 if test "$ld_shlibs_GCJ" = no; then
24961 runpath_var=
24962 hardcode_libdir_flag_spec_GCJ=
24963 export_dynamic_flag_spec_GCJ=
24964 whole_archive_flag_spec_GCJ=
24965 fi
24966 else
24967 # PORTME fill in a description of your system's linker (not GNU ld)
24968 case $host_os in
24969 aix3*)
24970 allow_undefined_flag_GCJ=unsupported
24971 always_export_symbols_GCJ=yes
24972 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'
24973 # Note: this linker hardcodes the directories in LIBPATH if there
24974 # are no directories specified by -L.
24975 hardcode_minus_L_GCJ=yes
24976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24977 # Neither direct hardcoding nor static linking is supported with a
24978 # broken collect2.
24979 hardcode_direct_GCJ=unsupported
24980 fi
24981 ;;
24982
24983 aix4* | aix5*)
24984 if test "$host_cpu" = ia64; then
24985 # On IA64, the linker does run time linking by default, so we don't
24986 # have to do anything special.
24987 aix_use_runtimelinking=no
24988 exp_sym_flag='-Bexport'
24989 no_entry_flag=""
24990 else
24991 # If we're using GNU nm, then we don't want the "-C" option.
24992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24994 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'
24995 else
24996 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'
24997 fi
24998 aix_use_runtimelinking=no
24999
25000 # Test if we are trying to use run time linking or normal
25001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25002 # need to do runtime linking.
25003 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25004 for ld_flag in $LDFLAGS; do
25005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25006 aix_use_runtimelinking=yes
25007 break
25008 fi
25009 done
25010 ;;
25011 esac
25012
25013 exp_sym_flag='-bexport'
25014 no_entry_flag='-bnoentry'
25015 fi
25016
25017 # When large executables or shared objects are built, AIX ld can
25018 # have problems creating the table of contents. If linking a library
25019 # or program results in "error TOC overflow" add -mminimal-toc to
25020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25022
25023 archive_cmds_GCJ=''
25024 hardcode_direct_GCJ=yes
25025 hardcode_libdir_separator_GCJ=':'
25026 link_all_deplibs_GCJ=yes
25027
25028 if test "$GCC" = yes; then
25029 case $host_os in aix4.[012]|aix4.[012].*)
25030 # We only want to do this on AIX 4.2 and lower, the check
25031 # below for broken collect2 doesn't work under 4.3+
25032 collect2name=`${CC} -print-prog-name=collect2`
25033 if test -f "$collect2name" && \
25034 strings "$collect2name" | grep resolve_lib_name >/dev/null
25035 then
25036 # We have reworked collect2
25037 hardcode_direct_GCJ=yes
25038 else
25039 # We have old collect2
25040 hardcode_direct_GCJ=unsupported
25041 # It fails to find uninstalled libraries when the uninstalled
25042 # path is not listed in the libpath. Setting hardcode_minus_L
25043 # to unsupported forces relinking
25044 hardcode_minus_L_GCJ=yes
25045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046 hardcode_libdir_separator_GCJ=
25047 fi
25048 ;;
25049 esac
25050 shared_flag='-shared'
25051 if test "$aix_use_runtimelinking" = yes; then
25052 shared_flag="$shared_flag "'${wl}-G'
25053 fi
25054 else
25055 # not using gcc
25056 if test "$host_cpu" = ia64; then
25057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25058 # chokes on -Wl,-G. The following line is correct:
25059 shared_flag='-G'
25060 else
25061 if test "$aix_use_runtimelinking" = yes; then
25062 shared_flag='${wl}-G'
25063 else
25064 shared_flag='${wl}-bM:SRE'
25065 fi
25066 fi
25067 fi
25068
25069 # It seems that -bexpall does not export symbols beginning with
25070 # underscore (_), so it is better to generate a list of symbols to export.
25071 always_export_symbols_GCJ=yes
25072 if test "$aix_use_runtimelinking" = yes; then
25073 # Warning - without using the other runtime loading flags (-brtl),
25074 # -berok will link without error, but may produce a broken library.
25075 allow_undefined_flag_GCJ='-berok'
25076 # Determine the default libpath from the value encoded in an empty executable.
25077 cat >conftest.$ac_ext <<_ACEOF
25078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
25083
25084int
25085main ()
25086{
25087
25088 ;
25089 return 0;
25090}
25091_ACEOF
25092rm -f conftest.$ac_objext conftest$ac_exeext
25093if { (ac_try="$ac_link"
25094case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097esac
25098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
25100 ac_status=$?
25101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25107 { (case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110esac
25111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_try") 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25120esac
25121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_try") 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025126
25127aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25128}'`
25129# Check for a 64-bit object if we didn't find anything.
25130if 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; }
25131}'`; fi
25132else
25133 echo "$as_me: failed program was:" >&5
25134sed 's/^/| /' conftest.$ac_ext >&5
25135
25136
25137fi
25138
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025139rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025140 conftest$ac_exeext conftest.$ac_ext
25141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25142
25143 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25144 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"
25145 else
25146 if test "$host_cpu" = ia64; then
25147 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25148 allow_undefined_flag_GCJ="-z nodefs"
25149 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"
25150 else
25151 # Determine the default libpath from the value encoded in an empty executable.
25152 cat >conftest.$ac_ext <<_ACEOF
25153/* confdefs.h. */
25154_ACEOF
25155cat confdefs.h >>conftest.$ac_ext
25156cat >>conftest.$ac_ext <<_ACEOF
25157/* end confdefs.h. */
25158
25159int
25160main ()
25161{
25162
25163 ;
25164 return 0;
25165}
25166_ACEOF
25167rm -f conftest.$ac_objext conftest$ac_exeext
25168if { (ac_try="$ac_link"
25169case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172esac
25173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_link") 2>conftest.er1
25175 ac_status=$?
25176 grep -v '^ *+' conftest.er1 >conftest.err
25177 rm -f conftest.er1
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025180 (exit $ac_status); } &&
25181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25185esac
25186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25195esac
25196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_try") 2>&5
25198 ac_status=$?
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025201
25202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25203}'`
25204# Check for a 64-bit object if we didn't find anything.
25205if 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; }
25206}'`; fi
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211
25212fi
25213
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025214rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025215 conftest$ac_exeext conftest.$ac_ext
25216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25217
25218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25219 # Warning - without using the other run time loading flags,
25220 # -berok will link without error, but may produce a broken library.
25221 no_undefined_flag_GCJ=' ${wl}-bernotok'
25222 allow_undefined_flag_GCJ=' ${wl}-berok'
25223 # Exported symbols can be pulled into shared objects from archives
25224 whole_archive_flag_spec_GCJ='$convenience'
25225 archive_cmds_need_lc_GCJ=yes
25226 # This is similar to how AIX traditionally builds its shared libraries.
25227 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'
25228 fi
25229 fi
25230 ;;
25231
25232 amigaos*)
25233 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)'
25234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25235 hardcode_minus_L_GCJ=yes
25236 # see comment about different semantics on the GNU ld section
25237 ld_shlibs_GCJ=no
25238 ;;
25239
25240 bsdi[45]*)
25241 export_dynamic_flag_spec_GCJ=-rdynamic
25242 ;;
25243
25244 cygwin* | mingw* | pw32*)
25245 # When not using gcc, we currently assume that we are using
25246 # Microsoft Visual C++.
25247 # hardcode_libdir_flag_spec is actually meaningless, as there is
25248 # no search path for DLLs.
25249 hardcode_libdir_flag_spec_GCJ=' '
25250 allow_undefined_flag_GCJ=unsupported
25251 # Tell ltmain to make .lib files, not .a files.
25252 libext=lib
25253 # Tell ltmain to make .dll files, not .so files.
25254 shrext_cmds=".dll"
25255 # FIXME: Setting linknames here is a bad hack.
25256 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25257 # The linker will automatically build a .lib file if we build a DLL.
25258 old_archive_From_new_cmds_GCJ='true'
25259 # FIXME: Should let the user specify the lib program.
25260 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25261 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25262 enable_shared_with_static_runtimes_GCJ=yes
25263 ;;
25264
25265 darwin* | rhapsody*)
25266 case $host_os in
25267 rhapsody* | darwin1.[012])
25268 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25269 ;;
25270 *) # Darwin 1.3 on
25271 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25272 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25273 else
25274 case ${MACOSX_DEPLOYMENT_TARGET} in
25275 10.[012])
25276 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25277 ;;
25278 10.*)
25279 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25280 ;;
25281 esac
25282 fi
25283 ;;
25284 esac
25285 archive_cmds_need_lc_GCJ=no
25286 hardcode_direct_GCJ=no
25287 hardcode_automatic_GCJ=yes
25288 hardcode_shlibpath_var_GCJ=unsupported
25289 whole_archive_flag_spec_GCJ=''
25290 link_all_deplibs_GCJ=yes
25291 if test "$GCC" = yes ; then
25292 output_verbose_link_cmd='echo'
25293 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25294 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25296 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}'
25297 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}'
25298 else
25299 case $cc_basename in
25300 xlc*)
25301 output_verbose_link_cmd='echo'
25302 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25303 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25305 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}'
25306 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}'
25307 ;;
25308 *)
25309 ld_shlibs_GCJ=no
25310 ;;
25311 esac
25312 fi
25313 ;;
25314
25315 dgux*)
25316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25318 hardcode_shlibpath_var_GCJ=no
25319 ;;
25320
25321 freebsd1*)
25322 ld_shlibs_GCJ=no
25323 ;;
25324
25325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25326 # support. Future versions do this automatically, but an explicit c++rt0.o
25327 # does not break anything, and helps significantly (at the cost of a little
25328 # extra space).
25329 freebsd2.2*)
25330 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25331 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25332 hardcode_direct_GCJ=yes
25333 hardcode_shlibpath_var_GCJ=no
25334 ;;
25335
25336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25337 freebsd2*)
25338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25339 hardcode_direct_GCJ=yes
25340 hardcode_minus_L_GCJ=yes
25341 hardcode_shlibpath_var_GCJ=no
25342 ;;
25343
25344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25345 freebsd* | kfreebsd*-gnu | dragonfly*)
25346 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25347 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25348 hardcode_direct_GCJ=yes
25349 hardcode_shlibpath_var_GCJ=no
25350 ;;
25351
25352 hpux9*)
25353 if test "$GCC" = yes; then
25354 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'
25355 else
25356 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'
25357 fi
25358 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25359 hardcode_libdir_separator_GCJ=:
25360 hardcode_direct_GCJ=yes
25361
25362 # hardcode_minus_L: Not really in the search PATH,
25363 # but as the default location of the library.
25364 hardcode_minus_L_GCJ=yes
25365 export_dynamic_flag_spec_GCJ='${wl}-E'
25366 ;;
25367
25368 hpux10*)
25369 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25370 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25371 else
25372 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25373 fi
25374 if test "$with_gnu_ld" = no; then
25375 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25376 hardcode_libdir_separator_GCJ=:
25377
25378 hardcode_direct_GCJ=yes
25379 export_dynamic_flag_spec_GCJ='${wl}-E'
25380
25381 # hardcode_minus_L: Not really in the search PATH,
25382 # but as the default location of the library.
25383 hardcode_minus_L_GCJ=yes
25384 fi
25385 ;;
25386
25387 hpux11*)
25388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25389 case $host_cpu in
25390 hppa*64*)
25391 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25392 ;;
25393 ia64*)
25394 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25395 ;;
25396 *)
25397 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25398 ;;
25399 esac
25400 else
25401 case $host_cpu in
25402 hppa*64*)
25403 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25404 ;;
25405 ia64*)
25406 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25407 ;;
25408 *)
25409 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25410 ;;
25411 esac
25412 fi
25413 if test "$with_gnu_ld" = no; then
25414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25415 hardcode_libdir_separator_GCJ=:
25416
25417 case $host_cpu in
25418 hppa*64*|ia64*)
25419 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25420 hardcode_direct_GCJ=no
25421 hardcode_shlibpath_var_GCJ=no
25422 ;;
25423 *)
25424 hardcode_direct_GCJ=yes
25425 export_dynamic_flag_spec_GCJ='${wl}-E'
25426
25427 # hardcode_minus_L: Not really in the search PATH,
25428 # but as the default location of the library.
25429 hardcode_minus_L_GCJ=yes
25430 ;;
25431 esac
25432 fi
25433 ;;
25434
25435 irix5* | irix6* | nonstopux*)
25436 if test "$GCC" = yes; then
25437 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'
25438 else
25439 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'
25440 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25441 fi
25442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25443 hardcode_libdir_separator_GCJ=:
25444 link_all_deplibs_GCJ=yes
25445 ;;
25446
25447 netbsd*)
25448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25450 else
25451 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25452 fi
25453 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25454 hardcode_direct_GCJ=yes
25455 hardcode_shlibpath_var_GCJ=no
25456 ;;
25457
25458 newsos6)
25459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25460 hardcode_direct_GCJ=yes
25461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25462 hardcode_libdir_separator_GCJ=:
25463 hardcode_shlibpath_var_GCJ=no
25464 ;;
25465
25466 openbsd*)
25467 hardcode_direct_GCJ=yes
25468 hardcode_shlibpath_var_GCJ=no
25469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25470 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25473 export_dynamic_flag_spec_GCJ='${wl}-E'
25474 else
25475 case $host_os in
25476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25478 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25479 ;;
25480 *)
25481 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25482 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25483 ;;
25484 esac
25485 fi
25486 ;;
25487
25488 os2*)
25489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25490 hardcode_minus_L_GCJ=yes
25491 allow_undefined_flag_GCJ=unsupported
25492 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'
25493 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25494 ;;
25495
25496 osf3*)
25497 if test "$GCC" = yes; then
25498 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25499 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'
25500 else
25501 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25502 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'
25503 fi
25504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25505 hardcode_libdir_separator_GCJ=:
25506 ;;
25507
25508 osf4* | osf5*) # as osf3* with the addition of -msym flag
25509 if test "$GCC" = yes; then
25510 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25511 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'
25512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25513 else
25514 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25515 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'
25516 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~
25517 $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'
25518
25519 # Both c and cxx compiler support -rpath directly
25520 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25521 fi
25522 hardcode_libdir_separator_GCJ=:
25523 ;;
25524
25525 solaris*)
25526 no_undefined_flag_GCJ=' -z text'
25527 if test "$GCC" = yes; then
25528 wlarc='${wl}'
25529 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25530 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25531 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25532 else
25533 wlarc=''
25534 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25535 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25537 fi
25538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25539 hardcode_shlibpath_var_GCJ=no
25540 case $host_os in
25541 solaris2.[0-5] | solaris2.[0-5].*) ;;
25542 *)
25543 # The compiler driver will combine linker options so we
25544 # cannot just pass the convience library names through
25545 # without $wl, iff we do not link with $LD.
25546 # Luckily, gcc supports the same syntax we need for Sun Studio.
25547 # Supported since Solaris 2.6 (maybe 2.5.1?)
25548 case $wlarc in
25549 '')
25550 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25551 *)
25552 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' ;;
25553 esac ;;
25554 esac
25555 link_all_deplibs_GCJ=yes
25556 ;;
25557
25558 sunos4*)
25559 if test "x$host_vendor" = xsequent; then
25560 # Use $CC to link under sequent, because it throws in some extra .o
25561 # files that make .init and .fini sections work.
25562 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25563 else
25564 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25565 fi
25566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25567 hardcode_direct_GCJ=yes
25568 hardcode_minus_L_GCJ=yes
25569 hardcode_shlibpath_var_GCJ=no
25570 ;;
25571
25572 sysv4)
25573 case $host_vendor in
25574 sni)
25575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25576 hardcode_direct_GCJ=yes # is this really true???
25577 ;;
25578 siemens)
25579 ## LD is ld it makes a PLAMLIB
25580 ## CC just makes a GrossModule.
25581 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25582 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25583 hardcode_direct_GCJ=no
25584 ;;
25585 motorola)
25586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25587 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25588 ;;
25589 esac
25590 runpath_var='LD_RUN_PATH'
25591 hardcode_shlibpath_var_GCJ=no
25592 ;;
25593
25594 sysv4.3*)
25595 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25596 hardcode_shlibpath_var_GCJ=no
25597 export_dynamic_flag_spec_GCJ='-Bexport'
25598 ;;
25599
25600 sysv4*MP*)
25601 if test -d /usr/nec; then
25602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25603 hardcode_shlibpath_var_GCJ=no
25604 runpath_var=LD_RUN_PATH
25605 hardcode_runpath_var=yes
25606 ld_shlibs_GCJ=yes
25607 fi
25608 ;;
25609
25610 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25611 no_undefined_flag_GCJ='${wl}-z,text'
25612 archive_cmds_need_lc_GCJ=no
25613 hardcode_shlibpath_var_GCJ=no
25614 runpath_var='LD_RUN_PATH'
25615
25616 if test "$GCC" = yes; then
25617 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25618 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25619 else
25620 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25621 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25622 fi
25623 ;;
25624
25625 sysv5* | sco3.2v5* | sco5v6*)
25626 # Note: We can NOT use -z defs as we might desire, because we do not
25627 # link with -lc, and that would cause any symbols used from libc to
25628 # always be unresolved, which means just about no library would
25629 # ever link correctly. If we're not using GNU ld we use -z text
25630 # though, which does catch some bad symbols but isn't as heavy-handed
25631 # as -z defs.
25632 no_undefined_flag_GCJ='${wl}-z,text'
25633 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25634 archive_cmds_need_lc_GCJ=no
25635 hardcode_shlibpath_var_GCJ=no
25636 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25637 hardcode_libdir_separator_GCJ=':'
25638 link_all_deplibs_GCJ=yes
25639 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25640 runpath_var='LD_RUN_PATH'
25641
25642 if test "$GCC" = yes; then
25643 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25644 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25645 else
25646 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25647 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25648 fi
25649 ;;
25650
25651 uts4*)
25652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25654 hardcode_shlibpath_var_GCJ=no
25655 ;;
25656
25657 *)
25658 ld_shlibs_GCJ=no
25659 ;;
25660 esac
25661 fi
25662
25663{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25664echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25665test "$ld_shlibs_GCJ" = no && can_build_shared=no
25666
25667#
25668# Do we need to explicitly link libc?
25669#
25670case "x$archive_cmds_need_lc_GCJ" in
25671x|xyes)
25672 # Assume -lc should be added
25673 archive_cmds_need_lc_GCJ=yes
25674
25675 if test "$enable_shared" = yes && test "$GCC" = yes; then
25676 case $archive_cmds_GCJ in
25677 *'~'*)
25678 # FIXME: we may have to deal with multi-command sequences.
25679 ;;
25680 '$CC '*)
25681 # Test whether the compiler implicitly links with -lc since on some
25682 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25683 # to ld, don't add -lc before -lgcc.
25684 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25685echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25686 $rm conftest*
25687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25688
25689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25690 (eval $ac_compile) 2>&5
25691 ac_status=$?
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } 2>conftest.err; then
25694 soname=conftest
25695 lib=conftest
25696 libobjs=conftest.$ac_objext
25697 deplibs=
25698 wl=$lt_prog_compiler_wl_GCJ
25699 pic_flag=$lt_prog_compiler_pic_GCJ
25700 compiler_flags=-v
25701 linker_flags=-v
25702 verstring=
25703 output_objdir=.
25704 libname=conftest
25705 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25706 allow_undefined_flag_GCJ=
25707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25708 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }
25712 then
25713 archive_cmds_need_lc_GCJ=no
25714 else
25715 archive_cmds_need_lc_GCJ=yes
25716 fi
25717 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25718 else
25719 cat conftest.err 1>&5
25720 fi
25721 $rm conftest*
25722 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25723echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25724 ;;
25725 esac
25726 fi
25727 ;;
25728esac
25729
25730{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25731echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25732library_names_spec=
25733libname_spec='lib$name'
25734soname_spec=
25735shrext_cmds=".so"
25736postinstall_cmds=
25737postuninstall_cmds=
25738finish_cmds=
25739finish_eval=
25740shlibpath_var=
25741shlibpath_overrides_runpath=unknown
25742version_type=none
25743dynamic_linker="$host_os ld.so"
25744sys_lib_dlsearch_path_spec="/lib /usr/lib"
25745if test "$GCC" = yes; then
25746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25748 # if the path contains ";" then we assume it to be the separator
25749 # otherwise default to the standard path separator (i.e. ":") - it is
25750 # assumed that no part of a normal pathname contains ";" but that should
25751 # okay in the real world where ";" in dirpaths is itself problematic.
25752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25753 else
25754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25755 fi
25756else
25757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25758fi
25759need_lib_prefix=unknown
25760hardcode_into_libs=no
25761
25762# when you set need_version to no, make sure it does not cause -set_version
25763# flags to be left without arguments
25764need_version=unknown
25765
25766case $host_os in
25767aix3*)
25768 version_type=linux
25769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25770 shlibpath_var=LIBPATH
25771
25772 # AIX 3 has no versioning support, so we append a major version to the name.
25773 soname_spec='${libname}${release}${shared_ext}$major'
25774 ;;
25775
25776aix4* | aix5*)
25777 version_type=linux
25778 need_lib_prefix=no
25779 need_version=no
25780 hardcode_into_libs=yes
25781 if test "$host_cpu" = ia64; then
25782 # AIX 5 supports IA64
25783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25784 shlibpath_var=LD_LIBRARY_PATH
25785 else
25786 # With GCC up to 2.95.x, collect2 would create an import file
25787 # for dependence libraries. The import file would start with
25788 # the line `#! .'. This would cause the generated library to
25789 # depend on `.', always an invalid library. This was fixed in
25790 # development snapshots of GCC prior to 3.0.
25791 case $host_os in
25792 aix4 | aix4.[01] | aix4.[01].*)
25793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25794 echo ' yes '
25795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25796 :
25797 else
25798 can_build_shared=no
25799 fi
25800 ;;
25801 esac
25802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25803 # soname into executable. Probably we can add versioning support to
25804 # collect2, so additional links can be useful in future.
25805 if test "$aix_use_runtimelinking" = yes; then
25806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25807 # instead of lib<name>.a to let people know that these are not
25808 # typical AIX shared libraries.
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810 else
25811 # We preserve .a as extension for shared libraries through AIX4.2
25812 # and later when we are not doing run time linking.
25813 library_names_spec='${libname}${release}.a $libname.a'
25814 soname_spec='${libname}${release}${shared_ext}$major'
25815 fi
25816 shlibpath_var=LIBPATH
25817 fi
25818 ;;
25819
25820amigaos*)
25821 library_names_spec='$libname.ixlibrary $libname.a'
25822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25823 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'
25824 ;;
25825
25826beos*)
25827 library_names_spec='${libname}${shared_ext}'
25828 dynamic_linker="$host_os ld.so"
25829 shlibpath_var=LIBRARY_PATH
25830 ;;
25831
25832bsdi[45]*)
25833 version_type=linux
25834 need_version=no
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25838 shlibpath_var=LD_LIBRARY_PATH
25839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25841 # the default ld.so.conf also contains /usr/contrib/lib and
25842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25843 # libtool to hard-code these into programs
25844 ;;
25845
25846cygwin* | mingw* | pw32*)
25847 version_type=windows
25848 shrext_cmds=".dll"
25849 need_version=no
25850 need_lib_prefix=no
25851
25852 case $GCC,$host_os in
25853 yes,cygwin* | yes,mingw* | yes,pw32*)
25854 library_names_spec='$libname.dll.a'
25855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25856 postinstall_cmds='base_file=`basename \${file}`~
25857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25858 dldir=$destdir/`dirname \$dlpath`~
25859 test -d \$dldir || mkdir -p \$dldir~
25860 $install_prog $dir/$dlname \$dldir/$dlname~
25861 chmod a+x \$dldir/$dlname'
25862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25863 dlpath=$dir/\$dldll~
25864 $rm \$dlpath'
25865 shlibpath_overrides_runpath=yes
25866
25867 case $host_os in
25868 cygwin*)
25869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25872 ;;
25873 mingw*)
25874 # MinGW DLLs use traditional 'lib' prefix
25875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25878 # It is most probably a Windows format PATH printed by
25879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25880 # path with ; separators, and with drive letters. We can handle the
25881 # drive letters (cygwin fileutils understands them), so leave them,
25882 # especially as we might pass files found there to a mingw objdump,
25883 # which wouldn't understand a cygwinified path. Ahh.
25884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25885 else
25886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25887 fi
25888 ;;
25889 pw32*)
25890 # pw32 DLLs use 'pw' prefix rather than 'lib'
25891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25892 ;;
25893 esac
25894 ;;
25895
25896 *)
25897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25898 ;;
25899 esac
25900 dynamic_linker='Win32 ld.exe'
25901 # FIXME: first we should search . and the directory the executable is in
25902 shlibpath_var=PATH
25903 ;;
25904
25905darwin* | rhapsody*)
25906 dynamic_linker="$host_os dyld"
25907 version_type=darwin
25908 need_lib_prefix=no
25909 need_version=no
25910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25911 soname_spec='${libname}${release}${major}$shared_ext'
25912 shlibpath_overrides_runpath=yes
25913 shlibpath_var=DYLD_LIBRARY_PATH
25914 shrext_cmds='.dylib'
25915 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25916 if test "$GCC" = yes; then
25917 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"`
25918 else
25919 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25920 fi
25921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25922 ;;
25923
25924dgux*)
25925 version_type=linux
25926 need_lib_prefix=no
25927 need_version=no
25928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25929 soname_spec='${libname}${release}${shared_ext}$major'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 ;;
25932
25933freebsd1*)
25934 dynamic_linker=no
25935 ;;
25936
25937kfreebsd*-gnu)
25938 version_type=linux
25939 need_lib_prefix=no
25940 need_version=no
25941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25942 soname_spec='${libname}${release}${shared_ext}$major'
25943 shlibpath_var=LD_LIBRARY_PATH
25944 shlibpath_overrides_runpath=no
25945 hardcode_into_libs=yes
25946 dynamic_linker='GNU ld.so'
25947 ;;
25948
25949freebsd* | dragonfly*)
25950 # DragonFly does not have aout. When/if they implement a new
25951 # versioning mechanism, adjust this.
25952 if test -x /usr/bin/objformat; then
25953 objformat=`/usr/bin/objformat`
25954 else
25955 case $host_os in
25956 freebsd[123]*) objformat=aout ;;
25957 *) objformat=elf ;;
25958 esac
25959 fi
25960 version_type=freebsd-$objformat
25961 case $version_type in
25962 freebsd-elf*)
25963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25964 need_version=no
25965 need_lib_prefix=no
25966 ;;
25967 freebsd-*)
25968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25969 need_version=yes
25970 ;;
25971 esac
25972 shlibpath_var=LD_LIBRARY_PATH
25973 case $host_os in
25974 freebsd2*)
25975 shlibpath_overrides_runpath=yes
25976 ;;
25977 freebsd3.[01]* | freebsdelf3.[01]*)
25978 shlibpath_overrides_runpath=yes
25979 hardcode_into_libs=yes
25980 ;;
25981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25983 shlibpath_overrides_runpath=no
25984 hardcode_into_libs=yes
25985 ;;
25986 freebsd*) # from 4.6 on
25987 shlibpath_overrides_runpath=yes
25988 hardcode_into_libs=yes
25989 ;;
25990 esac
25991 ;;
25992
25993gnu*)
25994 version_type=linux
25995 need_lib_prefix=no
25996 need_version=no
25997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 shlibpath_var=LD_LIBRARY_PATH
26000 hardcode_into_libs=yes
26001 ;;
26002
26003hpux9* | hpux10* | hpux11*)
26004 # Give a soname corresponding to the major version so that dld.sl refuses to
26005 # link against other versions.
26006 version_type=sunos
26007 need_lib_prefix=no
26008 need_version=no
26009 case $host_cpu in
26010 ia64*)
26011 shrext_cmds='.so'
26012 hardcode_into_libs=yes
26013 dynamic_linker="$host_os dld.so"
26014 shlibpath_var=LD_LIBRARY_PATH
26015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26017 soname_spec='${libname}${release}${shared_ext}$major'
26018 if test "X$HPUX_IA64_MODE" = X32; then
26019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26020 else
26021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26022 fi
26023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26024 ;;
26025 hppa*64*)
26026 shrext_cmds='.sl'
26027 hardcode_into_libs=yes
26028 dynamic_linker="$host_os dld.sl"
26029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032 soname_spec='${libname}${release}${shared_ext}$major'
26033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26035 ;;
26036 *)
26037 shrext_cmds='.sl'
26038 dynamic_linker="$host_os dld.sl"
26039 shlibpath_var=SHLIB_PATH
26040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26042 soname_spec='${libname}${release}${shared_ext}$major'
26043 ;;
26044 esac
26045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26046 postinstall_cmds='chmod 555 $lib'
26047 ;;
26048
26049interix3*)
26050 version_type=linux
26051 need_lib_prefix=no
26052 need_version=no
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26056 shlibpath_var=LD_LIBRARY_PATH
26057 shlibpath_overrides_runpath=no
26058 hardcode_into_libs=yes
26059 ;;
26060
26061irix5* | irix6* | nonstopux*)
26062 case $host_os in
26063 nonstopux*) version_type=nonstopux ;;
26064 *)
26065 if test "$lt_cv_prog_gnu_ld" = yes; then
26066 version_type=linux
26067 else
26068 version_type=irix
26069 fi ;;
26070 esac
26071 need_lib_prefix=no
26072 need_version=no
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26075 case $host_os in
26076 irix5* | nonstopux*)
26077 libsuff= shlibsuff=
26078 ;;
26079 *)
26080 case $LD in # libtool.m4 will add one of these switches to LD
26081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26082 libsuff= shlibsuff= libmagic=32-bit;;
26083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26084 libsuff=32 shlibsuff=N32 libmagic=N32;;
26085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26087 *) libsuff= shlibsuff= libmagic=never-match;;
26088 esac
26089 ;;
26090 esac
26091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26092 shlibpath_overrides_runpath=no
26093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26095 hardcode_into_libs=yes
26096 ;;
26097
26098# No shared lib support for Linux oldld, aout, or coff.
26099linux*oldld* | linux*aout* | linux*coff*)
26100 dynamic_linker=no
26101 ;;
26102
26103# This must be Linux ELF.
26104linux*)
26105 version_type=linux
26106 need_lib_prefix=no
26107 need_version=no
26108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26109 soname_spec='${libname}${release}${shared_ext}$major'
26110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26111 shlibpath_var=LD_LIBRARY_PATH
26112 shlibpath_overrides_runpath=no
26113 # This implies no fast_install, which is unacceptable.
26114 # Some rework will be needed to allow for fast_install
26115 # before this can be enabled.
26116 hardcode_into_libs=yes
26117
26118 # Append ld.so.conf contents to the search path
26119 if test -f /etc/ld.so.conf; then
26120 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' ' '`
26121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26122 fi
26123
26124 # We used to test for /lib/ld.so.1 and disable shared libraries on
26125 # powerpc, because MkLinux only supported shared libraries with the
26126 # GNU dynamic linker. Since this was broken with cross compilers,
26127 # most powerpc-linux boxes support dynamic linking these days and
26128 # people can always --disable-shared, the test was removed, and we
26129 # assume the GNU/Linux dynamic linker is in use.
26130 dynamic_linker='GNU/Linux ld.so'
26131 ;;
26132
26133knetbsd*-gnu)
26134 version_type=linux
26135 need_lib_prefix=no
26136 need_version=no
26137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26138 soname_spec='${libname}${release}${shared_ext}$major'
26139 shlibpath_var=LD_LIBRARY_PATH
26140 shlibpath_overrides_runpath=no
26141 hardcode_into_libs=yes
26142 dynamic_linker='GNU ld.so'
26143 ;;
26144
26145netbsd*)
26146 version_type=sunos
26147 need_lib_prefix=no
26148 need_version=no
26149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26152 dynamic_linker='NetBSD (a.out) ld.so'
26153 else
26154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26155 soname_spec='${libname}${release}${shared_ext}$major'
26156 dynamic_linker='NetBSD ld.elf_so'
26157 fi
26158 shlibpath_var=LD_LIBRARY_PATH
26159 shlibpath_overrides_runpath=yes
26160 hardcode_into_libs=yes
26161 ;;
26162
26163newsos6)
26164 version_type=linux
26165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 shlibpath_overrides_runpath=yes
26168 ;;
26169
26170nto-qnx*)
26171 version_type=linux
26172 need_lib_prefix=no
26173 need_version=no
26174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26175 soname_spec='${libname}${release}${shared_ext}$major'
26176 shlibpath_var=LD_LIBRARY_PATH
26177 shlibpath_overrides_runpath=yes
26178 ;;
26179
26180openbsd*)
26181 version_type=sunos
26182 sys_lib_dlsearch_path_spec="/usr/lib"
26183 need_lib_prefix=no
26184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26185 case $host_os in
26186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26187 *) need_version=no ;;
26188 esac
26189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26191 shlibpath_var=LD_LIBRARY_PATH
26192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26193 case $host_os in
26194 openbsd2.[89] | openbsd2.[89].*)
26195 shlibpath_overrides_runpath=no
26196 ;;
26197 *)
26198 shlibpath_overrides_runpath=yes
26199 ;;
26200 esac
26201 else
26202 shlibpath_overrides_runpath=yes
26203 fi
26204 ;;
26205
26206os2*)
26207 libname_spec='$name'
26208 shrext_cmds=".dll"
26209 need_lib_prefix=no
26210 library_names_spec='$libname${shared_ext} $libname.a'
26211 dynamic_linker='OS/2 ld.exe'
26212 shlibpath_var=LIBPATH
26213 ;;
26214
26215osf3* | osf4* | osf5*)
26216 version_type=osf
26217 need_lib_prefix=no
26218 need_version=no
26219 soname_spec='${libname}${release}${shared_ext}$major'
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 shlibpath_var=LD_LIBRARY_PATH
26222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26224 ;;
26225
26226solaris*)
26227 version_type=linux
26228 need_lib_prefix=no
26229 need_version=no
26230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26231 soname_spec='${libname}${release}${shared_ext}$major'
26232 shlibpath_var=LD_LIBRARY_PATH
26233 shlibpath_overrides_runpath=yes
26234 hardcode_into_libs=yes
26235 # ldd complains unless libraries are executable
26236 postinstall_cmds='chmod +x $lib'
26237 ;;
26238
26239sunos4*)
26240 version_type=sunos
26241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26243 shlibpath_var=LD_LIBRARY_PATH
26244 shlibpath_overrides_runpath=yes
26245 if test "$with_gnu_ld" = yes; then
26246 need_lib_prefix=no
26247 fi
26248 need_version=yes
26249 ;;
26250
26251sysv4 | sysv4.3*)
26252 version_type=linux
26253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26254 soname_spec='${libname}${release}${shared_ext}$major'
26255 shlibpath_var=LD_LIBRARY_PATH
26256 case $host_vendor in
26257 sni)
26258 shlibpath_overrides_runpath=no
26259 need_lib_prefix=no
26260 export_dynamic_flag_spec='${wl}-Blargedynsym'
26261 runpath_var=LD_RUN_PATH
26262 ;;
26263 siemens)
26264 need_lib_prefix=no
26265 ;;
26266 motorola)
26267 need_lib_prefix=no
26268 need_version=no
26269 shlibpath_overrides_runpath=no
26270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26271 ;;
26272 esac
26273 ;;
26274
26275sysv4*MP*)
26276 if test -d /usr/nec ;then
26277 version_type=linux
26278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26279 soname_spec='$libname${shared_ext}.$major'
26280 shlibpath_var=LD_LIBRARY_PATH
26281 fi
26282 ;;
26283
26284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26285 version_type=freebsd-elf
26286 need_lib_prefix=no
26287 need_version=no
26288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26289 soname_spec='${libname}${release}${shared_ext}$major'
26290 shlibpath_var=LD_LIBRARY_PATH
26291 hardcode_into_libs=yes
26292 if test "$with_gnu_ld" = yes; then
26293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26294 shlibpath_overrides_runpath=no
26295 else
26296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26297 shlibpath_overrides_runpath=yes
26298 case $host_os in
26299 sco3.2v5*)
26300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26301 ;;
26302 esac
26303 fi
26304 sys_lib_dlsearch_path_spec='/usr/lib'
26305 ;;
26306
26307uts4*)
26308 version_type=linux
26309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26310 soname_spec='${libname}${release}${shared_ext}$major'
26311 shlibpath_var=LD_LIBRARY_PATH
26312 ;;
26313
26314*)
26315 dynamic_linker=no
26316 ;;
26317esac
26318{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26319echo "${ECHO_T}$dynamic_linker" >&6; }
26320test "$dynamic_linker" = no && can_build_shared=no
26321
26322variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26323if test "$GCC" = yes; then
26324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26325fi
26326
26327{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26328echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26329hardcode_action_GCJ=
26330if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26331 test -n "$runpath_var_GCJ" || \
26332 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26333
26334 # We can hardcode non-existant directories.
26335 if test "$hardcode_direct_GCJ" != no &&
26336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26337 # have to relink, otherwise we might link with an installed library
26338 # when we should be linking with a yet-to-be-installed one
26339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26340 test "$hardcode_minus_L_GCJ" != no; then
26341 # Linking always hardcodes the temporary library directory.
26342 hardcode_action_GCJ=relink
26343 else
26344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26345 hardcode_action_GCJ=immediate
26346 fi
26347else
26348 # We cannot hardcode anything, or else we can only hardcode existing
26349 # directories.
26350 hardcode_action_GCJ=unsupported
26351fi
26352{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26353echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26354
26355if test "$hardcode_action_GCJ" = relink; then
26356 # Fast installation is not supported
26357 enable_fast_install=no
26358elif test "$shlibpath_overrides_runpath" = yes ||
26359 test "$enable_shared" = no; then
26360 # Fast installation is not necessary
26361 enable_fast_install=needless
26362fi
26363
26364
26365# The else clause should only fire when bootstrapping the
26366# libtool distribution, otherwise you forgot to ship ltmain.sh
26367# with your package, and you will get complaints that there are
26368# no rules to generate ltmain.sh.
26369if test -f "$ltmain"; then
26370 # See if we are running on zsh, and set the options which allow our commands through
26371 # without removal of \ escapes.
26372 if test -n "${ZSH_VERSION+set}" ; then
26373 setopt NO_GLOB_SUBST
26374 fi
26375 # Now quote all the things that may contain metacharacters while being
26376 # careful not to overquote the AC_SUBSTed values. We take copies of the
26377 # variables and quote the copies for generation of the libtool script.
26378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26379 SED SHELL STRIP \
26380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26382 deplibs_check_method reload_flag reload_cmds need_locks \
26383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26384 lt_cv_sys_global_symbol_to_c_name_address \
26385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26386 old_postinstall_cmds old_postuninstall_cmds \
26387 compiler_GCJ \
26388 CC_GCJ \
26389 LD_GCJ \
26390 lt_prog_compiler_wl_GCJ \
26391 lt_prog_compiler_pic_GCJ \
26392 lt_prog_compiler_static_GCJ \
26393 lt_prog_compiler_no_builtin_flag_GCJ \
26394 export_dynamic_flag_spec_GCJ \
26395 thread_safe_flag_spec_GCJ \
26396 whole_archive_flag_spec_GCJ \
26397 enable_shared_with_static_runtimes_GCJ \
26398 old_archive_cmds_GCJ \
26399 old_archive_from_new_cmds_GCJ \
26400 predep_objects_GCJ \
26401 postdep_objects_GCJ \
26402 predeps_GCJ \
26403 postdeps_GCJ \
26404 compiler_lib_search_path_GCJ \
26405 archive_cmds_GCJ \
26406 archive_expsym_cmds_GCJ \
26407 postinstall_cmds_GCJ \
26408 postuninstall_cmds_GCJ \
26409 old_archive_from_expsyms_cmds_GCJ \
26410 allow_undefined_flag_GCJ \
26411 no_undefined_flag_GCJ \
26412 export_symbols_cmds_GCJ \
26413 hardcode_libdir_flag_spec_GCJ \
26414 hardcode_libdir_flag_spec_ld_GCJ \
26415 hardcode_libdir_separator_GCJ \
26416 hardcode_automatic_GCJ \
26417 module_cmds_GCJ \
26418 module_expsym_cmds_GCJ \
26419 lt_cv_prog_compiler_c_o_GCJ \
26420 exclude_expsyms_GCJ \
26421 include_expsyms_GCJ; do
26422
26423 case $var in
26424 old_archive_cmds_GCJ | \
26425 old_archive_from_new_cmds_GCJ | \
26426 archive_cmds_GCJ | \
26427 archive_expsym_cmds_GCJ | \
26428 module_cmds_GCJ | \
26429 module_expsym_cmds_GCJ | \
26430 old_archive_from_expsyms_cmds_GCJ | \
26431 export_symbols_cmds_GCJ | \
26432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26433 postinstall_cmds | postuninstall_cmds | \
26434 old_postinstall_cmds | old_postuninstall_cmds | \
26435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26436 # Double-quote double-evaled strings.
26437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26438 ;;
26439 *)
26440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26441 ;;
26442 esac
26443 done
26444
26445 case $lt_echo in
26446 *'\$0 --fallback-echo"')
26447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26448 ;;
26449 esac
26450
26451cfgfile="$ofile"
26452
26453 cat <<__EOF__ >> "$cfgfile"
26454# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26455
26456# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26457
26458# Shell to use when invoking shell scripts.
26459SHELL=$lt_SHELL
26460
26461# Whether or not to build shared libraries.
26462build_libtool_libs=$enable_shared
26463
26464# Whether or not to build static libraries.
26465build_old_libs=$enable_static
26466
26467# Whether or not to add -lc for building shared libraries.
26468build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26469
26470# Whether or not to disallow shared libs when runtime libs are static
26471allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26472
26473# Whether or not to optimize for fast installation.
26474fast_install=$enable_fast_install
26475
26476# The host system.
26477host_alias=$host_alias
26478host=$host
26479host_os=$host_os
26480
26481# The build system.
26482build_alias=$build_alias
26483build=$build
26484build_os=$build_os
26485
26486# An echo program that does not interpret backslashes.
26487echo=$lt_echo
26488
26489# The archiver.
26490AR=$lt_AR
26491AR_FLAGS=$lt_AR_FLAGS
26492
26493# A C compiler.
26494LTCC=$lt_LTCC
26495
26496# LTCC compiler flags.
26497LTCFLAGS=$lt_LTCFLAGS
26498
26499# A language-specific compiler.
26500CC=$lt_compiler_GCJ
26501
26502# Is the compiler the GNU C compiler?
26503with_gcc=$GCC_GCJ
26504
26505# An ERE matcher.
26506EGREP=$lt_EGREP
26507
26508# The linker used to build libraries.
26509LD=$lt_LD_GCJ
26510
26511# Whether we need hard or soft links.
26512LN_S=$lt_LN_S
26513
26514# A BSD-compatible nm program.
26515NM=$lt_NM
26516
26517# A symbol stripping program
26518STRIP=$lt_STRIP
26519
26520# Used to examine libraries when file_magic_cmd begins "file"
26521MAGIC_CMD=$MAGIC_CMD
26522
26523# Used on cygwin: DLL creation program.
26524DLLTOOL="$DLLTOOL"
26525
26526# Used on cygwin: object dumper.
26527OBJDUMP="$OBJDUMP"
26528
26529# Used on cygwin: assembler.
26530AS="$AS"
26531
26532# The name of the directory that contains temporary libtool files.
26533objdir=$objdir
26534
26535# How to create reloadable object files.
26536reload_flag=$lt_reload_flag
26537reload_cmds=$lt_reload_cmds
26538
26539# How to pass a linker flag through the compiler.
26540wl=$lt_lt_prog_compiler_wl_GCJ
26541
26542# Object file suffix (normally "o").
26543objext="$ac_objext"
26544
26545# Old archive suffix (normally "a").
26546libext="$libext"
26547
26548# Shared library suffix (normally ".so").
26549shrext_cmds='$shrext_cmds'
26550
26551# Executable file suffix (normally "").
26552exeext="$exeext"
26553
26554# Additional compiler flags for building library objects.
26555pic_flag=$lt_lt_prog_compiler_pic_GCJ
26556pic_mode=$pic_mode
26557
26558# What is the maximum length of a command?
26559max_cmd_len=$lt_cv_sys_max_cmd_len
26560
26561# Does compiler simultaneously support -c and -o options?
26562compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26563
26564# Must we lock files when doing compilation?
26565need_locks=$lt_need_locks
26566
26567# Do we need the lib prefix for modules?
26568need_lib_prefix=$need_lib_prefix
26569
26570# Do we need a version for libraries?
26571need_version=$need_version
26572
26573# Whether dlopen is supported.
26574dlopen_support=$enable_dlopen
26575
26576# Whether dlopen of programs is supported.
26577dlopen_self=$enable_dlopen_self
26578
26579# Whether dlopen of statically linked programs is supported.
26580dlopen_self_static=$enable_dlopen_self_static
26581
26582# Compiler flag to prevent dynamic linking.
26583link_static_flag=$lt_lt_prog_compiler_static_GCJ
26584
26585# Compiler flag to turn off builtin functions.
26586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26587
26588# Compiler flag to allow reflexive dlopens.
26589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26590
26591# Compiler flag to generate shared objects directly from archives.
26592whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26593
26594# Compiler flag to generate thread-safe objects.
26595thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26596
26597# Library versioning type.
26598version_type=$version_type
26599
26600# Format of library name prefix.
26601libname_spec=$lt_libname_spec
26602
26603# List of archive names. First name is the real one, the rest are links.
26604# The last name is the one that the linker finds with -lNAME.
26605library_names_spec=$lt_library_names_spec
26606
26607# The coded name of the library, if different from the real name.
26608soname_spec=$lt_soname_spec
26609
26610# Commands used to build and install an old-style archive.
26611RANLIB=$lt_RANLIB
26612old_archive_cmds=$lt_old_archive_cmds_GCJ
26613old_postinstall_cmds=$lt_old_postinstall_cmds
26614old_postuninstall_cmds=$lt_old_postuninstall_cmds
26615
26616# Create an old-style archive from a shared archive.
26617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26618
26619# Create a temporary old-style archive to link instead of a shared archive.
26620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26621
26622# Commands used to build and install a shared archive.
26623archive_cmds=$lt_archive_cmds_GCJ
26624archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26625postinstall_cmds=$lt_postinstall_cmds
26626postuninstall_cmds=$lt_postuninstall_cmds
26627
26628# Commands used to build a loadable module (assumed same as above if empty)
26629module_cmds=$lt_module_cmds_GCJ
26630module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26631
26632# Commands to strip libraries.
26633old_striplib=$lt_old_striplib
26634striplib=$lt_striplib
26635
26636# Dependencies to place before the objects being linked to create a
26637# shared library.
26638predep_objects=$lt_predep_objects_GCJ
26639
26640# Dependencies to place after the objects being linked to create a
26641# shared library.
26642postdep_objects=$lt_postdep_objects_GCJ
26643
26644# Dependencies to place before the objects being linked to create a
26645# shared library.
26646predeps=$lt_predeps_GCJ
26647
26648# Dependencies to place after the objects being linked to create a
26649# shared library.
26650postdeps=$lt_postdeps_GCJ
26651
26652# The library search path used internally by the compiler when linking
26653# a shared library.
26654compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26655
26656# Method to check whether dependent libraries are shared objects.
26657deplibs_check_method=$lt_deplibs_check_method
26658
26659# Command to use when deplibs_check_method == file_magic.
26660file_magic_cmd=$lt_file_magic_cmd
26661
26662# Flag that allows shared libraries with undefined symbols to be built.
26663allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26664
26665# Flag that forces no undefined symbols.
26666no_undefined_flag=$lt_no_undefined_flag_GCJ
26667
26668# Commands used to finish a libtool library installation in a directory.
26669finish_cmds=$lt_finish_cmds
26670
26671# Same as above, but a single script fragment to be evaled but not shown.
26672finish_eval=$lt_finish_eval
26673
26674# Take the output of nm and produce a listing of raw symbols and C names.
26675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26676
26677# Transform the output of nm in a proper C declaration
26678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26679
26680# Transform the output of nm in a C name address pair
26681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26682
26683# This is the shared library runtime path variable.
26684runpath_var=$runpath_var
26685
26686# This is the shared library path variable.
26687shlibpath_var=$shlibpath_var
26688
26689# Is shlibpath searched before the hard-coded library search path?
26690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26691
26692# How to hardcode a shared library path into an executable.
26693hardcode_action=$hardcode_action_GCJ
26694
26695# Whether we should hardcode library paths into libraries.
26696hardcode_into_libs=$hardcode_into_libs
26697
26698# Flag to hardcode \$libdir into a binary during linking.
26699# This must work even if \$libdir does not exist.
26700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26701
26702# If ld is used when linking, flag to hardcode \$libdir into
26703# a binary during linking. This must work even if \$libdir does
26704# not exist.
26705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26706
26707# Whether we need a single -rpath flag with a separated argument.
26708hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26709
26710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26711# resulting binary.
26712hardcode_direct=$hardcode_direct_GCJ
26713
26714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26715# resulting binary.
26716hardcode_minus_L=$hardcode_minus_L_GCJ
26717
26718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26719# the resulting binary.
26720hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26721
26722# Set to yes if building a shared library automatically hardcodes DIR into the library
26723# and all subsequent libraries and executables linked against it.
26724hardcode_automatic=$hardcode_automatic_GCJ
26725
26726# Variables whose values should be saved in libtool wrapper scripts and
26727# restored at relink time.
26728variables_saved_for_relink="$variables_saved_for_relink"
26729
26730# Whether libtool must link a program against all its dependency libraries.
26731link_all_deplibs=$link_all_deplibs_GCJ
26732
26733# Compile-time system search path for libraries
26734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26735
26736# Run-time system search path for libraries
26737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26738
26739# Fix the shell variable \$srcfile for the compiler.
26740fix_srcfile_path="$fix_srcfile_path_GCJ"
26741
26742# Set to yes if exported symbols are required.
26743always_export_symbols=$always_export_symbols_GCJ
26744
26745# The commands to list exported symbols.
26746export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26747
26748# The commands to extract the exported symbol list from a shared archive.
26749extract_expsyms_cmds=$lt_extract_expsyms_cmds
26750
26751# Symbols that should not be listed in the preloaded symbols.
26752exclude_expsyms=$lt_exclude_expsyms_GCJ
26753
26754# Symbols that must always be exported.
26755include_expsyms=$lt_include_expsyms_GCJ
26756
26757# ### END LIBTOOL TAG CONFIG: $tagname
26758
26759__EOF__
26760
26761
26762else
26763 # If there is no Makefile yet, we rely on a make rule to execute
26764 # `config.status --recheck' to rerun these tests and create the
26765 # libtool script then.
26766 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26767 if test -f "$ltmain_in"; then
26768 test -f Makefile && make "$ltmain"
26769 fi
26770fi
26771
26772
26773ac_ext=c
26774ac_cpp='$CPP $CPPFLAGS'
26775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26777ac_compiler_gnu=$ac_cv_c_compiler_gnu
26778
26779CC="$lt_save_CC"
26780
26781 else
26782 tagname=""
26783 fi
26784 ;;
26785
26786 RC)
26787 ac_ext=c
26788ac_cpp='$CPP $CPPFLAGS'
26789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26791ac_compiler_gnu=$ac_cv_c_compiler_gnu
26792
26793
26794# Source file extension for RC test sources.
26795ac_ext=rc
26796
26797# Object file extension for compiled RC test sources.
26798objext=o
26799objext_RC=$objext
26800
26801# Code to be used in simple compile tests
26802lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26803
26804# Code to be used in simple link tests
26805lt_simple_link_test_code="$lt_simple_compile_test_code"
26806
26807# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26808
26809# If no C compiler was specified, use CC.
26810LTCC=${LTCC-"$CC"}
26811
26812# If no C compiler flags were specified, use CFLAGS.
26813LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26814
26815# Allow CC to be a program name with arguments.
26816compiler=$CC
26817
26818
26819# save warnings/boilerplate of simple test code
26820ac_outfile=conftest.$ac_objext
26821printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26823_lt_compiler_boilerplate=`cat conftest.err`
26824$rm conftest*
26825
26826ac_outfile=conftest.$ac_objext
26827printf "$lt_simple_link_test_code" >conftest.$ac_ext
26828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26829_lt_linker_boilerplate=`cat conftest.err`
26830$rm conftest*
26831
26832
26833# Allow CC to be a program name with arguments.
26834lt_save_CC="$CC"
26835CC=${RC-"windres"}
26836compiler=$CC
26837compiler_RC=$CC
26838for cc_temp in $compiler""; do
26839 case $cc_temp in
26840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26842 \-*) ;;
26843 *) break;;
26844 esac
26845done
26846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26847
26848lt_cv_prog_compiler_c_o_RC=yes
26849
26850# The else clause should only fire when bootstrapping the
26851# libtool distribution, otherwise you forgot to ship ltmain.sh
26852# with your package, and you will get complaints that there are
26853# no rules to generate ltmain.sh.
26854if test -f "$ltmain"; then
26855 # See if we are running on zsh, and set the options which allow our commands through
26856 # without removal of \ escapes.
26857 if test -n "${ZSH_VERSION+set}" ; then
26858 setopt NO_GLOB_SUBST
26859 fi
26860 # Now quote all the things that may contain metacharacters while being
26861 # careful not to overquote the AC_SUBSTed values. We take copies of the
26862 # variables and quote the copies for generation of the libtool script.
26863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26864 SED SHELL STRIP \
26865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26867 deplibs_check_method reload_flag reload_cmds need_locks \
26868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26869 lt_cv_sys_global_symbol_to_c_name_address \
26870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26871 old_postinstall_cmds old_postuninstall_cmds \
26872 compiler_RC \
26873 CC_RC \
26874 LD_RC \
26875 lt_prog_compiler_wl_RC \
26876 lt_prog_compiler_pic_RC \
26877 lt_prog_compiler_static_RC \
26878 lt_prog_compiler_no_builtin_flag_RC \
26879 export_dynamic_flag_spec_RC \
26880 thread_safe_flag_spec_RC \
26881 whole_archive_flag_spec_RC \
26882 enable_shared_with_static_runtimes_RC \
26883 old_archive_cmds_RC \
26884 old_archive_from_new_cmds_RC \
26885 predep_objects_RC \
26886 postdep_objects_RC \
26887 predeps_RC \
26888 postdeps_RC \
26889 compiler_lib_search_path_RC \
26890 archive_cmds_RC \
26891 archive_expsym_cmds_RC \
26892 postinstall_cmds_RC \
26893 postuninstall_cmds_RC \
26894 old_archive_from_expsyms_cmds_RC \
26895 allow_undefined_flag_RC \
26896 no_undefined_flag_RC \
26897 export_symbols_cmds_RC \
26898 hardcode_libdir_flag_spec_RC \
26899 hardcode_libdir_flag_spec_ld_RC \
26900 hardcode_libdir_separator_RC \
26901 hardcode_automatic_RC \
26902 module_cmds_RC \
26903 module_expsym_cmds_RC \
26904 lt_cv_prog_compiler_c_o_RC \
26905 exclude_expsyms_RC \
26906 include_expsyms_RC; do
26907
26908 case $var in
26909 old_archive_cmds_RC | \
26910 old_archive_from_new_cmds_RC | \
26911 archive_cmds_RC | \
26912 archive_expsym_cmds_RC | \
26913 module_cmds_RC | \
26914 module_expsym_cmds_RC | \
26915 old_archive_from_expsyms_cmds_RC | \
26916 export_symbols_cmds_RC | \
26917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26918 postinstall_cmds | postuninstall_cmds | \
26919 old_postinstall_cmds | old_postuninstall_cmds | \
26920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26921 # Double-quote double-evaled strings.
26922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26923 ;;
26924 *)
26925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26926 ;;
26927 esac
26928 done
26929
26930 case $lt_echo in
26931 *'\$0 --fallback-echo"')
26932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26933 ;;
26934 esac
26935
26936cfgfile="$ofile"
26937
26938 cat <<__EOF__ >> "$cfgfile"
26939# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26940
26941# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26942
26943# Shell to use when invoking shell scripts.
26944SHELL=$lt_SHELL
26945
26946# Whether or not to build shared libraries.
26947build_libtool_libs=$enable_shared
26948
26949# Whether or not to build static libraries.
26950build_old_libs=$enable_static
26951
26952# Whether or not to add -lc for building shared libraries.
26953build_libtool_need_lc=$archive_cmds_need_lc_RC
26954
26955# Whether or not to disallow shared libs when runtime libs are static
26956allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26957
26958# Whether or not to optimize for fast installation.
26959fast_install=$enable_fast_install
26960
26961# The host system.
26962host_alias=$host_alias
26963host=$host
26964host_os=$host_os
26965
26966# The build system.
26967build_alias=$build_alias
26968build=$build
26969build_os=$build_os
26970
26971# An echo program that does not interpret backslashes.
26972echo=$lt_echo
26973
26974# The archiver.
26975AR=$lt_AR
26976AR_FLAGS=$lt_AR_FLAGS
26977
26978# A C compiler.
26979LTCC=$lt_LTCC
26980
26981# LTCC compiler flags.
26982LTCFLAGS=$lt_LTCFLAGS
26983
26984# A language-specific compiler.
26985CC=$lt_compiler_RC
26986
26987# Is the compiler the GNU C compiler?
26988with_gcc=$GCC_RC
26989
26990# An ERE matcher.
26991EGREP=$lt_EGREP
26992
26993# The linker used to build libraries.
26994LD=$lt_LD_RC
26995
26996# Whether we need hard or soft links.
26997LN_S=$lt_LN_S
26998
26999# A BSD-compatible nm program.
27000NM=$lt_NM
27001
27002# A symbol stripping program
27003STRIP=$lt_STRIP
27004
27005# Used to examine libraries when file_magic_cmd begins "file"
27006MAGIC_CMD=$MAGIC_CMD
27007
27008# Used on cygwin: DLL creation program.
27009DLLTOOL="$DLLTOOL"
27010
27011# Used on cygwin: object dumper.
27012OBJDUMP="$OBJDUMP"
27013
27014# Used on cygwin: assembler.
27015AS="$AS"
27016
27017# The name of the directory that contains temporary libtool files.
27018objdir=$objdir
27019
27020# How to create reloadable object files.
27021reload_flag=$lt_reload_flag
27022reload_cmds=$lt_reload_cmds
27023
27024# How to pass a linker flag through the compiler.
27025wl=$lt_lt_prog_compiler_wl_RC
27026
27027# Object file suffix (normally "o").
27028objext="$ac_objext"
27029
27030# Old archive suffix (normally "a").
27031libext="$libext"
27032
27033# Shared library suffix (normally ".so").
27034shrext_cmds='$shrext_cmds'
27035
27036# Executable file suffix (normally "").
27037exeext="$exeext"
27038
27039# Additional compiler flags for building library objects.
27040pic_flag=$lt_lt_prog_compiler_pic_RC
27041pic_mode=$pic_mode
27042
27043# What is the maximum length of a command?
27044max_cmd_len=$lt_cv_sys_max_cmd_len
27045
27046# Does compiler simultaneously support -c and -o options?
27047compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27048
27049# Must we lock files when doing compilation?
27050need_locks=$lt_need_locks
27051
27052# Do we need the lib prefix for modules?
27053need_lib_prefix=$need_lib_prefix
27054
27055# Do we need a version for libraries?
27056need_version=$need_version
27057
27058# Whether dlopen is supported.
27059dlopen_support=$enable_dlopen
27060
27061# Whether dlopen of programs is supported.
27062dlopen_self=$enable_dlopen_self
27063
27064# Whether dlopen of statically linked programs is supported.
27065dlopen_self_static=$enable_dlopen_self_static
27066
27067# Compiler flag to prevent dynamic linking.
27068link_static_flag=$lt_lt_prog_compiler_static_RC
27069
27070# Compiler flag to turn off builtin functions.
27071no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27072
27073# Compiler flag to allow reflexive dlopens.
27074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27075
27076# Compiler flag to generate shared objects directly from archives.
27077whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27078
27079# Compiler flag to generate thread-safe objects.
27080thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27081
27082# Library versioning type.
27083version_type=$version_type
27084
27085# Format of library name prefix.
27086libname_spec=$lt_libname_spec
27087
27088# List of archive names. First name is the real one, the rest are links.
27089# The last name is the one that the linker finds with -lNAME.
27090library_names_spec=$lt_library_names_spec
27091
27092# The coded name of the library, if different from the real name.
27093soname_spec=$lt_soname_spec
27094
27095# Commands used to build and install an old-style archive.
27096RANLIB=$lt_RANLIB
27097old_archive_cmds=$lt_old_archive_cmds_RC
27098old_postinstall_cmds=$lt_old_postinstall_cmds
27099old_postuninstall_cmds=$lt_old_postuninstall_cmds
27100
27101# Create an old-style archive from a shared archive.
27102old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27103
27104# Create a temporary old-style archive to link instead of a shared archive.
27105old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27106
27107# Commands used to build and install a shared archive.
27108archive_cmds=$lt_archive_cmds_RC
27109archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27110postinstall_cmds=$lt_postinstall_cmds
27111postuninstall_cmds=$lt_postuninstall_cmds
27112
27113# Commands used to build a loadable module (assumed same as above if empty)
27114module_cmds=$lt_module_cmds_RC
27115module_expsym_cmds=$lt_module_expsym_cmds_RC
27116
27117# Commands to strip libraries.
27118old_striplib=$lt_old_striplib
27119striplib=$lt_striplib
27120
27121# Dependencies to place before the objects being linked to create a
27122# shared library.
27123predep_objects=$lt_predep_objects_RC
27124
27125# Dependencies to place after the objects being linked to create a
27126# shared library.
27127postdep_objects=$lt_postdep_objects_RC
27128
27129# Dependencies to place before the objects being linked to create a
27130# shared library.
27131predeps=$lt_predeps_RC
27132
27133# Dependencies to place after the objects being linked to create a
27134# shared library.
27135postdeps=$lt_postdeps_RC
27136
27137# The library search path used internally by the compiler when linking
27138# a shared library.
27139compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27140
27141# Method to check whether dependent libraries are shared objects.
27142deplibs_check_method=$lt_deplibs_check_method
27143
27144# Command to use when deplibs_check_method == file_magic.
27145file_magic_cmd=$lt_file_magic_cmd
27146
27147# Flag that allows shared libraries with undefined symbols to be built.
27148allow_undefined_flag=$lt_allow_undefined_flag_RC
27149
27150# Flag that forces no undefined symbols.
27151no_undefined_flag=$lt_no_undefined_flag_RC
27152
27153# Commands used to finish a libtool library installation in a directory.
27154finish_cmds=$lt_finish_cmds
27155
27156# Same as above, but a single script fragment to be evaled but not shown.
27157finish_eval=$lt_finish_eval
27158
27159# Take the output of nm and produce a listing of raw symbols and C names.
27160global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27161
27162# Transform the output of nm in a proper C declaration
27163global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27164
27165# Transform the output of nm in a C name address pair
27166global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27167
27168# This is the shared library runtime path variable.
27169runpath_var=$runpath_var
27170
27171# This is the shared library path variable.
27172shlibpath_var=$shlibpath_var
27173
27174# Is shlibpath searched before the hard-coded library search path?
27175shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27176
27177# How to hardcode a shared library path into an executable.
27178hardcode_action=$hardcode_action_RC
27179
27180# Whether we should hardcode library paths into libraries.
27181hardcode_into_libs=$hardcode_into_libs
27182
27183# Flag to hardcode \$libdir into a binary during linking.
27184# This must work even if \$libdir does not exist.
27185hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27186
27187# If ld is used when linking, flag to hardcode \$libdir into
27188# a binary during linking. This must work even if \$libdir does
27189# not exist.
27190hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27191
27192# Whether we need a single -rpath flag with a separated argument.
27193hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27194
27195# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27196# resulting binary.
27197hardcode_direct=$hardcode_direct_RC
27198
27199# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27200# resulting binary.
27201hardcode_minus_L=$hardcode_minus_L_RC
27202
27203# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27204# the resulting binary.
27205hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27206
27207# Set to yes if building a shared library automatically hardcodes DIR into the library
27208# and all subsequent libraries and executables linked against it.
27209hardcode_automatic=$hardcode_automatic_RC
27210
27211# Variables whose values should be saved in libtool wrapper scripts and
27212# restored at relink time.
27213variables_saved_for_relink="$variables_saved_for_relink"
27214
27215# Whether libtool must link a program against all its dependency libraries.
27216link_all_deplibs=$link_all_deplibs_RC
27217
27218# Compile-time system search path for libraries
27219sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27220
27221# Run-time system search path for libraries
27222sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27223
27224# Fix the shell variable \$srcfile for the compiler.
27225fix_srcfile_path="$fix_srcfile_path_RC"
27226
27227# Set to yes if exported symbols are required.
27228always_export_symbols=$always_export_symbols_RC
27229
27230# The commands to list exported symbols.
27231export_symbols_cmds=$lt_export_symbols_cmds_RC
27232
27233# The commands to extract the exported symbol list from a shared archive.
27234extract_expsyms_cmds=$lt_extract_expsyms_cmds
27235
27236# Symbols that should not be listed in the preloaded symbols.
27237exclude_expsyms=$lt_exclude_expsyms_RC
27238
27239# Symbols that must always be exported.
27240include_expsyms=$lt_include_expsyms_RC
27241
27242# ### END LIBTOOL TAG CONFIG: $tagname
27243
27244__EOF__
27245
27246
27247else
27248 # If there is no Makefile yet, we rely on a make rule to execute
27249 # `config.status --recheck' to rerun these tests and create the
27250 # libtool script then.
27251 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27252 if test -f "$ltmain_in"; then
27253 test -f Makefile && make "$ltmain"
27254 fi
27255fi
27256
27257
27258ac_ext=c
27259ac_cpp='$CPP $CPPFLAGS'
27260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27262ac_compiler_gnu=$ac_cv_c_compiler_gnu
27263
27264CC="$lt_save_CC"
27265
27266 ;;
27267
27268 *)
27269 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27270echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27271 { (exit 1); exit 1; }; }
27272 ;;
27273 esac
27274
27275 # Append the new tag name to the list of available tags.
27276 if test -n "$tagname" ; then
27277 available_tags="$available_tags $tagname"
27278 fi
27279 fi
27280 done
27281 IFS="$lt_save_ifs"
27282
27283 # Now substitute the updated list of available tags.
27284 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27285 mv "${ofile}T" "$ofile"
27286 chmod +x "$ofile"
27287 else
27288 rm -f "${ofile}T"
27289 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27290echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27291 { (exit 1); exit 1; }; }
27292 fi
27293fi
27294
27295
27296
27297# This can be used to rebuild libtool when needed
27298LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27299
27300# Always use our own libtool.
27301LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27302
27303# Prevent multiple expansion
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325if test "$lt_cv_dlopen_self" = "yes" ; then
27326
27327cat >>confdefs.h <<\_ACEOF
27328#define CAN_DLOPEN_SELF 1
27329_ACEOF
27330
27331fi
27332
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000027333
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027334if test "$WITH_LLVMGCCDIR" = "default" ; then
27335 LLVMGCC="llvm-gcc${EXEEXT}"
27336 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027337 LLVMGCCCOMMAND="$LLVMGCC"
27338 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027339 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27340
27341 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27342
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027343 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27344set dummy $LLVMGCC; ac_word=$2
27345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27347if test "${ac_cv_path_LLVMGCC+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349else
27350 case $LLVMGCC in
27351 [\\/]* | ?:[\\/]*)
27352 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27353 ;;
27354 *)
27355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27356for as_dir in $PATH
27357do
27358 IFS=$as_save_IFS
27359 test -z "$as_dir" && as_dir=.
27360 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027361 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 +000027362 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27364 break 2
27365 fi
27366done
27367done
27368IFS=$as_save_IFS
27369
27370 ;;
27371esac
27372fi
27373LLVMGCC=$ac_cv_path_LLVMGCC
27374if test -n "$LLVMGCC"; then
27375 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27376echo "${ECHO_T}$LLVMGCC" >&6; }
27377else
27378 { echo "$as_me:$LINENO: result: no" >&5
27379echo "${ECHO_T}no" >&6; }
27380fi
27381
27382
27383 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27384set dummy $LLVMGXX; ac_word=$2
27385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27387if test "${ac_cv_path_LLVMGXX+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389else
27390 case $LLVMGXX in
27391 [\\/]* | ?:[\\/]*)
27392 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27393 ;;
27394 *)
27395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396for as_dir in $PATH
27397do
27398 IFS=$as_save_IFS
27399 test -z "$as_dir" && as_dir=.
27400 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027401 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 +000027402 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27404 break 2
27405 fi
27406done
27407done
27408IFS=$as_save_IFS
27409
27410 ;;
27411esac
27412fi
27413LLVMGXX=$ac_cv_path_LLVMGXX
27414if test -n "$LLVMGXX"; then
27415 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27416echo "${ECHO_T}$LLVMGXX" >&6; }
27417else
27418 { echo "$as_me:$LINENO: result: no" >&5
27419echo "${ECHO_T}no" >&6; }
27420fi
27421
27422
27423else
Devang Pateld84ba7b2007-12-04 22:54:47 +000027424 if test -z "$LLVMGCC"; then
27425 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027426 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027427 fi
27428 if test -z "$LLVMGXX"; then
27429 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027430 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027431 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027432
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027433 LLVMGCC=$LLVMGCC
27434
27435 LLVMGXX=$LLVMGXX
27436
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027437 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27438
27439 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27440
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027441fi
27442
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027443
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027444{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27445echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27446
27447ICC=no
27448IXX=no
27449case $CC in
27450 icc*|icpc*)
27451 ICC=yes
27452 IXX=yes
27453 ;;
27454 *)
27455 ;;
27456esac
27457
27458if test "$GCC" != "yes" && test "$ICC" != "yes"
27459then
27460 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27461echo "$as_me: error: gcc|icc required but not found" >&2;}
27462 { (exit 1); exit 1; }; }
27463fi
27464
27465if test "$GXX" != "yes" && test "$IXX" != "yes"
27466then
27467 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27468echo "$as_me: error: g++|icc required but not found" >&2;}
27469 { (exit 1); exit 1; }; }
27470fi
27471
27472if test "$GCC" = "yes"
27473then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027474 cat >conftest.$ac_ext <<_ACEOF
27475#if !defined(__GNUC__) || __GNUC__ < 3
27476#error Unsupported GCC version
27477#endif
27478
27479_ACEOF
27480rm -f conftest.$ac_objext
27481if { (ac_try="$ac_compile"
27482case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_compile") 2>conftest.er1
27488 ac_status=$?
27489 grep -v '^ *+' conftest.er1 >conftest.err
27490 rm -f conftest.er1
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027493 (exit $ac_status); } &&
27494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27495 { (case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498esac
27499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_try") 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest.$ac_objext'
27505 { (case "(($ac_try" in
27506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507 *) ac_try_echo=$ac_try;;
27508esac
27509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510 (eval "$ac_try") 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027514 :
27515else
27516 echo "$as_me: failed program was:" >&5
27517sed 's/^/| /' conftest.$ac_ext >&5
27518
27519 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027520echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27521 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027522fi
27523
27524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027525fi
27526
27527if test -z "$llvm_cv_gnu_make_command"
27528then
27529 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27530echo "$as_me: error: GNU Make required but not found" >&2;}
27531 { (exit 1); exit 1; }; }
27532fi
27533
27534{ echo "$as_me:$LINENO: result: ok" >&5
27535echo "${ECHO_T}ok" >&6; }
27536
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000027537
27538
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027539{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27540echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27541if test "${ac_cv_lib_m_sin+set}" = set; then
27542 echo $ECHO_N "(cached) $ECHO_C" >&6
27543else
27544 ac_check_lib_save_LIBS=$LIBS
27545LIBS="-lm $LIBS"
27546cat >conftest.$ac_ext <<_ACEOF
27547/* confdefs.h. */
27548_ACEOF
27549cat confdefs.h >>conftest.$ac_ext
27550cat >>conftest.$ac_ext <<_ACEOF
27551/* end confdefs.h. */
27552
27553/* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27556#ifdef __cplusplus
27557extern "C"
27558#endif
27559char sin ();
27560int
27561main ()
27562{
27563return sin ();
27564 ;
27565 return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext conftest$ac_exeext
27569if { (ac_try="$ac_link"
27570case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573esac
27574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583 { (case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586esac
27587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_try") 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; } &&
27592 { ac_try='test -s conftest$ac_exeext'
27593 { (case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27596esac
27597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598 (eval "$ac_try") 2>&5
27599 ac_status=$?
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027602 ac_cv_lib_m_sin=yes
27603else
27604 echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
27607 ac_cv_lib_m_sin=no
27608fi
27609
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027610rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027611 conftest$ac_exeext conftest.$ac_ext
27612LIBS=$ac_check_lib_save_LIBS
27613fi
27614{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27615echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27616if test $ac_cv_lib_m_sin = yes; then
27617 cat >>confdefs.h <<_ACEOF
27618#define HAVE_LIBM 1
27619_ACEOF
27620
27621 LIBS="-lm $LIBS"
27622
27623fi
27624
27625if test "$llvm_cv_os_type" = "MingW" ; then
27626
27627{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27628echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27629if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27631else
27632 ac_check_lib_save_LIBS=$LIBS
27633LIBS="-limagehlp $LIBS"
27634cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640
27641
27642int
27643main ()
27644{
27645return main ();
27646 ;
27647 return 0;
27648}
27649_ACEOF
27650rm -f conftest.$ac_objext conftest$ac_exeext
27651if { (ac_try="$ac_link"
27652case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
27658 ac_status=$?
27659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027684 ac_cv_lib_imagehlp_main=yes
27685else
27686 echo "$as_me: failed program was:" >&5
27687sed 's/^/| /' conftest.$ac_ext >&5
27688
27689 ac_cv_lib_imagehlp_main=no
27690fi
27691
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027692rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027693 conftest$ac_exeext conftest.$ac_ext
27694LIBS=$ac_check_lib_save_LIBS
27695fi
27696{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27697echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27698if test $ac_cv_lib_imagehlp_main = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700#define HAVE_LIBIMAGEHLP 1
27701_ACEOF
27702
27703 LIBS="-limagehlp $LIBS"
27704
27705fi
27706
27707
27708{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27709echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27710if test "${ac_cv_lib_psapi_main+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712else
27713 ac_check_lib_save_LIBS=$LIBS
27714LIBS="-lpsapi $LIBS"
27715cat >conftest.$ac_ext <<_ACEOF
27716/* confdefs.h. */
27717_ACEOF
27718cat confdefs.h >>conftest.$ac_ext
27719cat >>conftest.$ac_ext <<_ACEOF
27720/* end confdefs.h. */
27721
27722
27723int
27724main ()
27725{
27726return main ();
27727 ;
27728 return 0;
27729}
27730_ACEOF
27731rm -f conftest.$ac_objext conftest$ac_exeext
27732if { (ac_try="$ac_link"
27733case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27736esac
27737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_link") 2>conftest.er1
27739 ac_status=$?
27740 grep -v '^ *+' conftest.er1 >conftest.err
27741 rm -f conftest.er1
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746 { (case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27749esac
27750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_try") 2>&5
27752 ac_status=$?
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); }; } &&
27755 { ac_try='test -s conftest$ac_exeext'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27759esac
27760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27762 ac_status=$?
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027765 ac_cv_lib_psapi_main=yes
27766else
27767 echo "$as_me: failed program was:" >&5
27768sed 's/^/| /' conftest.$ac_ext >&5
27769
27770 ac_cv_lib_psapi_main=no
27771fi
27772
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027773rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027774 conftest$ac_exeext conftest.$ac_ext
27775LIBS=$ac_check_lib_save_LIBS
27776fi
27777{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27778echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27779if test $ac_cv_lib_psapi_main = yes; then
27780 cat >>confdefs.h <<_ACEOF
27781#define HAVE_LIBPSAPI 1
27782_ACEOF
27783
27784 LIBS="-lpsapi $LIBS"
27785
27786fi
27787
27788fi
27789
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027790{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27791echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27792if test "${ac_cv_search_dlopen+set}" = set; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27794else
27795 ac_func_search_save_LIBS=$LIBS
27796cat >conftest.$ac_ext <<_ACEOF
27797/* confdefs.h. */
27798_ACEOF
27799cat confdefs.h >>conftest.$ac_ext
27800cat >>conftest.$ac_ext <<_ACEOF
27801/* end confdefs.h. */
27802
27803/* Override any GCC internal prototype to avoid an error.
27804 Use char because int might match the return type of a GCC
27805 builtin and then its argument prototype would still apply. */
27806#ifdef __cplusplus
27807extern "C"
27808#endif
27809char dlopen ();
27810int
27811main ()
27812{
27813return dlopen ();
27814 ;
27815 return 0;
27816}
27817_ACEOF
27818for ac_lib in '' dl; do
27819 if test -z "$ac_lib"; then
27820 ac_res="none required"
27821 else
27822 ac_res=-l$ac_lib
27823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27824 fi
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826if { (ac_try="$ac_link"
27827case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27830esac
27831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_link") 2>conftest.er1
27833 ac_status=$?
27834 grep -v '^ *+' conftest.er1 >conftest.err
27835 rm -f conftest.er1
27836 cat conftest.err >&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027838 (exit $ac_status); } &&
27839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27840 { (case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27843esac
27844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_try") 2>&5
27846 ac_status=$?
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; } &&
27849 { ac_try='test -s conftest$ac_exeext'
27850 { (case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27853esac
27854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_try") 2>&5
27856 ac_status=$?
27857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027859 ac_cv_search_dlopen=$ac_res
27860else
27861 echo "$as_me: failed program was:" >&5
27862sed 's/^/| /' conftest.$ac_ext >&5
27863
27864
27865fi
27866
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027867rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027868 conftest$ac_exeext
27869 if test "${ac_cv_search_dlopen+set}" = set; then
27870 break
27871fi
27872done
27873if test "${ac_cv_search_dlopen+set}" = set; then
27874 :
27875else
27876 ac_cv_search_dlopen=no
27877fi
27878rm conftest.$ac_ext
27879LIBS=$ac_func_search_save_LIBS
27880fi
27881{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27882echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27883ac_res=$ac_cv_search_dlopen
27884if test "$ac_res" != no; then
27885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27886
27887cat >>confdefs.h <<\_ACEOF
27888#define HAVE_DLOPEN 1
27889_ACEOF
27890
27891else
27892 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27893echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27894fi
27895
27896
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027897if test "$llvm_cv_enable_libffi" = "yes" ; then
27898 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000027899echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27900if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027901 echo $ECHO_N "(cached) $ECHO_C" >&6
27902else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027903 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027904cat >conftest.$ac_ext <<_ACEOF
27905/* confdefs.h. */
27906_ACEOF
27907cat confdefs.h >>conftest.$ac_ext
27908cat >>conftest.$ac_ext <<_ACEOF
27909/* end confdefs.h. */
27910
27911/* Override any GCC internal prototype to avoid an error.
27912 Use char because int might match the return type of a GCC
27913 builtin and then its argument prototype would still apply. */
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917char ffi_call ();
27918int
27919main ()
27920{
27921return ffi_call ();
27922 ;
27923 return 0;
27924}
27925_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027926for ac_lib in '' ffi; do
27927 if test -z "$ac_lib"; then
27928 ac_res="none required"
27929 else
27930 ac_res=-l$ac_lib
27931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27932 fi
27933 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027934if { (ac_try="$ac_link"
27935case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27938esac
27939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_link") 2>conftest.er1
27941 ac_status=$?
27942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027946 (exit $ac_status); } &&
27947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27948 { (case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27951esac
27952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_try") 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; } &&
27957 { ac_try='test -s conftest$ac_exeext'
27958 { (case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27961esac
27962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_try") 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027967 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027968else
27969 echo "$as_me: failed program was:" >&5
27970sed 's/^/| /' conftest.$ac_ext >&5
27971
Nick Lewycky6c58a402009-04-13 04:26:27 +000027972
Nick Lewycky0235b622009-02-04 06:27:44 +000027973fi
27974
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027975rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027976 conftest$ac_exeext
27977 if test "${ac_cv_search_ffi_call+set}" = set; then
27978 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027979fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027980done
27981if test "${ac_cv_search_ffi_call+set}" = set; then
27982 :
27983else
27984 ac_cv_search_ffi_call=no
27985fi
27986rm conftest.$ac_ext
27987LIBS=$ac_func_search_save_LIBS
27988fi
27989{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27990echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27991ac_res=$ac_cv_search_ffi_call
27992if test "$ac_res" != no; then
27993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27994
27995cat >>confdefs.h <<\_ACEOF
27996#define HAVE_FFI_CALL 1
27997_ACEOF
27998
Nick Lewycky0235b622009-02-04 06:27:44 +000027999else
28000 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28001echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28002fi
28003
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000028004fi
Nick Lewycky0235b622009-02-04 06:27:44 +000028005
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028006{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28007echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28008if test "${ac_cv_search_mallinfo+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28010else
28011 ac_func_search_save_LIBS=$LIBS
28012cat >conftest.$ac_ext <<_ACEOF
28013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
28018
28019/* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
28022#ifdef __cplusplus
28023extern "C"
28024#endif
28025char mallinfo ();
28026int
28027main ()
28028{
28029return mallinfo ();
28030 ;
28031 return 0;
28032}
28033_ACEOF
28034for ac_lib in '' malloc; do
28035 if test -z "$ac_lib"; then
28036 ac_res="none required"
28037 else
28038 ac_res=-l$ac_lib
28039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28040 fi
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042if { (ac_try="$ac_link"
28043case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_link") 2>conftest.er1
28049 ac_status=$?
28050 grep -v '^ *+' conftest.er1 >conftest.err
28051 rm -f conftest.er1
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028054 (exit $ac_status); } &&
28055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056 { (case "(($ac_try" in
28057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058 *) ac_try_echo=$ac_try;;
28059esac
28060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061 (eval "$ac_try") 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest$ac_exeext'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028075 ac_cv_search_mallinfo=$ac_res
28076else
28077 echo "$as_me: failed program was:" >&5
28078sed 's/^/| /' conftest.$ac_ext >&5
28079
28080
28081fi
28082
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028083rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028084 conftest$ac_exeext
28085 if test "${ac_cv_search_mallinfo+set}" = set; then
28086 break
28087fi
28088done
28089if test "${ac_cv_search_mallinfo+set}" = set; then
28090 :
28091else
28092 ac_cv_search_mallinfo=no
28093fi
28094rm conftest.$ac_ext
28095LIBS=$ac_func_search_save_LIBS
28096fi
28097{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28098echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28099ac_res=$ac_cv_search_mallinfo
28100if test "$ac_res" != no; then
28101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28102
28103cat >>confdefs.h <<\_ACEOF
28104#define HAVE_MALLINFO 1
28105_ACEOF
28106
28107fi
28108
28109
28110if test "$ENABLE_THREADS" -eq 1 ; then
28111
28112{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28113echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28114if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117 ac_check_lib_save_LIBS=$LIBS
28118LIBS="-lpthread $LIBS"
28119cat >conftest.$ac_ext <<_ACEOF
28120/* confdefs.h. */
28121_ACEOF
28122cat confdefs.h >>conftest.$ac_ext
28123cat >>conftest.$ac_ext <<_ACEOF
28124/* end confdefs.h. */
28125
28126/* Override any GCC internal prototype to avoid an error.
28127 Use char because int might match the return type of a GCC
28128 builtin and then its argument prototype would still apply. */
28129#ifdef __cplusplus
28130extern "C"
28131#endif
28132char pthread_mutex_init ();
28133int
28134main ()
28135{
28136return pthread_mutex_init ();
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext conftest$ac_exeext
28142if { (ac_try="$ac_link"
28143case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146esac
28147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_link") 2>conftest.er1
28149 ac_status=$?
28150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028154 (exit $ac_status); } &&
28155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28156 { (case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28159esac
28160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_try") 2>&5
28162 ac_status=$?
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest$ac_exeext'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028175 ac_cv_lib_pthread_pthread_mutex_init=yes
28176else
28177 echo "$as_me: failed program was:" >&5
28178sed 's/^/| /' conftest.$ac_ext >&5
28179
28180 ac_cv_lib_pthread_pthread_mutex_init=no
28181fi
28182
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028183rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028184 conftest$ac_exeext conftest.$ac_ext
28185LIBS=$ac_check_lib_save_LIBS
28186fi
28187{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28188echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28189if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28190 cat >>confdefs.h <<_ACEOF
28191#define HAVE_LIBPTHREAD 1
28192_ACEOF
28193
28194 LIBS="-lpthread $LIBS"
28195
28196fi
28197
28198 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28199echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28200if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28201 echo $ECHO_N "(cached) $ECHO_C" >&6
28202else
28203 ac_func_search_save_LIBS=$LIBS
28204cat >conftest.$ac_ext <<_ACEOF
28205/* confdefs.h. */
28206_ACEOF
28207cat confdefs.h >>conftest.$ac_ext
28208cat >>conftest.$ac_ext <<_ACEOF
28209/* end confdefs.h. */
28210
28211/* Override any GCC internal prototype to avoid an error.
28212 Use char because int might match the return type of a GCC
28213 builtin and then its argument prototype would still apply. */
28214#ifdef __cplusplus
28215extern "C"
28216#endif
28217char pthread_mutex_lock ();
28218int
28219main ()
28220{
28221return pthread_mutex_lock ();
28222 ;
28223 return 0;
28224}
28225_ACEOF
28226for ac_lib in '' pthread; do
28227 if test -z "$ac_lib"; then
28228 ac_res="none required"
28229 else
28230 ac_res=-l$ac_lib
28231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28232 fi
28233 rm -f conftest.$ac_objext conftest$ac_exeext
28234if { (ac_try="$ac_link"
28235case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28238esac
28239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_link") 2>conftest.er1
28241 ac_status=$?
28242 grep -v '^ *+' conftest.er1 >conftest.err
28243 rm -f conftest.er1
28244 cat conftest.err >&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028246 (exit $ac_status); } &&
28247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28248 { (case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28251esac
28252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253 (eval "$ac_try") 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; } &&
28257 { ac_try='test -s conftest$ac_exeext'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28261esac
28262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_try") 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028267 ac_cv_search_pthread_mutex_lock=$ac_res
28268else
28269 echo "$as_me: failed program was:" >&5
28270sed 's/^/| /' conftest.$ac_ext >&5
28271
28272
28273fi
28274
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028275rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028276 conftest$ac_exeext
28277 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28278 break
28279fi
28280done
28281if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28282 :
28283else
28284 ac_cv_search_pthread_mutex_lock=no
28285fi
28286rm conftest.$ac_ext
28287LIBS=$ac_func_search_save_LIBS
28288fi
28289{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28290echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28291ac_res=$ac_cv_search_pthread_mutex_lock
28292if test "$ac_res" != no; then
28293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28294
28295cat >>confdefs.h <<\_ACEOF
28296#define HAVE_PTHREAD_MUTEX_LOCK 1
28297_ACEOF
28298
28299fi
28300
Owen Anderson23c36602009-06-16 18:20:20 +000028301 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28302echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28303if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28305else
28306 ac_func_search_save_LIBS=$LIBS
28307cat >conftest.$ac_ext <<_ACEOF
28308/* confdefs.h. */
28309_ACEOF
28310cat confdefs.h >>conftest.$ac_ext
28311cat >>conftest.$ac_ext <<_ACEOF
28312/* end confdefs.h. */
28313
28314/* Override any GCC internal prototype to avoid an error.
28315 Use char because int might match the return type of a GCC
28316 builtin and then its argument prototype would still apply. */
28317#ifdef __cplusplus
28318extern "C"
28319#endif
28320char pthread_rwlock_init ();
28321int
28322main ()
28323{
28324return pthread_rwlock_init ();
28325 ;
28326 return 0;
28327}
28328_ACEOF
28329for ac_lib in '' pthread; do
28330 if test -z "$ac_lib"; then
28331 ac_res="none required"
28332 else
28333 ac_res=-l$ac_lib
28334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28335 fi
28336 rm -f conftest.$ac_objext conftest$ac_exeext
28337if { (ac_try="$ac_link"
28338case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28341esac
28342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_link") 2>conftest.er1
28344 ac_status=$?
28345 grep -v '^ *+' conftest.er1 >conftest.err
28346 rm -f conftest.er1
28347 cat conftest.err >&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } &&
28350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28351 { (case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28354esac
28355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_try") 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; } &&
28360 { ac_try='test -s conftest$ac_exeext'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28364esac
28365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
28367 ac_status=$?
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370 ac_cv_search_pthread_rwlock_init=$ac_res
28371else
28372 echo "$as_me: failed program was:" >&5
28373sed 's/^/| /' conftest.$ac_ext >&5
28374
28375
28376fi
28377
28378rm -f core conftest.err conftest.$ac_objext \
28379 conftest$ac_exeext
28380 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28381 break
28382fi
28383done
28384if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28385 :
28386else
28387 ac_cv_search_pthread_rwlock_init=no
28388fi
28389rm conftest.$ac_ext
28390LIBS=$ac_func_search_save_LIBS
28391fi
28392{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28393echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28394ac_res=$ac_cv_search_pthread_rwlock_init
28395if test "$ac_res" != no; then
28396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28397
28398cat >>confdefs.h <<\_ACEOF
28399#define HAVE_PTHREAD_RWLOCK_INIT 1
28400_ACEOF
28401
28402fi
28403
Owen Andersoncc135af2009-06-25 23:10:26 +000028404 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28405echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28406if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28408else
28409 ac_func_search_save_LIBS=$LIBS
28410cat >conftest.$ac_ext <<_ACEOF
28411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
28416
28417/* Override any GCC internal prototype to avoid an error.
28418 Use char because int might match the return type of a GCC
28419 builtin and then its argument prototype would still apply. */
28420#ifdef __cplusplus
28421extern "C"
28422#endif
28423char pthread_getspecific ();
28424int
28425main ()
28426{
28427return pthread_getspecific ();
28428 ;
28429 return 0;
28430}
28431_ACEOF
28432for ac_lib in '' pthread; do
28433 if test -z "$ac_lib"; then
28434 ac_res="none required"
28435 else
28436 ac_res=-l$ac_lib
28437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28438 fi
28439 rm -f conftest.$ac_objext conftest$ac_exeext
28440if { (ac_try="$ac_link"
28441case "(($ac_try" in
28442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443 *) ac_try_echo=$ac_try;;
28444esac
28445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446 (eval "$ac_link") 2>conftest.er1
28447 ac_status=$?
28448 grep -v '^ *+' conftest.er1 >conftest.err
28449 rm -f conftest.er1
28450 cat conftest.err >&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } &&
28453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28454 { (case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28457esac
28458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_try") 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; } &&
28463 { ac_try='test -s conftest$ac_exeext'
28464 { (case "(($ac_try" in
28465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28466 *) ac_try_echo=$ac_try;;
28467esac
28468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28469 (eval "$ac_try") 2>&5
28470 ac_status=$?
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 ac_cv_search_pthread_getspecific=$ac_res
28474else
28475 echo "$as_me: failed program was:" >&5
28476sed 's/^/| /' conftest.$ac_ext >&5
28477
28478
28479fi
28480
28481rm -f core conftest.err conftest.$ac_objext \
28482 conftest$ac_exeext
28483 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28484 break
28485fi
28486done
28487if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28488 :
28489else
28490 ac_cv_search_pthread_getspecific=no
28491fi
28492rm conftest.$ac_ext
28493LIBS=$ac_func_search_save_LIBS
28494fi
28495{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28496echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28497ac_res=$ac_cv_search_pthread_getspecific
28498if test "$ac_res" != no; then
28499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28500
28501cat >>confdefs.h <<\_ACEOF
28502#define HAVE_PTHREAD_GETSPECIFIC 1
28503_ACEOF
28504
28505fi
28506
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028507fi
28508
28509
28510# Check whether --with-udis86 was given.
28511if test "${with_udis86+set}" = set; then
28512 withval=$with_udis86;
28513 USE_UDIS86=1
28514
28515 case "$withval" in
28516 /usr/lib|yes) ;;
28517 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28518 esac
28519
28520{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28521echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28522if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28524else
28525 ac_check_lib_save_LIBS=$LIBS
28526LIBS="-ludis86 $LIBS"
28527cat >conftest.$ac_ext <<_ACEOF
28528/* confdefs.h. */
28529_ACEOF
28530cat confdefs.h >>conftest.$ac_ext
28531cat >>conftest.$ac_ext <<_ACEOF
28532/* end confdefs.h. */
28533
28534/* Override any GCC internal prototype to avoid an error.
28535 Use char because int might match the return type of a GCC
28536 builtin and then its argument prototype would still apply. */
28537#ifdef __cplusplus
28538extern "C"
28539#endif
28540char ud_init ();
28541int
28542main ()
28543{
28544return ud_init ();
28545 ;
28546 return 0;
28547}
28548_ACEOF
28549rm -f conftest.$ac_objext conftest$ac_exeext
28550if { (ac_try="$ac_link"
28551case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554esac
28555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_link") 2>conftest.er1
28557 ac_status=$?
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564 { (case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567esac
28568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_try") 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest$ac_exeext'
28574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577esac
28578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
28580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028583 ac_cv_lib_udis86_ud_init=yes
28584else
28585 echo "$as_me: failed program was:" >&5
28586sed 's/^/| /' conftest.$ac_ext >&5
28587
28588 ac_cv_lib_udis86_ud_init=no
28589fi
28590
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028591rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028592 conftest$ac_exeext conftest.$ac_ext
28593LIBS=$ac_check_lib_save_LIBS
28594fi
28595{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28596echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28597if test $ac_cv_lib_udis86_ud_init = yes; then
28598 cat >>confdefs.h <<_ACEOF
28599#define HAVE_LIBUDIS86 1
28600_ACEOF
28601
28602 LIBS="-ludis86 $LIBS"
28603
28604else
28605
28606 echo "Error! You need to have libudis86 around."
28607 exit -1
28608
28609fi
28610
28611
28612else
28613 USE_UDIS86=0
28614
28615fi
28616
28617
28618cat >>confdefs.h <<_ACEOF
28619#define USE_UDIS86 $USE_UDIS86
28620_ACEOF
28621
28622
28623
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000028624# Check whether --with-oprofile was given.
28625if test "${with_oprofile+set}" = set; then
28626 withval=$with_oprofile;
28627 USE_OPROFILE=1
28628
28629 case "$withval" in
28630 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28631 *) llvm_cv_oppath="${withval}/lib/oprofile"
28632 CPPFLAGS="-I${withval}/include";;
28633 esac
28634 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28635 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28636echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28637if test "${ac_cv_search_op_open_agent+set}" = set; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28639else
28640 ac_func_search_save_LIBS=$LIBS
28641cat >conftest.$ac_ext <<_ACEOF
28642/* confdefs.h. */
28643_ACEOF
28644cat confdefs.h >>conftest.$ac_ext
28645cat >>conftest.$ac_ext <<_ACEOF
28646/* end confdefs.h. */
28647
28648/* Override any GCC internal prototype to avoid an error.
28649 Use char because int might match the return type of a GCC
28650 builtin and then its argument prototype would still apply. */
28651#ifdef __cplusplus
28652extern "C"
28653#endif
28654char op_open_agent ();
28655int
28656main ()
28657{
28658return op_open_agent ();
28659 ;
28660 return 0;
28661}
28662_ACEOF
28663for ac_lib in '' opagent; do
28664 if test -z "$ac_lib"; then
28665 ac_res="none required"
28666 else
28667 ac_res=-l$ac_lib
28668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28669 fi
28670 rm -f conftest.$ac_objext conftest$ac_exeext
28671if { (ac_try="$ac_link"
28672case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28675esac
28676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_link") 2>conftest.er1
28678 ac_status=$?
28679 grep -v '^ *+' conftest.er1 >conftest.err
28680 rm -f conftest.er1
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685 { (case "(($ac_try" in
28686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687 *) ac_try_echo=$ac_try;;
28688esac
28689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690 (eval "$ac_try") 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698esac
28699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28704 ac_cv_search_op_open_agent=$ac_res
28705else
28706 echo "$as_me: failed program was:" >&5
28707sed 's/^/| /' conftest.$ac_ext >&5
28708
28709
28710fi
28711
28712rm -f core conftest.err conftest.$ac_objext \
28713 conftest$ac_exeext
28714 if test "${ac_cv_search_op_open_agent+set}" = set; then
28715 break
28716fi
28717done
28718if test "${ac_cv_search_op_open_agent+set}" = set; then
28719 :
28720else
28721 ac_cv_search_op_open_agent=no
28722fi
28723rm conftest.$ac_ext
28724LIBS=$ac_func_search_save_LIBS
28725fi
28726{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28727echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28728ac_res=$ac_cv_search_op_open_agent
28729if test "$ac_res" != no; then
28730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28731
28732else
28733
28734 echo "Error! You need to have libopagent around."
28735 exit -1
28736
28737fi
28738
28739 if test "${ac_cv_header_opagent_h+set}" = set; then
28740 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28741echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28742if test "${ac_cv_header_opagent_h+set}" = set; then
28743 echo $ECHO_N "(cached) $ECHO_C" >&6
28744fi
28745{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28746echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28747else
28748 # Is the header compilable?
28749{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28750echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28751cat >conftest.$ac_ext <<_ACEOF
28752/* confdefs.h. */
28753_ACEOF
28754cat confdefs.h >>conftest.$ac_ext
28755cat >>conftest.$ac_ext <<_ACEOF
28756/* end confdefs.h. */
28757$ac_includes_default
28758#include <opagent.h>
28759_ACEOF
28760rm -f conftest.$ac_objext
28761if { (ac_try="$ac_compile"
28762case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_compile") 2>conftest.er1
28768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest.$ac_objext'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ac_header_compiler=yes
28795else
28796 echo "$as_me: failed program was:" >&5
28797sed 's/^/| /' conftest.$ac_ext >&5
28798
28799 ac_header_compiler=no
28800fi
28801
28802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28804echo "${ECHO_T}$ac_header_compiler" >&6; }
28805
28806# Is the header present?
28807{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28808echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28809cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
28815#include <opagent.h>
28816_ACEOF
28817if { (ac_try="$ac_cpp conftest.$ac_ext"
28818case "(($ac_try" in
28819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820 *) ac_try_echo=$ac_try;;
28821esac
28822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28824 ac_status=$?
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } >/dev/null; then
28830 if test -s conftest.err; then
28831 ac_cpp_err=$ac_c_preproc_warn_flag
28832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28833 else
28834 ac_cpp_err=
28835 fi
28836else
28837 ac_cpp_err=yes
28838fi
28839if test -z "$ac_cpp_err"; then
28840 ac_header_preproc=yes
28841else
28842 echo "$as_me: failed program was:" >&5
28843sed 's/^/| /' conftest.$ac_ext >&5
28844
28845 ac_header_preproc=no
28846fi
28847
28848rm -f conftest.err conftest.$ac_ext
28849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28850echo "${ECHO_T}$ac_header_preproc" >&6; }
28851
28852# So? What about this header?
28853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28854 yes:no: )
28855 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28856echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28858echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28859 ac_header_preproc=yes
28860 ;;
28861 no:yes:* )
28862 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28863echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28865echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28867echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28869echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28871echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28872 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28873echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28874 ( cat <<\_ASBOX
28875## ----------------------------------- ##
28876## Report this to llvmbugs@cs.uiuc.edu ##
28877## ----------------------------------- ##
28878_ASBOX
28879 ) | sed "s/^/$as_me: WARNING: /" >&2
28880 ;;
28881esac
28882{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28883echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28884if test "${ac_cv_header_opagent_h+set}" = set; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28886else
28887 ac_cv_header_opagent_h=$ac_header_preproc
28888fi
28889{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28890echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28891
28892fi
28893if test $ac_cv_header_opagent_h = yes; then
28894 :
28895else
28896
28897 echo "Error! You need to have opagent.h around."
28898 exit -1
28899
28900fi
28901
28902
28903
28904else
28905
28906 llvm_cv_old_LIBS="$LIBS"
28907 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28908 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28909echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28910if test "${ac_cv_search_op_open_agent+set}" = set; then
28911 echo $ECHO_N "(cached) $ECHO_C" >&6
28912else
28913 ac_func_search_save_LIBS=$LIBS
28914cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
28920
28921/* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28924#ifdef __cplusplus
28925extern "C"
28926#endif
28927char op_open_agent ();
28928int
28929main ()
28930{
28931return op_open_agent ();
28932 ;
28933 return 0;
28934}
28935_ACEOF
28936for ac_lib in '' opagent; do
28937 if test -z "$ac_lib"; then
28938 ac_res="none required"
28939 else
28940 ac_res=-l$ac_lib
28941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28942 fi
28943 rm -f conftest.$ac_objext conftest$ac_exeext
28944if { (ac_try="$ac_link"
28945case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28948esac
28949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_link") 2>conftest.er1
28951 ac_status=$?
28952 grep -v '^ *+' conftest.er1 >conftest.err
28953 rm -f conftest.er1
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
28957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28958 { (case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_try") 2>&5
28964 ac_status=$?
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; } &&
28967 { ac_try='test -s conftest$ac_exeext'
28968 { (case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28971esac
28972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_try") 2>&5
28974 ac_status=$?
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; }; then
28977 ac_cv_search_op_open_agent=$ac_res
28978else
28979 echo "$as_me: failed program was:" >&5
28980sed 's/^/| /' conftest.$ac_ext >&5
28981
28982
28983fi
28984
28985rm -f core conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext
28987 if test "${ac_cv_search_op_open_agent+set}" = set; then
28988 break
28989fi
28990done
28991if test "${ac_cv_search_op_open_agent+set}" = set; then
28992 :
28993else
28994 ac_cv_search_op_open_agent=no
28995fi
28996rm conftest.$ac_ext
28997LIBS=$ac_func_search_save_LIBS
28998fi
28999{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
29000echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
29001ac_res=$ac_cv_search_op_open_agent
29002if test "$ac_res" != no; then
29003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29004 USE_OPROFILE=1
29005
29006else
29007 LIBS="$llvm_cv_old_LIBS"
29008 USE_OPROFILE=0
29009
29010fi
29011
29012 if test "${ac_cv_header_opagent_h+set}" = set; then
29013 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29014echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29015if test "${ac_cv_header_opagent_h+set}" = set; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29017fi
29018{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29019echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29020else
29021 # Is the header compilable?
29022{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
29023echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
29024cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
29030$ac_includes_default
29031#include <opagent.h>
29032_ACEOF
29033rm -f conftest.$ac_objext
29034if { (ac_try="$ac_compile"
29035case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29038esac
29039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_compile") 2>conftest.er1
29041 ac_status=$?
29042 grep -v '^ *+' conftest.er1 >conftest.err
29043 rm -f conftest.er1
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051esac
29052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053 (eval "$ac_try") 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest.$ac_objext'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061esac
29062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; }; then
29067 ac_header_compiler=yes
29068else
29069 echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
29072 ac_header_compiler=no
29073fi
29074
29075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29077echo "${ECHO_T}$ac_header_compiler" >&6; }
29078
29079# Is the header present?
29080{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
29081echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
29082cat >conftest.$ac_ext <<_ACEOF
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
29088#include <opagent.h>
29089_ACEOF
29090if { (ac_try="$ac_cpp conftest.$ac_ext"
29091case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29094esac
29095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29106 else
29107 ac_cpp_err=
29108 fi
29109else
29110 ac_cpp_err=yes
29111fi
29112if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_header_preproc=no
29119fi
29120
29121rm -f conftest.err conftest.$ac_ext
29122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29123echo "${ECHO_T}$ac_header_preproc" >&6; }
29124
29125# So? What about this header?
29126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29127 yes:no: )
29128 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29129echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29131echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29132 ac_header_preproc=yes
29133 ;;
29134 no:yes:* )
29135 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29136echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29137 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29138echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29139 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29140echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29142echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29144echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29146echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29147 ( cat <<\_ASBOX
29148## ----------------------------------- ##
29149## Report this to llvmbugs@cs.uiuc.edu ##
29150## ----------------------------------- ##
29151_ASBOX
29152 ) | sed "s/^/$as_me: WARNING: /" >&2
29153 ;;
29154esac
29155{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29156echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29157if test "${ac_cv_header_opagent_h+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 ac_cv_header_opagent_h=$ac_header_preproc
29161fi
29162{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29163echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29164
29165fi
29166if test $ac_cv_header_opagent_h = yes; then
29167 :
29168else
29169
29170 LIBS="$llvm_cv_old_LIBS"
29171 USE_OPROFILE=0
29172
29173
29174fi
29175
29176
29177
29178fi
29179
29180
29181cat >>confdefs.h <<_ACEOF
29182#define USE_OPROFILE $USE_OPROFILE
29183_ACEOF
29184
29185
29186
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029187
29188
29189
29190
29191
29192ac_header_dirent=no
29193for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29194 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29195{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29196echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29199else
29200 cat >conftest.$ac_ext <<_ACEOF
29201/* confdefs.h. */
29202_ACEOF
29203cat confdefs.h >>conftest.$ac_ext
29204cat >>conftest.$ac_ext <<_ACEOF
29205/* end confdefs.h. */
29206#include <sys/types.h>
29207#include <$ac_hdr>
29208
29209int
29210main ()
29211{
29212if ((DIR *) 0)
29213return 0;
29214 ;
29215 return 0;
29216}
29217_ACEOF
29218rm -f conftest.$ac_objext
29219if { (ac_try="$ac_compile"
29220case "(($ac_try" in
29221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29222 *) ac_try_echo=$ac_try;;
29223esac
29224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29225 (eval "$ac_compile") 2>conftest.er1
29226 ac_status=$?
29227 grep -v '^ *+' conftest.er1 >conftest.err
29228 rm -f conftest.er1
29229 cat conftest.err >&5
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029231 (exit $ac_status); } &&
29232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29233 { (case "(($ac_try" in
29234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235 *) ac_try_echo=$ac_try;;
29236esac
29237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_try") 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest.$ac_objext'
29243 { (case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_try") 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029252 eval "$as_ac_Header=yes"
29253else
29254 echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 eval "$as_ac_Header=no"
29258fi
29259
29260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261fi
29262ac_res=`eval echo '${'$as_ac_Header'}'`
29263 { echo "$as_me:$LINENO: result: $ac_res" >&5
29264echo "${ECHO_T}$ac_res" >&6; }
29265if test `eval echo '${'$as_ac_Header'}'` = yes; then
29266 cat >>confdefs.h <<_ACEOF
29267#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29268_ACEOF
29269
29270ac_header_dirent=$ac_hdr; break
29271fi
29272
29273done
29274# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29275if test $ac_header_dirent = dirent.h; then
29276 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29277echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29278if test "${ac_cv_search_opendir+set}" = set; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29280else
29281 ac_func_search_save_LIBS=$LIBS
29282cat >conftest.$ac_ext <<_ACEOF
29283/* confdefs.h. */
29284_ACEOF
29285cat confdefs.h >>conftest.$ac_ext
29286cat >>conftest.$ac_ext <<_ACEOF
29287/* end confdefs.h. */
29288
29289/* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
29295char opendir ();
29296int
29297main ()
29298{
29299return opendir ();
29300 ;
29301 return 0;
29302}
29303_ACEOF
29304for ac_lib in '' dir; do
29305 if test -z "$ac_lib"; then
29306 ac_res="none required"
29307 else
29308 ac_res=-l$ac_lib
29309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29310 fi
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312if { (ac_try="$ac_link"
29313case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29316esac
29317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_link") 2>conftest.er1
29319 ac_status=$?
29320 grep -v '^ *+' conftest.er1 >conftest.err
29321 rm -f conftest.er1
29322 cat conftest.err >&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029324 (exit $ac_status); } &&
29325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29326 { (case "(($ac_try" in
29327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29329esac
29330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331 (eval "$ac_try") 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; } &&
29335 { ac_try='test -s conftest$ac_exeext'
29336 { (case "(($ac_try" in
29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29338 *) ac_try_echo=$ac_try;;
29339esac
29340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29341 (eval "$ac_try") 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029345 ac_cv_search_opendir=$ac_res
29346else
29347 echo "$as_me: failed program was:" >&5
29348sed 's/^/| /' conftest.$ac_ext >&5
29349
29350
29351fi
29352
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029353rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029354 conftest$ac_exeext
29355 if test "${ac_cv_search_opendir+set}" = set; then
29356 break
29357fi
29358done
29359if test "${ac_cv_search_opendir+set}" = set; then
29360 :
29361else
29362 ac_cv_search_opendir=no
29363fi
29364rm conftest.$ac_ext
29365LIBS=$ac_func_search_save_LIBS
29366fi
29367{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29368echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29369ac_res=$ac_cv_search_opendir
29370if test "$ac_res" != no; then
29371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29372
29373fi
29374
29375else
29376 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29377echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29378if test "${ac_cv_search_opendir+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29380else
29381 ac_func_search_save_LIBS=$LIBS
29382cat >conftest.$ac_ext <<_ACEOF
29383/* confdefs.h. */
29384_ACEOF
29385cat confdefs.h >>conftest.$ac_ext
29386cat >>conftest.$ac_ext <<_ACEOF
29387/* end confdefs.h. */
29388
29389/* Override any GCC internal prototype to avoid an error.
29390 Use char because int might match the return type of a GCC
29391 builtin and then its argument prototype would still apply. */
29392#ifdef __cplusplus
29393extern "C"
29394#endif
29395char opendir ();
29396int
29397main ()
29398{
29399return opendir ();
29400 ;
29401 return 0;
29402}
29403_ACEOF
29404for ac_lib in '' x; do
29405 if test -z "$ac_lib"; then
29406 ac_res="none required"
29407 else
29408 ac_res=-l$ac_lib
29409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29410 fi
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412if { (ac_try="$ac_link"
29413case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_link") 2>conftest.er1
29419 ac_status=$?
29420 grep -v '^ *+' conftest.er1 >conftest.err
29421 rm -f conftest.er1
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029424 (exit $ac_status); } &&
29425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29426 { (case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29429esac
29430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_try") 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest$ac_exeext'
29436 { (case "(($ac_try" in
29437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29438 *) ac_try_echo=$ac_try;;
29439esac
29440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29441 (eval "$ac_try") 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029445 ac_cv_search_opendir=$ac_res
29446else
29447 echo "$as_me: failed program was:" >&5
29448sed 's/^/| /' conftest.$ac_ext >&5
29449
29450
29451fi
29452
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029453rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029454 conftest$ac_exeext
29455 if test "${ac_cv_search_opendir+set}" = set; then
29456 break
29457fi
29458done
29459if test "${ac_cv_search_opendir+set}" = set; then
29460 :
29461else
29462 ac_cv_search_opendir=no
29463fi
29464rm conftest.$ac_ext
29465LIBS=$ac_func_search_save_LIBS
29466fi
29467{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29468echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29469ac_res=$ac_cv_search_opendir
29470if test "$ac_res" != no; then
29471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29472
29473fi
29474
29475fi
29476
29477{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29478echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29479if test "${ac_cv_header_mmap_anon+set}" = set; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29481else
29482 ac_ext=c
29483ac_cpp='$CPP $CPPFLAGS'
29484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486ac_compiler_gnu=$ac_cv_c_compiler_gnu
29487
29488 cat >conftest.$ac_ext <<_ACEOF
29489/* confdefs.h. */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h. */
29494#include <sys/mman.h>
29495#include <unistd.h>
29496#include <fcntl.h>
29497int
29498main ()
29499{
29500mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29501 ;
29502 return 0;
29503}
29504_ACEOF
29505rm -f conftest.$ac_objext
29506if { (ac_try="$ac_compile"
29507case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29510esac
29511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_compile") 2>conftest.er1
29513 ac_status=$?
29514 grep -v '^ *+' conftest.er1 >conftest.err
29515 rm -f conftest.er1
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029518 (exit $ac_status); } &&
29519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520 { (case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_try") 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29533esac
29534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_try") 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029539 ac_cv_header_mmap_anon=yes
29540else
29541 echo "$as_me: failed program was:" >&5
29542sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ac_cv_header_mmap_anon=no
29545fi
29546
29547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29548 ac_ext=c
29549ac_cpp='$CPP $CPPFLAGS'
29550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29552ac_compiler_gnu=$ac_cv_c_compiler_gnu
29553
29554
29555fi
29556{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29557echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29558if test "$ac_cv_header_mmap_anon" = yes; then
29559
29560cat >>confdefs.h <<\_ACEOF
29561#define HAVE_MMAP_ANONYMOUS 1
29562_ACEOF
29563
29564fi
29565
29566{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29567echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29568if test "${ac_cv_header_stat_broken+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 cat >conftest.$ac_ext <<_ACEOF
29572/* confdefs.h. */
29573_ACEOF
29574cat confdefs.h >>conftest.$ac_ext
29575cat >>conftest.$ac_ext <<_ACEOF
29576/* end confdefs.h. */
29577#include <sys/types.h>
29578#include <sys/stat.h>
29579
29580#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029581# if S_ISBLK (S_IFDIR)
29582You lose.
29583# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029584#endif
29585
29586#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029587# if S_ISBLK (S_IFCHR)
29588You lose.
29589# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029590#endif
29591
29592#if defined S_ISLNK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029593# if S_ISLNK (S_IFREG)
29594You lose.
29595# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029596#endif
29597
29598#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029599# if S_ISSOCK (S_IFREG)
29600You lose.
29601# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029602#endif
29603
29604_ACEOF
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606 $EGREP "You lose" >/dev/null 2>&1; then
29607 ac_cv_header_stat_broken=yes
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029608else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029609 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029610fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029611rm -f conftest*
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029612
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029613fi
29614{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29615echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29616if test $ac_cv_header_stat_broken = yes; then
29617
29618cat >>confdefs.h <<\_ACEOF
29619#define STAT_MACROS_BROKEN 1
29620_ACEOF
29621
29622fi
29623
29624{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29625echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29626if test "${ac_cv_header_stdc+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29628else
29629 cat >conftest.$ac_ext <<_ACEOF
29630/* confdefs.h. */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h. */
29635#include <stdlib.h>
29636#include <stdarg.h>
29637#include <string.h>
29638#include <float.h>
29639
29640int
29641main ()
29642{
29643
29644 ;
29645 return 0;
29646}
29647_ACEOF
29648rm -f conftest.$ac_objext
29649if { (ac_try="$ac_compile"
29650case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29653esac
29654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_compile") 2>conftest.er1
29656 ac_status=$?
29657 grep -v '^ *+' conftest.er1 >conftest.err
29658 rm -f conftest.er1
29659 cat conftest.err >&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029661 (exit $ac_status); } &&
29662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29669 ac_status=$?
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; } &&
29672 { ac_try='test -s conftest.$ac_objext'
29673 { (case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29676esac
29677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_try") 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029682 ac_cv_header_stdc=yes
29683else
29684 echo "$as_me: failed program was:" >&5
29685sed 's/^/| /' conftest.$ac_ext >&5
29686
29687 ac_cv_header_stdc=no
29688fi
29689
29690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691
29692if test $ac_cv_header_stdc = yes; then
29693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29694 cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
29700#include <string.h>
29701
29702_ACEOF
29703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29704 $EGREP "memchr" >/dev/null 2>&1; then
29705 :
29706else
29707 ac_cv_header_stdc=no
29708fi
29709rm -f conftest*
29710
29711fi
29712
29713if test $ac_cv_header_stdc = yes; then
29714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29715 cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
29721#include <stdlib.h>
29722
29723_ACEOF
29724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29725 $EGREP "free" >/dev/null 2>&1; then
29726 :
29727else
29728 ac_cv_header_stdc=no
29729fi
29730rm -f conftest*
29731
29732fi
29733
29734if test $ac_cv_header_stdc = yes; then
29735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29736 if test "$cross_compiling" = yes; then
29737 :
29738else
29739 cat >conftest.$ac_ext <<_ACEOF
29740/* confdefs.h. */
29741_ACEOF
29742cat confdefs.h >>conftest.$ac_ext
29743cat >>conftest.$ac_ext <<_ACEOF
29744/* end confdefs.h. */
29745#include <ctype.h>
29746#include <stdlib.h>
29747#if ((' ' & 0x0FF) == 0x020)
29748# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29749# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29750#else
29751# define ISLOWER(c) \
29752 (('a' <= (c) && (c) <= 'i') \
29753 || ('j' <= (c) && (c) <= 'r') \
29754 || ('s' <= (c) && (c) <= 'z'))
29755# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29756#endif
29757
29758#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29759int
29760main ()
29761{
29762 int i;
29763 for (i = 0; i < 256; i++)
29764 if (XOR (islower (i), ISLOWER (i))
29765 || toupper (i) != TOUPPER (i))
29766 return 2;
29767 return 0;
29768}
29769_ACEOF
29770rm -f conftest$ac_exeext
29771if { (ac_try="$ac_link"
29772case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775esac
29776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_link") 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29781 { (case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_try") 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 :
29791else
29792 echo "$as_me: program exited with status $ac_status" >&5
29793echo "$as_me: failed program was:" >&5
29794sed 's/^/| /' conftest.$ac_ext >&5
29795
29796( exit $ac_status )
29797ac_cv_header_stdc=no
29798fi
29799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29800fi
29801
29802
29803fi
29804fi
29805{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29806echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29807if test $ac_cv_header_stdc = yes; then
29808
29809cat >>confdefs.h <<\_ACEOF
29810#define STDC_HEADERS 1
29811_ACEOF
29812
29813fi
29814
29815{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29816echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29817if test "${ac_cv_header_sys_wait_h+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29819else
29820 cat >conftest.$ac_ext <<_ACEOF
29821/* confdefs.h. */
29822_ACEOF
29823cat confdefs.h >>conftest.$ac_ext
29824cat >>conftest.$ac_ext <<_ACEOF
29825/* end confdefs.h. */
29826#include <sys/types.h>
29827#include <sys/wait.h>
29828#ifndef WEXITSTATUS
29829# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29830#endif
29831#ifndef WIFEXITED
29832# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29833#endif
29834
29835int
29836main ()
29837{
29838 int s;
29839 wait (&s);
29840 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29841 ;
29842 return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext
29846if { (ac_try="$ac_compile"
29847case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
29853 ac_status=$?
29854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029858 (exit $ac_status); } &&
29859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29860 { (case "(($ac_try" in
29861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862 *) ac_try_echo=$ac_try;;
29863esac
29864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29865 (eval "$ac_try") 2>&5
29866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest.$ac_objext'
29870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29873esac
29874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029879 ac_cv_header_sys_wait_h=yes
29880else
29881 echo "$as_me: failed program was:" >&5
29882sed 's/^/| /' conftest.$ac_ext >&5
29883
29884 ac_cv_header_sys_wait_h=no
29885fi
29886
29887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888fi
29889{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29890echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29891if test $ac_cv_header_sys_wait_h = yes; then
29892
29893cat >>confdefs.h <<\_ACEOF
29894#define HAVE_SYS_WAIT_H 1
29895_ACEOF
29896
29897fi
29898
29899{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29900echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29901if test "${ac_cv_header_time+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
29905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
29910#include <sys/types.h>
29911#include <sys/time.h>
29912#include <time.h>
29913
29914int
29915main ()
29916{
29917if ((struct tm *) 0)
29918return 0;
29919 ;
29920 return 0;
29921}
29922_ACEOF
29923rm -f conftest.$ac_objext
29924if { (ac_try="$ac_compile"
29925case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29928esac
29929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
29931 ac_status=$?
29932 grep -v '^ *+' conftest.er1 >conftest.err
29933 rm -f conftest.er1
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29941esac
29942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29944 ac_status=$?
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
29954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029957 ac_cv_header_time=yes
29958else
29959 echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
29962 ac_cv_header_time=no
29963fi
29964
29965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966fi
29967{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29968echo "${ECHO_T}$ac_cv_header_time" >&6; }
29969if test $ac_cv_header_time = yes; then
29970
29971cat >>confdefs.h <<\_ACEOF
29972#define TIME_WITH_SYS_TIME 1
29973_ACEOF
29974
29975fi
29976
29977
29978
29979
29980
29981
29982
29983
29984for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29985do
29986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29992fi
29993ac_res=`eval echo '${'$as_ac_Header'}'`
29994 { echo "$as_me:$LINENO: result: $ac_res" >&5
29995echo "${ECHO_T}$ac_res" >&6; }
29996else
29997 # Is the header compilable?
29998{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30000cat >conftest.$ac_ext <<_ACEOF
30001/* confdefs.h. */
30002_ACEOF
30003cat confdefs.h >>conftest.$ac_ext
30004cat >>conftest.$ac_ext <<_ACEOF
30005/* end confdefs.h. */
30006$ac_includes_default
30007#include <$ac_header>
30008_ACEOF
30009rm -f conftest.$ac_objext
30010if { (ac_try="$ac_compile"
30011case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30014esac
30015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_compile") 2>conftest.er1
30017 ac_status=$?
30018 grep -v '^ *+' conftest.er1 >conftest.err
30019 rm -f conftest.er1
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030022 (exit $ac_status); } &&
30023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30024 { (case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30027esac
30028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_try") 2>&5
30030 ac_status=$?
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); }; } &&
30033 { ac_try='test -s conftest.$ac_objext'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037esac
30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030043 ac_header_compiler=yes
30044else
30045 echo "$as_me: failed program was:" >&5
30046sed 's/^/| /' conftest.$ac_ext >&5
30047
30048 ac_header_compiler=no
30049fi
30050
30051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30053echo "${ECHO_T}$ac_header_compiler" >&6; }
30054
30055# Is the header present?
30056{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30058cat >conftest.$ac_ext <<_ACEOF
30059/* confdefs.h. */
30060_ACEOF
30061cat confdefs.h >>conftest.$ac_ext
30062cat >>conftest.$ac_ext <<_ACEOF
30063/* end confdefs.h. */
30064#include <$ac_header>
30065_ACEOF
30066if { (ac_try="$ac_cpp conftest.$ac_ext"
30067case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070esac
30071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30073 ac_status=$?
30074 grep -v '^ *+' conftest.er1 >conftest.err
30075 rm -f conftest.er1
30076 cat conftest.err >&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030078 (exit $ac_status); } >/dev/null; then
30079 if test -s conftest.err; then
30080 ac_cpp_err=$ac_c_preproc_warn_flag
30081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30082 else
30083 ac_cpp_err=
30084 fi
30085else
30086 ac_cpp_err=yes
30087fi
30088if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030089 ac_header_preproc=yes
30090else
30091 echo "$as_me: failed program was:" >&5
30092sed 's/^/| /' conftest.$ac_ext >&5
30093
30094 ac_header_preproc=no
30095fi
30096
30097rm -f conftest.err conftest.$ac_ext
30098{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30099echo "${ECHO_T}$ac_header_preproc" >&6; }
30100
30101# So? What about this header?
30102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30103 yes:no: )
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30108 ac_header_preproc=yes
30109 ;;
30110 no:yes:* )
30111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30123 ( cat <<\_ASBOX
30124## ----------------------------------- ##
30125## Report this to llvmbugs@cs.uiuc.edu ##
30126## ----------------------------------- ##
30127_ASBOX
30128 ) | sed "s/^/$as_me: WARNING: /" >&2
30129 ;;
30130esac
30131{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30135else
30136 eval "$as_ac_Header=\$ac_header_preproc"
30137fi
30138ac_res=`eval echo '${'$as_ac_Header'}'`
30139 { echo "$as_me:$LINENO: result: $ac_res" >&5
30140echo "${ECHO_T}$ac_res" >&6; }
30141
30142fi
30143if test `eval echo '${'$as_ac_Header'}'` = yes; then
30144 cat >>confdefs.h <<_ACEOF
30145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30146_ACEOF
30147
30148fi
30149
30150done
30151
30152
30153
30154
30155
30156
30157
Douglas Gregor6230bee2009-05-18 17:21:34 +000030158for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030159do
30160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166fi
30167ac_res=`eval echo '${'$as_ac_Header'}'`
30168 { echo "$as_me:$LINENO: result: $ac_res" >&5
30169echo "${ECHO_T}$ac_res" >&6; }
30170else
30171 # Is the header compilable?
30172{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30174cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180$ac_includes_default
30181#include <$ac_header>
30182_ACEOF
30183rm -f conftest.$ac_objext
30184if { (ac_try="$ac_compile"
30185case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
30191 ac_status=$?
30192 grep -v '^ *+' conftest.er1 >conftest.err
30193 rm -f conftest.er1
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201esac
30202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030217 ac_header_compiler=yes
30218else
30219 echo "$as_me: failed program was:" >&5
30220sed 's/^/| /' conftest.$ac_ext >&5
30221
30222 ac_header_compiler=no
30223fi
30224
30225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30227echo "${ECHO_T}$ac_header_compiler" >&6; }
30228
30229# Is the header present?
30230{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30232cat >conftest.$ac_ext <<_ACEOF
30233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
30238#include <$ac_header>
30239_ACEOF
30240if { (ac_try="$ac_cpp conftest.$ac_ext"
30241case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30244esac
30245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30247 ac_status=$?
30248 grep -v '^ *+' conftest.er1 >conftest.err
30249 rm -f conftest.er1
30250 cat conftest.err >&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030252 (exit $ac_status); } >/dev/null; then
30253 if test -s conftest.err; then
30254 ac_cpp_err=$ac_c_preproc_warn_flag
30255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30256 else
30257 ac_cpp_err=
30258 fi
30259else
30260 ac_cpp_err=yes
30261fi
30262if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030263 ac_header_preproc=yes
30264else
30265 echo "$as_me: failed program was:" >&5
30266sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ac_header_preproc=no
30269fi
30270
30271rm -f conftest.err conftest.$ac_ext
30272{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273echo "${ECHO_T}$ac_header_preproc" >&6; }
30274
30275# So? What about this header?
30276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277 yes:no: )
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30283 ;;
30284 no:yes:* )
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30297 ( cat <<\_ASBOX
30298## ----------------------------------- ##
30299## Report this to llvmbugs@cs.uiuc.edu ##
30300## ----------------------------------- ##
30301_ASBOX
30302 ) | sed "s/^/$as_me: WARNING: /" >&2
30303 ;;
30304esac
30305{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308 echo $ECHO_N "(cached) $ECHO_C" >&6
30309else
30310 eval "$as_ac_Header=\$ac_header_preproc"
30311fi
30312ac_res=`eval echo '${'$as_ac_Header'}'`
30313 { echo "$as_me:$LINENO: result: $ac_res" >&5
30314echo "${ECHO_T}$ac_res" >&6; }
30315
30316fi
30317if test `eval echo '${'$as_ac_Header'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30320_ACEOF
30321
30322fi
30323
30324done
30325
30326
Douglas Gregor6230bee2009-05-18 17:21:34 +000030327
30328for ac_header in utime.h windows.h
Reid Spencer096a8142007-08-17 05:45:26 +000030329do
30330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30336fi
30337ac_res=`eval echo '${'$as_ac_Header'}'`
30338 { echo "$as_me:$LINENO: result: $ac_res" >&5
30339echo "${ECHO_T}$ac_res" >&6; }
30340else
30341 # Is the header compilable?
30342{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30344cat >conftest.$ac_ext <<_ACEOF
30345/* confdefs.h. */
30346_ACEOF
30347cat confdefs.h >>conftest.$ac_ext
30348cat >>conftest.$ac_ext <<_ACEOF
30349/* end confdefs.h. */
30350$ac_includes_default
30351#include <$ac_header>
30352_ACEOF
30353rm -f conftest.$ac_objext
30354if { (ac_try="$ac_compile"
30355case "(($ac_try" in
30356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357 *) ac_try_echo=$ac_try;;
30358esac
30359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360 (eval "$ac_compile") 2>conftest.er1
30361 ac_status=$?
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030366 (exit $ac_status); } &&
30367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30368 { (case "(($ac_try" in
30369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30370 *) ac_try_echo=$ac_try;;
30371esac
30372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30373 (eval "$ac_try") 2>&5
30374 ac_status=$?
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); }; } &&
30377 { ac_try='test -s conftest.$ac_objext'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30381esac
30382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
30384 ac_status=$?
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000030387 ac_header_compiler=yes
30388else
30389 echo "$as_me: failed program was:" >&5
30390sed 's/^/| /' conftest.$ac_ext >&5
30391
30392 ac_header_compiler=no
30393fi
30394
30395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30397echo "${ECHO_T}$ac_header_compiler" >&6; }
30398
30399# Is the header present?
30400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30402cat >conftest.$ac_ext <<_ACEOF
30403/* confdefs.h. */
30404_ACEOF
30405cat confdefs.h >>conftest.$ac_ext
30406cat >>conftest.$ac_ext <<_ACEOF
30407/* end confdefs.h. */
30408#include <$ac_header>
30409_ACEOF
30410if { (ac_try="$ac_cpp conftest.$ac_ext"
30411case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30414esac
30415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30417 ac_status=$?
30418 grep -v '^ *+' conftest.er1 >conftest.err
30419 rm -f conftest.er1
30420 cat conftest.err >&5
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030422 (exit $ac_status); } >/dev/null; then
30423 if test -s conftest.err; then
30424 ac_cpp_err=$ac_c_preproc_warn_flag
30425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30426 else
30427 ac_cpp_err=
30428 fi
30429else
30430 ac_cpp_err=yes
30431fi
30432if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000030433 ac_header_preproc=yes
30434else
30435 echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
30438 ac_header_preproc=no
30439fi
30440
30441rm -f conftest.err conftest.$ac_ext
30442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30443echo "${ECHO_T}$ac_header_preproc" >&6; }
30444
30445# So? What about this header?
30446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30447 yes:no: )
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30452 ac_header_preproc=yes
30453 ;;
30454 no:yes:* )
30455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30467 ( cat <<\_ASBOX
30468## ----------------------------------- ##
30469## Report this to llvmbugs@cs.uiuc.edu ##
30470## ----------------------------------- ##
30471_ASBOX
30472 ) | sed "s/^/$as_me: WARNING: /" >&2
30473 ;;
30474esac
30475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30479else
30480 eval "$as_ac_Header=\$ac_header_preproc"
30481fi
30482ac_res=`eval echo '${'$as_ac_Header'}'`
30483 { echo "$as_me:$LINENO: result: $ac_res" >&5
30484echo "${ECHO_T}$ac_res" >&6; }
30485
30486fi
30487if test `eval echo '${'$as_ac_Header'}'` = yes; then
30488 cat >>confdefs.h <<_ACEOF
30489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30490_ACEOF
30491
30492fi
30493
30494done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030495
30496
30497
30498
Reid Spencer096a8142007-08-17 05:45:26 +000030499
30500for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030501do
30502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30508fi
30509ac_res=`eval echo '${'$as_ac_Header'}'`
30510 { echo "$as_me:$LINENO: result: $ac_res" >&5
30511echo "${ECHO_T}$ac_res" >&6; }
30512else
30513 # Is the header compilable?
30514{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30516cat >conftest.$ac_ext <<_ACEOF
30517/* confdefs.h. */
30518_ACEOF
30519cat confdefs.h >>conftest.$ac_ext
30520cat >>conftest.$ac_ext <<_ACEOF
30521/* end confdefs.h. */
30522$ac_includes_default
30523#include <$ac_header>
30524_ACEOF
30525rm -f conftest.$ac_objext
30526if { (ac_try="$ac_compile"
30527case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30530esac
30531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_compile") 2>conftest.er1
30533 ac_status=$?
30534 grep -v '^ *+' conftest.er1 >conftest.err
30535 rm -f conftest.er1
30536 cat conftest.err >&5
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030538 (exit $ac_status); } &&
30539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540 { (case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30543esac
30544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_try") 2>&5
30546 ac_status=$?
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest.$ac_objext'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30553esac
30554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30556 ac_status=$?
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030559 ac_header_compiler=yes
30560else
30561 echo "$as_me: failed program was:" >&5
30562sed 's/^/| /' conftest.$ac_ext >&5
30563
30564 ac_header_compiler=no
30565fi
30566
30567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30569echo "${ECHO_T}$ac_header_compiler" >&6; }
30570
30571# Is the header present?
30572{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30574cat >conftest.$ac_ext <<_ACEOF
30575/* confdefs.h. */
30576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h. */
30580#include <$ac_header>
30581_ACEOF
30582if { (ac_try="$ac_cpp conftest.$ac_ext"
30583case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30586esac
30587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30589 ac_status=$?
30590 grep -v '^ *+' conftest.er1 >conftest.err
30591 rm -f conftest.er1
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030594 (exit $ac_status); } >/dev/null; then
30595 if test -s conftest.err; then
30596 ac_cpp_err=$ac_c_preproc_warn_flag
30597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30598 else
30599 ac_cpp_err=
30600 fi
30601else
30602 ac_cpp_err=yes
30603fi
30604if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030605 ac_header_preproc=yes
30606else
30607 echo "$as_me: failed program was:" >&5
30608sed 's/^/| /' conftest.$ac_ext >&5
30609
30610 ac_header_preproc=no
30611fi
30612
30613rm -f conftest.err conftest.$ac_ext
30614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30615echo "${ECHO_T}$ac_header_preproc" >&6; }
30616
30617# So? What about this header?
30618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30619 yes:no: )
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30624 ac_header_preproc=yes
30625 ;;
30626 no:yes:* )
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30639 ( cat <<\_ASBOX
30640## ----------------------------------- ##
30641## Report this to llvmbugs@cs.uiuc.edu ##
30642## ----------------------------------- ##
30643_ASBOX
30644 ) | sed "s/^/$as_me: WARNING: /" >&2
30645 ;;
30646esac
30647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30651else
30652 eval "$as_ac_Header=\$ac_header_preproc"
30653fi
30654ac_res=`eval echo '${'$as_ac_Header'}'`
30655 { echo "$as_me:$LINENO: result: $ac_res" >&5
30656echo "${ECHO_T}$ac_res" >&6; }
30657
30658fi
30659if test `eval echo '${'$as_ac_Header'}'` = yes; then
30660 cat >>confdefs.h <<_ACEOF
30661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30662_ACEOF
30663
30664fi
30665
30666done
30667
30668
30669
30670
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000030671
30672for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030673do
30674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30679 echo $ECHO_N "(cached) $ECHO_C" >&6
30680fi
30681ac_res=`eval echo '${'$as_ac_Header'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683echo "${ECHO_T}$ac_res" >&6; }
30684else
30685 # Is the header compilable?
30686{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30688cat >conftest.$ac_ext <<_ACEOF
30689/* confdefs.h. */
30690_ACEOF
30691cat confdefs.h >>conftest.$ac_ext
30692cat >>conftest.$ac_ext <<_ACEOF
30693/* end confdefs.h. */
30694$ac_includes_default
30695#include <$ac_header>
30696_ACEOF
30697rm -f conftest.$ac_objext
30698if { (ac_try="$ac_compile"
30699case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30702esac
30703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_compile") 2>conftest.er1
30705 ac_status=$?
30706 grep -v '^ *+' conftest.er1 >conftest.err
30707 rm -f conftest.er1
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30712 { (case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30715esac
30716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_try") 2>&5
30718 ac_status=$?
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; } &&
30721 { ac_try='test -s conftest.$ac_objext'
30722 { (case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30725esac
30726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_try") 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030731 ac_header_compiler=yes
30732else
30733 echo "$as_me: failed program was:" >&5
30734sed 's/^/| /' conftest.$ac_ext >&5
30735
30736 ac_header_compiler=no
30737fi
30738
30739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30741echo "${ECHO_T}$ac_header_compiler" >&6; }
30742
30743# Is the header present?
30744{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30746cat >conftest.$ac_ext <<_ACEOF
30747/* confdefs.h. */
30748_ACEOF
30749cat confdefs.h >>conftest.$ac_ext
30750cat >>conftest.$ac_ext <<_ACEOF
30751/* end confdefs.h. */
30752#include <$ac_header>
30753_ACEOF
30754if { (ac_try="$ac_cpp conftest.$ac_ext"
30755case "(($ac_try" in
30756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757 *) ac_try_echo=$ac_try;;
30758esac
30759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30761 ac_status=$?
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030766 (exit $ac_status); } >/dev/null; then
30767 if test -s conftest.err; then
30768 ac_cpp_err=$ac_c_preproc_warn_flag
30769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30770 else
30771 ac_cpp_err=
30772 fi
30773else
30774 ac_cpp_err=yes
30775fi
30776if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030777 ac_header_preproc=yes
30778else
30779 echo "$as_me: failed program was:" >&5
30780sed 's/^/| /' conftest.$ac_ext >&5
30781
30782 ac_header_preproc=no
30783fi
30784
30785rm -f conftest.err conftest.$ac_ext
30786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30787echo "${ECHO_T}$ac_header_preproc" >&6; }
30788
30789# So? What about this header?
30790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30791 yes:no: )
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30796 ac_header_preproc=yes
30797 ;;
30798 no:yes:* )
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30811 ( cat <<\_ASBOX
30812## ----------------------------------- ##
30813## Report this to llvmbugs@cs.uiuc.edu ##
30814## ----------------------------------- ##
30815_ASBOX
30816 ) | sed "s/^/$as_me: WARNING: /" >&2
30817 ;;
30818esac
30819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30822 echo $ECHO_N "(cached) $ECHO_C" >&6
30823else
30824 eval "$as_ac_Header=\$ac_header_preproc"
30825fi
30826ac_res=`eval echo '${'$as_ac_Header'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828echo "${ECHO_T}$ac_res" >&6; }
30829
30830fi
30831if test `eval echo '${'$as_ac_Header'}'` = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30834_ACEOF
30835
30836fi
30837
30838done
30839
30840if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000030841
30842for ac_header in pthread.h
30843do
30844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850fi
Reid Spencer096a8142007-08-17 05:45:26 +000030851ac_res=`eval echo '${'$as_ac_Header'}'`
30852 { echo "$as_me:$LINENO: result: $ac_res" >&5
30853echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030854else
30855 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000030856{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030858cat >conftest.$ac_ext <<_ACEOF
30859/* confdefs.h. */
30860_ACEOF
30861cat confdefs.h >>conftest.$ac_ext
30862cat >>conftest.$ac_ext <<_ACEOF
30863/* end confdefs.h. */
30864$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000030865#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030866_ACEOF
30867rm -f conftest.$ac_objext
30868if { (ac_try="$ac_compile"
30869case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_compile") 2>conftest.er1
30875 ac_status=$?
30876 grep -v '^ *+' conftest.er1 >conftest.err
30877 rm -f conftest.er1
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30885esac
30886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest.$ac_objext'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30895esac
30896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030901 ac_header_compiler=yes
30902else
30903 echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906 ac_header_compiler=no
30907fi
30908
30909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30911echo "${ECHO_T}$ac_header_compiler" >&6; }
30912
30913# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000030914{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030916cat >conftest.$ac_ext <<_ACEOF
30917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000030922#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030923_ACEOF
30924if { (ac_try="$ac_cpp conftest.$ac_ext"
30925case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30928esac
30929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30931 ac_status=$?
30932 grep -v '^ *+' conftest.er1 >conftest.err
30933 rm -f conftest.er1
30934 cat conftest.err >&5
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030936 (exit $ac_status); } >/dev/null; then
30937 if test -s conftest.err; then
30938 ac_cpp_err=$ac_c_preproc_warn_flag
30939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30940 else
30941 ac_cpp_err=
30942 fi
30943else
30944 ac_cpp_err=yes
30945fi
30946if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030947 ac_header_preproc=yes
30948else
30949 echo "$as_me: failed program was:" >&5
30950sed 's/^/| /' conftest.$ac_ext >&5
30951
30952 ac_header_preproc=no
30953fi
30954
30955rm -f conftest.err conftest.$ac_ext
30956{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30957echo "${ECHO_T}$ac_header_preproc" >&6; }
30958
30959# So? What about this header?
30960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30961 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000030962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030966 ac_header_preproc=yes
30967 ;;
30968 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000030969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030981 ( cat <<\_ASBOX
30982## ----------------------------------- ##
30983## Report this to llvmbugs@cs.uiuc.edu ##
30984## ----------------------------------- ##
30985_ASBOX
30986 ) | sed "s/^/$as_me: WARNING: /" >&2
30987 ;;
30988esac
Reid Spencer096a8142007-08-17 05:45:26 +000030989{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030992 echo $ECHO_N "(cached) $ECHO_C" >&6
30993else
Reid Spencer096a8142007-08-17 05:45:26 +000030994 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030995fi
Reid Spencer096a8142007-08-17 05:45:26 +000030996ac_res=`eval echo '${'$as_ac_Header'}'`
30997 { echo "$as_me:$LINENO: result: $ac_res" >&5
30998echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030999
31000fi
Reid Spencer096a8142007-08-17 05:45:26 +000031001if test `eval echo '${'$as_ac_Header'}'` = yes; then
31002 cat >>confdefs.h <<_ACEOF
31003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31004_ACEOF
31005 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031006
31007else
31008 HAVE_PTHREAD=0
31009
31010fi
31011
Reid Spencer096a8142007-08-17 05:45:26 +000031012done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031013
31014else
31015 HAVE_PTHREAD=0
31016
31017fi
31018
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000031019if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewycky0235b622009-02-04 06:27:44 +000031020
31021
31022for ac_header in ffi.h ffi/ffi.h
31023do
31024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31030fi
31031ac_res=`eval echo '${'$as_ac_Header'}'`
31032 { echo "$as_me:$LINENO: result: $ac_res" >&5
31033echo "${ECHO_T}$ac_res" >&6; }
31034else
31035 # Is the header compilable?
31036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31038cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044$ac_includes_default
31045#include <$ac_header>
31046_ACEOF
31047rm -f conftest.$ac_objext
31048if { (ac_try="$ac_compile"
31049case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_compile") 2>conftest.er1
31055 ac_status=$?
31056 grep -v '^ *+' conftest.er1 >conftest.err
31057 rm -f conftest.er1
31058 cat conftest.err >&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031060 (exit $ac_status); } &&
31061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31062 { (case "(($ac_try" in
31063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31064 *) ac_try_echo=$ac_try;;
31065esac
31066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067 (eval "$ac_try") 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest.$ac_objext'
31072 { (case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31075esac
31076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_try") 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000031081 ac_header_compiler=yes
31082else
31083 echo "$as_me: failed program was:" >&5
31084sed 's/^/| /' conftest.$ac_ext >&5
31085
31086 ac_header_compiler=no
31087fi
31088
31089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31091echo "${ECHO_T}$ac_header_compiler" >&6; }
31092
31093# Is the header present?
31094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31096cat >conftest.$ac_ext <<_ACEOF
31097/* confdefs.h. */
31098_ACEOF
31099cat confdefs.h >>conftest.$ac_ext
31100cat >>conftest.$ac_ext <<_ACEOF
31101/* end confdefs.h. */
31102#include <$ac_header>
31103_ACEOF
31104if { (ac_try="$ac_cpp conftest.$ac_ext"
31105case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31108esac
31109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31111 ac_status=$?
31112 grep -v '^ *+' conftest.er1 >conftest.err
31113 rm -f conftest.er1
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031116 (exit $ac_status); } >/dev/null; then
31117 if test -s conftest.err; then
31118 ac_cpp_err=$ac_c_preproc_warn_flag
31119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31120 else
31121 ac_cpp_err=
31122 fi
31123else
31124 ac_cpp_err=yes
31125fi
31126if test -z "$ac_cpp_err"; then
Nick Lewycky0235b622009-02-04 06:27:44 +000031127 ac_header_preproc=yes
31128else
31129 echo "$as_me: failed program was:" >&5
31130sed 's/^/| /' conftest.$ac_ext >&5
31131
31132 ac_header_preproc=no
31133fi
31134
31135rm -f conftest.err conftest.$ac_ext
31136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31137echo "${ECHO_T}$ac_header_preproc" >&6; }
31138
31139# So? What about this header?
31140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31141 yes:no: )
31142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31146 ac_header_preproc=yes
31147 ;;
31148 no:yes:* )
31149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31161 ( cat <<\_ASBOX
31162## ----------------------------------- ##
31163## Report this to llvmbugs@cs.uiuc.edu ##
31164## ----------------------------------- ##
31165_ASBOX
31166 ) | sed "s/^/$as_me: WARNING: /" >&2
31167 ;;
31168esac
31169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31173else
31174 eval "$as_ac_Header=\$ac_header_preproc"
31175fi
31176ac_res=`eval echo '${'$as_ac_Header'}'`
31177 { echo "$as_me:$LINENO: result: $ac_res" >&5
31178echo "${ECHO_T}$ac_res" >&6; }
31179
31180fi
31181if test `eval echo '${'$as_ac_Header'}'` = yes; then
31182 cat >>confdefs.h <<_ACEOF
31183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31184_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000031185
31186fi
31187
31188done
31189
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000031190fi
Nick Lewycky0235b622009-02-04 06:27:44 +000031191
Nick Lewycky5d713ec2009-01-20 00:52:24 +000031192
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031193
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031194 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31195echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31196if test "${ac_cv_huge_val_sanity+set}" = set; then
31197 echo $ECHO_N "(cached) $ECHO_C" >&6
31198else
31199
31200 ac_ext=cpp
31201ac_cpp='$CXXCPP $CPPFLAGS'
31202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31205
31206 CXXFLAGS=-pedantic
31207 if test "$cross_compiling" = yes; then
31208 ac_cv_huge_val_sanity=yes
31209else
31210 cat >conftest.$ac_ext <<_ACEOF
31211/* confdefs.h. */
31212_ACEOF
31213cat confdefs.h >>conftest.$ac_ext
31214cat >>conftest.$ac_ext <<_ACEOF
31215/* end confdefs.h. */
31216#include <math.h>
31217int
31218main ()
31219{
31220double x = HUGE_VAL; return x != x;
31221 ;
31222 return 0;
31223}
31224_ACEOF
31225rm -f conftest$ac_exeext
31226if { (ac_try="$ac_link"
31227case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31230esac
31231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_link") 2>&5
31233 ac_status=$?
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31236 { (case "(($ac_try" in
31237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31238 *) ac_try_echo=$ac_try;;
31239esac
31240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31241 (eval "$ac_try") 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ac_cv_huge_val_sanity=yes
31246else
31247 echo "$as_me: program exited with status $ac_status" >&5
31248echo "$as_me: failed program was:" >&5
31249sed 's/^/| /' conftest.$ac_ext >&5
31250
31251( exit $ac_status )
31252ac_cv_huge_val_sanity=no
31253fi
31254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31255fi
31256
31257
31258 ac_ext=c
31259ac_cpp='$CPP $CPPFLAGS'
31260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31262ac_compiler_gnu=$ac_cv_c_compiler_gnu
31263
31264
31265fi
31266{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31267echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31268 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31269
31270
31271{ echo "$as_me:$LINENO: checking for pid_t" >&5
31272echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31273if test "${ac_cv_type_pid_t+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
31276 cat >conftest.$ac_ext <<_ACEOF
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
31282$ac_includes_default
31283typedef pid_t ac__type_new_;
31284int
31285main ()
31286{
31287if ((ac__type_new_ *) 0)
31288 return 0;
31289if (sizeof (ac__type_new_))
31290 return 0;
31291 ;
31292 return 0;
31293}
31294_ACEOF
31295rm -f conftest.$ac_objext
31296if { (ac_try="$ac_compile"
31297case "(($ac_try" in
31298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31299 *) ac_try_echo=$ac_try;;
31300esac
31301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31302 (eval "$ac_compile") 2>conftest.er1
31303 ac_status=$?
31304 grep -v '^ *+' conftest.er1 >conftest.err
31305 rm -f conftest.er1
31306 cat conftest.err >&5
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031308 (exit $ac_status); } &&
31309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31319 { ac_try='test -s conftest.$ac_objext'
31320 { (case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31323esac
31324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_try") 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031329 ac_cv_type_pid_t=yes
31330else
31331 echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
31333
31334 ac_cv_type_pid_t=no
31335fi
31336
31337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31338fi
31339{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31340echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31341if test $ac_cv_type_pid_t = yes; then
31342 :
31343else
31344
31345cat >>confdefs.h <<_ACEOF
31346#define pid_t int
31347_ACEOF
31348
31349fi
31350
31351{ echo "$as_me:$LINENO: checking for size_t" >&5
31352echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31353if test "${ac_cv_type_size_t+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356 cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362$ac_includes_default
31363typedef size_t ac__type_new_;
31364int
31365main ()
31366{
31367if ((ac__type_new_ *) 0)
31368 return 0;
31369if (sizeof (ac__type_new_))
31370 return 0;
31371 ;
31372 return 0;
31373}
31374_ACEOF
31375rm -f conftest.$ac_objext
31376if { (ac_try="$ac_compile"
31377case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380esac
31381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_compile") 2>conftest.er1
31383 ac_status=$?
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031388 (exit $ac_status); } &&
31389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390 { (case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393esac
31394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_try") 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest.$ac_objext'
31400 { (case "(($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_try") 2>&5
31406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031409 ac_cv_type_size_t=yes
31410else
31411 echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414 ac_cv_type_size_t=no
31415fi
31416
31417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31418fi
31419{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31420echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31421if test $ac_cv_type_size_t = yes; then
31422 :
31423else
31424
31425cat >>confdefs.h <<_ACEOF
31426#define size_t unsigned int
31427_ACEOF
31428
31429fi
31430
31431{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31432echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31433if test "${ac_cv_type_signal+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31435else
31436 cat >conftest.$ac_ext <<_ACEOF
31437/* confdefs.h. */
31438_ACEOF
31439cat confdefs.h >>conftest.$ac_ext
31440cat >>conftest.$ac_ext <<_ACEOF
31441/* end confdefs.h. */
31442#include <sys/types.h>
31443#include <signal.h>
31444
31445int
31446main ()
31447{
31448return *(signal (0, 0)) (0) == 1;
31449 ;
31450 return 0;
31451}
31452_ACEOF
31453rm -f conftest.$ac_objext
31454if { (ac_try="$ac_compile"
31455case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458esac
31459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_compile") 2>conftest.er1
31461 ac_status=$?
31462 grep -v '^ *+' conftest.er1 >conftest.err
31463 rm -f conftest.er1
31464 cat conftest.err >&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031466 (exit $ac_status); } &&
31467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31468 { (case "(($ac_try" in
31469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470 *) ac_try_echo=$ac_try;;
31471esac
31472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473 (eval "$ac_try") 2>&5
31474 ac_status=$?
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; } &&
31477 { ac_try='test -s conftest.$ac_objext'
31478 { (case "(($ac_try" in
31479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31481esac
31482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_try") 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031487 ac_cv_type_signal=int
31488else
31489 echo "$as_me: failed program was:" >&5
31490sed 's/^/| /' conftest.$ac_ext >&5
31491
31492 ac_cv_type_signal=void
31493fi
31494
31495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31496fi
31497{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31498echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31499
31500cat >>confdefs.h <<_ACEOF
31501#define RETSIGTYPE $ac_cv_type_signal
31502_ACEOF
31503
31504
31505{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31506echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31507if test "${ac_cv_struct_tm+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31509else
31510 cat >conftest.$ac_ext <<_ACEOF
31511/* confdefs.h. */
31512_ACEOF
31513cat confdefs.h >>conftest.$ac_ext
31514cat >>conftest.$ac_ext <<_ACEOF
31515/* end confdefs.h. */
31516#include <sys/types.h>
31517#include <time.h>
31518
31519int
31520main ()
31521{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031522struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031523 ;
31524 return 0;
31525}
31526_ACEOF
31527rm -f conftest.$ac_objext
31528if { (ac_try="$ac_compile"
31529case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31532esac
31533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_compile") 2>conftest.er1
31535 ac_status=$?
31536 grep -v '^ *+' conftest.er1 >conftest.err
31537 rm -f conftest.er1
31538 cat conftest.err >&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031540 (exit $ac_status); } &&
31541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31545esac
31546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest.$ac_objext'
31552 { (case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31555esac
31556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_try") 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031561 ac_cv_struct_tm=time.h
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566 ac_cv_struct_tm=sys/time.h
31567fi
31568
31569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31570fi
31571{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31572echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31573if test $ac_cv_struct_tm = sys/time.h; then
31574
31575cat >>confdefs.h <<\_ACEOF
31576#define TM_IN_SYS_TIME 1
31577_ACEOF
31578
31579fi
31580
31581{ echo "$as_me:$LINENO: checking for int64_t" >&5
31582echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31583if test "${ac_cv_type_int64_t+set}" = set; then
31584 echo $ECHO_N "(cached) $ECHO_C" >&6
31585else
31586 cat >conftest.$ac_ext <<_ACEOF
31587/* confdefs.h. */
31588_ACEOF
31589cat confdefs.h >>conftest.$ac_ext
31590cat >>conftest.$ac_ext <<_ACEOF
31591/* end confdefs.h. */
31592$ac_includes_default
31593typedef int64_t ac__type_new_;
31594int
31595main ()
31596{
31597if ((ac__type_new_ *) 0)
31598 return 0;
31599if (sizeof (ac__type_new_))
31600 return 0;
31601 ;
31602 return 0;
31603}
31604_ACEOF
31605rm -f conftest.$ac_objext
31606if { (ac_try="$ac_compile"
31607case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610esac
31611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
31613 ac_status=$?
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
31630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031639 ac_cv_type_int64_t=yes
31640else
31641 echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
31644 ac_cv_type_int64_t=no
31645fi
31646
31647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648fi
31649{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31650echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31651if test $ac_cv_type_int64_t = yes; then
31652
31653cat >>confdefs.h <<_ACEOF
31654#define HAVE_INT64_T 1
31655_ACEOF
31656
31657
31658else
31659 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31660echo "$as_me: error: Type int64_t required but not found" >&2;}
31661 { (exit 1); exit 1; }; }
31662fi
31663
31664{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31665echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31666if test "${ac_cv_type_uint64_t+set}" = set; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31668else
31669 cat >conftest.$ac_ext <<_ACEOF
31670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
31675$ac_includes_default
31676typedef uint64_t ac__type_new_;
31677int
31678main ()
31679{
31680if ((ac__type_new_ *) 0)
31681 return 0;
31682if (sizeof (ac__type_new_))
31683 return 0;
31684 ;
31685 return 0;
31686}
31687_ACEOF
31688rm -f conftest.$ac_objext
31689if { (ac_try="$ac_compile"
31690case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31693esac
31694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_compile") 2>conftest.er1
31696 ac_status=$?
31697 grep -v '^ *+' conftest.er1 >conftest.err
31698 rm -f conftest.er1
31699 cat conftest.err >&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031701 (exit $ac_status); } &&
31702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31703 { (case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31706esac
31707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708 (eval "$ac_try") 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; } &&
31712 { ac_try='test -s conftest.$ac_objext'
31713 { (case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31716esac
31717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_try") 2>&5
31719 ac_status=$?
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031722 ac_cv_type_uint64_t=yes
31723else
31724 echo "$as_me: failed program was:" >&5
31725sed 's/^/| /' conftest.$ac_ext >&5
31726
31727 ac_cv_type_uint64_t=no
31728fi
31729
31730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31731fi
31732{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31733echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31734if test $ac_cv_type_uint64_t = yes; then
31735
31736cat >>confdefs.h <<_ACEOF
31737#define HAVE_UINT64_T 1
31738_ACEOF
31739
31740
31741else
31742 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31743echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31744if test "${ac_cv_type_u_int64_t+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31746else
31747 cat >conftest.$ac_ext <<_ACEOF
31748/* confdefs.h. */
31749_ACEOF
31750cat confdefs.h >>conftest.$ac_ext
31751cat >>conftest.$ac_ext <<_ACEOF
31752/* end confdefs.h. */
31753$ac_includes_default
31754typedef u_int64_t ac__type_new_;
31755int
31756main ()
31757{
31758if ((ac__type_new_ *) 0)
31759 return 0;
31760if (sizeof (ac__type_new_))
31761 return 0;
31762 ;
31763 return 0;
31764}
31765_ACEOF
31766rm -f conftest.$ac_objext
31767if { (ac_try="$ac_compile"
31768case "(($ac_try" in
31769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770 *) ac_try_echo=$ac_try;;
31771esac
31772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773 (eval "$ac_compile") 2>conftest.er1
31774 ac_status=$?
31775 grep -v '^ *+' conftest.er1 >conftest.err
31776 rm -f conftest.er1
31777 cat conftest.err >&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031779 (exit $ac_status); } &&
31780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31784esac
31785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; } &&
31790 { ac_try='test -s conftest.$ac_objext'
31791 { (case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_try") 2>&5
31797 ac_status=$?
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031800 ac_cv_type_u_int64_t=yes
31801else
31802 echo "$as_me: failed program was:" >&5
31803sed 's/^/| /' conftest.$ac_ext >&5
31804
31805 ac_cv_type_u_int64_t=no
31806fi
31807
31808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31809fi
31810{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31811echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31812if test $ac_cv_type_u_int64_t = yes; then
31813
31814cat >>confdefs.h <<_ACEOF
31815#define HAVE_U_INT64_T 1
31816_ACEOF
31817
31818
31819else
31820 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31821echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31822 { (exit 1); exit 1; }; }
31823fi
31824
31825fi
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31837do
31838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31839{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843else
31844 cat >conftest.$ac_ext <<_ACEOF
31845/* confdefs.h. */
31846_ACEOF
31847cat confdefs.h >>conftest.$ac_ext
31848cat >>conftest.$ac_ext <<_ACEOF
31849/* end confdefs.h. */
31850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31852#define $ac_func innocuous_$ac_func
31853
31854/* System header to define __stub macros and hopefully few prototypes,
31855 which can conflict with char $ac_func (); below.
31856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31857 <limits.h> exists even on freestanding compilers. */
31858
31859#ifdef __STDC__
31860# include <limits.h>
31861#else
31862# include <assert.h>
31863#endif
31864
31865#undef $ac_func
31866
31867/* Override any GCC internal prototype to avoid an error.
31868 Use char because int might match the return type of a GCC
31869 builtin and then its argument prototype would still apply. */
31870#ifdef __cplusplus
31871extern "C"
31872#endif
31873char $ac_func ();
31874/* The GNU C library defines this for functions which it implements
31875 to always fail with ENOSYS. Some functions are actually named
31876 something starting with __ and the normal name is an alias. */
31877#if defined __stub_$ac_func || defined __stub___$ac_func
31878choke me
31879#endif
31880
31881int
31882main ()
31883{
31884return $ac_func ();
31885 ;
31886 return 0;
31887}
31888_ACEOF
31889rm -f conftest.$ac_objext conftest$ac_exeext
31890if { (ac_try="$ac_link"
31891case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31894esac
31895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_link") 2>conftest.er1
31897 ac_status=$?
31898 grep -v '^ *+' conftest.er1 >conftest.err
31899 rm -f conftest.er1
31900 cat conftest.err >&5
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031902 (exit $ac_status); } &&
31903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31904 { (case "(($ac_try" in
31905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906 *) ac_try_echo=$ac_try;;
31907esac
31908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909 (eval "$ac_try") 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; } &&
31913 { ac_try='test -s conftest$ac_exeext'
31914 { (case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31917esac
31918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_try") 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031923 eval "$as_ac_var=yes"
31924else
31925 echo "$as_me: failed program was:" >&5
31926sed 's/^/| /' conftest.$ac_ext >&5
31927
31928 eval "$as_ac_var=no"
31929fi
31930
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031931rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031932 conftest$ac_exeext conftest.$ac_ext
31933fi
31934ac_res=`eval echo '${'$as_ac_var'}'`
31935 { echo "$as_me:$LINENO: result: $ac_res" >&5
31936echo "${ECHO_T}$ac_res" >&6; }
31937if test `eval echo '${'$as_ac_var'}'` = yes; then
31938 cat >>confdefs.h <<_ACEOF
31939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31940_ACEOF
31941
31942fi
31943done
31944
31945
31946
31947
31948
31949for ac_func in powf fmodf strtof round
31950do
31951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31955 echo $ECHO_N "(cached) $ECHO_C" >&6
31956else
31957 cat >conftest.$ac_ext <<_ACEOF
31958/* confdefs.h. */
31959_ACEOF
31960cat confdefs.h >>conftest.$ac_ext
31961cat >>conftest.$ac_ext <<_ACEOF
31962/* end confdefs.h. */
31963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31965#define $ac_func innocuous_$ac_func
31966
31967/* System header to define __stub macros and hopefully few prototypes,
31968 which can conflict with char $ac_func (); below.
31969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31970 <limits.h> exists even on freestanding compilers. */
31971
31972#ifdef __STDC__
31973# include <limits.h>
31974#else
31975# include <assert.h>
31976#endif
31977
31978#undef $ac_func
31979
31980/* Override any GCC internal prototype to avoid an error.
31981 Use char because int might match the return type of a GCC
31982 builtin and then its argument prototype would still apply. */
31983#ifdef __cplusplus
31984extern "C"
31985#endif
31986char $ac_func ();
31987/* The GNU C library defines this for functions which it implements
31988 to always fail with ENOSYS. Some functions are actually named
31989 something starting with __ and the normal name is an alias. */
31990#if defined __stub_$ac_func || defined __stub___$ac_func
31991choke me
31992#endif
31993
31994int
31995main ()
31996{
31997return $ac_func ();
31998 ;
31999 return 0;
32000}
32001_ACEOF
32002rm -f conftest.$ac_objext conftest$ac_exeext
32003if { (ac_try="$ac_link"
32004case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32007esac
32008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_link") 2>conftest.er1
32010 ac_status=$?
32011 grep -v '^ *+' conftest.er1 >conftest.err
32012 rm -f conftest.er1
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017 { (case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32020esac
32021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_try") 2>&5
32023 ac_status=$?
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32030esac
32031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032036 eval "$as_ac_var=yes"
32037else
32038 echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
32041 eval "$as_ac_var=no"
32042fi
32043
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032044rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032045 conftest$ac_exeext conftest.$ac_ext
32046fi
32047ac_res=`eval echo '${'$as_ac_var'}'`
32048 { echo "$as_me:$LINENO: result: $ac_res" >&5
32049echo "${ECHO_T}$ac_res" >&6; }
32050if test `eval echo '${'$as_ac_var'}'` = yes; then
32051 cat >>confdefs.h <<_ACEOF
32052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32053_ACEOF
32054
32055fi
32056done
32057
32058
32059
32060
32061
32062
32063for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
32064do
32065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32066{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32068if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070else
32071 cat >conftest.$ac_ext <<_ACEOF
32072/* confdefs.h. */
32073_ACEOF
32074cat confdefs.h >>conftest.$ac_ext
32075cat >>conftest.$ac_ext <<_ACEOF
32076/* end confdefs.h. */
32077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32079#define $ac_func innocuous_$ac_func
32080
32081/* System header to define __stub macros and hopefully few prototypes,
32082 which can conflict with char $ac_func (); below.
32083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32084 <limits.h> exists even on freestanding compilers. */
32085
32086#ifdef __STDC__
32087# include <limits.h>
32088#else
32089# include <assert.h>
32090#endif
32091
32092#undef $ac_func
32093
32094/* Override any GCC internal prototype to avoid an error.
32095 Use char because int might match the return type of a GCC
32096 builtin and then its argument prototype would still apply. */
32097#ifdef __cplusplus
32098extern "C"
32099#endif
32100char $ac_func ();
32101/* The GNU C library defines this for functions which it implements
32102 to always fail with ENOSYS. Some functions are actually named
32103 something starting with __ and the normal name is an alias. */
32104#if defined __stub_$ac_func || defined __stub___$ac_func
32105choke me
32106#endif
32107
32108int
32109main ()
32110{
32111return $ac_func ();
32112 ;
32113 return 0;
32114}
32115_ACEOF
32116rm -f conftest.$ac_objext conftest$ac_exeext
32117if { (ac_try="$ac_link"
32118case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32121esac
32122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_link") 2>conftest.er1
32124 ac_status=$?
32125 grep -v '^ *+' conftest.er1 >conftest.err
32126 rm -f conftest.er1
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032129 (exit $ac_status); } &&
32130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32131 { (case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32134esac
32135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_try") 2>&5
32137 ac_status=$?
32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32139 (exit $ac_status); }; } &&
32140 { ac_try='test -s conftest$ac_exeext'
32141 { (case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_try") 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032150 eval "$as_ac_var=yes"
32151else
32152 echo "$as_me: failed program was:" >&5
32153sed 's/^/| /' conftest.$ac_ext >&5
32154
32155 eval "$as_ac_var=no"
32156fi
32157
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032158rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032159 conftest$ac_exeext conftest.$ac_ext
32160fi
32161ac_res=`eval echo '${'$as_ac_var'}'`
32162 { echo "$as_me:$LINENO: result: $ac_res" >&5
32163echo "${ECHO_T}$ac_res" >&6; }
32164if test `eval echo '${'$as_ac_var'}'` = yes; then
32165 cat >>confdefs.h <<_ACEOF
32166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32167_ACEOF
32168
32169fi
32170done
32171
32172
32173
32174
32175for ac_func in isatty mkdtemp mkstemp
32176do
32177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32182else
32183 cat >conftest.$ac_ext <<_ACEOF
32184/* confdefs.h. */
32185_ACEOF
32186cat confdefs.h >>conftest.$ac_ext
32187cat >>conftest.$ac_ext <<_ACEOF
32188/* end confdefs.h. */
32189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32191#define $ac_func innocuous_$ac_func
32192
32193/* System header to define __stub macros and hopefully few prototypes,
32194 which can conflict with char $ac_func (); below.
32195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32196 <limits.h> exists even on freestanding compilers. */
32197
32198#ifdef __STDC__
32199# include <limits.h>
32200#else
32201# include <assert.h>
32202#endif
32203
32204#undef $ac_func
32205
32206/* Override any GCC internal prototype to avoid an error.
32207 Use char because int might match the return type of a GCC
32208 builtin and then its argument prototype would still apply. */
32209#ifdef __cplusplus
32210extern "C"
32211#endif
32212char $ac_func ();
32213/* The GNU C library defines this for functions which it implements
32214 to always fail with ENOSYS. Some functions are actually named
32215 something starting with __ and the normal name is an alias. */
32216#if defined __stub_$ac_func || defined __stub___$ac_func
32217choke me
32218#endif
32219
32220int
32221main ()
32222{
32223return $ac_func ();
32224 ;
32225 return 0;
32226}
32227_ACEOF
32228rm -f conftest.$ac_objext conftest$ac_exeext
32229if { (ac_try="$ac_link"
32230case "(($ac_try" in
32231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232 *) ac_try_echo=$ac_try;;
32233esac
32234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235 (eval "$ac_link") 2>conftest.er1
32236 ac_status=$?
32237 grep -v '^ *+' conftest.er1 >conftest.err
32238 rm -f conftest.er1
32239 cat conftest.err >&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032241 (exit $ac_status); } &&
32242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32243 { (case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32246esac
32247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_try") 2>&5
32249 ac_status=$?
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; } &&
32252 { ac_try='test -s conftest$ac_exeext'
32253 { (case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32256esac
32257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258 (eval "$ac_try") 2>&5
32259 ac_status=$?
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032262 eval "$as_ac_var=yes"
32263else
32264 echo "$as_me: failed program was:" >&5
32265sed 's/^/| /' conftest.$ac_ext >&5
32266
32267 eval "$as_ac_var=no"
32268fi
32269
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032270rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032271 conftest$ac_exeext conftest.$ac_ext
32272fi
32273ac_res=`eval echo '${'$as_ac_var'}'`
32274 { echo "$as_me:$LINENO: result: $ac_res" >&5
32275echo "${ECHO_T}$ac_res" >&6; }
32276if test `eval echo '${'$as_ac_var'}'` = yes; then
32277 cat >>confdefs.h <<_ACEOF
32278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32279_ACEOF
32280
32281fi
32282done
32283
32284
32285
32286
32287
32288
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032289for ac_func in mktemp realpath sbrk setrlimit strdup
32290do
32291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32292{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32294if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32295 echo $ECHO_N "(cached) $ECHO_C" >&6
32296else
32297 cat >conftest.$ac_ext <<_ACEOF
32298/* confdefs.h. */
32299_ACEOF
32300cat confdefs.h >>conftest.$ac_ext
32301cat >>conftest.$ac_ext <<_ACEOF
32302/* end confdefs.h. */
32303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32305#define $ac_func innocuous_$ac_func
32306
32307/* System header to define __stub macros and hopefully few prototypes,
32308 which can conflict with char $ac_func (); below.
32309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32310 <limits.h> exists even on freestanding compilers. */
32311
32312#ifdef __STDC__
32313# include <limits.h>
32314#else
32315# include <assert.h>
32316#endif
32317
32318#undef $ac_func
32319
32320/* Override any GCC internal prototype to avoid an error.
32321 Use char because int might match the return type of a GCC
32322 builtin and then its argument prototype would still apply. */
32323#ifdef __cplusplus
32324extern "C"
32325#endif
32326char $ac_func ();
32327/* The GNU C library defines this for functions which it implements
32328 to always fail with ENOSYS. Some functions are actually named
32329 something starting with __ and the normal name is an alias. */
32330#if defined __stub_$ac_func || defined __stub___$ac_func
32331choke me
32332#endif
32333
32334int
32335main ()
32336{
32337return $ac_func ();
32338 ;
32339 return 0;
32340}
32341_ACEOF
32342rm -f conftest.$ac_objext conftest$ac_exeext
32343if { (ac_try="$ac_link"
32344case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32347esac
32348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_link") 2>conftest.er1
32350 ac_status=$?
32351 grep -v '^ *+' conftest.er1 >conftest.err
32352 rm -f conftest.er1
32353 cat conftest.err >&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } &&
32356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32360esac
32361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; } &&
32366 { ac_try='test -s conftest$ac_exeext'
32367 { (case "(($ac_try" in
32368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32370esac
32371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_try") 2>&5
32373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 eval "$as_ac_var=yes"
32377else
32378 echo "$as_me: failed program was:" >&5
32379sed 's/^/| /' conftest.$ac_ext >&5
32380
32381 eval "$as_ac_var=no"
32382fi
32383
32384rm -f core conftest.err conftest.$ac_objext \
32385 conftest$ac_exeext conftest.$ac_ext
32386fi
32387ac_res=`eval echo '${'$as_ac_var'}'`
32388 { echo "$as_me:$LINENO: result: $ac_res" >&5
32389echo "${ECHO_T}$ac_res" >&6; }
32390if test `eval echo '${'$as_ac_var'}'` = yes; then
32391 cat >>confdefs.h <<_ACEOF
32392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32393_ACEOF
32394
32395fi
32396done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032397
32398
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032399
32400
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000032401
32402for ac_func in strerror strerror_r strerror_s setenv
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032403do
32404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32405{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410 cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
32416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32418#define $ac_func innocuous_$ac_func
32419
32420/* System header to define __stub macros and hopefully few prototypes,
32421 which can conflict with char $ac_func (); below.
32422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423 <limits.h> exists even on freestanding compilers. */
32424
32425#ifdef __STDC__
32426# include <limits.h>
32427#else
32428# include <assert.h>
32429#endif
32430
32431#undef $ac_func
32432
32433/* Override any GCC internal prototype to avoid an error.
32434 Use char because int might match the return type of a GCC
32435 builtin and then its argument prototype would still apply. */
32436#ifdef __cplusplus
32437extern "C"
32438#endif
32439char $ac_func ();
32440/* The GNU C library defines this for functions which it implements
32441 to always fail with ENOSYS. Some functions are actually named
32442 something starting with __ and the normal name is an alias. */
32443#if defined __stub_$ac_func || defined __stub___$ac_func
32444choke me
32445#endif
32446
32447int
32448main ()
32449{
32450return $ac_func ();
32451 ;
32452 return 0;
32453}
32454_ACEOF
32455rm -f conftest.$ac_objext conftest$ac_exeext
32456if { (ac_try="$ac_link"
32457case "(($ac_try" in
32458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459 *) ac_try_echo=$ac_try;;
32460esac
32461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462 (eval "$ac_link") 2>conftest.er1
32463 ac_status=$?
32464 grep -v '^ *+' conftest.er1 >conftest.err
32465 rm -f conftest.er1
32466 cat conftest.err >&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032468 (exit $ac_status); } &&
32469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32470 { (case "(($ac_try" in
32471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32473esac
32474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_try") 2>&5
32476 ac_status=$?
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; } &&
32479 { ac_try='test -s conftest$ac_exeext'
32480 { (case "(($ac_try" in
32481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482 *) ac_try_echo=$ac_try;;
32483esac
32484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485 (eval "$ac_try") 2>&5
32486 ac_status=$?
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032489 eval "$as_ac_var=yes"
32490else
32491 echo "$as_me: failed program was:" >&5
32492sed 's/^/| /' conftest.$ac_ext >&5
32493
32494 eval "$as_ac_var=no"
32495fi
32496
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032497rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032498 conftest$ac_exeext conftest.$ac_ext
32499fi
32500ac_res=`eval echo '${'$as_ac_var'}'`
32501 { echo "$as_me:$LINENO: result: $ac_res" >&5
32502echo "${ECHO_T}$ac_res" >&6; }
32503if test `eval echo '${'$as_ac_var'}'` = yes; then
32504 cat >>confdefs.h <<_ACEOF
32505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32506_ACEOF
32507
32508fi
32509done
32510
32511
32512
32513
32514
32515for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32516do
32517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32521 echo $ECHO_N "(cached) $ECHO_C" >&6
32522else
32523 cat >conftest.$ac_ext <<_ACEOF
32524/* confdefs.h. */
32525_ACEOF
32526cat confdefs.h >>conftest.$ac_ext
32527cat >>conftest.$ac_ext <<_ACEOF
32528/* end confdefs.h. */
32529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32531#define $ac_func innocuous_$ac_func
32532
32533/* System header to define __stub macros and hopefully few prototypes,
32534 which can conflict with char $ac_func (); below.
32535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32536 <limits.h> exists even on freestanding compilers. */
32537
32538#ifdef __STDC__
32539# include <limits.h>
32540#else
32541# include <assert.h>
32542#endif
32543
32544#undef $ac_func
32545
32546/* Override any GCC internal prototype to avoid an error.
32547 Use char because int might match the return type of a GCC
32548 builtin and then its argument prototype would still apply. */
32549#ifdef __cplusplus
32550extern "C"
32551#endif
32552char $ac_func ();
32553/* The GNU C library defines this for functions which it implements
32554 to always fail with ENOSYS. Some functions are actually named
32555 something starting with __ and the normal name is an alias. */
32556#if defined __stub_$ac_func || defined __stub___$ac_func
32557choke me
32558#endif
32559
32560int
32561main ()
32562{
32563return $ac_func ();
32564 ;
32565 return 0;
32566}
32567_ACEOF
32568rm -f conftest.$ac_objext conftest$ac_exeext
32569if { (ac_try="$ac_link"
32570case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32573esac
32574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_link") 2>conftest.er1
32576 ac_status=$?
32577 grep -v '^ *+' conftest.er1 >conftest.err
32578 rm -f conftest.er1
32579 cat conftest.err >&5
32580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032581 (exit $ac_status); } &&
32582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32583 { (case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32586esac
32587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_try") 2>&5
32589 ac_status=$?
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); }; } &&
32592 { ac_try='test -s conftest$ac_exeext'
32593 { (case "(($ac_try" in
32594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595 *) ac_try_echo=$ac_try;;
32596esac
32597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598 (eval "$ac_try") 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032602 eval "$as_ac_var=yes"
32603else
32604 echo "$as_me: failed program was:" >&5
32605sed 's/^/| /' conftest.$ac_ext >&5
32606
32607 eval "$as_ac_var=no"
32608fi
32609
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032610rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032611 conftest$ac_exeext conftest.$ac_ext
32612fi
32613ac_res=`eval echo '${'$as_ac_var'}'`
32614 { echo "$as_me:$LINENO: result: $ac_res" >&5
32615echo "${ECHO_T}$ac_res" >&6; }
32616if test `eval echo '${'$as_ac_var'}'` = yes; then
32617 cat >>confdefs.h <<_ACEOF
32618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32619_ACEOF
32620
32621fi
32622done
32623
32624
32625
32626
32627
32628for ac_func in setjmp longjmp sigsetjmp siglongjmp
32629do
32630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32631{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32635else
32636 cat >conftest.$ac_ext <<_ACEOF
32637/* confdefs.h. */
32638_ACEOF
32639cat confdefs.h >>conftest.$ac_ext
32640cat >>conftest.$ac_ext <<_ACEOF
32641/* end confdefs.h. */
32642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32644#define $ac_func innocuous_$ac_func
32645
32646/* System header to define __stub macros and hopefully few prototypes,
32647 which can conflict with char $ac_func (); below.
32648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32649 <limits.h> exists even on freestanding compilers. */
32650
32651#ifdef __STDC__
32652# include <limits.h>
32653#else
32654# include <assert.h>
32655#endif
32656
32657#undef $ac_func
32658
32659/* Override any GCC internal prototype to avoid an error.
32660 Use char because int might match the return type of a GCC
32661 builtin and then its argument prototype would still apply. */
32662#ifdef __cplusplus
32663extern "C"
32664#endif
32665char $ac_func ();
32666/* The GNU C library defines this for functions which it implements
32667 to always fail with ENOSYS. Some functions are actually named
32668 something starting with __ and the normal name is an alias. */
32669#if defined __stub_$ac_func || defined __stub___$ac_func
32670choke me
32671#endif
32672
32673int
32674main ()
32675{
32676return $ac_func ();
32677 ;
32678 return 0;
32679}
32680_ACEOF
32681rm -f conftest.$ac_objext conftest$ac_exeext
32682if { (ac_try="$ac_link"
32683case "(($ac_try" in
32684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685 *) ac_try_echo=$ac_try;;
32686esac
32687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688 (eval "$ac_link") 2>conftest.er1
32689 ac_status=$?
32690 grep -v '^ *+' conftest.er1 >conftest.err
32691 rm -f conftest.er1
32692 cat conftest.err >&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032694 (exit $ac_status); } &&
32695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32699esac
32700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; } &&
32705 { ac_try='test -s conftest$ac_exeext'
32706 { (case "(($ac_try" in
32707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708 *) ac_try_echo=$ac_try;;
32709esac
32710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711 (eval "$ac_try") 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032715 eval "$as_ac_var=yes"
32716else
32717 echo "$as_me: failed program was:" >&5
32718sed 's/^/| /' conftest.$ac_ext >&5
32719
32720 eval "$as_ac_var=no"
32721fi
32722
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032723rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032724 conftest$ac_exeext conftest.$ac_ext
32725fi
32726ac_res=`eval echo '${'$as_ac_var'}'`
32727 { echo "$as_me:$LINENO: result: $ac_res" >&5
32728echo "${ECHO_T}$ac_res" >&6; }
32729if test `eval echo '${'$as_ac_var'}'` = yes; then
32730 cat >>confdefs.h <<_ACEOF
32731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32732_ACEOF
32733
32734fi
32735done
32736
32737{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32738echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32739if test "${llvm_cv_c_printf_a+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741else
32742 ac_ext=c
32743ac_cpp='$CPP $CPPFLAGS'
32744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32746ac_compiler_gnu=$ac_cv_c_compiler_gnu
32747
32748 if test "$cross_compiling" = yes; then
32749 llvmac_cv_c_printf_a=no
32750else
32751 cat >conftest.$ac_ext <<_ACEOF
32752
32753 /* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
32758
32759#include <stdio.h>
32760#include <stdlib.h>
32761
32762int
32763main ()
32764{
32765
32766volatile double A, B;
32767char Buffer[100];
32768A = 1;
32769A /= 10.0;
32770sprintf(Buffer, "%a", A);
32771B = atof(Buffer);
32772if (A != B)
32773 return (1);
32774if (A != 0x1.999999999999ap-4)
32775 return (1);
32776return (0);
32777 ;
32778 return 0;
32779}
32780_ACEOF
32781rm -f conftest$ac_exeext
32782if { (ac_try="$ac_link"
32783case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32786esac
32787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_link") 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32795esac
32796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32798 ac_status=$?
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; }; then
32801 llvm_cv_c_printf_a=yes
32802else
32803 echo "$as_me: program exited with status $ac_status" >&5
32804echo "$as_me: failed program was:" >&5
32805sed 's/^/| /' conftest.$ac_ext >&5
32806
32807( exit $ac_status )
32808llvmac_cv_c_printf_a=no
32809fi
32810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32811fi
32812
32813
32814 ac_ext=c
32815ac_cpp='$CPP $CPPFLAGS'
32816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818ac_compiler_gnu=$ac_cv_c_compiler_gnu
32819
32820fi
32821{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32822echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32823 if test "$llvm_cv_c_printf_a" = "yes"; then
32824
32825cat >>confdefs.h <<\_ACEOF
32826#define HAVE_PRINTF_A 1
32827_ACEOF
32828
32829 fi
32830
32831# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32832# for constant arguments. Useless!
32833{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32834echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32835if test "${ac_cv_working_alloca_h+set}" = set; then
32836 echo $ECHO_N "(cached) $ECHO_C" >&6
32837else
32838 cat >conftest.$ac_ext <<_ACEOF
32839/* confdefs.h. */
32840_ACEOF
32841cat confdefs.h >>conftest.$ac_ext
32842cat >>conftest.$ac_ext <<_ACEOF
32843/* end confdefs.h. */
32844#include <alloca.h>
32845int
32846main ()
32847{
32848char *p = (char *) alloca (2 * sizeof (int));
32849 if (p) return 0;
32850 ;
32851 return 0;
32852}
32853_ACEOF
32854rm -f conftest.$ac_objext conftest$ac_exeext
32855if { (ac_try="$ac_link"
32856case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859esac
32860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_link") 2>conftest.er1
32862 ac_status=$?
32863 grep -v '^ *+' conftest.er1 >conftest.err
32864 rm -f conftest.er1
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32872esac
32873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest$ac_exeext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032888 ac_cv_working_alloca_h=yes
32889else
32890 echo "$as_me: failed program was:" >&5
32891sed 's/^/| /' conftest.$ac_ext >&5
32892
32893 ac_cv_working_alloca_h=no
32894fi
32895
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032896rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032897 conftest$ac_exeext conftest.$ac_ext
32898fi
32899{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32900echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32901if test $ac_cv_working_alloca_h = yes; then
32902
32903cat >>confdefs.h <<\_ACEOF
32904#define HAVE_ALLOCA_H 1
32905_ACEOF
32906
32907fi
32908
32909{ echo "$as_me:$LINENO: checking for alloca" >&5
32910echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32911if test "${ac_cv_func_alloca_works+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32913else
32914 cat >conftest.$ac_ext <<_ACEOF
32915/* confdefs.h. */
32916_ACEOF
32917cat confdefs.h >>conftest.$ac_ext
32918cat >>conftest.$ac_ext <<_ACEOF
32919/* end confdefs.h. */
32920#ifdef __GNUC__
32921# define alloca __builtin_alloca
32922#else
32923# ifdef _MSC_VER
32924# include <malloc.h>
32925# define alloca _alloca
32926# else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032927# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032928# include <alloca.h>
32929# else
32930# ifdef _AIX
32931 #pragma alloca
32932# else
32933# ifndef alloca /* predefined by HP cc +Olibcalls */
32934char *alloca ();
32935# endif
32936# endif
32937# endif
32938# endif
32939#endif
32940
32941int
32942main ()
32943{
32944char *p = (char *) alloca (1);
32945 if (p) return 0;
32946 ;
32947 return 0;
32948}
32949_ACEOF
32950rm -f conftest.$ac_objext conftest$ac_exeext
32951if { (ac_try="$ac_link"
32952case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32955esac
32956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_link") 2>conftest.er1
32958 ac_status=$?
32959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032963 (exit $ac_status); } &&
32964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest$ac_exeext'
32975 { (case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32978esac
32979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_try") 2>&5
32981 ac_status=$?
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032984 ac_cv_func_alloca_works=yes
32985else
32986 echo "$as_me: failed program was:" >&5
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
32989 ac_cv_func_alloca_works=no
32990fi
32991
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032992rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032993 conftest$ac_exeext conftest.$ac_ext
32994fi
32995{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32996echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32997
32998if test $ac_cv_func_alloca_works = yes; then
32999
33000cat >>confdefs.h <<\_ACEOF
33001#define HAVE_ALLOCA 1
33002_ACEOF
33003
33004else
33005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33006# that cause trouble. Some versions do not even contain alloca or
33007# contain a buggy version. If you still want to use their alloca,
33008# use ar to extract alloca.o from them instead of compiling alloca.c.
33009
33010ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33011
33012cat >>confdefs.h <<\_ACEOF
33013#define C_ALLOCA 1
33014_ACEOF
33015
33016
33017{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
33018echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
33019if test "${ac_cv_os_cray+set}" = set; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022 cat >conftest.$ac_ext <<_ACEOF
33023/* confdefs.h. */
33024_ACEOF
33025cat confdefs.h >>conftest.$ac_ext
33026cat >>conftest.$ac_ext <<_ACEOF
33027/* end confdefs.h. */
33028#if defined CRAY && ! defined CRAY2
33029webecray
33030#else
33031wenotbecray
33032#endif
33033
33034_ACEOF
33035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33036 $EGREP "webecray" >/dev/null 2>&1; then
33037 ac_cv_os_cray=yes
33038else
33039 ac_cv_os_cray=no
33040fi
33041rm -f conftest*
33042
33043fi
33044{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33045echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33046if test $ac_cv_os_cray = yes; then
33047 for ac_func in _getb67 GETB67 getb67; do
33048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33053else
33054 cat >conftest.$ac_ext <<_ACEOF
33055/* confdefs.h. */
33056_ACEOF
33057cat confdefs.h >>conftest.$ac_ext
33058cat >>conftest.$ac_ext <<_ACEOF
33059/* end confdefs.h. */
33060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33062#define $ac_func innocuous_$ac_func
33063
33064/* System header to define __stub macros and hopefully few prototypes,
33065 which can conflict with char $ac_func (); below.
33066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33067 <limits.h> exists even on freestanding compilers. */
33068
33069#ifdef __STDC__
33070# include <limits.h>
33071#else
33072# include <assert.h>
33073#endif
33074
33075#undef $ac_func
33076
33077/* Override any GCC internal prototype to avoid an error.
33078 Use char because int might match the return type of a GCC
33079 builtin and then its argument prototype would still apply. */
33080#ifdef __cplusplus
33081extern "C"
33082#endif
33083char $ac_func ();
33084/* The GNU C library defines this for functions which it implements
33085 to always fail with ENOSYS. Some functions are actually named
33086 something starting with __ and the normal name is an alias. */
33087#if defined __stub_$ac_func || defined __stub___$ac_func
33088choke me
33089#endif
33090
33091int
33092main ()
33093{
33094return $ac_func ();
33095 ;
33096 return 0;
33097}
33098_ACEOF
33099rm -f conftest.$ac_objext conftest$ac_exeext
33100if { (ac_try="$ac_link"
33101case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104esac
33105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_link") 2>conftest.er1
33107 ac_status=$?
33108 grep -v '^ *+' conftest.er1 >conftest.err
33109 rm -f conftest.er1
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033112 (exit $ac_status); } &&
33113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33117esac
33118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; } &&
33123 { ac_try='test -s conftest$ac_exeext'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033133 eval "$as_ac_var=yes"
33134else
33135 echo "$as_me: failed program was:" >&5
33136sed 's/^/| /' conftest.$ac_ext >&5
33137
33138 eval "$as_ac_var=no"
33139fi
33140
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033141rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033142 conftest$ac_exeext conftest.$ac_ext
33143fi
33144ac_res=`eval echo '${'$as_ac_var'}'`
33145 { echo "$as_me:$LINENO: result: $ac_res" >&5
33146echo "${ECHO_T}$ac_res" >&6; }
33147if test `eval echo '${'$as_ac_var'}'` = yes; then
33148
33149cat >>confdefs.h <<_ACEOF
33150#define CRAY_STACKSEG_END $ac_func
33151_ACEOF
33152
33153 break
33154fi
33155
33156 done
33157fi
33158
33159{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33160echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33161if test "${ac_cv_c_stack_direction+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163else
33164 if test "$cross_compiling" = yes; then
33165 ac_cv_c_stack_direction=0
33166else
33167 cat >conftest.$ac_ext <<_ACEOF
33168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
33173$ac_includes_default
33174int
33175find_stack_direction ()
33176{
33177 static char *addr = 0;
33178 auto char dummy;
33179 if (addr == 0)
33180 {
33181 addr = &dummy;
33182 return find_stack_direction ();
33183 }
33184 else
33185 return (&dummy > addr) ? 1 : -1;
33186}
33187
33188int
33189main ()
33190{
33191 return find_stack_direction () < 0;
33192}
33193_ACEOF
33194rm -f conftest$ac_exeext
33195if { (ac_try="$ac_link"
33196case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33199esac
33200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201 (eval "$ac_link") 2>&5
33202 ac_status=$?
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33208esac
33209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 ac_cv_c_stack_direction=1
33215else
33216 echo "$as_me: program exited with status $ac_status" >&5
33217echo "$as_me: failed program was:" >&5
33218sed 's/^/| /' conftest.$ac_ext >&5
33219
33220( exit $ac_status )
33221ac_cv_c_stack_direction=-1
33222fi
33223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33224fi
33225
33226
33227fi
33228{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33229echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33230
33231cat >>confdefs.h <<_ACEOF
33232#define STACK_DIRECTION $ac_cv_c_stack_direction
33233_ACEOF
33234
33235
33236fi
33237
33238
33239{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33240echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33241if test "${ac_cv_func_rand48+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33243else
33244 ac_ext=cpp
33245ac_cpp='$CXXCPP $CPPFLAGS'
33246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33249
33250 cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256#include <stdlib.h>
33257int
33258main ()
33259{
33260srand48(0);lrand48();drand48();
33261 ;
33262 return 0;
33263}
33264_ACEOF
33265rm -f conftest.$ac_objext
33266if { (ac_try="$ac_compile"
33267case "(($ac_try" in
33268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269 *) ac_try_echo=$ac_try;;
33270esac
33271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_compile") 2>conftest.er1
33273 ac_status=$?
33274 grep -v '^ *+' conftest.er1 >conftest.err
33275 rm -f conftest.er1
33276 cat conftest.err >&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033278 (exit $ac_status); } &&
33279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280 { (case "(($ac_try" in
33281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282 *) ac_try_echo=$ac_try;;
33283esac
33284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285 (eval "$ac_try") 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; } &&
33289 { ac_try='test -s conftest.$ac_objext'
33290 { (case "(($ac_try" in
33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292 *) ac_try_echo=$ac_try;;
33293esac
33294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_try") 2>&5
33296 ac_status=$?
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033299 ac_cv_func_rand48=yes
33300else
33301 echo "$as_me: failed program was:" >&5
33302sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 ac_cv_func_rand48=no
33305fi
33306
33307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33308 ac_ext=c
33309ac_cpp='$CPP $CPPFLAGS'
33310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312ac_compiler_gnu=$ac_cv_c_compiler_gnu
33313
33314fi
33315{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33316echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33317
33318if test "$ac_cv_func_rand48" = "yes" ; then
33319
33320cat >>confdefs.h <<\_ACEOF
33321#define HAVE_RAND48 1
33322_ACEOF
33323
33324fi
33325
33326
33327{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33328echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33329if test "${ac_cv_cxx_namespaces+set}" = set; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33331else
33332 ac_ext=cpp
33333ac_cpp='$CXXCPP $CPPFLAGS'
33334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33337
33338 cat >conftest.$ac_ext <<_ACEOF
33339/* confdefs.h. */
33340_ACEOF
33341cat confdefs.h >>conftest.$ac_ext
33342cat >>conftest.$ac_ext <<_ACEOF
33343/* end confdefs.h. */
33344namespace Outer { namespace Inner { int i = 0; }}
33345int
33346main ()
33347{
33348using namespace Outer::Inner; return i;
33349 ;
33350 return 0;
33351}
33352_ACEOF
33353rm -f conftest.$ac_objext
33354if { (ac_try="$ac_compile"
33355case "(($ac_try" in
33356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357 *) ac_try_echo=$ac_try;;
33358esac
33359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33361 ac_status=$?
33362 grep -v '^ *+' conftest.er1 >conftest.err
33363 rm -f conftest.er1
33364 cat conftest.err >&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033366 (exit $ac_status); } &&
33367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33368 { (case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33371esac
33372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_try") 2>&5
33374 ac_status=$?
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; } &&
33377 { ac_try='test -s conftest.$ac_objext'
33378 { (case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33381esac
33382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33384 ac_status=$?
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033387 ac_cv_cxx_namespaces=yes
33388else
33389 echo "$as_me: failed program was:" >&5
33390sed 's/^/| /' conftest.$ac_ext >&5
33391
33392 ac_cv_cxx_namespaces=no
33393fi
33394
33395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33396 ac_ext=c
33397ac_cpp='$CPP $CPPFLAGS'
33398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33400ac_compiler_gnu=$ac_cv_c_compiler_gnu
33401
33402
33403fi
33404{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33405echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33406if test "$ac_cv_cxx_namespaces" = yes; then
33407
33408cat >>confdefs.h <<\_ACEOF
33409#define HAVE_NAMESPACES
33410_ACEOF
33411
33412fi
33413
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033414{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33415echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33416if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33418else
33419
33420 ac_ext=cpp
33421ac_cpp='$CXXCPP $CPPFLAGS'
33422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33425
33426 cat >conftest.$ac_ext <<_ACEOF
33427/* confdefs.h. */
33428_ACEOF
33429cat confdefs.h >>conftest.$ac_ext
33430cat >>conftest.$ac_ext <<_ACEOF
33431/* end confdefs.h. */
33432#include <iterator>
33433#ifdef HAVE_NAMESPACES
33434using namespace std;
33435#endif
33436int
33437main ()
33438{
33439iterator<int,int,int> t; return 0;
33440 ;
33441 return 0;
33442}
33443_ACEOF
33444rm -f conftest.$ac_objext
33445if { (ac_try="$ac_compile"
33446case "(($ac_try" in
33447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448 *) ac_try_echo=$ac_try;;
33449esac
33450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451 (eval "$ac_compile") 2>conftest.er1
33452 ac_status=$?
33453 grep -v '^ *+' conftest.er1 >conftest.err
33454 rm -f conftest.er1
33455 cat conftest.err >&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033457 (exit $ac_status); } &&
33458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33462esac
33463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33465 ac_status=$?
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; } &&
33468 { ac_try='test -s conftest.$ac_objext'
33469 { (case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33472esac
33473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474 (eval "$ac_try") 2>&5
33475 ac_status=$?
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033478 ac_cv_cxx_have_std_iterator=yes
33479else
33480 echo "$as_me: failed program was:" >&5
33481sed 's/^/| /' conftest.$ac_ext >&5
33482
33483 ac_cv_cxx_have_std_iterator=no
33484fi
33485
33486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 ac_ext=c
33488ac_cpp='$CPP $CPPFLAGS'
33489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33491ac_compiler_gnu=$ac_cv_c_compiler_gnu
33492
33493
33494fi
33495{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33496echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33497if test "$ac_cv_cxx_have_std_iterator" = yes
33498then
33499
33500cat >>confdefs.h <<\_ACEOF
33501#define HAVE_STD_ITERATOR 1
33502_ACEOF
33503
33504else
33505
33506cat >>confdefs.h <<\_ACEOF
33507#define HAVE_STD_ITERATOR 0
33508_ACEOF
33509
33510fi
33511
33512{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33513echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33514if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33516else
33517
33518 ac_ext=cpp
33519ac_cpp='$CXXCPP $CPPFLAGS'
33520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33523
33524 cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h. */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h. */
33530#include <iterator>
33531#ifdef HAVE_NAMESPACES
33532using namespace std;
33533#endif
33534int
33535main ()
33536{
33537bidirectional_iterator<int,int> t; return 0;
33538 ;
33539 return 0;
33540}
33541_ACEOF
33542rm -f conftest.$ac_objext
33543if { (ac_try="$ac_compile"
33544case "(($ac_try" in
33545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546 *) ac_try_echo=$ac_try;;
33547esac
33548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549 (eval "$ac_compile") 2>conftest.er1
33550 ac_status=$?
33551 grep -v '^ *+' conftest.er1 >conftest.err
33552 rm -f conftest.er1
33553 cat conftest.err >&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033555 (exit $ac_status); } &&
33556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33560esac
33561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; } &&
33566 { ac_try='test -s conftest.$ac_objext'
33567 { (case "(($ac_try" in
33568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33569 *) ac_try_echo=$ac_try;;
33570esac
33571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33572 (eval "$ac_try") 2>&5
33573 ac_status=$?
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033576 ac_cv_cxx_have_bi_iterator=yes
33577else
33578 echo "$as_me: failed program was:" >&5
33579sed 's/^/| /' conftest.$ac_ext >&5
33580
33581 ac_cv_cxx_have_bi_iterator=no
33582fi
33583
33584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33585 ac_ext=c
33586ac_cpp='$CPP $CPPFLAGS'
33587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33589ac_compiler_gnu=$ac_cv_c_compiler_gnu
33590
33591
33592fi
33593{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33594echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33595if test "$ac_cv_cxx_have_bi_iterator" = yes
33596then
33597
33598cat >>confdefs.h <<\_ACEOF
33599#define HAVE_BI_ITERATOR 1
33600_ACEOF
33601
33602else
33603
33604cat >>confdefs.h <<\_ACEOF
33605#define HAVE_BI_ITERATOR 0
33606_ACEOF
33607
33608fi
33609
33610{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33611echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33612if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
33615
33616 ac_ext=cpp
33617ac_cpp='$CXXCPP $CPPFLAGS'
33618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33621
33622 cat >conftest.$ac_ext <<_ACEOF
33623/* confdefs.h. */
33624_ACEOF
33625cat confdefs.h >>conftest.$ac_ext
33626cat >>conftest.$ac_ext <<_ACEOF
33627/* end confdefs.h. */
33628#include <iterator>
33629#ifdef HAVE_NAMESPACES
33630using namespace std;
33631#endif
33632int
33633main ()
33634{
33635forward_iterator<int,int> t; return 0;
33636 ;
33637 return 0;
33638}
33639_ACEOF
33640rm -f conftest.$ac_objext
33641if { (ac_try="$ac_compile"
33642case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33645esac
33646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_compile") 2>conftest.er1
33648 ac_status=$?
33649 grep -v '^ *+' conftest.er1 >conftest.err
33650 rm -f conftest.er1
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33655 { (case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33658esac
33659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_try") 2>&5
33661 ac_status=$?
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; } &&
33664 { ac_try='test -s conftest.$ac_objext'
33665 { (case "(($ac_try" in
33666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667 *) ac_try_echo=$ac_try;;
33668esac
33669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670 (eval "$ac_try") 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033674 ac_cv_cxx_have_fwd_iterator=yes
33675else
33676 echo "$as_me: failed program was:" >&5
33677sed 's/^/| /' conftest.$ac_ext >&5
33678
33679 ac_cv_cxx_have_fwd_iterator=no
33680fi
33681
33682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33683 ac_ext=c
33684ac_cpp='$CPP $CPPFLAGS'
33685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687ac_compiler_gnu=$ac_cv_c_compiler_gnu
33688
33689
33690fi
33691{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33692echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33693if test "$ac_cv_cxx_have_fwd_iterator" = yes
33694then
33695
33696cat >>confdefs.h <<\_ACEOF
33697#define HAVE_FWD_ITERATOR 1
33698_ACEOF
33699
33700else
33701
33702cat >>confdefs.h <<\_ACEOF
33703#define HAVE_FWD_ITERATOR 0
33704_ACEOF
33705
33706fi
33707
33708
33709{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33710echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33711if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33712 echo $ECHO_N "(cached) $ECHO_C" >&6
33713else
33714 ac_ext=cpp
33715ac_cpp='$CXXCPP $CPPFLAGS'
33716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33719
33720 cat >conftest.$ac_ext <<_ACEOF
33721/* confdefs.h. */
33722_ACEOF
33723cat confdefs.h >>conftest.$ac_ext
33724cat >>conftest.$ac_ext <<_ACEOF
33725/* end confdefs.h. */
33726#include <math.h>
33727int
33728main ()
33729{
33730float f; isnan(f);
33731 ;
33732 return 0;
33733}
33734_ACEOF
33735rm -f conftest.$ac_objext
33736if { (ac_try="$ac_compile"
33737case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33740esac
33741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_compile") 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753esac
33754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest.$ac_objext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33763esac
33764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033769 ac_cv_func_isnan_in_math_h=yes
33770else
33771 echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774 ac_cv_func_isnan_in_math_h=no
33775fi
33776
33777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778 ac_ext=c
33779ac_cpp='$CPP $CPPFLAGS'
33780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33782ac_compiler_gnu=$ac_cv_c_compiler_gnu
33783
33784fi
33785{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33786echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33787
33788
33789if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33790
33791cat >>confdefs.h <<\_ACEOF
33792#define HAVE_ISNAN_IN_MATH_H 1
33793_ACEOF
33794
33795fi
33796
33797{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33798echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33799if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33800 echo $ECHO_N "(cached) $ECHO_C" >&6
33801else
33802 ac_ext=cpp
33803ac_cpp='$CXXCPP $CPPFLAGS'
33804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33807
33808 cat >conftest.$ac_ext <<_ACEOF
33809/* confdefs.h. */
33810_ACEOF
33811cat confdefs.h >>conftest.$ac_ext
33812cat >>conftest.$ac_ext <<_ACEOF
33813/* end confdefs.h. */
33814#include <cmath>
33815int
33816main ()
33817{
33818float f; isnan(f);
33819 ;
33820 return 0;
33821}
33822_ACEOF
33823rm -f conftest.$ac_objext
33824if { (ac_try="$ac_compile"
33825case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33828esac
33829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_compile") 2>conftest.er1
33831 ac_status=$?
33832 grep -v '^ *+' conftest.er1 >conftest.err
33833 rm -f conftest.er1
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033836 (exit $ac_status); } &&
33837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33838 { (case "(($ac_try" in
33839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840 *) ac_try_echo=$ac_try;;
33841esac
33842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843 (eval "$ac_try") 2>&5
33844 ac_status=$?
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; } &&
33847 { ac_try='test -s conftest.$ac_objext'
33848 { (case "(($ac_try" in
33849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850 *) ac_try_echo=$ac_try;;
33851esac
33852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853 (eval "$ac_try") 2>&5
33854 ac_status=$?
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033857 ac_cv_func_isnan_in_cmath=yes
33858else
33859 echo "$as_me: failed program was:" >&5
33860sed 's/^/| /' conftest.$ac_ext >&5
33861
33862 ac_cv_func_isnan_in_cmath=no
33863fi
33864
33865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 ac_ext=c
33867ac_cpp='$CPP $CPPFLAGS'
33868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33870ac_compiler_gnu=$ac_cv_c_compiler_gnu
33871
33872fi
33873{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33874echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33875
33876if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33877
33878cat >>confdefs.h <<\_ACEOF
33879#define HAVE_ISNAN_IN_CMATH 1
33880_ACEOF
33881
33882fi
33883
33884{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33885echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33886if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33888else
33889 ac_ext=cpp
33890ac_cpp='$CXXCPP $CPPFLAGS'
33891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33894
33895 cat >conftest.$ac_ext <<_ACEOF
33896/* confdefs.h. */
33897_ACEOF
33898cat confdefs.h >>conftest.$ac_ext
33899cat >>conftest.$ac_ext <<_ACEOF
33900/* end confdefs.h. */
33901#include <cmath>
33902int
33903main ()
33904{
33905float f; std::isnan(f);
33906 ;
33907 return 0;
33908}
33909_ACEOF
33910rm -f conftest.$ac_objext
33911if { (ac_try="$ac_compile"
33912case "(($ac_try" in
33913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33914 *) ac_try_echo=$ac_try;;
33915esac
33916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33917 (eval "$ac_compile") 2>conftest.er1
33918 ac_status=$?
33919 grep -v '^ *+' conftest.er1 >conftest.err
33920 rm -f conftest.er1
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033923 (exit $ac_status); } &&
33924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33925 { (case "(($ac_try" in
33926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33927 *) ac_try_echo=$ac_try;;
33928esac
33929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33930 (eval "$ac_try") 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; } &&
33934 { ac_try='test -s conftest.$ac_objext'
33935 { (case "(($ac_try" in
33936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937 *) ac_try_echo=$ac_try;;
33938esac
33939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33940 (eval "$ac_try") 2>&5
33941 ac_status=$?
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033944 ac_cv_func_std_isnan_in_cmath=yes
33945else
33946 echo "$as_me: failed program was:" >&5
33947sed 's/^/| /' conftest.$ac_ext >&5
33948
33949 ac_cv_func_std_isnan_in_cmath=no
33950fi
33951
33952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33953 ac_ext=c
33954ac_cpp='$CPP $CPPFLAGS'
33955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33957ac_compiler_gnu=$ac_cv_c_compiler_gnu
33958
33959fi
33960{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33961echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33962
33963if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33964
33965cat >>confdefs.h <<\_ACEOF
33966#define HAVE_STD_ISNAN_IN_CMATH 1
33967_ACEOF
33968
33969fi
33970
33971
33972{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33973echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33974if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33975 echo $ECHO_N "(cached) $ECHO_C" >&6
33976else
33977 ac_ext=cpp
33978ac_cpp='$CXXCPP $CPPFLAGS'
33979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33982
33983 cat >conftest.$ac_ext <<_ACEOF
33984/* confdefs.h. */
33985_ACEOF
33986cat confdefs.h >>conftest.$ac_ext
33987cat >>conftest.$ac_ext <<_ACEOF
33988/* end confdefs.h. */
33989#include <math.h>
33990int
33991main ()
33992{
33993float f; isinf(f);
33994 ;
33995 return 0;
33996}
33997_ACEOF
33998rm -f conftest.$ac_objext
33999if { (ac_try="$ac_compile"
34000case "(($ac_try" in
34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002 *) ac_try_echo=$ac_try;;
34003esac
34004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005 (eval "$ac_compile") 2>conftest.er1
34006 ac_status=$?
34007 grep -v '^ *+' conftest.er1 >conftest.err
34008 rm -f conftest.er1
34009 cat conftest.err >&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034011 (exit $ac_status); } &&
34012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34013 { (case "(($ac_try" in
34014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015 *) ac_try_echo=$ac_try;;
34016esac
34017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018 (eval "$ac_try") 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest.$ac_objext'
34023 { (case "(($ac_try" in
34024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025 *) ac_try_echo=$ac_try;;
34026esac
34027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028 (eval "$ac_try") 2>&5
34029 ac_status=$?
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034032 ac_cv_func_isinf_in_math_h=yes
34033else
34034 echo "$as_me: failed program was:" >&5
34035sed 's/^/| /' conftest.$ac_ext >&5
34036
34037 ac_cv_func_isinf_in_math_h=no
34038fi
34039
34040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34041 ac_ext=c
34042ac_cpp='$CPP $CPPFLAGS'
34043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34045ac_compiler_gnu=$ac_cv_c_compiler_gnu
34046
34047fi
34048{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
34049echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
34050
34051if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
34052
34053cat >>confdefs.h <<\_ACEOF
34054#define HAVE_ISINF_IN_MATH_H 1
34055_ACEOF
34056
34057fi
34058
34059{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
34060echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
34061if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
34062 echo $ECHO_N "(cached) $ECHO_C" >&6
34063else
34064 ac_ext=cpp
34065ac_cpp='$CXXCPP $CPPFLAGS'
34066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34069
34070 cat >conftest.$ac_ext <<_ACEOF
34071/* confdefs.h. */
34072_ACEOF
34073cat confdefs.h >>conftest.$ac_ext
34074cat >>conftest.$ac_ext <<_ACEOF
34075/* end confdefs.h. */
34076#include <cmath>
34077int
34078main ()
34079{
34080float f; isinf(f);
34081 ;
34082 return 0;
34083}
34084_ACEOF
34085rm -f conftest.$ac_objext
34086if { (ac_try="$ac_compile"
34087case "(($ac_try" in
34088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089 *) ac_try_echo=$ac_try;;
34090esac
34091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092 (eval "$ac_compile") 2>conftest.er1
34093 ac_status=$?
34094 grep -v '^ *+' conftest.er1 >conftest.err
34095 rm -f conftest.er1
34096 cat conftest.err >&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034098 (exit $ac_status); } &&
34099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34100 { (case "(($ac_try" in
34101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102 *) ac_try_echo=$ac_try;;
34103esac
34104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105 (eval "$ac_try") 2>&5
34106 ac_status=$?
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } &&
34109 { ac_try='test -s conftest.$ac_objext'
34110 { (case "(($ac_try" in
34111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34112 *) ac_try_echo=$ac_try;;
34113esac
34114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34115 (eval "$ac_try") 2>&5
34116 ac_status=$?
34117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034119 ac_cv_func_isinf_in_cmath=yes
34120else
34121 echo "$as_me: failed program was:" >&5
34122sed 's/^/| /' conftest.$ac_ext >&5
34123
34124 ac_cv_func_isinf_in_cmath=no
34125fi
34126
34127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34128 ac_ext=c
34129ac_cpp='$CPP $CPPFLAGS'
34130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34132ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133
34134fi
34135{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34136echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34137
34138if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34139
34140cat >>confdefs.h <<\_ACEOF
34141#define HAVE_ISINF_IN_CMATH 1
34142_ACEOF
34143
34144fi
34145
34146{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34147echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34148if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34149 echo $ECHO_N "(cached) $ECHO_C" >&6
34150else
34151 ac_ext=cpp
34152ac_cpp='$CXXCPP $CPPFLAGS'
34153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34156
34157 cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
34163#include <cmath>
34164int
34165main ()
34166{
34167float f; std::isinf(f)}
34168 ;
34169 return 0;
34170}
34171_ACEOF
34172rm -f conftest.$ac_objext
34173if { (ac_try="$ac_compile"
34174case "(($ac_try" in
34175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176 *) ac_try_echo=$ac_try;;
34177esac
34178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179 (eval "$ac_compile") 2>conftest.er1
34180 ac_status=$?
34181 grep -v '^ *+' conftest.er1 >conftest.err
34182 rm -f conftest.er1
34183 cat conftest.err >&5
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034185 (exit $ac_status); } &&
34186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34187 { (case "(($ac_try" in
34188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34189 *) ac_try_echo=$ac_try;;
34190esac
34191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34192 (eval "$ac_try") 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; } &&
34196 { ac_try='test -s conftest.$ac_objext'
34197 { (case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34200esac
34201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_try") 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034206 ac_cv_func_std_isinf_in_cmath=yes
34207else
34208 echo "$as_me: failed program was:" >&5
34209sed 's/^/| /' conftest.$ac_ext >&5
34210
34211 ac_cv_func_std_isinf_in_cmath=no
34212fi
34213
34214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34215 ac_ext=c
34216ac_cpp='$CPP $CPPFLAGS'
34217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34219ac_compiler_gnu=$ac_cv_c_compiler_gnu
34220
34221fi
34222{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34223echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34224
34225if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34226
34227cat >>confdefs.h <<\_ACEOF
34228#define HAVE_STD_ISINF_IN_CMATH 1
34229_ACEOF
34230
34231fi
34232
34233{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34234echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34235if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34237else
34238 ac_ext=cpp
34239ac_cpp='$CXXCPP $CPPFLAGS'
34240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34243
34244 cat >conftest.$ac_ext <<_ACEOF
34245/* confdefs.h. */
34246_ACEOF
34247cat confdefs.h >>conftest.$ac_ext
34248cat >>conftest.$ac_ext <<_ACEOF
34249/* end confdefs.h. */
34250#include <ieeefp.h>
34251int
34252main ()
34253{
34254float f; finite(f);
34255 ;
34256 return 0;
34257}
34258_ACEOF
34259rm -f conftest.$ac_objext
34260if { (ac_try="$ac_compile"
34261case "(($ac_try" in
34262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263 *) ac_try_echo=$ac_try;;
34264esac
34265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266 (eval "$ac_compile") 2>conftest.er1
34267 ac_status=$?
34268 grep -v '^ *+' conftest.er1 >conftest.err
34269 rm -f conftest.er1
34270 cat conftest.err >&5
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034272 (exit $ac_status); } &&
34273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34274 { (case "(($ac_try" in
34275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276 *) ac_try_echo=$ac_try;;
34277esac
34278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279 (eval "$ac_try") 2>&5
34280 ac_status=$?
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); }; } &&
34283 { ac_try='test -s conftest.$ac_objext'
34284 { (case "(($ac_try" in
34285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286 *) ac_try_echo=$ac_try;;
34287esac
34288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289 (eval "$ac_try") 2>&5
34290 ac_status=$?
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034293 ac_cv_func_finite_in_ieeefp_h=yes
34294else
34295 echo "$as_me: failed program was:" >&5
34296sed 's/^/| /' conftest.$ac_ext >&5
34297
34298 ac_cv_func_finite_in_ieeefp_h=no
34299fi
34300
34301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 ac_ext=c
34303ac_cpp='$CPP $CPPFLAGS'
34304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34306ac_compiler_gnu=$ac_cv_c_compiler_gnu
34307
34308fi
34309{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34310echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34311
34312if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34313
34314cat >>confdefs.h <<\_ACEOF
34315#define HAVE_FINITE_IN_IEEEFP_H 1
34316_ACEOF
34317
34318fi
34319
34320
34321
34322if test "$llvm_cv_platform_type" = "Unix" ; then
34323
34324
34325for ac_header in stdlib.h unistd.h
34326do
34327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34333fi
34334ac_res=`eval echo '${'$as_ac_Header'}'`
34335 { echo "$as_me:$LINENO: result: $ac_res" >&5
34336echo "${ECHO_T}$ac_res" >&6; }
34337else
34338 # Is the header compilable?
34339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34341cat >conftest.$ac_ext <<_ACEOF
34342/* confdefs.h. */
34343_ACEOF
34344cat confdefs.h >>conftest.$ac_ext
34345cat >>conftest.$ac_ext <<_ACEOF
34346/* end confdefs.h. */
34347$ac_includes_default
34348#include <$ac_header>
34349_ACEOF
34350rm -f conftest.$ac_objext
34351if { (ac_try="$ac_compile"
34352case "(($ac_try" in
34353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354 *) ac_try_echo=$ac_try;;
34355esac
34356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357 (eval "$ac_compile") 2>conftest.er1
34358 ac_status=$?
34359 grep -v '^ *+' conftest.er1 >conftest.err
34360 rm -f conftest.er1
34361 cat conftest.err >&5
34362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034363 (exit $ac_status); } &&
34364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34365 { (case "(($ac_try" in
34366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367 *) ac_try_echo=$ac_try;;
34368esac
34369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370 (eval "$ac_try") 2>&5
34371 ac_status=$?
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); }; } &&
34374 { ac_try='test -s conftest.$ac_objext'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34378esac
34379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034384 ac_header_compiler=yes
34385else
34386 echo "$as_me: failed program was:" >&5
34387sed 's/^/| /' conftest.$ac_ext >&5
34388
34389 ac_header_compiler=no
34390fi
34391
34392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34394echo "${ECHO_T}$ac_header_compiler" >&6; }
34395
34396# Is the header present?
34397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34399cat >conftest.$ac_ext <<_ACEOF
34400/* confdefs.h. */
34401_ACEOF
34402cat confdefs.h >>conftest.$ac_ext
34403cat >>conftest.$ac_ext <<_ACEOF
34404/* end confdefs.h. */
34405#include <$ac_header>
34406_ACEOF
34407if { (ac_try="$ac_cpp conftest.$ac_ext"
34408case "(($ac_try" in
34409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34410 *) ac_try_echo=$ac_try;;
34411esac
34412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34414 ac_status=$?
34415 grep -v '^ *+' conftest.er1 >conftest.err
34416 rm -f conftest.er1
34417 cat conftest.err >&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034419 (exit $ac_status); } >/dev/null; then
34420 if test -s conftest.err; then
34421 ac_cpp_err=$ac_c_preproc_warn_flag
34422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34423 else
34424 ac_cpp_err=
34425 fi
34426else
34427 ac_cpp_err=yes
34428fi
34429if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034430 ac_header_preproc=yes
34431else
34432 echo "$as_me: failed program was:" >&5
34433sed 's/^/| /' conftest.$ac_ext >&5
34434
34435 ac_header_preproc=no
34436fi
34437
34438rm -f conftest.err conftest.$ac_ext
34439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34440echo "${ECHO_T}$ac_header_preproc" >&6; }
34441
34442# So? What about this header?
34443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34444 yes:no: )
34445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34449 ac_header_preproc=yes
34450 ;;
34451 no:yes:* )
34452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34464 ( cat <<\_ASBOX
34465## ----------------------------------- ##
34466## Report this to llvmbugs@cs.uiuc.edu ##
34467## ----------------------------------- ##
34468_ASBOX
34469 ) | sed "s/^/$as_me: WARNING: /" >&2
34470 ;;
34471esac
34472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34476else
34477 eval "$as_ac_Header=\$ac_header_preproc"
34478fi
34479ac_res=`eval echo '${'$as_ac_Header'}'`
34480 { echo "$as_me:$LINENO: result: $ac_res" >&5
34481echo "${ECHO_T}$ac_res" >&6; }
34482
34483fi
34484if test `eval echo '${'$as_ac_Header'}'` = yes; then
34485 cat >>confdefs.h <<_ACEOF
34486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34487_ACEOF
34488
34489fi
34490
34491done
34492
34493
34494for ac_func in getpagesize
34495do
34496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34500 echo $ECHO_N "(cached) $ECHO_C" >&6
34501else
34502 cat >conftest.$ac_ext <<_ACEOF
34503/* confdefs.h. */
34504_ACEOF
34505cat confdefs.h >>conftest.$ac_ext
34506cat >>conftest.$ac_ext <<_ACEOF
34507/* end confdefs.h. */
34508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34510#define $ac_func innocuous_$ac_func
34511
34512/* System header to define __stub macros and hopefully few prototypes,
34513 which can conflict with char $ac_func (); below.
34514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34515 <limits.h> exists even on freestanding compilers. */
34516
34517#ifdef __STDC__
34518# include <limits.h>
34519#else
34520# include <assert.h>
34521#endif
34522
34523#undef $ac_func
34524
34525/* Override any GCC internal prototype to avoid an error.
34526 Use char because int might match the return type of a GCC
34527 builtin and then its argument prototype would still apply. */
34528#ifdef __cplusplus
34529extern "C"
34530#endif
34531char $ac_func ();
34532/* The GNU C library defines this for functions which it implements
34533 to always fail with ENOSYS. Some functions are actually named
34534 something starting with __ and the normal name is an alias. */
34535#if defined __stub_$ac_func || defined __stub___$ac_func
34536choke me
34537#endif
34538
34539int
34540main ()
34541{
34542return $ac_func ();
34543 ;
34544 return 0;
34545}
34546_ACEOF
34547rm -f conftest.$ac_objext conftest$ac_exeext
34548if { (ac_try="$ac_link"
34549case "(($ac_try" in
34550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34551 *) ac_try_echo=$ac_try;;
34552esac
34553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34554 (eval "$ac_link") 2>conftest.er1
34555 ac_status=$?
34556 grep -v '^ *+' conftest.er1 >conftest.err
34557 rm -f conftest.er1
34558 cat conftest.err >&5
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034560 (exit $ac_status); } &&
34561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34562 { (case "(($ac_try" in
34563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34564 *) ac_try_echo=$ac_try;;
34565esac
34566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567 (eval "$ac_try") 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; } &&
34571 { ac_try='test -s conftest$ac_exeext'
34572 { (case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34575esac
34576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577 (eval "$ac_try") 2>&5
34578 ac_status=$?
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034581 eval "$as_ac_var=yes"
34582else
34583 echo "$as_me: failed program was:" >&5
34584sed 's/^/| /' conftest.$ac_ext >&5
34585
34586 eval "$as_ac_var=no"
34587fi
34588
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034589rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034590 conftest$ac_exeext conftest.$ac_ext
34591fi
34592ac_res=`eval echo '${'$as_ac_var'}'`
34593 { echo "$as_me:$LINENO: result: $ac_res" >&5
34594echo "${ECHO_T}$ac_res" >&6; }
34595if test `eval echo '${'$as_ac_var'}'` = yes; then
34596 cat >>confdefs.h <<_ACEOF
34597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34598_ACEOF
34599
34600fi
34601done
34602
34603{ echo "$as_me:$LINENO: checking for working mmap" >&5
34604echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34605if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34606 echo $ECHO_N "(cached) $ECHO_C" >&6
34607else
34608 if test "$cross_compiling" = yes; then
34609 ac_cv_func_mmap_fixed_mapped=no
34610else
34611 cat >conftest.$ac_ext <<_ACEOF
34612/* confdefs.h. */
34613_ACEOF
34614cat confdefs.h >>conftest.$ac_ext
34615cat >>conftest.$ac_ext <<_ACEOF
34616/* end confdefs.h. */
34617$ac_includes_default
34618/* malloc might have been renamed as rpl_malloc. */
34619#undef malloc
34620
34621/* Thanks to Mike Haertel and Jim Avera for this test.
34622 Here is a matrix of mmap possibilities:
34623 mmap private not fixed
34624 mmap private fixed at somewhere currently unmapped
34625 mmap private fixed at somewhere already mapped
34626 mmap shared not fixed
34627 mmap shared fixed at somewhere currently unmapped
34628 mmap shared fixed at somewhere already mapped
34629 For private mappings, we should verify that changes cannot be read()
34630 back from the file, nor mmap's back from the file at a different
34631 address. (There have been systems where private was not correctly
34632 implemented like the infamous i386 svr4.0, and systems where the
34633 VM page cache was not coherent with the file system buffer cache
34634 like early versions of FreeBSD and possibly contemporary NetBSD.)
34635 For shared mappings, we should conversely verify that changes get
34636 propagated back to all the places they're supposed to be.
34637
34638 Grep wants private fixed already mapped.
34639 The main things grep needs to know about mmap are:
34640 * does it exist and is it safe to write into the mmap'd area
34641 * how to use it (BSD variants) */
34642
34643#include <fcntl.h>
34644#include <sys/mman.h>
34645
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034646#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034647char *malloc ();
34648#endif
34649
34650/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034651#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034652/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034653# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034654# define HAVE_SYS_PARAM_H 1
34655# endif
34656
34657# ifdef _SC_PAGESIZE
34658# define getpagesize() sysconf(_SC_PAGESIZE)
34659# else /* no _SC_PAGESIZE */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034660# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034661# include <sys/param.h>
34662# ifdef EXEC_PAGESIZE
34663# define getpagesize() EXEC_PAGESIZE
34664# else /* no EXEC_PAGESIZE */
34665# ifdef NBPG
34666# define getpagesize() NBPG * CLSIZE
34667# ifndef CLSIZE
34668# define CLSIZE 1
34669# endif /* no CLSIZE */
34670# else /* no NBPG */
34671# ifdef NBPC
34672# define getpagesize() NBPC
34673# else /* no NBPC */
34674# ifdef PAGESIZE
34675# define getpagesize() PAGESIZE
34676# endif /* PAGESIZE */
34677# endif /* no NBPC */
34678# endif /* no NBPG */
34679# endif /* no EXEC_PAGESIZE */
34680# else /* no HAVE_SYS_PARAM_H */
34681# define getpagesize() 8192 /* punt totally */
34682# endif /* no HAVE_SYS_PARAM_H */
34683# endif /* no _SC_PAGESIZE */
34684
34685#endif /* no HAVE_GETPAGESIZE */
34686
34687int
34688main ()
34689{
34690 char *data, *data2, *data3;
34691 int i, pagesize;
34692 int fd;
34693
34694 pagesize = getpagesize ();
34695
34696 /* First, make a file with some known garbage in it. */
34697 data = (char *) malloc (pagesize);
34698 if (!data)
34699 return 1;
34700 for (i = 0; i < pagesize; ++i)
34701 *(data + i) = rand ();
34702 umask (0);
34703 fd = creat ("conftest.mmap", 0600);
34704 if (fd < 0)
34705 return 1;
34706 if (write (fd, data, pagesize) != pagesize)
34707 return 1;
34708 close (fd);
34709
34710 /* Next, try to mmap the file at a fixed address which already has
34711 something else allocated at it. If we can, also make sure that
34712 we see the same garbage. */
34713 fd = open ("conftest.mmap", O_RDWR);
34714 if (fd < 0)
34715 return 1;
34716 data2 = (char *) malloc (2 * pagesize);
34717 if (!data2)
34718 return 1;
34719 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34720 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34721 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34722 return 1;
34723 for (i = 0; i < pagesize; ++i)
34724 if (*(data + i) != *(data2 + i))
34725 return 1;
34726
34727 /* Finally, make sure that changes to the mapped area do not
34728 percolate back to the file as seen by read(). (This is a bug on
34729 some variants of i386 svr4.0.) */
34730 for (i = 0; i < pagesize; ++i)
34731 *(data2 + i) = *(data2 + i) + 1;
34732 data3 = (char *) malloc (pagesize);
34733 if (!data3)
34734 return 1;
34735 if (read (fd, data3, pagesize) != pagesize)
34736 return 1;
34737 for (i = 0; i < pagesize; ++i)
34738 if (*(data + i) != *(data3 + i))
34739 return 1;
34740 close (fd);
34741 return 0;
34742}
34743_ACEOF
34744rm -f conftest$ac_exeext
34745if { (ac_try="$ac_link"
34746case "(($ac_try" in
34747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34748 *) ac_try_echo=$ac_try;;
34749esac
34750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34751 (eval "$ac_link") 2>&5
34752 ac_status=$?
34753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34755 { (case "(($ac_try" in
34756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757 *) ac_try_echo=$ac_try;;
34758esac
34759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760 (eval "$ac_try") 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 ac_cv_func_mmap_fixed_mapped=yes
34765else
34766 echo "$as_me: program exited with status $ac_status" >&5
34767echo "$as_me: failed program was:" >&5
34768sed 's/^/| /' conftest.$ac_ext >&5
34769
34770( exit $ac_status )
34771ac_cv_func_mmap_fixed_mapped=no
34772fi
34773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34774fi
34775
34776
34777fi
34778{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34779echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34780if test $ac_cv_func_mmap_fixed_mapped = yes; then
34781
34782cat >>confdefs.h <<\_ACEOF
34783#define HAVE_MMAP 1
34784_ACEOF
34785
34786fi
34787rm -f conftest.mmap
34788
34789 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34790echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34791if test "${ac_cv_func_mmap_file+set}" = set; then
34792 echo $ECHO_N "(cached) $ECHO_C" >&6
34793else
34794 ac_ext=c
34795ac_cpp='$CPP $CPPFLAGS'
34796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34798ac_compiler_gnu=$ac_cv_c_compiler_gnu
34799
34800 if test "$cross_compiling" = yes; then
34801 ac_cv_func_mmap_file=no
34802else
34803 cat >conftest.$ac_ext <<_ACEOF
34804
34805 /* confdefs.h. */
34806_ACEOF
34807cat confdefs.h >>conftest.$ac_ext
34808cat >>conftest.$ac_ext <<_ACEOF
34809/* end confdefs.h. */
34810
34811#include <sys/types.h>
34812#include <sys/mman.h>
34813#include <fcntl.h>
34814
34815int
34816main ()
34817{
34818
34819 int fd;
34820 fd = creat ("foo",0777);
34821 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34822 unlink ("foo");
34823 return (fd != (int) MAP_FAILED);
34824 ;
34825 return 0;
34826}
34827_ACEOF
34828rm -f conftest$ac_exeext
34829if { (ac_try="$ac_link"
34830case "(($ac_try" in
34831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34832 *) ac_try_echo=$ac_try;;
34833esac
34834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34835 (eval "$ac_link") 2>&5
34836 ac_status=$?
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34839 { (case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842esac
34843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_try") 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 ac_cv_func_mmap_file=yes
34849else
34850 echo "$as_me: program exited with status $ac_status" >&5
34851echo "$as_me: failed program was:" >&5
34852sed 's/^/| /' conftest.$ac_ext >&5
34853
34854( exit $ac_status )
34855ac_cv_func_mmap_file=no
34856fi
34857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34858fi
34859
34860
34861 ac_ext=c
34862ac_cpp='$CPP $CPPFLAGS'
34863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34865ac_compiler_gnu=$ac_cv_c_compiler_gnu
34866
34867
34868fi
34869{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34870echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34871if test "$ac_cv_func_mmap_file" = yes; then
34872
34873cat >>confdefs.h <<\_ACEOF
34874#define HAVE_MMAP_FILE
34875_ACEOF
34876
34877 MMAP_FILE=yes
34878
34879fi
34880
34881 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34882echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34883if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34884 echo $ECHO_N "(cached) $ECHO_C" >&6
34885else
34886 if test "$llvm_cv_os_type" = "Interix" ; then
34887 ac_cv_need_dev_zero_for_mmap=yes
34888 else
34889 ac_cv_need_dev_zero_for_mmap=no
34890 fi
34891
34892fi
34893{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34894echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34895if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34896
34897cat >>confdefs.h <<\_ACEOF
34898#define NEED_DEV_ZERO_FOR_MMAP 1
34899_ACEOF
34900
34901fi
34902
34903 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34904 then
34905 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34906echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34907 fi
34908 if test "$ac_cv_func_mmap_file" = "no"
34909 then
34910 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34911echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34912 fi
34913fi
34914
Owen Anderson96237ec2009-05-19 22:18:56 +000034915{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000034916echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034917cat >conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000034918/* confdefs.h. */
34919_ACEOF
34920cat confdefs.h >>conftest.$ac_ext
34921cat >>conftest.$ac_ext <<_ACEOF
34922/* end confdefs.h. */
34923int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000034924 volatile unsigned long val = 1;
34925 __sync_synchronize();
34926 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000034927 __sync_add_and_fetch(&val, 1);
34928 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000034929 return 0;
34930 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034931
34932_ACEOF
34933rm -f conftest.$ac_objext conftest$ac_exeext
34934if { (ac_try="$ac_link"
34935case "(($ac_try" in
34936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937 *) ac_try_echo=$ac_try;;
34938esac
34939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940 (eval "$ac_link") 2>conftest.er1
34941 ac_status=$?
34942 grep -v '^ *+' conftest.er1 >conftest.err
34943 rm -f conftest.er1
34944 cat conftest.err >&5
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } &&
34947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34948 { (case "(($ac_try" in
34949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950 *) ac_try_echo=$ac_try;;
34951esac
34952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34953 (eval "$ac_try") 2>&5
34954 ac_status=$?
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; } &&
34957 { ac_try='test -s conftest$ac_exeext'
34958 { (case "(($ac_try" in
34959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960 *) ac_try_echo=$ac_try;;
34961esac
34962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34963 (eval "$ac_try") 2>&5
34964 ac_status=$?
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); }; }; then
34967 { echo "$as_me:$LINENO: result: yes" >&5
34968echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034969
34970cat >>confdefs.h <<\_ACEOF
34971#define LLVM_MULTITHREADED 1
34972_ACEOF
34973
Owen Andersonff0f88e2009-05-18 23:58:51 +000034974else
34975 echo "$as_me: failed program was:" >&5
34976sed 's/^/| /' conftest.$ac_ext >&5
34977
34978 { echo "$as_me:$LINENO: result: no" >&5
34979echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034980
Owen Anderson96237ec2009-05-19 22:18:56 +000034981cat >>confdefs.h <<\_ACEOF
34982#define LLVM_MULTITHREADED 0
34983_ACEOF
34984
34985 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34986echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000034987fi
34988
34989rm -f core conftest.err conftest.$ac_objext \
34990 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000034991
34992
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034993
Reid Spencer59c09b32007-07-30 20:13:24 +000034994
34995for ac_func in __dso_handle
34996do
34997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34998{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35000if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35001 echo $ECHO_N "(cached) $ECHO_C" >&6
35002else
35003 cat >conftest.$ac_ext <<_ACEOF
35004/* confdefs.h. */
35005_ACEOF
35006cat confdefs.h >>conftest.$ac_ext
35007cat >>conftest.$ac_ext <<_ACEOF
35008/* end confdefs.h. */
35009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35011#define $ac_func innocuous_$ac_func
35012
35013/* System header to define __stub macros and hopefully few prototypes,
35014 which can conflict with char $ac_func (); below.
35015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35016 <limits.h> exists even on freestanding compilers. */
35017
35018#ifdef __STDC__
35019# include <limits.h>
35020#else
35021# include <assert.h>
35022#endif
35023
35024#undef $ac_func
35025
35026/* Override any GCC internal prototype to avoid an error.
35027 Use char because int might match the return type of a GCC
35028 builtin and then its argument prototype would still apply. */
35029#ifdef __cplusplus
35030extern "C"
35031#endif
35032char $ac_func ();
35033/* The GNU C library defines this for functions which it implements
35034 to always fail with ENOSYS. Some functions are actually named
35035 something starting with __ and the normal name is an alias. */
35036#if defined __stub_$ac_func || defined __stub___$ac_func
35037choke me
35038#endif
35039
35040int
35041main ()
35042{
35043return $ac_func ();
35044 ;
35045 return 0;
35046}
35047_ACEOF
35048rm -f conftest.$ac_objext conftest$ac_exeext
35049if { (ac_try="$ac_link"
35050case "(($ac_try" in
35051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052 *) ac_try_echo=$ac_try;;
35053esac
35054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055 (eval "$ac_link") 2>conftest.er1
35056 ac_status=$?
35057 grep -v '^ *+' conftest.er1 >conftest.err
35058 rm -f conftest.er1
35059 cat conftest.err >&5
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035061 (exit $ac_status); } &&
35062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35063 { (case "(($ac_try" in
35064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065 *) ac_try_echo=$ac_try;;
35066esac
35067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068 (eval "$ac_try") 2>&5
35069 ac_status=$?
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); }; } &&
35072 { ac_try='test -s conftest$ac_exeext'
35073 { (case "(($ac_try" in
35074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075 *) ac_try_echo=$ac_try;;
35076esac
35077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078 (eval "$ac_try") 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000035082 eval "$as_ac_var=yes"
35083else
35084 echo "$as_me: failed program was:" >&5
35085sed 's/^/| /' conftest.$ac_ext >&5
35086
35087 eval "$as_ac_var=no"
35088fi
35089
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035090rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000035091 conftest$ac_exeext conftest.$ac_ext
35092fi
35093ac_res=`eval echo '${'$as_ac_var'}'`
35094 { echo "$as_me:$LINENO: result: $ac_res" >&5
35095echo "${ECHO_T}$ac_res" >&6; }
35096if test `eval echo '${'$as_ac_var'}'` = yes; then
35097 cat >>confdefs.h <<_ACEOF
35098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35099_ACEOF
35100
35101fi
35102done
35103
35104
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035105{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35106echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35107if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35108 echo $ECHO_N "(cached) $ECHO_C" >&6
35109else
35110 llvm_cv_llvmgcc_sanity="no"
35111if test -x "$LLVMGCC" ; then
35112 cp /dev/null conftest.c
35113 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35114 grep 'target datalayout =' > /dev/null 2>&1
35115 if test $? -eq 0 ; then
35116 llvm_cv_llvmgcc_sanity="yes"
35117 fi
35118 rm conftest.c
35119fi
35120fi
35121{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35122echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35123
35124if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35125 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35126echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35127 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35128 LLVMCC1=$llvmcc1path
35129
35130 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35131 LLVMCC1PLUS=$llvmcc1pluspath
35132
35133 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35134 LLVMGCCDIR=$llvmgccdir
35135
35136 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35137 LLVMGCCLIBEXEC=$llvmgcclibexec
35138
35139 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35140 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35141 LLVMGCC_VERSION=$llvmgccversion
35142
35143 LLVMGCC_MAJVERS=$llvmgccmajvers
35144
Tanya Lattner9894c2c2008-10-07 22:21:03 +000035145 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035146 LLVMGCC_LANGS=$llvmgcclangs
35147
35148 { echo "$as_me:$LINENO: result: ok" >&5
35149echo "${ECHO_T}ok" >&6; }
35150fi
35151
35152SHLIBEXT=$libltdl_cv_shlibext
35153
35154
35155# Translate the various configuration directories and other basic
35156# information into substitutions that will end up in Makefile.config.in
35157# that these configured values can be used by the makefiles
35158if test "${prefix}" = "NONE" ; then
35159 prefix="/usr/local"
35160fi
35161eval LLVM_PREFIX="${prefix}";
35162eval LLVM_BINDIR="${prefix}/bin";
35163eval LLVM_LIBDIR="${prefix}/lib";
35164eval LLVM_DATADIR="${prefix}/share/llvm";
35165eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35166eval LLVM_ETCDIR="${prefix}/etc/llvm";
35167eval LLVM_INCLUDEDIR="${prefix}/include";
35168eval LLVM_INFODIR="${prefix}/info";
35169eval LLVM_MANDIR="${prefix}/man";
35170LLVM_CONFIGTIME=`date`
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182# Place the various directores into the config.h file as #defines so that we
35183# can know about the installation paths within LLVM.
35184
35185cat >>confdefs.h <<_ACEOF
35186#define LLVM_PREFIX "$LLVM_PREFIX"
35187_ACEOF
35188
35189
35190cat >>confdefs.h <<_ACEOF
35191#define LLVM_BINDIR "$LLVM_BINDIR"
35192_ACEOF
35193
35194
35195cat >>confdefs.h <<_ACEOF
35196#define LLVM_LIBDIR "$LLVM_LIBDIR"
35197_ACEOF
35198
35199
35200cat >>confdefs.h <<_ACEOF
35201#define LLVM_DATADIR "$LLVM_DATADIR"
35202_ACEOF
35203
35204
35205cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000035206#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035207_ACEOF
35208
35209
35210cat >>confdefs.h <<_ACEOF
35211#define LLVM_ETCDIR "$LLVM_ETCDIR"
35212_ACEOF
35213
35214
35215cat >>confdefs.h <<_ACEOF
35216#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35217_ACEOF
35218
35219
35220cat >>confdefs.h <<_ACEOF
35221#define LLVM_INFODIR "$LLVM_INFODIR"
35222_ACEOF
35223
35224
35225cat >>confdefs.h <<_ACEOF
35226#define LLVM_MANDIR "$LLVM_MANDIR"
35227_ACEOF
35228
35229
35230cat >>confdefs.h <<_ACEOF
35231#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35232_ACEOF
35233
35234
Eric Christopher8b274472007-12-01 00:34:39 +000035235cat >>confdefs.h <<_ACEOF
35236#define LLVM_HOSTTRIPLE "$host"
35237_ACEOF
35238
35239
Gordon Henriksen016ec472007-10-02 09:50:32 +000035240# Determine which bindings to build.
35241if test "$BINDINGS_TO_BUILD" = auto ; then
35242 BINDINGS_TO_BUILD=""
35243 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35244 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35245 fi
35246fi
35247BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35248
35249
35250# This isn't really configurey, but it avoids having to repeat the list in
35251# other files.
35252ALL_BINDINGS=ocaml
35253
35254
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035255# Do any work necessary to ensure that bindings have what they need.
35256binding_prereqs_failed=0
35257for a_binding in $BINDINGS_TO_BUILD ; do
35258 case "$a_binding" in
35259 ocaml)
35260 if test "x$OCAMLC" = x ; then
35261 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35262echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35263 binding_prereqs_failed=1
35264 fi
35265 if test "x$OCAMLDEP" = x ; then
35266 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35267echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35268 binding_prereqs_failed=1
35269 fi
35270 if test "x$OCAMLOPT" = x ; then
35271 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35272echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35273 fi
35274 if test "x$with_ocaml_libdir" != xauto ; then
35275 OCAML_LIBDIR=$with_ocaml_libdir
35276
35277 else
35278 ocaml_stdlib="`"$OCAMLC" -where`"
35279 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35280 then
35281 # ocaml stdlib is beneath our prefix; use stdlib
35282 OCAML_LIBDIR=$ocaml_stdlib
35283
35284 else
35285 # ocaml stdlib is outside our prefix; use libdir/ocaml
35286 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35287
35288 fi
35289 fi
35290 ;;
35291 esac
35292done
35293if test "$binding_prereqs_failed" = 1 ; then
35294 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35295echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35296 { (exit 1); exit 1; }; }
35297fi
35298
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035299{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35300echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35301if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35302 echo $ECHO_N "(cached) $ECHO_C" >&6
35303else
35304 ac_ext=cpp
35305ac_cpp='$CXXCPP $CPPFLAGS'
35306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35309
35310 oldcxxflags="$CXXFLAGS"
35311 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35312 cat >conftest.$ac_ext <<_ACEOF
35313/* confdefs.h. */
35314_ACEOF
35315cat confdefs.h >>conftest.$ac_ext
35316cat >>conftest.$ac_ext <<_ACEOF
35317/* end confdefs.h. */
35318
35319int
35320main ()
35321{
35322
35323 ;
35324 return 0;
35325}
35326_ACEOF
35327rm -f conftest.$ac_objext
35328if { (ac_try="$ac_compile"
35329case "(($ac_try" in
35330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331 *) ac_try_echo=$ac_try;;
35332esac
35333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35334 (eval "$ac_compile") 2>conftest.er1
35335 ac_status=$?
35336 grep -v '^ *+' conftest.er1 >conftest.err
35337 rm -f conftest.er1
35338 cat conftest.err >&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035340 (exit $ac_status); } &&
35341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35342 { (case "(($ac_try" in
35343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344 *) ac_try_echo=$ac_try;;
35345esac
35346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347 (eval "$ac_try") 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest.$ac_objext'
35352 { (case "(($ac_try" in
35353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354 *) ac_try_echo=$ac_try;;
35355esac
35356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357 (eval "$ac_try") 2>&5
35358 ac_status=$?
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035361 llvm_cv_cxx_visibility_inlines_hidden=yes
35362else
35363 echo "$as_me: failed program was:" >&5
35364sed 's/^/| /' conftest.$ac_ext >&5
35365
35366 llvm_cv_cxx_visibility_inlines_hidden=no
35367fi
35368
35369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370 CXXFLAGS="$oldcxxflags"
35371 ac_ext=c
35372ac_cpp='$CPP $CPPFLAGS'
35373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35375ac_compiler_gnu=$ac_cv_c_compiler_gnu
35376
35377
35378fi
35379{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35380echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35381if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35382 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35383
35384else
35385 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35386
35387fi
35388
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035389
Nick Lewycky6eab6652009-03-05 08:20:44 +000035390if test "$llvm_cv_link_use_r" = "yes" ; then
35391 RPATH="-Wl,-R"
35392else
35393 RPATH="-Wl,-rpath"
35394fi
35395
35396
35397if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35398 RDYNAMIC="-Wl,-export-dynamic"
35399else
35400 RDYNAMIC=""
35401fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000035402
35403
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035404
35405ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35406
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035407ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35408
35409ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35410
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000035411ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35412
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035413ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35414
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035415
35416ac_config_files="$ac_config_files Makefile.config"
35417
35418
35419ac_config_files="$ac_config_files llvm.spec"
35420
35421
35422ac_config_files="$ac_config_files docs/doxygen.cfg"
35423
35424
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035425ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35426
35427
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035428ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35429
35430
35431ac_config_commands="$ac_config_commands setup"
35432
35433ac_config_commands="$ac_config_commands Makefile"
35434
35435
35436ac_config_commands="$ac_config_commands Makefile.common"
35437
35438
35439ac_config_commands="$ac_config_commands examples/Makefile"
35440
35441
35442ac_config_commands="$ac_config_commands lib/Makefile"
35443
35444
35445ac_config_commands="$ac_config_commands runtime/Makefile"
35446
35447
35448ac_config_commands="$ac_config_commands test/Makefile"
35449
35450
35451ac_config_commands="$ac_config_commands test/Makefile.tests"
35452
35453
Bill Wendling9b9833f2009-01-04 23:12:30 +000035454ac_config_commands="$ac_config_commands unittests/Makefile"
35455
35456
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035457ac_config_commands="$ac_config_commands tools/Makefile"
35458
35459
35460ac_config_commands="$ac_config_commands utils/Makefile"
35461
35462
35463ac_config_commands="$ac_config_commands projects/Makefile"
35464
35465
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035466ac_config_commands="$ac_config_commands bindings/Makefile"
35467
35468
35469ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35470
35471
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035472
35473cat >confcache <<\_ACEOF
35474# This file is a shell script that caches the results of configure
35475# tests run on this system so they can be shared between configure
35476# scripts and configure runs, see configure's option --config-cache.
35477# It is not useful on other systems. If it contains results you don't
35478# want to keep, you may remove or edit it.
35479#
35480# config.status only pays attention to the cache file if you give it
35481# the --recheck option to rerun configure.
35482#
35483# `ac_cv_env_foo' variables (set or unset) will be overridden when
35484# loading this file, other *unset* `ac_cv_foo' will be assigned the
35485# following values.
35486
35487_ACEOF
35488
35489# The following way of writing the cache mishandles newlines in values,
35490# but we know of no workaround that is simple, portable, and efficient.
35491# So, we kill variables containing newlines.
35492# Ultrix sh set writes to stderr and can't be redirected directly,
35493# and sets the high bit in the cache file unless we assign to the vars.
35494(
35495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35496 eval ac_val=\$$ac_var
35497 case $ac_val in #(
35498 *${as_nl}*)
35499 case $ac_var in #(
35500 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35501echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35502 esac
35503 case $ac_var in #(
35504 _ | IFS | as_nl) ;; #(
35505 *) $as_unset $ac_var ;;
35506 esac ;;
35507 esac
35508 done
35509
35510 (set) 2>&1 |
35511 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35512 *${as_nl}ac_space=\ *)
35513 # `set' does not quote correctly, so add quotes (double-quote
35514 # substitution turns \\\\ into \\, and sed turns \\ into \).
35515 sed -n \
35516 "s/'/'\\\\''/g;
35517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35518 ;; #(
35519 *)
35520 # `set' quotes correctly as required by POSIX, so do not add quotes.
35521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35522 ;;
35523 esac |
35524 sort
35525) |
35526 sed '
35527 /^ac_cv_env_/b end
35528 t clear
35529 :clear
35530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35531 t end
35532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35533 :end' >>confcache
35534if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35535 if test -w "$cache_file"; then
35536 test "x$cache_file" != "x/dev/null" &&
35537 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35538echo "$as_me: updating cache $cache_file" >&6;}
35539 cat confcache >$cache_file
35540 else
35541 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35542echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35543 fi
35544fi
35545rm -f confcache
35546
35547test "x$prefix" = xNONE && prefix=$ac_default_prefix
35548# Let make expand exec_prefix.
35549test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35550
35551DEFS=-DHAVE_CONFIG_H
35552
35553ac_libobjs=
35554ac_ltlibobjs=
35555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35556 # 1. Remove the extension, and $U if already installed.
35557 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35558 ac_i=`echo "$ac_i" | sed "$ac_script"`
35559 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35560 # will be set to the directory where LIBOBJS objects are built.
35561 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35562 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35563done
35564LIBOBJS=$ac_libobjs
35565
35566LTLIBOBJS=$ac_ltlibobjs
35567
35568
35569if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35570 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35571Usually this means the macro was only invoked conditionally." >&5
35572echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35573Usually this means the macro was only invoked conditionally." >&2;}
35574 { (exit 1); exit 1; }; }
35575fi
35576if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35577 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35578Usually this means the macro was only invoked conditionally." >&5
35579echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35580Usually this means the macro was only invoked conditionally." >&2;}
35581 { (exit 1); exit 1; }; }
35582fi
35583
35584: ${CONFIG_STATUS=./config.status}
35585ac_clean_files_save=$ac_clean_files
35586ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35587{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35588echo "$as_me: creating $CONFIG_STATUS" >&6;}
35589cat >$CONFIG_STATUS <<_ACEOF
35590#! $SHELL
35591# Generated by $as_me.
35592# Run this file to recreate the current configuration.
35593# Compiler output produced by configure, useful for debugging
35594# configure, is in config.log if it exists.
35595
35596debug=false
35597ac_cs_recheck=false
35598ac_cs_silent=false
35599SHELL=\${CONFIG_SHELL-$SHELL}
35600_ACEOF
35601
35602cat >>$CONFIG_STATUS <<\_ACEOF
35603## --------------------- ##
35604## M4sh Initialization. ##
35605## --------------------- ##
35606
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035607# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035608if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35609 emulate sh
35610 NULLCMD=:
35611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35612 # is contrary to our usage. Disable this feature.
35613 alias -g '${1+"$@"}'='"$@"'
35614 setopt NO_GLOB_SUBST
35615else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035616 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035617fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035618BIN_SH=xpg4; export BIN_SH # for Tru64
35619DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035620
35621
35622# PATH needs CR
35623# Avoid depending upon Character Ranges.
35624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35627as_cr_digits='0123456789'
35628as_cr_alnum=$as_cr_Letters$as_cr_digits
35629
35630# The user is always right.
35631if test "${PATH_SEPARATOR+set}" != set; then
35632 echo "#! /bin/sh" >conf$$.sh
35633 echo "exit 0" >>conf$$.sh
35634 chmod +x conf$$.sh
35635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35636 PATH_SEPARATOR=';'
35637 else
35638 PATH_SEPARATOR=:
35639 fi
35640 rm -f conf$$.sh
35641fi
35642
35643# Support unset when possible.
35644if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35645 as_unset=unset
35646else
35647 as_unset=false
35648fi
35649
35650
35651# IFS
35652# We need space, tab and new line, in precisely that order. Quoting is
35653# there to prevent editors from complaining about space-tab.
35654# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35655# splitting by setting IFS to empty value.)
35656as_nl='
35657'
35658IFS=" "" $as_nl"
35659
35660# Find who we are. Look in the path if we contain no directory separator.
35661case $0 in
35662 *[\\/]* ) as_myself=$0 ;;
35663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35664for as_dir in $PATH
35665do
35666 IFS=$as_save_IFS
35667 test -z "$as_dir" && as_dir=.
35668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35669done
35670IFS=$as_save_IFS
35671
35672 ;;
35673esac
35674# We did not find ourselves, most probably we were run as `sh COMMAND'
35675# in which case we are not to be found in the path.
35676if test "x$as_myself" = x; then
35677 as_myself=$0
35678fi
35679if test ! -f "$as_myself"; then
35680 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35681 { (exit 1); exit 1; }
35682fi
35683
35684# Work around bugs in pre-3.0 UWIN ksh.
35685for as_var in ENV MAIL MAILPATH
35686do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35687done
35688PS1='$ '
35689PS2='> '
35690PS4='+ '
35691
35692# NLS nuisances.
35693for as_var in \
35694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35696 LC_TELEPHONE LC_TIME
35697do
35698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35699 eval $as_var=C; export $as_var
35700 else
35701 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35702 fi
35703done
35704
35705# Required to use basename.
35706if expr a : '\(a\)' >/dev/null 2>&1 &&
35707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35708 as_expr=expr
35709else
35710 as_expr=false
35711fi
35712
35713if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35714 as_basename=basename
35715else
35716 as_basename=false
35717fi
35718
35719
35720# Name of the executable.
35721as_me=`$as_basename -- "$0" ||
35722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35723 X"$0" : 'X\(//\)$' \| \
35724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35725echo X/"$0" |
35726 sed '/^.*\/\([^/][^/]*\)\/*$/{
35727 s//\1/
35728 q
35729 }
35730 /^X\/\(\/\/\)$/{
35731 s//\1/
35732 q
35733 }
35734 /^X\/\(\/\).*/{
35735 s//\1/
35736 q
35737 }
35738 s/.*/./; q'`
35739
35740# CDPATH.
35741$as_unset CDPATH
35742
35743
35744
35745 as_lineno_1=$LINENO
35746 as_lineno_2=$LINENO
35747 test "x$as_lineno_1" != "x$as_lineno_2" &&
35748 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35749
35750 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35751 # uniformly replaced by the line number. The first 'sed' inserts a
35752 # line-number line after each line using $LINENO; the second 'sed'
35753 # does the real work. The second script uses 'N' to pair each
35754 # line-number line with the line containing $LINENO, and appends
35755 # trailing '-' during substitution so that $LINENO is not a special
35756 # case at line end.
35757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35758 # scripts with optimization help from Paolo Bonzini. Blame Lee
35759 # E. McMahon (1931-1989) for sed's syntax. :-)
35760 sed -n '
35761 p
35762 /[$]LINENO/=
35763 ' <$as_myself |
35764 sed '
35765 s/[$]LINENO.*/&-/
35766 t lineno
35767 b
35768 :lineno
35769 N
35770 :loop
35771 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35772 t loop
35773 s/-\n.*//
35774 ' >$as_me.lineno &&
35775 chmod +x "$as_me.lineno" ||
35776 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35777 { (exit 1); exit 1; }; }
35778
35779 # Don't try to exec as it changes $[0], causing all sort of problems
35780 # (the dirname of $[0] is not the place where we might find the
35781 # original and so on. Autoconf is especially sensitive to this).
35782 . "./$as_me.lineno"
35783 # Exit status is that of the last command.
35784 exit
35785}
35786
35787
35788if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35789 as_dirname=dirname
35790else
35791 as_dirname=false
35792fi
35793
35794ECHO_C= ECHO_N= ECHO_T=
35795case `echo -n x` in
35796-n*)
35797 case `echo 'x\c'` in
35798 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35799 *) ECHO_C='\c';;
35800 esac;;
35801*)
35802 ECHO_N='-n';;
35803esac
35804
35805if expr a : '\(a\)' >/dev/null 2>&1 &&
35806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35807 as_expr=expr
35808else
35809 as_expr=false
35810fi
35811
35812rm -f conf$$ conf$$.exe conf$$.file
35813if test -d conf$$.dir; then
35814 rm -f conf$$.dir/conf$$.file
35815else
35816 rm -f conf$$.dir
35817 mkdir conf$$.dir
35818fi
35819echo >conf$$.file
35820if ln -s conf$$.file conf$$ 2>/dev/null; then
35821 as_ln_s='ln -s'
35822 # ... but there are two gotchas:
35823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35825 # In both cases, we have to default to `cp -p'.
35826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35827 as_ln_s='cp -p'
35828elif ln conf$$.file conf$$ 2>/dev/null; then
35829 as_ln_s=ln
35830else
35831 as_ln_s='cp -p'
35832fi
35833rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35834rmdir conf$$.dir 2>/dev/null
35835
35836if mkdir -p . 2>/dev/null; then
35837 as_mkdir_p=:
35838else
35839 test -d ./-p && rmdir ./-p
35840 as_mkdir_p=false
35841fi
35842
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035843# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35844# systems may use methods other than mode bits to determine executability.
35845cat >conf$$.file <<_ASEOF
35846#! /bin/sh
35847exit 0
35848_ASEOF
35849chmod +x conf$$.file
35850if test -x conf$$.file >/dev/null 2>&1; then
35851 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035852else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035853 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035854fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035855rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035856
35857# Sed expression to map a string onto a valid CPP name.
35858as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35859
35860# Sed expression to map a string onto a valid variable name.
35861as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35862
35863
35864exec 6>&1
35865
35866# Save the log message, to keep $[0] and so on meaningful, and to
35867# report actual input values of CONFIG_FILES etc. instead of their
35868# values after options handling.
35869ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035870This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035871generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035872
35873 CONFIG_FILES = $CONFIG_FILES
35874 CONFIG_HEADERS = $CONFIG_HEADERS
35875 CONFIG_LINKS = $CONFIG_LINKS
35876 CONFIG_COMMANDS = $CONFIG_COMMANDS
35877 $ $0 $@
35878
35879on `(hostname || uname -n) 2>/dev/null | sed 1q`
35880"
35881
35882_ACEOF
35883
35884cat >>$CONFIG_STATUS <<_ACEOF
35885# Files that config.status was made for.
35886config_files="$ac_config_files"
35887config_headers="$ac_config_headers"
35888config_commands="$ac_config_commands"
35889
35890_ACEOF
35891
35892cat >>$CONFIG_STATUS <<\_ACEOF
35893ac_cs_usage="\
35894\`$as_me' instantiates files from templates according to the
35895current configuration.
35896
35897Usage: $0 [OPTIONS] [FILE]...
35898
35899 -h, --help print this help, then exit
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035900 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035901 -q, --quiet do not print progress messages
35902 -d, --debug don't remove temporary files
35903 --recheck update $as_me by reconfiguring in the same conditions
35904 --file=FILE[:TEMPLATE]
35905 instantiate the configuration file FILE
35906 --header=FILE[:TEMPLATE]
35907 instantiate the configuration header FILE
35908
35909Configuration files:
35910$config_files
35911
35912Configuration headers:
35913$config_headers
35914
35915Configuration commands:
35916$config_commands
35917
35918Report bugs to <bug-autoconf@gnu.org>."
35919
35920_ACEOF
35921cat >>$CONFIG_STATUS <<_ACEOF
35922ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035923llvm config.status 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035924configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035925 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35926
35927Copyright (C) 2006 Free Software Foundation, Inc.
35928This config.status script is free software; the Free Software Foundation
35929gives unlimited permission to copy, distribute and modify it."
35930
35931ac_pwd='$ac_pwd'
35932srcdir='$srcdir'
35933INSTALL='$INSTALL'
35934_ACEOF
35935
35936cat >>$CONFIG_STATUS <<\_ACEOF
35937# If no file are specified by the user, then we need to provide default
35938# value. By we need to know if files were specified by the user.
35939ac_need_defaults=:
35940while test $# != 0
35941do
35942 case $1 in
35943 --*=*)
35944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35946 ac_shift=:
35947 ;;
35948 *)
35949 ac_option=$1
35950 ac_optarg=$2
35951 ac_shift=shift
35952 ;;
35953 esac
35954
35955 case $ac_option in
35956 # Handling of the options.
35957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35958 ac_cs_recheck=: ;;
35959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35960 echo "$ac_cs_version"; exit ;;
35961 --debug | --debu | --deb | --de | --d | -d )
35962 debug=: ;;
35963 --file | --fil | --fi | --f )
35964 $ac_shift
35965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35966 ac_need_defaults=false;;
35967 --header | --heade | --head | --hea )
35968 $ac_shift
35969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35970 ac_need_defaults=false;;
35971 --he | --h)
35972 # Conflict between --help and --header
35973 { echo "$as_me: error: ambiguous option: $1
35974Try \`$0 --help' for more information." >&2
35975 { (exit 1); exit 1; }; };;
35976 --help | --hel | -h )
35977 echo "$ac_cs_usage"; exit ;;
35978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35980 ac_cs_silent=: ;;
35981
35982 # This is an error.
35983 -*) { echo "$as_me: error: unrecognized option: $1
35984Try \`$0 --help' for more information." >&2
35985 { (exit 1); exit 1; }; } ;;
35986
35987 *) ac_config_targets="$ac_config_targets $1"
35988 ac_need_defaults=false ;;
35989
35990 esac
35991 shift
35992done
35993
35994ac_configure_extra_args=
35995
35996if $ac_cs_silent; then
35997 exec 6>/dev/null
35998 ac_configure_extra_args="$ac_configure_extra_args --silent"
35999fi
36000
36001_ACEOF
36002cat >>$CONFIG_STATUS <<_ACEOF
36003if \$ac_cs_recheck; then
36004 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36005 CONFIG_SHELL=$SHELL
36006 export CONFIG_SHELL
36007 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36008fi
36009
36010_ACEOF
36011cat >>$CONFIG_STATUS <<\_ACEOF
36012exec 5>>config.log
36013{
36014 echo
36015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36016## Running $as_me. ##
36017_ASBOX
36018 echo "$ac_log"
36019} >&5
36020
36021_ACEOF
36022cat >>$CONFIG_STATUS <<_ACEOF
36023#
36024# INIT-COMMANDS
36025#
36026llvm_src="${srcdir}"
36027
36028_ACEOF
36029
36030cat >>$CONFIG_STATUS <<\_ACEOF
36031
36032# Handling of arguments.
36033for ac_config_target in $ac_config_targets
36034do
36035 case $ac_config_target in
36036 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036037 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36038 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036039 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036040 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036041 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36042 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36043 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036044 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036045 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36046 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36047 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36048 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36049 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36050 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36051 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36052 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36053 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036054 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036055 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36056 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36057 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036058 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36059 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036060
36061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36062echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36063 { (exit 1); exit 1; }; };;
36064 esac
36065done
36066
36067
36068# If the user did not use the arguments to specify the items to instantiate,
36069# then the envvar interface is used. Set only those that are not.
36070# We use the long form for the default assignment because of an extremely
36071# bizarre bug on SunOS 4.1.3.
36072if $ac_need_defaults; then
36073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36076fi
36077
36078# Have a temporary directory for convenience. Make it in the build tree
36079# simply because there is no reason against having it here, and in addition,
36080# creating and moving files from /tmp can sometimes cause problems.
36081# Hook for its removal unless debugging.
36082# Note that there is a small window in which the directory will not be cleaned:
36083# after its creation but before its name has been assigned to `$tmp'.
36084$debug ||
36085{
36086 tmp=
36087 trap 'exit_status=$?
36088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36089' 0
36090 trap '{ (exit 1); exit 1; }' 1 2 13 15
36091}
36092# Create a (secure) tmp directory for tmp files.
36093
36094{
36095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36096 test -n "$tmp" && test -d "$tmp"
36097} ||
36098{
36099 tmp=./conf$$-$RANDOM
36100 (umask 077 && mkdir "$tmp")
36101} ||
36102{
36103 echo "$me: cannot create a temporary directory in ." >&2
36104 { (exit 1); exit 1; }
36105}
36106
36107#
36108# Set up the sed scripts for CONFIG_FILES section.
36109#
36110
36111# No need to generate the scripts if there are no CONFIG_FILES.
36112# This happens for instance when ./config.status config.h
36113if test -n "$CONFIG_FILES"; then
36114
36115_ACEOF
36116
36117
36118
36119ac_delim='%!_!# '
36120for ac_last_try in false false false false false :; do
36121 cat >conf$$subs.sed <<_ACEOF
36122SHELL!$SHELL$ac_delim
36123PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36124PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36125PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36126PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36127PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36128PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36129exec_prefix!$exec_prefix$ac_delim
36130prefix!$prefix$ac_delim
36131program_transform_name!$program_transform_name$ac_delim
36132bindir!$bindir$ac_delim
36133sbindir!$sbindir$ac_delim
36134libexecdir!$libexecdir$ac_delim
36135datarootdir!$datarootdir$ac_delim
36136datadir!$datadir$ac_delim
36137sysconfdir!$sysconfdir$ac_delim
36138sharedstatedir!$sharedstatedir$ac_delim
36139localstatedir!$localstatedir$ac_delim
36140includedir!$includedir$ac_delim
36141oldincludedir!$oldincludedir$ac_delim
36142docdir!$docdir$ac_delim
36143infodir!$infodir$ac_delim
36144htmldir!$htmldir$ac_delim
36145dvidir!$dvidir$ac_delim
36146pdfdir!$pdfdir$ac_delim
36147psdir!$psdir$ac_delim
36148libdir!$libdir$ac_delim
36149localedir!$localedir$ac_delim
36150mandir!$mandir$ac_delim
36151DEFS!$DEFS$ac_delim
36152ECHO_C!$ECHO_C$ac_delim
36153ECHO_N!$ECHO_N$ac_delim
36154ECHO_T!$ECHO_T$ac_delim
36155LIBS!$LIBS$ac_delim
36156build_alias!$build_alias$ac_delim
36157host_alias!$host_alias$ac_delim
36158target_alias!$target_alias$ac_delim
36159LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36160subdirs!$subdirs$ac_delim
36161build!$build$ac_delim
36162build_cpu!$build_cpu$ac_delim
36163build_vendor!$build_vendor$ac_delim
36164build_os!$build_os$ac_delim
36165host!$host$ac_delim
36166host_cpu!$host_cpu$ac_delim
36167host_vendor!$host_vendor$ac_delim
36168host_os!$host_os$ac_delim
36169target!$target$ac_delim
36170target_cpu!$target_cpu$ac_delim
36171target_vendor!$target_vendor$ac_delim
36172target_os!$target_os$ac_delim
36173OS!$OS$ac_delim
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036174HOST_OS!$HOST_OS$ac_delim
36175TARGET_OS!$TARGET_OS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036176LINKALL!$LINKALL$ac_delim
36177NOLINKALL!$NOLINKALL$ac_delim
36178LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36179LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036180CC!$CC$ac_delim
36181CFLAGS!$CFLAGS$ac_delim
36182LDFLAGS!$LDFLAGS$ac_delim
36183CPPFLAGS!$CPPFLAGS$ac_delim
36184ac_ct_CC!$ac_ct_CC$ac_delim
36185EXEEXT!$EXEEXT$ac_delim
36186OBJEXT!$OBJEXT$ac_delim
Nick Lewyckye4ba4c62009-09-29 05:41:21 +000036187ARCH!$ARCH$ac_delim
36188ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036189CPP!$CPP$ac_delim
36190GREP!$GREP$ac_delim
36191EGREP!$EGREP$ac_delim
36192LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36193BUILD_CC!$BUILD_CC$ac_delim
36194BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000036195BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036196CVSBUILD!$CVSBUILD$ac_delim
36197ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036198ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036199DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36200ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36201EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36202DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036203DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036204JIT!$JIT$ac_delim
36205TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36206ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36207ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36208ENABLE_PIC!$ENABLE_PIC$ac_delim
36209TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036210LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36211LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036212LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036213ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36214EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000036215BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036216ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36217ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036218CXX!$CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036219_ACEOF
36220
36221 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36222 break
36223 elif $ac_last_try; then
36224 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36225echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36226 { (exit 1); exit 1; }; }
36227 else
36228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36229 fi
36230done
36231
36232ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36233if test -n "$ac_eof"; then
36234 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36235 ac_eof=`expr $ac_eof + 1`
36236fi
36237
36238cat >>$CONFIG_STATUS <<_ACEOF
36239cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36240/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36241_ACEOF
36242sed '
36243s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36244s/^/s,@/; s/!/@,|#_!!_#|/
36245:n
36246t n
36247s/'"$ac_delim"'$/,g/; t
36248s/$/\\/; p
36249N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36250' >>$CONFIG_STATUS <conf$$subs.sed
36251rm -f conf$$subs.sed
36252cat >>$CONFIG_STATUS <<_ACEOF
36253CEOF$ac_eof
36254_ACEOF
36255
36256
36257ac_delim='%!_!# '
36258for ac_last_try in false false false false false :; do
36259 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036260CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036261ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen0af6bb22009-08-11 13:39:52 +000036262NM!$NM$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036263ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036264LN_S!$LN_S$ac_delim
36265CMP!$CMP$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036266CP!$CP$ac_delim
36267DATE!$DATE$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036268FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036269MKDIR!$MKDIR$ac_delim
36270MV!$MV$ac_delim
36271RANLIB!$RANLIB$ac_delim
36272RM!$RM$ac_delim
36273SED!$SED$ac_delim
36274TAR!$TAR$ac_delim
36275BINPWD!$BINPWD$ac_delim
36276GRAPHVIZ!$GRAPHVIZ$ac_delim
36277DOT!$DOT$ac_delim
David Greenedb740ef2009-07-09 17:16:26 +000036278FDP!$FDP$ac_delim
36279NEATO!$NEATO$ac_delim
36280TWOPI!$TWOPI$ac_delim
36281CIRCO!$CIRCO$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036282GV!$GV$ac_delim
36283DOTTY!$DOTTY$ac_delim
36284PERL!$PERL$ac_delim
36285HAVE_PERL!$HAVE_PERL$ac_delim
36286INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36287INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36288INSTALL_DATA!$INSTALL_DATA$ac_delim
36289BZIP2!$BZIP2$ac_delim
36290DOXYGEN!$DOXYGEN$ac_delim
36291GROFF!$GROFF$ac_delim
36292GZIP!$GZIP$ac_delim
36293POD2HTML!$POD2HTML$ac_delim
36294POD2MAN!$POD2MAN$ac_delim
36295RUNTEST!$RUNTEST$ac_delim
36296TCLSH!$TCLSH$ac_delim
36297ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000036298OCAMLC!$OCAMLC$ac_delim
36299OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000036300OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000036301OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000036302GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036303INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36304INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36305CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36306CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36307LIBADD_DL!$LIBADD_DL$ac_delim
36308ECHO!$ECHO$ac_delim
36309AR!$AR$ac_delim
36310STRIP!$STRIP$ac_delim
36311CXXCPP!$CXXCPP$ac_delim
36312F77!$F77$ac_delim
36313FFLAGS!$FFLAGS$ac_delim
36314ac_ct_F77!$ac_ct_F77$ac_delim
36315LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036316LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36317LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000036318LLVMGCC!$LLVMGCC$ac_delim
36319LLVMGXX!$LLVMGXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036320USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000036321USE_OPROFILE!$USE_OPROFILE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036322HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36323HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36324ALLOCA!$ALLOCA$ac_delim
36325MMAP_FILE!$MMAP_FILE$ac_delim
36326LLVMCC1!$LLVMCC1$ac_delim
36327LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36328LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36329LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36330LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36331LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36332LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36333SHLIBEXT!$SHLIBEXT$ac_delim
36334LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36335LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36336LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36337LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36338LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36339LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36340LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36341LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36342LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36343LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000036344BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36345ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000036346OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000036347ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000036348RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000036349RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036350LIBOBJS!$LIBOBJS$ac_delim
36351LTLIBOBJS!$LTLIBOBJS$ac_delim
36352_ACEOF
36353
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036354 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036355 break
36356 elif $ac_last_try; then
36357 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36358echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36359 { (exit 1); exit 1; }; }
36360 else
36361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36362 fi
36363done
36364
36365ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36366if test -n "$ac_eof"; then
36367 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36368 ac_eof=`expr $ac_eof + 1`
36369fi
36370
36371cat >>$CONFIG_STATUS <<_ACEOF
36372cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36374_ACEOF
36375sed '
36376s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36377s/^/s,@/; s/!/@,|#_!!_#|/
36378:n
36379t n
36380s/'"$ac_delim"'$/,g/; t
36381s/$/\\/; p
36382N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36383' >>$CONFIG_STATUS <conf$$subs.sed
36384rm -f conf$$subs.sed
36385cat >>$CONFIG_STATUS <<_ACEOF
36386:end
36387s/|#_!!_#|//g
36388CEOF$ac_eof
36389_ACEOF
36390
36391
36392# VPATH may cause trouble with some makes, so we remove $(srcdir),
36393# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36394# trailing colons and then remove the whole line if VPATH becomes empty
36395# (actually we leave an empty line to preserve line numbers).
36396if test "x$srcdir" = x.; then
36397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36398s/:*\$(srcdir):*/:/
36399s/:*\${srcdir}:*/:/
36400s/:*@srcdir@:*/:/
36401s/^\([^=]*=[ ]*\):*/\1/
36402s/:*$//
36403s/^[^=]*=[ ]*$//
36404}'
36405fi
36406
36407cat >>$CONFIG_STATUS <<\_ACEOF
36408fi # test -n "$CONFIG_FILES"
36409
36410
36411for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36412do
36413 case $ac_tag in
36414 :[FHLC]) ac_mode=$ac_tag; continue;;
36415 esac
36416 case $ac_mode$ac_tag in
36417 :[FHL]*:*);;
36418 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36419echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36420 { (exit 1); exit 1; }; };;
36421 :[FH]-) ac_tag=-:-;;
36422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36423 esac
36424 ac_save_IFS=$IFS
36425 IFS=:
36426 set x $ac_tag
36427 IFS=$ac_save_IFS
36428 shift
36429 ac_file=$1
36430 shift
36431
36432 case $ac_mode in
36433 :L) ac_source=$1;;
36434 :[FH])
36435 ac_file_inputs=
36436 for ac_f
36437 do
36438 case $ac_f in
36439 -) ac_f="$tmp/stdin";;
36440 *) # Look for the file first in the build tree, then in the source tree
36441 # (if the path is not absolute). The absolute path cannot be DOS-style,
36442 # because $ac_f cannot contain `:'.
36443 test -f "$ac_f" ||
36444 case $ac_f in
36445 [\\/$]*) false;;
36446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36447 esac ||
36448 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36449echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36450 { (exit 1); exit 1; }; };;
36451 esac
36452 ac_file_inputs="$ac_file_inputs $ac_f"
36453 done
36454
36455 # Let's still pretend it is `configure' which instantiates (i.e., don't
36456 # use $as_me), people would be surprised to read:
36457 # /* config.h. Generated by config.status. */
36458 configure_input="Generated from "`IFS=:
36459 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36460 if test x"$ac_file" != x-; then
36461 configure_input="$ac_file. $configure_input"
36462 { echo "$as_me:$LINENO: creating $ac_file" >&5
36463echo "$as_me: creating $ac_file" >&6;}
36464 fi
36465
36466 case $ac_tag in
36467 *:-:* | *:-) cat >"$tmp/stdin";;
36468 esac
36469 ;;
36470 esac
36471
36472 ac_dir=`$as_dirname -- "$ac_file" ||
36473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36474 X"$ac_file" : 'X\(//\)[^/]' \| \
36475 X"$ac_file" : 'X\(//\)$' \| \
36476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36477echo X"$ac_file" |
36478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36479 s//\1/
36480 q
36481 }
36482 /^X\(\/\/\)[^/].*/{
36483 s//\1/
36484 q
36485 }
36486 /^X\(\/\/\)$/{
36487 s//\1/
36488 q
36489 }
36490 /^X\(\/\).*/{
36491 s//\1/
36492 q
36493 }
36494 s/.*/./; q'`
36495 { as_dir="$ac_dir"
36496 case $as_dir in #(
36497 -*) as_dir=./$as_dir;;
36498 esac
36499 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36500 as_dirs=
36501 while :; do
36502 case $as_dir in #(
36503 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36504 *) as_qdir=$as_dir;;
36505 esac
36506 as_dirs="'$as_qdir' $as_dirs"
36507 as_dir=`$as_dirname -- "$as_dir" ||
36508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36509 X"$as_dir" : 'X\(//\)[^/]' \| \
36510 X"$as_dir" : 'X\(//\)$' \| \
36511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36512echo X"$as_dir" |
36513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36514 s//\1/
36515 q
36516 }
36517 /^X\(\/\/\)[^/].*/{
36518 s//\1/
36519 q
36520 }
36521 /^X\(\/\/\)$/{
36522 s//\1/
36523 q
36524 }
36525 /^X\(\/\).*/{
36526 s//\1/
36527 q
36528 }
36529 s/.*/./; q'`
36530 test -d "$as_dir" && break
36531 done
36532 test -z "$as_dirs" || eval "mkdir $as_dirs"
36533 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36534echo "$as_me: error: cannot create directory $as_dir" >&2;}
36535 { (exit 1); exit 1; }; }; }
36536 ac_builddir=.
36537
36538case "$ac_dir" in
36539.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36540*)
36541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36542 # A ".." for each directory in $ac_dir_suffix.
36543 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36544 case $ac_top_builddir_sub in
36545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36547 esac ;;
36548esac
36549ac_abs_top_builddir=$ac_pwd
36550ac_abs_builddir=$ac_pwd$ac_dir_suffix
36551# for backward compatibility:
36552ac_top_builddir=$ac_top_build_prefix
36553
36554case $srcdir in
36555 .) # We are building in place.
36556 ac_srcdir=.
36557 ac_top_srcdir=$ac_top_builddir_sub
36558 ac_abs_top_srcdir=$ac_pwd ;;
36559 [\\/]* | ?:[\\/]* ) # Absolute name.
36560 ac_srcdir=$srcdir$ac_dir_suffix;
36561 ac_top_srcdir=$srcdir
36562 ac_abs_top_srcdir=$srcdir ;;
36563 *) # Relative name.
36564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36565 ac_top_srcdir=$ac_top_build_prefix$srcdir
36566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36567esac
36568ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36569
36570
36571 case $ac_mode in
36572 :F)
36573 #
36574 # CONFIG_FILE
36575 #
36576
36577 case $INSTALL in
36578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36580 esac
36581_ACEOF
36582
36583cat >>$CONFIG_STATUS <<\_ACEOF
36584# If the template does not know about datarootdir, expand it.
36585# FIXME: This hack should be removed a few years after 2.60.
36586ac_datarootdir_hack=; ac_datarootdir_seen=
36587
36588case `sed -n '/datarootdir/ {
36589 p
36590 q
36591}
36592/@datadir@/p
36593/@docdir@/p
36594/@infodir@/p
36595/@localedir@/p
36596/@mandir@/p
36597' $ac_file_inputs` in
36598*datarootdir*) ac_datarootdir_seen=yes;;
36599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36600 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36601echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36602_ACEOF
36603cat >>$CONFIG_STATUS <<_ACEOF
36604 ac_datarootdir_hack='
36605 s&@datadir@&$datadir&g
36606 s&@docdir@&$docdir&g
36607 s&@infodir@&$infodir&g
36608 s&@localedir@&$localedir&g
36609 s&@mandir@&$mandir&g
36610 s&\\\${datarootdir}&$datarootdir&g' ;;
36611esac
36612_ACEOF
36613
36614# Neutralize VPATH when `$srcdir' = `.'.
36615# Shell code in configure.ac might set extrasub.
36616# FIXME: do we really want to maintain this feature?
36617cat >>$CONFIG_STATUS <<_ACEOF
36618 sed "$ac_vpsub
36619$extrasub
36620_ACEOF
36621cat >>$CONFIG_STATUS <<\_ACEOF
36622:t
36623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36624s&@configure_input@&$configure_input&;t t
36625s&@top_builddir@&$ac_top_builddir_sub&;t t
36626s&@srcdir@&$ac_srcdir&;t t
36627s&@abs_srcdir@&$ac_abs_srcdir&;t t
36628s&@top_srcdir@&$ac_top_srcdir&;t t
36629s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36630s&@builddir@&$ac_builddir&;t t
36631s&@abs_builddir@&$ac_abs_builddir&;t t
36632s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36633s&@INSTALL@&$ac_INSTALL&;t t
36634$ac_datarootdir_hack
36635" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36636
36637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36638 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36639 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36640 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36641which seems to be undefined. Please make sure it is defined." >&5
36642echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36643which seems to be undefined. Please make sure it is defined." >&2;}
36644
36645 rm -f "$tmp/stdin"
36646 case $ac_file in
36647 -) cat "$tmp/out"; rm -f "$tmp/out";;
36648 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36649 esac
36650 ;;
36651 :H)
36652 #
36653 # CONFIG_HEADER
36654 #
36655_ACEOF
36656
36657# Transform confdefs.h into a sed script `conftest.defines', that
36658# substitutes the proper values into config.h.in to produce config.h.
36659rm -f conftest.defines conftest.tail
36660# First, append a space to every undef/define line, to ease matching.
36661echo 's/$/ /' >conftest.defines
36662# Then, protect against being on the right side of a sed subst, or in
36663# an unquoted here document, in config.status. If some macros were
36664# called several times there might be several #defines for the same
36665# symbol, which is useless. But do not sort them, since the last
36666# AC_DEFINE must be honored.
36667ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36668# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36669# NAME is the cpp macro being defined, VALUE is the value it is being given.
36670# PARAMS is the parameter list in the macro definition--in most cases, it's
36671# just an empty string.
36672ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36673ac_dB='\\)[ (].*,\\1define\\2'
36674ac_dC=' '
36675ac_dD=' ,'
36676
36677uniq confdefs.h |
36678 sed -n '
36679 t rset
36680 :rset
36681 s/^[ ]*#[ ]*define[ ][ ]*//
36682 t ok
36683 d
36684 :ok
36685 s/[\\&,]/\\&/g
36686 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36687 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36688 ' >>conftest.defines
36689
36690# Remove the space that was appended to ease matching.
36691# Then replace #undef with comments. This is necessary, for
36692# example, in the case of _POSIX_SOURCE, which is predefined and required
36693# on some systems where configure will not decide to define it.
36694# (The regexp can be short, since the line contains either #define or #undef.)
36695echo 's/ $//
36696s,^[ #]*u.*,/* & */,' >>conftest.defines
36697
36698# Break up conftest.defines:
36699ac_max_sed_lines=50
36700
36701# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36702# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36703# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36704# et cetera.
36705ac_in='$ac_file_inputs'
36706ac_out='"$tmp/out1"'
36707ac_nxt='"$tmp/out2"'
36708
36709while :
36710do
36711 # Write a here document:
36712 cat >>$CONFIG_STATUS <<_ACEOF
36713 # First, check the format of the line:
36714 cat >"\$tmp/defines.sed" <<\\CEOF
36715/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36716/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36717b
36718:def
36719_ACEOF
36720 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36721 echo 'CEOF
36722 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36723 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36724 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36725 grep . conftest.tail >/dev/null || break
36726 rm -f conftest.defines
36727 mv conftest.tail conftest.defines
36728done
36729rm -f conftest.defines conftest.tail
36730
36731echo "ac_result=$ac_in" >>$CONFIG_STATUS
36732cat >>$CONFIG_STATUS <<\_ACEOF
36733 if test x"$ac_file" != x-; then
36734 echo "/* $configure_input */" >"$tmp/config.h"
36735 cat "$ac_result" >>"$tmp/config.h"
36736 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36737 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36738echo "$as_me: $ac_file is unchanged" >&6;}
36739 else
36740 rm -f $ac_file
36741 mv "$tmp/config.h" $ac_file
36742 fi
36743 else
36744 echo "/* $configure_input */"
36745 cat "$ac_result"
36746 fi
36747 rm -f "$tmp/out12"
36748 ;;
36749
36750 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36751echo "$as_me: executing $ac_file commands" >&6;}
36752 ;;
36753 esac
36754
36755
36756 case $ac_file$ac_mode in
36757 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036758 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036759 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000036760 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036761 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036762 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036763 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036764 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036765 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036766 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036767 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036769 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000036770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036771 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036773 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036775 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036777 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036779 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036781 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000036782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036783
36784 esac
36785done # for ac_tag
36786
36787
36788{ (exit 0); exit 0; }
36789_ACEOF
36790chmod +x $CONFIG_STATUS
36791ac_clean_files=$ac_clean_files_save
36792
36793
36794# configure is writing to config.log, and then calls config.status.
36795# config.status does its own redirection, appending to config.log.
36796# Unfortunately, on DOS this fails, as config.log is still kept open
36797# by configure, so config.status won't be able to write to it; its
36798# output is simply discarded. So we exec the FD to /dev/null,
36799# effectively closing config.log, so it can be properly (re)opened and
36800# appended to by config.status. When coming back to configure, we
36801# need to make the FD available again.
36802if test "$no_create" != yes; then
36803 ac_cs_success=:
36804 ac_config_status_args=
36805 test "$silent" = yes &&
36806 ac_config_status_args="$ac_config_status_args --quiet"
36807 exec 5>/dev/null
36808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36809 exec 5>>config.log
36810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36811 # would make configure fail if this is the last instruction.
36812 $ac_cs_success || { (exit 1); exit 1; }
36813fi
36814
36815#
36816# CONFIG_SUBDIRS section.
36817#
36818if test "$no_recursion" != yes; then
36819
36820 # Remove --cache-file and --srcdir arguments so they do not pile up.
36821 ac_sub_configure_args=
36822 ac_prev=
36823 eval "set x $ac_configure_args"
36824 shift
36825 for ac_arg
36826 do
36827 if test -n "$ac_prev"; then
36828 ac_prev=
36829 continue
36830 fi
36831 case $ac_arg in
36832 -cache-file | --cache-file | --cache-fil | --cache-fi \
36833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36834 ac_prev=cache_file ;;
36835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36837 | --c=*)
36838 ;;
36839 --config-cache | -C)
36840 ;;
36841 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36842 ac_prev=srcdir ;;
36843 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36844 ;;
36845 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36846 ac_prev=prefix ;;
36847 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36848 ;;
36849 *)
36850 case $ac_arg in
36851 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36852 esac
36853 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36854 esac
36855 done
36856
36857 # Always prepend --prefix to ensure using the same prefix
36858 # in subdir configurations.
36859 ac_arg="--prefix=$prefix"
36860 case $ac_arg in
36861 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36862 esac
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000036863 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036864
36865 ac_popdir=`pwd`
36866 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36867
36868 # Do not complain, so a configure script can configure whichever
36869 # parts of a large source tree are present.
36870 test -d "$srcdir/$ac_dir" || continue
36871
36872 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36873 echo "$as_me:$LINENO: $ac_msg" >&5
36874 echo "$ac_msg" >&6
36875 { as_dir="$ac_dir"
36876 case $as_dir in #(
36877 -*) as_dir=./$as_dir;;
36878 esac
36879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36880 as_dirs=
36881 while :; do
36882 case $as_dir in #(
36883 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36884 *) as_qdir=$as_dir;;
36885 esac
36886 as_dirs="'$as_qdir' $as_dirs"
36887 as_dir=`$as_dirname -- "$as_dir" ||
36888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36889 X"$as_dir" : 'X\(//\)[^/]' \| \
36890 X"$as_dir" : 'X\(//\)$' \| \
36891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36892echo X"$as_dir" |
36893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36894 s//\1/
36895 q
36896 }
36897 /^X\(\/\/\)[^/].*/{
36898 s//\1/
36899 q
36900 }
36901 /^X\(\/\/\)$/{
36902 s//\1/
36903 q
36904 }
36905 /^X\(\/\).*/{
36906 s//\1/
36907 q
36908 }
36909 s/.*/./; q'`
36910 test -d "$as_dir" && break
36911 done
36912 test -z "$as_dirs" || eval "mkdir $as_dirs"
36913 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36914echo "$as_me: error: cannot create directory $as_dir" >&2;}
36915 { (exit 1); exit 1; }; }; }
36916 ac_builddir=.
36917
36918case "$ac_dir" in
36919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36920*)
36921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36922 # A ".." for each directory in $ac_dir_suffix.
36923 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36924 case $ac_top_builddir_sub in
36925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36927 esac ;;
36928esac
36929ac_abs_top_builddir=$ac_pwd
36930ac_abs_builddir=$ac_pwd$ac_dir_suffix
36931# for backward compatibility:
36932ac_top_builddir=$ac_top_build_prefix
36933
36934case $srcdir in
36935 .) # We are building in place.
36936 ac_srcdir=.
36937 ac_top_srcdir=$ac_top_builddir_sub
36938 ac_abs_top_srcdir=$ac_pwd ;;
36939 [\\/]* | ?:[\\/]* ) # Absolute name.
36940 ac_srcdir=$srcdir$ac_dir_suffix;
36941 ac_top_srcdir=$srcdir
36942 ac_abs_top_srcdir=$srcdir ;;
36943 *) # Relative name.
36944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36945 ac_top_srcdir=$ac_top_build_prefix$srcdir
36946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36947esac
36948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36949
36950
36951 cd "$ac_dir"
36952
36953 # Check for guested configure; otherwise get Cygnus style configure.
36954 if test -f "$ac_srcdir/configure.gnu"; then
36955 ac_sub_configure=$ac_srcdir/configure.gnu
36956 elif test -f "$ac_srcdir/configure"; then
36957 ac_sub_configure=$ac_srcdir/configure
36958 elif test -f "$ac_srcdir/configure.in"; then
36959 # This should be Cygnus configure.
36960 ac_sub_configure=$ac_aux_dir/configure
36961 else
36962 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36963echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36964 ac_sub_configure=
36965 fi
36966
36967 # The recursion is here.
36968 if test -n "$ac_sub_configure"; then
36969 # Make the cache file name correct relative to the subdirectory.
36970 case $cache_file in
36971 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36972 *) # Relative name.
36973 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36974 esac
36975
36976 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36977echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36978 # The eval makes quoting arguments work.
36979 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36980 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36981 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36982echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36983 { (exit 1); exit 1; }; }
36984 fi
36985
36986 cd "$ac_popdir"
36987 done
36988fi
36989