blob: d52f03de9175b0d5ead3c51a92a68f36600a34e3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Tanya Lattnerf4644302008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
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 Lattner3fa4a442009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
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
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendling025cce52009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000830BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene19b1cbd2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000834DISABLE_ASSERTIONS
835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
837DEBUG_RUNTIME
838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
842ENABLE_PIC
843TARGETS_TO_BUILD
Douglas Gregor1dc5ff42009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000846ENABLE_CBE_PRINTF_A
847EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Mikhail Glushenkov9e045892009-07-04 14:23:08 +0000849ENABLE_LLVMC_DYNAMIC
850ENABLE_LLVMC_DYNAMIC_PLUGINS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000851CXX
852CXXFLAGS
853ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
David Greenedb740ef2009-07-09 17:16:26 +0000870FDP
871NEATO
872TWOPI
873CIRCO
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000874GV
875DOTTY
876PERL
877HAVE_PERL
878INSTALL_PROGRAM
879INSTALL_SCRIPT
880INSTALL_DATA
881BZIP2
882DOXYGEN
883GROFF
884GZIP
885POD2HTML
886POD2MAN
887RUNTEST
888TCLSH
889ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000890OCAMLC
891OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000892OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000893OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000894GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000895INSTALL_LTDL_TRUE
896INSTALL_LTDL_FALSE
897CONVENIENCE_LTDL_TRUE
898CONVENIENCE_LTDL_FALSE
899LIBADD_DL
900ECHO
901AR
902STRIP
903CXXCPP
904F77
905FFLAGS
906ac_ct_F77
907LIBTOOL
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +0000908LLVMGCCCOMMAND
909LLVMGXXCOMMAND
Douglas Gregord1e1dbc2009-05-11 18:05:52 +0000910LLVMGCC
911LLVMGXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000912USE_UDIS86
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +0000913USE_OPROFILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000914HAVE_PTHREAD
915HUGE_VAL_SANITY
916ALLOCA
917MMAP_FILE
918LLVMCC1
919LLVMCC1PLUS
920LLVMGCCDIR
921LLVMGCCLIBEXEC
922LLVMGCC_VERSION
923LLVMGCC_MAJVERS
924LLVMGCC_LANGS
925SHLIBEXT
926LLVM_PREFIX
927LLVM_BINDIR
928LLVM_LIBDIR
929LLVM_DATADIR
930LLVM_DOCSDIR
931LLVM_ETCDIR
932LLVM_INCLUDEDIR
933LLVM_INFODIR
934LLVM_MANDIR
935LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000936BINDINGS_TO_BUILD
937ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000938OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000939ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000940RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000941RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000942LIBOBJS
943LTLIBOBJS'
944ac_subst_files=''
945 ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951CPPFLAGS
952CPP
953CXX
954CXXFLAGS
955CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000956CXXCPP
957F77
958FFLAGS'
959ac_subdirs_all='projects/sample
960projects/privbracket
961projects/llvm-stacker
962projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000963projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000964projects/llvm-reopt
965projects/llvm-gcc
966projects/llvm-java
967projects/llvm-tv
968projects/llvm-poolalloc
969projects/poolalloc
970projects/llvm-kernel'
971
972# Initialize some variables set by options.
973ac_init_help=
974ac_init_version=false
975# The variables have the same names as the options, with
976# dashes changed to underlines.
977cache_file=/dev/null
978exec_prefix=NONE
979no_create=
980no_recursion=
981prefix=NONE
982program_prefix=NONE
983program_suffix=NONE
984program_transform_name=s,x,x,
985silent=
986site=
987srcdir=
988verbose=
989x_includes=NONE
990x_libraries=NONE
991
992# Installation directory options.
993# These are left unexpanded so users can "make install exec_prefix=/foo"
994# and all the variables that are supposed to be based on exec_prefix
995# by default will actually change.
996# Use braces instead of parens because sh, perl, etc. also accept them.
997# (The list follows the same order as the GNU Coding Standards.)
998bindir='${exec_prefix}/bin'
999sbindir='${exec_prefix}/sbin'
1000libexecdir='${exec_prefix}/libexec'
1001datarootdir='${prefix}/share'
1002datadir='${datarootdir}'
1003sysconfdir='${prefix}/etc'
1004sharedstatedir='${prefix}/com'
1005localstatedir='${prefix}/var'
1006includedir='${prefix}/include'
1007oldincludedir='/usr/include'
1008docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009infodir='${datarootdir}/info'
1010htmldir='${docdir}'
1011dvidir='${docdir}'
1012pdfdir='${docdir}'
1013psdir='${docdir}'
1014libdir='${exec_prefix}/lib'
1015localedir='${datarootdir}/locale'
1016mandir='${datarootdir}/man'
1017
1018ac_prev=
1019ac_dashdash=
1020for ac_option
1021do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1027 fi
1028
1029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
1033
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036 case $ac_dashdash$ac_option in
1037 --)
1038 ac_dashdash=yes ;;
1039
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1044
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1049
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1056
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1059
1060 -datadir | --datadir | --datadi | --datad)
1061 ac_prev=datadir ;;
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1064
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1071
1072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001079 eval enable_$ac_feature=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1090
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001097 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001098 eval enable_$ac_feature=\$ac_optarg ;;
1099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001295 eval with_$ac_package=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001303 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001304 eval with_$ac_package=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347done
1348
1349if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1353fi
1354
1355# Be sure to have absolute directory names.
1356for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1360do
1361 eval ac_val=\$$ac_var
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1368done
1369
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
1392
1393
1394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1402
1403
1404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
1409$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413echo X"$0" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
1438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1442fi
1443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
1464
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001472\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
1492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 [PREFIX]
1497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525_ACEOF
1526
1527 cat <<\_ACEOF
1528
1529System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 --target=TARGET configure for building compilers for TARGET [HOST]
1533_ACEOF
1534fi
1535
1536if test -n "$ac_init_help"; then
1537 case $ac_init_help in
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001538 short | recursive ) echo "Configuration of llvm 2.6svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001539 esac
1540 cat <<\_ACEOF
1541
1542Optional Features:
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001545 --enable-optimized Compile with optimizations enabled (default is NO)
1546 --enable-profiling Compile with profiling enabled (default is NO)
1547 --enable-assertions Compile with assertion checks enabled (default is
1548 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001549 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001550 Compile with expensive debug checks enabled (default
1551 is NO)
1552 --enable-debug-runtime Build runtime libs with debug symbols (default is
1553 NO)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001554 --enable-jit Enable Just In Time Compiling (default is YES)
1555 --enable-doxygen Build doxygen documentation (default is NO)
1556 --enable-threads Use threads if available (default is YES)
1557 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001558 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001559 --enable-targets Build specific host targets:
1560 all,host-only,{target-name} (default=all)
1561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1562 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001563 --enable-bindings Build specific language bindings:
1564 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001565 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001566 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1567 Win32)
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001570 --enable-ltdl-install install libltdl
1571 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001572 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001573 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001574 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001575 --enable-fast-install[=PKGS]
1576 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001577 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001578 --disable-libtool-lock avoid locking (might break parallel builds)
1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1584 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001585 --with-llvmgcc Specify location of llvm-gcc driver (default
1586 searches PATH)
1587 --with-llvmgxx Specify location of llvm-g++ driver (default
1588 searches PATH)
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001589 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001590 --with-ocaml-libdir Specify install location for ocaml bindings (default
1591 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001592 --with-binutils-include Specify path to binutils/include/ containing
1593 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001594 --with-tclinclude directory where tcl headers are
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1597 both]
1598 --with-tags[=TAGS] include additional configurations [automatic]
1599 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001600 --with-oprofile=<prefix>
1601 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001602
1603Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CPP C preprocessor
1611 CXX C++ compiler command
1612 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001613 CXXCPP C++ preprocessor
1614 F77 Fortran 77 compiler command
1615 FFLAGS Fortran 77 compiler flags
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
1620Report bugs to <llvmbugs@cs.uiuc.edu>.
1621_ACEOF
1622ac_status=$?
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1629 ac_builddir=.
1630
1631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
1634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
1646
1647case $srcdir in
1648 .) # We are building in place.
1649 ac_srcdir=.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660esac
1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1671 else
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1675 done
1676fi
1677
1678test -n "$ac_init_help" && exit $ac_status
1679if $ac_init_version; then
1680 cat <<\_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001681llvm configure 2.6svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001682generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001683
1684Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
1688
Tanya Lattnerf4644302008-01-17 05:57:22 +00001689Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001690_ACEOF
1691 exit
1692fi
1693cat >config.log <<_ACEOF
1694This file contains any messages produced by compilers while
1695running configure, to aid debugging if configure makes a mistake.
1696
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001697It was created by llvm $as_me 2.6svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001698generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001699
1700 $ $0 $@
1701
1702_ACEOF
1703exec 5>>config.log
1704{
1705cat <<_ASUNAME
1706## --------- ##
1707## Platform. ##
1708## --------- ##
1709
1710hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718
1719/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726
1727_ASUNAME
1728
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1735done
1736IFS=$as_save_IFS
1737
1738} >&5
1739
1740cat >&5 <<_ACEOF
1741
1742
1743## ----------- ##
1744## Core tests. ##
1745## ----------- ##
1746
1747_ACEOF
1748
1749
1750# Keep a trace of the command line.
1751# Strip out --no-create and --no-recursion so they do not pile up.
1752# Strip out --silent because we don't want to record it for future runs.
1753# Also quote any args containing shell meta-characters.
1754# Make two passes to allow for proper duplicate-argument suppression.
1755ac_configure_args=
1756ac_configure_args0=
1757ac_configure_args1=
1758ac_must_keep_next=false
1759for ac_pass in 1 2
1760do
1761 for ac_arg
1762 do
1763 case $ac_arg in
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1767 continue ;;
1768 *\'*)
1769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 esac
1771 case $ac_pass in
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 2)
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1777 else
1778 case $ac_arg in
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 esac
1786 ;;
1787 -* ) ac_must_keep_next=true ;;
1788 esac
1789 fi
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1791 ;;
1792 esac
1793 done
1794done
1795$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1797
1798# When interrupted or exit'd, cleanup temporary files, and complete
1799# config.log. We remove comments because anyway the quotes in there
1800# would cause problems or look ugly.
1801# WARNING: Use '\'' to represent an apostrophe within the trap.
1802# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1805 {
1806 echo
1807
1808 cat <<\_ASBOX
1809## ---------------- ##
1810## Cache variables. ##
1811## ---------------- ##
1812_ASBOX
1813 echo
1814 # The following way of writing the cache mishandles newlines in values,
1815(
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in #(
1819 *${as_nl}*)
1820 case $ac_var in #(
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 esac
1824 case $ac_var in #(
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1827 esac ;;
1828 esac
1829 done
1830 (set) 2>&1 |
1831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1833 sed -n \
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 ;; #(
1837 *)
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1839 ;;
1840 esac |
1841 sort
1842)
1843 echo
1844
1845 cat <<\_ASBOX
1846## ----------------- ##
1847## Output variables. ##
1848## ----------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_vars
1852 do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 echo "$ac_var='\''$ac_val'\''"
1858 done | sort
1859 echo
1860
1861 if test -n "$ac_subst_files"; then
1862 cat <<\_ASBOX
1863## ------------------- ##
1864## File substitutions. ##
1865## ------------------- ##
1866_ASBOX
1867 echo
1868 for ac_var in $ac_subst_files
1869 do
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 echo "$ac_var='\''$ac_val'\''"
1875 done | sort
1876 echo
1877 fi
1878
1879 if test -s confdefs.h; then
1880 cat <<\_ASBOX
1881## ----------- ##
1882## confdefs.h. ##
1883## ----------- ##
1884_ASBOX
1885 echo
1886 cat confdefs.h
1887 echo
1888 fi
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1892 } >&5
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 exit $exit_status
1896' 0
1897for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899done
1900ac_signal=0
1901
1902# confdefs.h avoids OS command line length limits that DEFS can exceed.
1903rm -f -r conftest* confdefs.h
1904
1905# Predefined preprocessor variables.
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_NAME "$PACKAGE_NAME"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_VERSION "$PACKAGE_VERSION"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_STRING "$PACKAGE_STRING"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929_ACEOF
1930
1931
1932# Let the site file select an alternate cache file if it wants to.
1933# Prefer explicitly selected file to automatically selected ones.
1934if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938else
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
1941fi
1942shift
1943for ac_site_file
1944do
1945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1949 . "$ac_site_file"
1950 fi
1951done
1952
1953if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958echo "$as_me: loading cache $cache_file" >&6;}
1959 case $cache_file in
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1962 esac
1963 fi
1964else
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966echo "$as_me: creating cache $cache_file" >&6;}
1967 >$cache_file
1968fi
1969
1970# Check that the precious variables saved in the cache have kept the same
1971# value.
1972ac_cache_corrupted=false
1973for ac_var in $ac_precious_vars; do
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
1978 case $ac_old_set,$ac_new_set in
1979 set,)
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,set)
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,);;
1988 *)
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
1990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1993echo "$as_me: former value: $ac_old_val" >&2;}
1994 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1995echo "$as_me: current value: $ac_new_val" >&2;}
1996 ac_cache_corrupted=:
1997 fi;;
1998 esac
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2001 case $ac_new_val in
2002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2003 *) ac_arg=$ac_var=$ac_new_val ;;
2004 esac
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008 esac
2009 fi
2010done
2011if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2017fi
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043ac_ext=c
2044ac_cpp='$CPP $CPPFLAGS'
2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
Tanya Lattnerf4644302008-01-17 05:57:22 +00002051LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002052
2053
2054
2055
2056
2057
2058
2059ac_aux_dir=
2060for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
2089
2090
2091if test ${srcdir} != "." ; then
2092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097fi
2098
2099for i in `ls ${srcdir}/projects`
2100do
2101 if test -d ${srcdir}/projects/${i} ; then
2102 case ${i} in
2103 CVS) ;;
2104 sample) subdirs="$subdirs projects/sample"
2105 ;;
2106 privbracket) subdirs="$subdirs projects/privbracket"
2107 ;;
2108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2109 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002110 # llvm-test is the old name of the test-suite, kept here for backwards
2111 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002112 llvm-test) subdirs="$subdirs projects/llvm-test"
2113 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002114 test-suite) subdirs="$subdirs projects/test-suite"
2115 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2117;;
2118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2119 ;;
2120 llvm-java) subdirs="$subdirs projects/llvm-java"
2121 ;;
2122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2123 ;;
2124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2125 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002126 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002127 ;;
2128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2129 ;;
2130 *)
2131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2133 ;;
2134 esac
2135 fi
2136done
2137
2138
2139# Make sure we can run config.sub.
2140$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145{ echo "$as_me:$LINENO: checking build system type" >&5
2146echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 ac_build_alias=$build_alias
2151test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153test "x$ac_build_alias" = x &&
2154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
2157ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2161
2162fi
2163{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164echo "${ECHO_T}$ac_cv_build" >&6; }
2165case $ac_cv_build in
2166*-*-*) ;;
2167*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2170esac
2171build=$ac_cv_build
2172ac_save_IFS=$IFS; IFS='-'
2173set x $ac_cv_build
2174shift
2175build_cpu=$1
2176build_vendor=$2
2177shift; shift
2178# Remember, the first character of IFS is used to create $*,
2179# except with old shells:
2180build_os=$*
2181IFS=$ac_save_IFS
2182case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2183
2184
2185{ echo "$as_me:$LINENO: checking host system type" >&5
2186echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2192else
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2197fi
2198
2199fi
2200{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201echo "${ECHO_T}$ac_cv_host" >&6; }
2202case $ac_cv_host in
2203*-*-*) ;;
2204*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2207esac
2208host=$ac_cv_host
2209ac_save_IFS=$IFS; IFS='-'
2210set x $ac_cv_host
2211shift
2212host_cpu=$1
2213host_vendor=$2
2214shift; shift
2215# Remember, the first character of IFS is used to create $*,
2216# except with old shells:
2217host_os=$*
2218IFS=$ac_save_IFS
2219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2220
2221
2222{ echo "$as_me:$LINENO: checking target system type" >&5
2223echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2229else
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2234fi
2235
2236fi
2237{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238echo "${ECHO_T}$ac_cv_target" >&6; }
2239case $ac_cv_target in
2240*-*-*) ;;
2241*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2244esac
2245target=$ac_cv_target
2246ac_save_IFS=$IFS; IFS='-'
2247set x $ac_cv_target
2248shift
2249target_cpu=$1
2250target_vendor=$2
2251shift; shift
2252# Remember, the first character of IFS is used to create $*,
2253# except with old shells:
2254target_os=$*
2255IFS=$ac_save_IFS
2256case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2257
2258
2259# The aliases save the names the user supplied, while $host etc.
2260# will get canonicalized.
2261test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2263 NONENONEs,x,x, &&
2264 program_prefix=${target_alias}-
2265
2266{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268if test "${llvm_cv_os_type+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 case $host in
2272 *-*-aix*)
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
2277 *-*-irix*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
2282 *-*-cygwin*)
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-*-darwin*)
2288 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002289 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2292 *-*-freebsd*)
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
2297 *-*-openbsd*)
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
2302 *-*-netbsd*)
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002307 *-*-dragonfly*)
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002312 *-*-hpux*)
2313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
2317 *-*-interix*)
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2322 *-*-linux*)
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2327 *-*-solaris*)
2328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2332 *-*-win32*)
2333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2337 *-*-mingw*)
2338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2342 *)
2343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
2345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
2347esac
2348fi
2349{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2351
2352if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355 { (exit 1); exit 1; }; }
2356fi
2357
2358OS=$llvm_cv_os_type
2359
2360
2361LINKALL=$llvm_cv_link_all_option
2362
2363NOLINKALL=$llvm_cv_no_link_all_option
2364
2365
2366case $llvm_cv_platform_type in
2367 Unix)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_UNIX 1
2371_ACEOF
2372
2373 LLVM_ON_UNIX=1
2374
2375 LLVM_ON_WIN32=0
2376
2377 ;;
2378 Win32)
2379
2380cat >>confdefs.h <<\_ACEOF
2381#define LLVM_ON_WIN32 1
2382_ACEOF
2383
2384 LLVM_ON_UNIX=0
2385
2386 LLVM_ON_WIN32=1
2387
2388 ;;
2389esac
2390
2391{ echo "$as_me:$LINENO: checking target architecture" >&5
2392echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396 case $target in
2397 i?86-*) llvm_cv_target_arch="x86" ;;
2398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2402 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002403 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002404 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002405 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002406 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002407 msp430-*) llvm_cv_target_arch="MSP430" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002408 *) llvm_cv_target_arch="Unknown" ;;
2409esac
2410fi
2411{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2412echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2413
2414if test "$llvm_cv_target_arch" = "Unknown" ; then
2415 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2416echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2417fi
2418
Douglas Gregor13e13882009-06-17 00:43:20 +00002419# Determine the LLVM native architecture for the target
2420case "$llvm_cv_target_arch" in
2421 x86) LLVM_NATIVE_ARCH="X86" ;;
2422 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2423 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2424esac
2425
Bill Wendling025cce52009-03-12 04:10:09 +00002426ARCH=$llvm_cv_target_arch
2427
2428
2429ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002430ac_cpp='$CPP $CPPFLAGS'
2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002451 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 +00002452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457done
2458IFS=$as_save_IFS
2459
2460fi
2461fi
2462CC=$ac_cv_prog_CC
2463if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465echo "${ECHO_T}$CC" >&6; }
2466else
2467 { echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6; }
2469fi
2470
2471
2472fi
2473if test -z "$ac_cv_prog_CC"; then
2474 ac_ct_CC=$CC
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476set dummy gcc; ac_word=$2
2477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002491 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 +00002492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496done
2497done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505echo "${ECHO_T}$ac_ct_CC" >&6; }
2506else
2507 { echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6; }
2509fi
2510
2511 if test "x$ac_ct_CC" = x; then
2512 CC=""
2513 else
2514 case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517whose name does not start with the host triplet. If you think this
2518configuration is useful to you, please write to autoconf@gnu.org." >&5
2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet. If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524 CC=$ac_ct_CC
2525 fi
2526else
2527 CC="$ac_cv_prog_CC"
2528fi
2529
2530if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}cc; ac_word=$2
2534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002548 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 +00002549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553done
2554done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562echo "${ECHO_T}$CC" >&6; }
2563else
2564 { echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6; }
2566fi
2567
2568
2569 fi
2570fi
2571if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573set dummy cc; ac_word=$2
2574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582 ac_prog_rejected=no
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002589 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 +00002590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2592 continue
2593 fi
2594 ac_cv_prog_CC="cc"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
2599done
2600IFS=$as_save_IFS
2601
2602if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2605 shift
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2610 shift
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612 fi
2613fi
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
2620else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
2623fi
2624
2625
2626fi
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2630 do
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
2662else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
2665fi
2666
2667
2668 test -n "$CC" && break
2669 done
2670fi
2671if test -z "$CC"; then
2672 ac_ct_CC=$CC
2673 for ac_prog in cl.exe
2674do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
2677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002691 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 +00002692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705echo "${ECHO_T}$ac_ct_CC" >&6; }
2706else
2707 { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
2709fi
2710
2711
2712 test -n "$ac_ct_CC" && break
2713done
2714
2715 if test "x$ac_ct_CC" = x; then
2716 CC=""
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721whose name does not start with the host triplet. If you think this
2722configuration is useful to you, please write to autoconf@gnu.org." >&5
2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet. If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728 CC=$ac_ct_CC
2729 fi
2730fi
2731
2732fi
2733
2734
2735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&5
2737echo "$as_me: error: no acceptable C compiler found in \$PATH
2738See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2740
2741# Provide some information about the compiler.
2742echo "$as_me:$LINENO: checking for C compiler version" >&5
2743ac_compiler=`set X $ac_compile; echo $2`
2744{ (ac_try="$ac_compiler --version >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754{ (ac_try="$ac_compiler -v >&5"
2755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764{ (ac_try="$ac_compiler -V >&5"
2765case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768esac
2769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774
2775cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
2781
2782int
2783main ()
2784{
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790ac_clean_files_save=$ac_clean_files
2791ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792# Try to create an executable without -o first, disregard a.out.
2793# It will help us diagnose broken compilers, and finding out an intuition
2794# of exeext.
2795{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798#
2799# List of possible output files, starting from the most likely.
2800# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801# only as a last resort. b.out is created by i960 compilers.
2802ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803#
2804# The IRIX 6 linker writes into existing files which may not be
2805# executable, retaining their permissions. Remove them first so a
2806# subsequent execution test works.
2807ac_rmfiles=
2808for ac_file in $ac_files
2809do
2810 case $ac_file in
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813 esac
2814done
2815rm -f $ac_rmfiles
2816
2817if { (ac_try="$ac_link_default"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile. We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002832for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002833do
2834 test -f "$ac_file" || continue
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837 ;;
2838 [ab].out )
2839 # We found the default executable, but exeext='' is most
2840 # certainly right.
2841 break;;
2842 *.* )
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844 then :; else
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 fi
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2851 # actually working.
2852 break;;
2853 * )
2854 break;;
2855 esac
2856done
2857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859else
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864See \`config.log' for more details." >&5
2865echo "$as_me: error: C compiler cannot create executables
2866See \`config.log' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2868fi
2869
2870ac_exeext=$ac_cv_exeext
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002871{ echo "$as_me:$LINENO: result: $ac_file" >&5
2872echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002873
2874# Check that the compiler produces executables we can run. If not, either
2875# the compiler is broken, or we cross compile.
2876{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879# If not cross compiling, check that we can run a simple program.
2880if test "$cross_compiling" != yes; then
2881 if { ac_try='./$ac_file'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 cross_compiling=no
2892 else
2893 if test "$cross_compiling" = maybe; then
2894 cross_compiling=yes
2895 else
2896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897If you meant to cross compile, use \`--host'.
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: cannot run C compiled programs.
2900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&2;}
2902 { (exit 1); exit 1; }; }
2903 fi
2904 fi
2905fi
2906{ echo "$as_me:$LINENO: result: yes" >&5
2907echo "${ECHO_T}yes" >&6; }
2908
2909rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910ac_clean_files=$ac_clean_files_save
2911# Check that the compiler produces executables we can run. If not, either
2912# the compiler is broken, or we cross compile.
2913{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2915{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916echo "${ECHO_T}$cross_compiling" >&6; }
2917
2918{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2920if { (ac_try="$ac_link"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932# work properly (i.e., refer to `conftest.exe'), while it won't with
2933# `rm'.
2934for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939 break;;
2940 * ) break;;
2941 esac
2942done
2943else
2944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details." >&5
2946echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2949fi
2950
2951rm -f conftest$ac_cv_exeext
2952{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954
2955rm -f conftest.$ac_ext
2956EXEEXT=$ac_cv_exeext
2957ac_exeext=$EXEEXT
2958{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978rm -f conftest.o conftest.obj
2979if { (ac_try="$ac_compile"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994 break;;
2995 esac
2996done
2997else
2998 echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006fi
3007
3008rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009fi
3010{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011echo "${ECHO_T}$ac_cv_objext" >&6; }
3012OBJEXT=$ac_cv_objext
3013ac_objext=$OBJEXT
3014{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h. */
3025
3026int
3027main ()
3028{
3029#ifndef __GNUC__
3030 choke me
3031#endif
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext
3038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003071 ac_compiler_gnu=yes
3072else
3073 echo "$as_me: failed program was:" >&5
3074sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 ac_compiler_gnu=no
3077fi
3078
3079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081
3082fi
3083{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3085GCC=`test $ac_compiler_gnu = yes && echo yes`
3086ac_test_CFLAGS=${CFLAGS+set}
3087ac_save_CFLAGS=$CFLAGS
3088{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3089echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3090if test "${ac_cv_prog_cc_g+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003146 ac_cv_prog_cc_g=yes
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 CFLAGS=""
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003201 :
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 CFLAGS="-g"
3208 cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (ac_try="$ac_compile"
3225case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238 { (case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_try") 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003257 ac_cv_prog_cc_g=yes
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262
3263fi
3264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3275echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3276if test "$ac_test_CFLAGS" = set; then
3277 CFLAGS=$ac_save_CFLAGS
3278elif test $ac_cv_prog_cc_g = yes; then
3279 if test "$GCC" = yes; then
3280 CFLAGS="-g -O2"
3281 else
3282 CFLAGS="-g"
3283 fi
3284else
3285 if test "$GCC" = yes; then
3286 CFLAGS="-O2"
3287 else
3288 CFLAGS=
3289 fi
3290fi
3291{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3292echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3293if test "${ac_cv_prog_cc_c89+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 ac_cv_prog_cc_c89=no
3297ac_save_CC=$CC
3298cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <stdarg.h>
3305#include <stdio.h>
3306#include <sys/types.h>
3307#include <sys/stat.h>
3308/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3309struct buf { int x; };
3310FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311static char *e (p, i)
3312 char **p;
3313 int i;
3314{
3315 return p[i];
3316}
3317static char *f (char * (*g) (char **, int), char **p, ...)
3318{
3319 char *s;
3320 va_list v;
3321 va_start (v,p);
3322 s = g (p, va_arg (v,int));
3323 va_end (v);
3324 return s;
3325}
3326
3327/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3328 function prototypes and stuff, but not '\xHH' hex character constants.
3329 These don't provoke an error unfortunately, instead are silently treated
3330 as 'x'. The following induces an error, until -std is added to get
3331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3332 array size at least. It's necessary to write '\x00'==0 to get something
3333 that's true only with -std. */
3334int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3335
3336/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337 inside strings and character constants. */
3338#define FOO(x) 'x'
3339int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3340
3341int test (int i, double x);
3342struct s1 {int (*f) (int a);};
3343struct s2 {int (*f) (double a);};
3344int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345int argc;
3346char **argv;
3347int
3348main ()
3349{
3350return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 ;
3352 return 0;
3353}
3354_ACEOF
3355for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3357do
3358 CC="$ac_save_CC $ac_arg"
3359 rm -f conftest.$ac_objext
3360if { (ac_try="$ac_compile"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374 { (case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_try") 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003393 ac_cv_prog_cc_c89=$ac_arg
3394else
3395 echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398
3399fi
3400
3401rm -f core conftest.err conftest.$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
3403done
3404rm -f conftest.$ac_ext
3405CC=$ac_save_CC
3406
3407fi
3408# AC_CACHE_VAL
3409case "x$ac_cv_prog_cc_c89" in
3410 x)
3411 { echo "$as_me:$LINENO: result: none needed" >&5
3412echo "${ECHO_T}none needed" >&6; } ;;
3413 xno)
3414 { echo "$as_me:$LINENO: result: unsupported" >&5
3415echo "${ECHO_T}unsupported" >&6; } ;;
3416 *)
3417 CC="$CC $ac_cv_prog_cc_c89"
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3420esac
3421
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429
3430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3437# On Suns, sometimes $CPP names a directory.
3438if test -n "$CPP" && test -d "$CPP"; then
3439 CPP=
3440fi
3441if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 # Double quotes because CPP needs to be expanded
3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447 do
3448 ac_preproc_ok=false
3449for ac_c_preproc_warn_flag in '' yes
3450do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#ifdef __STDC__
3464# include <limits.h>
3465#else
3466# include <assert.h>
3467#endif
3468 Syntax error
3469_ACEOF
3470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003493 :
3494else
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 # Broken: fails on valid input.
3499continue
3500fi
3501
3502rm -f conftest.err conftest.$ac_ext
3503
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512#include <ac_nonexistent.h>
3513_ACEOF
3514if { (ac_try="$ac_cpp conftest.$ac_ext"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 else
3531 ac_cpp_err=
3532 fi
3533else
3534 ac_cpp_err=yes
3535fi
3536if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003537 # Broken: success on invalid input.
3538continue
3539else
3540 echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 # Passes both tests.
3544ac_preproc_ok=:
3545break
3546fi
3547
3548rm -f conftest.err conftest.$ac_ext
3549
3550done
3551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552rm -f conftest.err conftest.$ac_ext
3553if $ac_preproc_ok; then
3554 break
3555fi
3556
3557 done
3558 ac_cv_prog_CPP=$CPP
3559
3560fi
3561 CPP=$ac_cv_prog_CPP
3562else
3563 ac_cv_prog_CPP=$CPP
3564fi
3565{ echo "$as_me:$LINENO: result: $CPP" >&5
3566echo "${ECHO_T}$CPP" >&6; }
3567ac_preproc_ok=false
3568for ac_c_preproc_warn_flag in '' yes
3569do
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#ifdef __STDC__
3583# include <limits.h>
3584#else
3585# include <assert.h>
3586#endif
3587 Syntax error
3588_ACEOF
3589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003612 :
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Broken: fails on valid input.
3618continue
3619fi
3620
3621rm -f conftest.err conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631#include <ac_nonexistent.h>
3632_ACEOF
3633if { (ac_try="$ac_cpp conftest.$ac_ext"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649 else
3650 ac_cpp_err=
3651 fi
3652else
3653 ac_cpp_err=yes
3654fi
3655if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003656 # Broken: success on invalid input.
3657continue
3658else
3659 echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 # Passes both tests.
3663ac_preproc_ok=:
3664break
3665fi
3666
3667rm -f conftest.err conftest.$ac_ext
3668
3669done
3670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671rm -f conftest.err conftest.$ac_ext
3672if $ac_preproc_ok; then
3673 :
3674else
3675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676See \`config.log' for more details." >&5
3677echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }
3680fi
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3690echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3691if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694 # Extract the first word of "grep ggrep" to use in msg output
3695if test -z "$GREP"; then
3696set dummy grep ggrep; ac_prog_name=$2
3697if test "${ac_cv_path_GREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 ac_path_GREP_found=false
3701# Loop through the user's path and test for each of PROGNAME-LIST
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in grep ggrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003710 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003711 # Check for GNU ac_path_GREP and select it if it is found.
3712 # Check for GNU $ac_path_GREP
3713case `"$ac_path_GREP" --version 2>&1` in
3714*GNU*)
3715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3716*)
3717 ac_count=0
3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719 while :
3720 do
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 echo 'GREP' >> "conftest.nl"
3725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_GREP="$ac_path_GREP"
3731 ac_path_GREP_max=$ac_count
3732 fi
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3735 done
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737esac
3738
3739
3740 $ac_path_GREP_found && break 3
3741 done
3742done
3743
3744done
3745IFS=$as_save_IFS
3746
3747
3748fi
3749
3750GREP="$ac_cv_path_GREP"
3751if test -z "$GREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3755fi
3756
3757else
3758 ac_cv_path_GREP=$GREP
3759fi
3760
3761
3762fi
3763{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3764echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3766
3767
3768{ echo "$as_me:$LINENO: checking for egrep" >&5
3769echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3770if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 # Extract the first word of "egrep" to use in msg output
3777if test -z "$EGREP"; then
3778set dummy egrep; ac_prog_name=$2
3779if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 ac_path_EGREP_found=false
3783# Loop through the user's path and test for each of PROGNAME-LIST
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_prog in egrep; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003792 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003793 # Check for GNU ac_path_EGREP and select it if it is found.
3794 # Check for GNU $ac_path_EGREP
3795case `"$ac_path_EGREP" --version 2>&1` in
3796*GNU*)
3797 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3798*)
3799 ac_count=0
3800 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3801 while :
3802 do
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 echo 'EGREP' >> "conftest.nl"
3807 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3809 ac_count=`expr $ac_count + 1`
3810 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_EGREP="$ac_path_EGREP"
3813 ac_path_EGREP_max=$ac_count
3814 fi
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3817 done
3818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3819esac
3820
3821
3822 $ac_path_EGREP_found && break 3
3823 done
3824done
3825
3826done
3827IFS=$as_save_IFS
3828
3829
3830fi
3831
3832EGREP="$ac_cv_path_EGREP"
3833if test -z "$EGREP"; then
3834 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836 { (exit 1); exit 1; }; }
3837fi
3838
3839else
3840 ac_cv_path_EGREP=$EGREP
3841fi
3842
3843
3844 fi
3845fi
3846{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3847echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3849
3850
3851{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3852echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3853if test "${ac_cv_header_stdc+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h. */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h. */
3862#include <stdlib.h>
3863#include <stdarg.h>
3864#include <string.h>
3865#include <float.h>
3866
3867int
3868main ()
3869{
3870
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (ac_try="$ac_compile"
3877case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893esac
3894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003909 ac_cv_header_stdc=yes
3910else
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ac_cv_header_stdc=no
3915fi
3916
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
3927#include <string.h>
3928
3929_ACEOF
3930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "memchr" >/dev/null 2>&1; then
3932 :
3933else
3934 ac_cv_header_stdc=no
3935fi
3936rm -f conftest*
3937
3938fi
3939
3940if test $ac_cv_header_stdc = yes; then
3941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <stdlib.h>
3949
3950_ACEOF
3951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "free" >/dev/null 2>&1; then
3953 :
3954else
3955 ac_cv_header_stdc=no
3956fi
3957rm -f conftest*
3958
3959fi
3960
3961if test $ac_cv_header_stdc = yes; then
3962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963 if test "$cross_compiling" = yes; then
3964 :
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
3972#include <ctype.h>
3973#include <stdlib.h>
3974#if ((' ' & 0x0FF) == 0x020)
3975# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3977#else
3978# define ISLOWER(c) \
3979 (('a' <= (c) && (c) <= 'i') \
3980 || ('j' <= (c) && (c) <= 'r') \
3981 || ('s' <= (c) && (c) <= 'z'))
3982# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983#endif
3984
3985#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3986int
3987main ()
3988{
3989 int i;
3990 for (i = 0; i < 256; i++)
3991 if (XOR (islower (i), ISLOWER (i))
3992 || toupper (i) != TOUPPER (i))
3993 return 2;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest$ac_exeext
3998if { (ac_try="$ac_link"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 :
4018else
4019 echo "$as_me: program exited with status $ac_status" >&5
4020echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023( exit $ac_status )
4024ac_cv_header_stdc=no
4025fi
4026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4027fi
4028
4029
4030fi
4031fi
4032{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4034if test $ac_cv_header_stdc = yes; then
4035
4036cat >>confdefs.h <<\_ACEOF
4037#define STDC_HEADERS 1
4038_ACEOF
4039
4040fi
4041
4042# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4054do
4055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067$ac_includes_default
4068
4069#include <$ac_header>
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (ac_try="$ac_compile"
4073case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004105 eval "$as_ac_Header=yes"
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 eval "$as_ac_Header=no"
4111fi
4112
4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114fi
4115ac_res=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117echo "${ECHO_T}$ac_res" >&6; }
4118if test `eval echo '${'$as_ac_Header'}'` = yes; then
4119 cat >>confdefs.h <<_ACEOF
4120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121_ACEOF
4122
4123fi
4124
4125done
4126
4127
4128{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4129echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4130if test "${ac_cv_c_bigendian+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 # See if sys/param.h defines the BYTE_ORDER macro.
4134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
4140#include <sys/types.h>
4141#include <sys/param.h>
4142
4143int
4144main ()
4145{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004146#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004147 bogus endian macros
4148#endif
4149
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004188 # It does; now see whether it defined to BIG_ENDIAN or not.
4189cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
4194/* end confdefs.h. */
4195#include <sys/types.h>
4196#include <sys/param.h>
4197
4198int
4199main ()
4200{
4201#if BYTE_ORDER != BIG_ENDIAN
4202 not big endian
4203#endif
4204
4205 ;
4206 return 0;
4207}
4208_ACEOF
4209rm -f conftest.$ac_objext
4210if { (ac_try="$ac_compile"
4211case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227esac
4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004243 ac_cv_c_bigendian=yes
4244else
4245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_cv_c_bigendian=no
4249fi
4250
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 # It does not; compile a test program.
4257if test "$cross_compiling" = yes; then
4258 # try to guess the endianness by grepping values into an object file
4259 ac_cv_c_bigendian=unknown
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4267short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4268void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4269short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4270short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4271void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4272int
4273main ()
4274{
4275 _ascii (); _ebcdic ();
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
4281if { (ac_try="$ac_compile"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4315 ac_cv_c_bigendian=yes
4316fi
4317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4318 if test "$ac_cv_c_bigendian" = unknown; then
4319 ac_cv_c_bigendian=no
4320 else
4321 # finding both strings is unlikely to happen, but who knows?
4322 ac_cv_c_bigendian=unknown
4323 fi
4324fi
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341int
4342main ()
4343{
4344
4345 /* Are we little or big endian? From Harbison&Steele. */
4346 union
4347 {
4348 long int l;
4349 char c[sizeof (long int)];
4350 } u;
4351 u.l = 1;
4352 return u.c[sizeof (long int) - 1] == 1;
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest$ac_exeext
4359if { (ac_try="$ac_link"
4360case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363esac
4364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_link") 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_c_bigendian=no
4379else
4380 echo "$as_me: program exited with status $ac_status" >&5
4381echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384( exit $ac_status )
4385ac_cv_c_bigendian=yes
4386fi
4387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388fi
4389
4390
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394fi
4395{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4396echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4397case $ac_cv_c_bigendian in
4398 yes)
4399 ENDIAN=big
4400 ;;
4401 no)
4402 ENDIAN=little
4403 ;;
4404 *)
4405 { { echo "$as_me:$LINENO: error: unknown endianness
4406presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4407echo "$as_me: error: unknown endianness
4408presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4409 { (exit 1); exit 1; }; } ;;
4410esac
4411
4412
4413if test "$cross_compiling" = yes; then
4414 LLVM_CROSS_COMPILING=1
4415
4416
4417{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4418echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4419if test "${ac_cv_build_exeext+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4423 ac_cv_build_exeext=.exe
4424else
4425 ac_build_prefix=${build_alias}-
4426
4427 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4428set dummy ${ac_build_prefix}gcc; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004443 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 +00004444 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "gcc", so it can be a program name with args.
4466set dummy gcc; ac_word=$2
4467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004481 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 +00004482 ac_cv_prog_BUILD_CC="gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492BUILD_CC=$ac_cv_prog_BUILD_CC
4493if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495echo "${ECHO_T}$BUILD_CC" >&6; }
4496else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6; }
4499fi
4500
4501
4502 if test -z "$BUILD_CC"; then
4503 # Extract the first word of "cc", so it can be a program name with args.
4504set dummy cc; ac_word=$2
4505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 if test -n "$BUILD_CC"; then
4511 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4512else
4513 ac_prog_rejected=no
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004520 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 +00004521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4522 ac_prog_rejected=yes
4523 continue
4524 fi
4525 ac_cv_prog_BUILD_CC="cc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
4531IFS=$as_save_IFS
4532
4533if test $ac_prog_rejected = yes; then
4534 # We found a bogon in the path, so make sure we never use it.
4535 set dummy $ac_cv_prog_BUILD_CC
4536 shift
4537 if test $# != 0; then
4538 # We chose a different compiler from the bogus one.
4539 # However, it has the same basename, so the bogon will be chosen
4540 # first if we set BUILD_CC to just the basename; use the full file name.
4541 shift
4542 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4543 fi
4544fi
4545fi
4546fi
4547BUILD_CC=$ac_cv_prog_BUILD_CC
4548if test -n "$BUILD_CC"; then
4549 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4550echo "${ECHO_T}$BUILD_CC" >&6; }
4551else
4552 { echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6; }
4554fi
4555
4556
4557 fi
4558 fi
4559 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4560echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4563 rm -f conftest*
4564 echo 'int main () { return 0; }' > conftest.$ac_ext
4565 ac_cv_build_exeext=
4566 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4567 (eval $ac_build_link) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; then
4571 for file in conftest.*; do
4572 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004573 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004574 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4575 esac
4576 done
4577 else
4578 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4579echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4580 { (exit 1); exit 1; }; }
4581 fi
4582 rm -f conftest*
4583 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4584fi
4585fi
4586
4587BUILD_EXEEXT=""
4588test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4589{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4590echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4591ac_build_exeext=$BUILD_EXEEXT
4592
Jim Grosbache4c032e2008-10-02 22:56:44 +00004593 ac_build_prefix=${build_alias}-
4594 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4595set dummy ${ac_build_prefix}g++; ac_word=$2
4596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004610 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 +00004611 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616done
4617IFS=$as_save_IFS
4618
4619fi
4620fi
4621BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622if test -n "$BUILD_CXX"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624echo "${ECHO_T}$BUILD_CXX" >&6; }
4625else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
4628fi
4629
4630
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "g++", so it can be a program name with args.
4633set dummy g++; ac_word=$2
4634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004648 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 +00004649 ac_cv_prog_BUILD_CXX="g++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662echo "${ECHO_T}$BUILD_CXX" >&6; }
4663else
4664 { echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6; }
4666fi
4667
4668
4669 if test -z "$BUILD_CXX"; then
4670 # Extract the first word of "c++", so it can be a program name with args.
4671set dummy c++; ac_word=$2
4672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 if test -n "$BUILD_CXX"; then
4678 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4679else
4680 ac_prog_rejected=no
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004687 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 +00004688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4689 ac_prog_rejected=yes
4690 continue
4691 fi
4692 ac_cv_prog_BUILD_CXX="c++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697done
4698IFS=$as_save_IFS
4699
4700if test $ac_prog_rejected = yes; then
4701 # We found a bogon in the path, so make sure we never use it.
4702 set dummy $ac_cv_prog_BUILD_CXX
4703 shift
4704 if test $# != 0; then
4705 # We chose a different compiler from the bogus one.
4706 # However, it has the same basename, so the bogon will be chosen
4707 # first if we set BUILD_CXX to just the basename; use the full file name.
4708 shift
4709 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4710 fi
4711fi
4712fi
4713fi
4714BUILD_CXX=$ac_cv_prog_BUILD_CXX
4715if test -n "$BUILD_CXX"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4717echo "${ECHO_T}$BUILD_CXX" >&6; }
4718else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6; }
4721fi
4722
4723
4724 fi
4725 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004726else
4727 LLVM_CROSS_COMPILING=0
4728
4729fi
4730
Nick Lewycky45f0f822009-04-10 05:18:27 +00004731if 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 +00004732 cvsbuild="yes"
4733 optimize="no"
4734 CVSBUILD=CVSBUILD=1
4735
4736else
4737 cvsbuild="no"
4738 optimize="yes"
4739fi
4740
4741
4742# Check whether --enable-optimized was given.
4743if test "${enable_optimized+set}" = set; then
4744 enableval=$enable_optimized;
4745else
4746 enableval=$optimize
4747fi
4748
4749if test ${enableval} = "no" ; then
4750 ENABLE_OPTIMIZED=
4751
4752else
4753 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4754
4755fi
4756
David Greene19b1cbd2009-04-17 14:50:39 +00004757# Check whether --enable-profiling was given.
4758if test "${enable_profiling+set}" = set; then
4759 enableval=$enable_profiling;
4760else
4761 enableval="no"
4762fi
4763
4764if test ${enableval} = "no" ; then
4765 ENABLE_PROFILING=
4766
4767else
4768 ENABLE_PROFILING=ENABLE_PROFILING=1
4769
4770fi
4771
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004772# Check whether --enable-assertions was given.
4773if test "${enable_assertions+set}" = set; then
4774 enableval=$enable_assertions;
4775else
4776 enableval="yes"
4777fi
4778
4779if test ${enableval} = "yes" ; then
4780 DISABLE_ASSERTIONS=
4781
4782else
4783 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4784
4785fi
4786
4787# Check whether --enable-expensive-checks was given.
4788if test "${enable_expensive_checks+set}" = set; then
4789 enableval=$enable_expensive_checks;
4790else
4791 enableval="no"
4792fi
4793
4794if test ${enableval} = "yes" ; then
4795 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4796
4797 EXPENSIVE_CHECKS=yes
4798
4799else
4800 ENABLE_EXPENSIVE_CHECKS=
4801
4802 EXPENSIVE_CHECKS=no
4803
4804fi
4805
4806# Check whether --enable-debug-runtime was given.
4807if test "${enable_debug_runtime+set}" = set; then
4808 enableval=$enable_debug_runtime;
4809else
4810 enableval=no
4811fi
4812
4813if test ${enableval} = "no" ; then
4814 DEBUG_RUNTIME=
4815
4816else
4817 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4818
4819fi
4820
4821# Check whether --enable-jit was given.
4822if test "${enable_jit+set}" = set; then
4823 enableval=$enable_jit;
4824else
4825 enableval=default
4826fi
4827
4828if test ${enableval} = "no"
4829then
4830 JIT=
4831
4832else
4833 case "$llvm_cv_target_arch" in
4834 x86) TARGET_HAS_JIT=1
4835 ;;
4836 Sparc) TARGET_HAS_JIT=0
4837 ;;
4838 PowerPC) TARGET_HAS_JIT=1
4839 ;;
4840 x86_64) TARGET_HAS_JIT=1
4841 ;;
4842 Alpha) TARGET_HAS_JIT=1
4843 ;;
4844 IA64) TARGET_HAS_JIT=0
4845 ;;
4846 ARM) TARGET_HAS_JIT=0
4847 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004848 Mips) TARGET_HAS_JIT=0
4849 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004850 PIC16) TARGET_HAS_JIT=0
4851 ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004852 XCore) TARGET_HAS_JIT=0
4853 ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004854 MSP430) TARGET_HAS_JIT=0
4855 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004856 *) TARGET_HAS_JIT=0
4857 ;;
4858 esac
4859fi
4860
4861# Check whether --enable-doxygen was given.
4862if test "${enable_doxygen+set}" = set; then
4863 enableval=$enable_doxygen;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_DOXYGEN=1
4870 ;;
4871 no) ENABLE_DOXYGEN=0
4872 ;;
4873 default) ENABLE_DOXYGEN=0
4874 ;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878esac
4879
4880# Check whether --enable-threads was given.
4881if test "${enable_threads+set}" = set; then
4882 enableval=$enable_threads;
4883else
4884 enableval=default
4885fi
4886
4887case "$enableval" in
4888 yes) ENABLE_THREADS=1
4889 ;;
4890 no) ENABLE_THREADS=0
4891 ;;
4892 default) ENABLE_THREADS=1
4893 ;;
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4895echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4897esac
4898
Owen Anderson96237ec2009-05-19 22:18:56 +00004899cat >>confdefs.h <<_ACEOF
4900#define ENABLE_THREADS $ENABLE_THREADS
4901_ACEOF
4902
4903
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004904# Check whether --enable-pic was given.
4905if test "${enable_pic+set}" = set; then
4906 enableval=$enable_pic;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_PIC=1
4913 ;;
4914 no) ENABLE_PIC=0
4915 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004916 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004917 ;;
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921esac
4922
4923cat >>confdefs.h <<_ACEOF
4924#define ENABLE_PIC $ENABLE_PIC
4925_ACEOF
4926
4927
4928TARGETS_TO_BUILD=""
4929# Check whether --enable-targets was given.
4930if test "${enable_targets+set}" = set; then
4931 enableval=$enable_targets;
4932else
4933 enableval=all
4934fi
4935
4936case "$enableval" in
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004937 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004938 host-only)
4939 case "$llvm_cv_target_arch" in
4940 x86) TARGETS_TO_BUILD="X86" ;;
4941 x86_64) TARGETS_TO_BUILD="X86" ;;
4942 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4943 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4944 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4945 IA64) TARGETS_TO_BUILD="IA64" ;;
4946 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004947 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004950 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004952 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4953echo "$as_me: error: Can not set target to build" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955 esac
4956 ;;
4957 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4958 case "$a_target" in
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004971 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4972 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004973 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4977 esac
4978 done
4979 ;;
4980esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004981TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4982
4983
Douglas Gregor13e13882009-06-17 00:43:20 +00004984# Determine whether we are building LLVM support for the native architecture.
4985# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00004988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00004989
4990cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00004991#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00004992_ACEOF
4993
4994 fi
4995done
4996
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00004997# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4998# Targets.def and AsmPrinters.def.
4999LLVM_ENUM_TARGETS=""
5000LLVM_ENUM_ASM_PRINTERS=""
5001for target_to_build in $TARGETS_TO_BUILD; do
5002 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5003 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5004 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5005 fi
5006done
5007
5008
5009
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005010# Check whether --enable-cbe-printf-a was given.
5011if test "${enable_cbe_printf_a+set}" = set; then
5012 enableval=$enable_cbe_printf_a;
5013else
5014 enableval=default
5015fi
5016
5017case "$enableval" in
5018 yes) ENABLE_CBE_PRINTF_A=1
5019 ;;
5020 no) ENABLE_CBE_PRINTF_A=0
5021 ;;
5022 default) ENABLE_CBE_PRINTF_A=1
5023 ;;
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5025echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5027esac
5028
5029cat >>confdefs.h <<_ACEOF
5030#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5031_ACEOF
5032
5033
5034
5035# Check whether --with-llvmgccdir was given.
5036if test "${with_llvmgccdir+set}" = set; then
5037 withval=$with_llvmgccdir;
5038else
5039 withval=default
5040fi
5041
5042case "$withval" in
5043 default) WITH_LLVMGCCDIR=default ;;
5044 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5046echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5048esac
5049
5050
Devang Pateld84ba7b2007-12-04 22:54:47 +00005051# Check whether --with-llvmgcc was given.
5052if test "${with_llvmgcc+set}" = set; then
5053 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5054 WITH_LLVMGCCDIR=""
5055fi
5056
5057
5058
5059# Check whether --with-llvmgxx was given.
5060if test "${with_llvmgxx+set}" = set; then
5061 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5062 WITH_LLVMGCCDIR=""
5063fi
5064
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005065
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005066if test -n "$LLVMGCC"; then
5067 LLVMGCCCOMMAND="$LLVMGCC"
5068fi
5069
5070if test -n "$LLVMGXX"; then
5071 LLVMGXXCOMMAND="$LLVMGXX"
5072fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005073
5074if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5075 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5076echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5077 { (exit 1); exit 1; }; };
5078fi
5079
5080if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5082echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5083 { (exit 1); exit 1; }; };
5084fi
5085
5086
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005087# Check whether --with-extra-options was given.
5088if test "${with_extra_options+set}" = set; then
5089 withval=$with_extra_options;
5090else
5091 withval=default
5092fi
5093
5094case "$withval" in
5095 default) EXTRA_OPTIONS= ;;
5096 *) EXTRA_OPTIONS=$withval ;;
5097esac
5098EXTRA_OPTIONS=$EXTRA_OPTIONS
5099
5100
Gordon Henriksen016ec472007-10-02 09:50:32 +00005101# Check whether --enable-bindings was given.
5102if test "${enable_bindings+set}" = set; then
5103 enableval=$enable_bindings;
5104else
5105 enableval=default
5106fi
5107
5108BINDINGS_TO_BUILD=""
5109case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005110 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005111 all ) BINDINGS_TO_BUILD="ocaml" ;;
5112 none | no) BINDINGS_TO_BUILD="" ;;
5113 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5114 case "$a_binding" in
5115 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5116 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5117echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5119 esac
5120 done
5121 ;;
5122esac
5123
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005124
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005125# Check whether --with-ocaml-libdir was given.
5126if test "${with_ocaml_libdir+set}" = set; then
5127 withval=$with_ocaml_libdir;
5128else
5129 withval=auto
5130fi
5131
5132case "$withval" in
5133 auto) with_ocaml_libdir="$withval" ;;
5134 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5136echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005141# Check whether --with-binutils-include was given.
5142if test "${with_binutils_include+set}" = set; then
5143 withval=$with_binutils_include;
5144else
5145 withval=default
5146fi
5147
5148case "$withval" in
5149 default) WITH_BINUTILS_INCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5152echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154esac
5155if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5156 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5157
5158 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5159 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5160 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5161echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5162 { (exit 1); exit 1; }; };
5163 fi
5164fi
5165
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005166# Check whether --enable-libffi was given.
5167if test "${enable_libffi+set}" = set; then
5168 enableval=$enable_libffi;
5169else
5170 enableval=yes
5171fi
5172
5173case "$enableval" in
5174 yes) llvm_cv_enable_libffi="yes" ;;
5175 no) llvm_cv_enable_libffi="no" ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5179esac
5180
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005181if test "$llvm_cv_os_type" = "Win32" ; then
5182 llvmc_dynamic="yes"
5183else
5184 llvmc_dynamic="no"
5185fi
5186
5187# Check whether --enable-llvmc-dynamic was given.
5188if test "${enable_llvmc_dynamic+set}" = set; then
5189 enableval=$enable_llvmc_dynamic;
5190else
5191 enableval=$llvmc_dynamic
5192fi
5193
5194if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5195 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5196
5197else
5198 ENABLE_LLVMC_DYNAMIC=
5199
5200fi
5201
5202# Check whether --enable-llvmc-dynamic-plugins was given.
5203if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5204 enableval=$enable_llvmc_dynamic_plugins;
5205else
5206 enableval=yes
5207fi
5208
5209if test ${enableval} = "yes" ; then
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5211
5212else
5213 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5214
5215fi
5216
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005217
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005218ac_ext=c
5219ac_cpp='$CPP $CPPFLAGS'
5220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5225# On Suns, sometimes $CPP names a directory.
5226if test -n "$CPP" && test -d "$CPP"; then
5227 CPP=
5228fi
5229if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5235 do
5236 ac_preproc_ok=false
5237for ac_c_preproc_warn_flag in '' yes
5238do
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h. */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h. */
5251#ifdef __STDC__
5252# include <limits.h>
5253#else
5254# include <assert.h>
5255#endif
5256 Syntax error
5257_ACEOF
5258if { (ac_try="$ac_cpp conftest.$ac_ext"
5259case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_c_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274 else
5275 ac_cpp_err=
5276 fi
5277else
5278 ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005281 :
5282else
5283 echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 # Broken: fails on valid input.
5287continue
5288fi
5289
5290rm -f conftest.err conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h. */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h. */
5300#include <ac_nonexistent.h>
5301_ACEOF
5302if { (ac_try="$ac_cpp conftest.$ac_ext"
5303case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306esac
5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005314 (exit $ac_status); } >/dev/null; then
5315 if test -s conftest.err; then
5316 ac_cpp_err=$ac_c_preproc_warn_flag
5317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5318 else
5319 ac_cpp_err=
5320 fi
5321else
5322 ac_cpp_err=yes
5323fi
5324if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005325 # Broken: success on invalid input.
5326continue
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 # Passes both tests.
5332ac_preproc_ok=:
5333break
5334fi
5335
5336rm -f conftest.err conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then
5342 break
5343fi
5344
5345 done
5346 ac_cv_prog_CPP=$CPP
5347
5348fi
5349 CPP=$ac_cv_prog_CPP
5350else
5351 ac_cv_prog_CPP=$CPP
5352fi
5353{ echo "$as_me:$LINENO: result: $CPP" >&5
5354echo "${ECHO_T}$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370#ifdef __STDC__
5371# include <limits.h>
5372#else
5373# include <assert.h>
5374#endif
5375 Syntax error
5376_ACEOF
5377if { (ac_try="$ac_cpp conftest.$ac_ext"
5378case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381esac
5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393 else
5394 ac_cpp_err=
5395 fi
5396else
5397 ac_cpp_err=yes
5398fi
5399if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005400 :
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Broken: fails on valid input.
5406continue
5407fi
5408
5409rm -f conftest.err conftest.$ac_ext
5410
5411 # OK, works on sane cases. Now check whether nonexistent headers
5412 # can be detected and how.
5413 cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
5419#include <ac_nonexistent.h>
5420_ACEOF
5421if { (ac_try="$ac_cpp conftest.$ac_ext"
5422case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005433 (exit $ac_status); } >/dev/null; then
5434 if test -s conftest.err; then
5435 ac_cpp_err=$ac_c_preproc_warn_flag
5436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5437 else
5438 ac_cpp_err=
5439 fi
5440else
5441 ac_cpp_err=yes
5442fi
5443if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005444 # Broken: success on invalid input.
5445continue
5446else
5447 echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 # Passes both tests.
5451ac_preproc_ok=:
5452break
5453fi
5454
5455rm -f conftest.err conftest.$ac_ext
5456
5457done
5458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459rm -f conftest.err conftest.$ac_ext
5460if $ac_preproc_ok; then
5461 :
5462else
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464See \`config.log' for more details." >&5
5465echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5468fi
5469
5470ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481if test -n "$ac_tool_prefix"; then
5482 for ac_prog in gcc
5483 do
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488if test "${ac_cv_prog_CC+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491 if test -n "$CC"; then
5492 ac_cv_prog_CC="$CC" # Let the user override the test.
5493else
5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005500 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 +00005501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505done
5506done
5507IFS=$as_save_IFS
5508
5509fi
5510fi
5511CC=$ac_cv_prog_CC
5512if test -n "$CC"; then
5513 { echo "$as_me:$LINENO: result: $CC" >&5
5514echo "${ECHO_T}$CC" >&6; }
5515else
5516 { echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6; }
5518fi
5519
5520
5521 test -n "$CC" && break
5522 done
5523fi
5524if test -z "$CC"; then
5525 ac_ct_CC=$CC
5526 for ac_prog in gcc
5527do
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529set dummy $ac_prog; ac_word=$2
5530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 if test -n "$ac_ct_CC"; then
5536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005544 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 +00005545 ac_cv_prog_ac_ct_CC="$ac_prog"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549done
5550done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555ac_ct_CC=$ac_cv_prog_ac_ct_CC
5556if test -n "$ac_ct_CC"; then
5557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5558echo "${ECHO_T}$ac_ct_CC" >&6; }
5559else
5560 { echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6; }
5562fi
5563
5564
5565 test -n "$ac_ct_CC" && break
5566done
5567
5568 if test "x$ac_ct_CC" = x; then
5569 CC=""
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572yes:)
5573{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5574whose name does not start with the host triplet. If you think this
5575configuration is useful to you, please write to autoconf@gnu.org." >&5
5576echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5577whose name does not start with the host triplet. If you think this
5578configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581 CC=$ac_ct_CC
5582 fi
5583fi
5584
5585
5586test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5587See \`config.log' for more details." >&5
5588echo "$as_me: error: no acceptable C compiler found in \$PATH
5589See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5591
5592# Provide some information about the compiler.
5593echo "$as_me:$LINENO: checking for C compiler version" >&5
5594ac_compiler=`set X $ac_compile; echo $2`
5595{ (ac_try="$ac_compiler --version >&5"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_compiler --version >&5") 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }
5605{ (ac_try="$ac_compiler -v >&5"
5606case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compiler -v >&5") 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }
5615{ (ac_try="$ac_compiler -V >&5"
5616case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compiler -V >&5") 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }
5625
5626{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5627echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5628if test "${ac_cv_c_compiler_gnu+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637
5638int
5639main ()
5640{
5641#ifndef __GNUC__
5642 choke me
5643#endif
5644
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649rm -f conftest.$ac_objext
5650if { (ac_try="$ac_compile"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_try") 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005683 ac_compiler_gnu=yes
5684else
5685 echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_compiler_gnu=no
5689fi
5690
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692ac_cv_c_compiler_gnu=$ac_compiler_gnu
5693
5694fi
5695{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5696echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5697GCC=`test $ac_compiler_gnu = yes && echo yes`
5698ac_test_CFLAGS=${CFLAGS+set}
5699ac_save_CFLAGS=$CFLAGS
5700{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5701echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5702if test "${ac_cv_prog_cc_g+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 ac_save_c_werror_flag=$ac_c_werror_flag
5706 ac_c_werror_flag=yes
5707 ac_cv_prog_cc_g=no
5708 CFLAGS="-g"
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715
5716int
5717main ()
5718{
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext
5725if { (ac_try="$ac_compile"
5726case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005758 ac_cv_prog_cc_g=yes
5759else
5760 echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 CFLAGS=""
5764 cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770
5771int
5772main ()
5773{
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext
5780if { (ac_try="$ac_compile"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_try") 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005813 :
5814else
5815 echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_c_werror_flag=$ac_save_c_werror_flag
5819 CFLAGS="-g"
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827int
5828main ()
5829{
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005869 ac_cv_prog_cc_g=yes
5870else
5871 echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875fi
5876
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 ac_c_werror_flag=$ac_save_c_werror_flag
5885fi
5886{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5887echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5888if test "$ac_test_CFLAGS" = set; then
5889 CFLAGS=$ac_save_CFLAGS
5890elif test $ac_cv_prog_cc_g = yes; then
5891 if test "$GCC" = yes; then
5892 CFLAGS="-g -O2"
5893 else
5894 CFLAGS="-g"
5895 fi
5896else
5897 if test "$GCC" = yes; then
5898 CFLAGS="-O2"
5899 else
5900 CFLAGS=
5901 fi
5902fi
5903{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5904echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5905if test "${ac_cv_prog_cc_c89+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 ac_cv_prog_cc_c89=no
5909ac_save_CC=$CC
5910cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h. */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h. */
5916#include <stdarg.h>
5917#include <stdio.h>
5918#include <sys/types.h>
5919#include <sys/stat.h>
5920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5921struct buf { int x; };
5922FILE * (*rcsopen) (struct buf *, struct stat *, int);
5923static char *e (p, i)
5924 char **p;
5925 int i;
5926{
5927 return p[i];
5928}
5929static char *f (char * (*g) (char **, int), char **p, ...)
5930{
5931 char *s;
5932 va_list v;
5933 va_start (v,p);
5934 s = g (p, va_arg (v,int));
5935 va_end (v);
5936 return s;
5937}
5938
5939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5940 function prototypes and stuff, but not '\xHH' hex character constants.
5941 These don't provoke an error unfortunately, instead are silently treated
5942 as 'x'. The following induces an error, until -std is added to get
5943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5944 array size at least. It's necessary to write '\x00'==0 to get something
5945 that's true only with -std. */
5946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5947
5948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5949 inside strings and character constants. */
5950#define FOO(x) 'x'
5951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5952
5953int test (int i, double x);
5954struct s1 {int (*f) (int a);};
5955struct s2 {int (*f) (double a);};
5956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5957int argc;
5958char **argv;
5959int
5960main ()
5961{
5962return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5969do
5970 CC="$ac_save_CC $ac_arg"
5971 rm -f conftest.$ac_objext
5972if { (ac_try="$ac_compile"
5973case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999esac
6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006005 ac_cv_prog_cc_c89=$ac_arg
6006else
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010
6011fi
6012
6013rm -f core conftest.err conftest.$ac_objext
6014 test "x$ac_cv_prog_cc_c89" != "xno" && break
6015done
6016rm -f conftest.$ac_ext
6017CC=$ac_save_CC
6018
6019fi
6020# AC_CACHE_VAL
6021case "x$ac_cv_prog_cc_c89" in
6022 x)
6023 { echo "$as_me:$LINENO: result: none needed" >&5
6024echo "${ECHO_T}none needed" >&6; } ;;
6025 xno)
6026 { echo "$as_me:$LINENO: result: unsupported" >&5
6027echo "${ECHO_T}unsupported" >&6; } ;;
6028 *)
6029 CC="$CC $ac_cv_prog_cc_c89"
6030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6031echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6032esac
6033
6034
6035ac_ext=c
6036ac_cpp='$CPP $CPPFLAGS'
6037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041ac_ext=cpp
6042ac_cpp='$CXXCPP $CPPFLAGS'
6043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046if test -z "$CXX"; then
6047 if test -n "$CCC"; then
6048 CXX=$CCC
6049 else
6050 if test -n "$ac_tool_prefix"; then
6051 for ac_prog in g++
6052 do
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057if test "${ac_cv_prog_CXX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 if test -n "$CXX"; then
6061 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006069 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 +00006070 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080CXX=$ac_cv_prog_CXX
6081if test -n "$CXX"; then
6082 { echo "$as_me:$LINENO: result: $CXX" >&5
6083echo "${ECHO_T}$CXX" >&6; }
6084else
6085 { echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6; }
6087fi
6088
6089
6090 test -n "$CXX" && break
6091 done
6092fi
6093if test -z "$CXX"; then
6094 ac_ct_CXX=$CXX
6095 for ac_prog in g++
6096do
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098set dummy $ac_prog; ac_word=$2
6099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 if test -n "$ac_ct_CXX"; then
6105 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006113 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 +00006114 ac_cv_prog_ac_ct_CXX="$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119done
6120IFS=$as_save_IFS
6121
6122fi
6123fi
6124ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6125if test -n "$ac_ct_CXX"; then
6126 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6127echo "${ECHO_T}$ac_ct_CXX" >&6; }
6128else
6129 { echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6; }
6131fi
6132
6133
6134 test -n "$ac_ct_CXX" && break
6135done
6136
6137 if test "x$ac_ct_CXX" = x; then
6138 CXX="g++"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141yes:)
6142{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6143whose name does not start with the host triplet. If you think this
6144configuration is useful to you, please write to autoconf@gnu.org." >&5
6145echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6146whose name does not start with the host triplet. If you think this
6147configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6148ac_tool_warned=yes ;;
6149esac
6150 CXX=$ac_ct_CXX
6151 fi
6152fi
6153
6154 fi
6155fi
6156# Provide some information about the compiler.
6157echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6158ac_compiler=`set X $ac_compile; echo $2`
6159{ (ac_try="$ac_compiler --version >&5"
6160case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compiler --version >&5") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }
6169{ (ac_try="$ac_compiler -v >&5"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compiler -v >&5") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179{ (ac_try="$ac_compiler -V >&5"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compiler -V >&5") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }
6189
6190{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6191echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6192if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201
6202int
6203main ()
6204{
6205#ifndef __GNUC__
6206 choke me
6207#endif
6208
6209 ;
6210 return 0;
6211}
6212_ACEOF
6213rm -f conftest.$ac_objext
6214if { (ac_try="$ac_compile"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231esac
6232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006247 ac_compiler_gnu=yes
6248else
6249 echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252 ac_compiler_gnu=no
6253fi
6254
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6257
6258fi
6259{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6260echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6261GXX=`test $ac_compiler_gnu = yes && echo yes`
6262ac_test_CXXFLAGS=${CXXFLAGS+set}
6263ac_save_CXXFLAGS=$CXXFLAGS
6264{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6265echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6266if test "${ac_cv_prog_cxx_g+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6270 ac_cxx_werror_flag=yes
6271 ac_cv_prog_cxx_g=no
6272 CXXFLAGS="-g"
6273 cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283
6284 ;
6285 return 0;
6286}
6287_ACEOF
6288rm -f conftest.$ac_objext
6289if { (ac_try="$ac_compile"
6290case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293esac
6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_compile") 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306esac
6307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006322 ac_cv_prog_cxx_g=yes
6323else
6324 echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 CXXFLAGS=""
6328 cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
6334
6335int
6336main ()
6337{
6338
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343rm -f conftest.$ac_objext
6344if { (ac_try="$ac_compile"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006377 :
6378else
6379 echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6383 CXXFLAGS="-g"
6384 cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h. */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext
6400if { (ac_try="$ac_compile"
6401case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6414 { (case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417esac
6418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_try") 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006433 ac_cv_prog_cxx_g=yes
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442fi
6443
6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6449fi
6450{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6451echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6452if test "$ac_test_CXXFLAGS" = set; then
6453 CXXFLAGS=$ac_save_CXXFLAGS
6454elif test $ac_cv_prog_cxx_g = yes; then
6455 if test "$GXX" = yes; then
6456 CXXFLAGS="-g -O2"
6457 else
6458 CXXFLAGS="-g"
6459 fi
6460else
6461 if test "$GXX" = yes; then
6462 CXXFLAGS="-O2"
6463 else
6464 CXXFLAGS=
6465 fi
6466fi
6467ac_ext=c
6468ac_cpp='$CPP $CPPFLAGS'
6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006473
6474{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476if test "${lt_cv_path_NM+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 if test -n "$NM"; then
6480 # Let the user override the test.
6481 lt_cv_path_NM="$NM"
6482else
6483 lt_nm_to_check="${ac_tool_prefix}nm"
6484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485 lt_nm_to_check="$lt_nm_to_check nm"
6486 fi
6487 for lt_tmp_nm in $lt_nm_to_check; do
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6490 IFS="$lt_save_ifs"
6491 test -z "$ac_dir" && ac_dir=.
6492 tmp_nm="$ac_dir/$lt_tmp_nm"
6493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494 # Check to see if the nm accepts a BSD-compat flag.
6495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6496 # nm: unknown option "B" ignored
6497 # Tru64's nm complains that /dev/null is an invalid object file
6498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499 */dev/null* | *'Invalid file or object type'*)
6500 lt_cv_path_NM="$tmp_nm -B"
6501 break
6502 ;;
6503 *)
6504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6505 */dev/null*)
6506 lt_cv_path_NM="$tmp_nm -p"
6507 break
6508 ;;
6509 *)
6510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511 continue # so that we can try to find one that supports BSD flags
6512 ;;
6513 esac
6514 ;;
6515 esac
6516 fi
6517 done
6518 IFS="$lt_save_ifs"
6519 done
6520 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6521fi
6522fi
6523{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6525NM="$lt_cv_path_NM"
6526
6527
6528
6529{ echo "$as_me:$LINENO: checking for GNU make" >&5
6530echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531if test "${llvm_cv_gnu_make_command+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 llvm_cv_gnu_make_command=''
6535 for a in "$MAKE" make gmake gnumake ; do
6536 if test -z "$a" ; then continue ; fi ;
6537 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6538 then
6539 llvm_cv_gnu_make_command=$a ;
6540 break;
6541 fi
6542 done
6543fi
6544{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6547 ifGNUmake='' ;
6548 else
6549 ifGNUmake='#' ;
6550 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551echo "${ECHO_T}\"Not found\"" >&6; };
6552 fi
6553
6554
6555{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6557LN_S=$as_ln_s
6558if test "$LN_S" = "ln -s"; then
6559 { echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6; }
6561else
6562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563echo "${ECHO_T}no, using $LN_S" >&6; }
6564fi
6565
6566# Extract the first word of "cmp", so it can be a program name with args.
6567set dummy cmp; ac_word=$2
6568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_CMP+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 case $CMP in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006584 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 +00006585 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590done
6591IFS=$as_save_IFS
6592
6593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6594 ;;
6595esac
6596fi
6597CMP=$ac_cv_path_CMP
6598if test -n "$CMP"; then
6599 { echo "$as_me:$LINENO: result: $CMP" >&5
6600echo "${ECHO_T}$CMP" >&6; }
6601else
6602 { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
6604fi
6605
6606
6607# Extract the first word of "cp", so it can be a program name with args.
6608set dummy cp; ac_word=$2
6609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611if test "${ac_cv_path_CP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 case $CP in
6615 [\\/]* | ?:[\\/]*)
6616 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617 ;;
6618 *)
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006625 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 +00006626 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631done
6632IFS=$as_save_IFS
6633
6634 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6635 ;;
6636esac
6637fi
6638CP=$ac_cv_path_CP
6639if test -n "$CP"; then
6640 { echo "$as_me:$LINENO: result: $CP" >&5
6641echo "${ECHO_T}$CP" >&6; }
6642else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647
6648# Extract the first word of "date", so it can be a program name with args.
6649set dummy date; ac_word=$2
6650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652if test "${ac_cv_path_DATE+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 case $DATE in
6656 [\\/]* | ?:[\\/]*)
6657 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006666 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 +00006667 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671done
6672done
6673IFS=$as_save_IFS
6674
6675 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6676 ;;
6677esac
6678fi
6679DATE=$ac_cv_path_DATE
6680if test -n "$DATE"; then
6681 { echo "$as_me:$LINENO: result: $DATE" >&5
6682echo "${ECHO_T}$DATE" >&6; }
6683else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
6686fi
6687
6688
6689# Extract the first word of "find", so it can be a program name with args.
6690set dummy find; ac_word=$2
6691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693if test "${ac_cv_path_FIND+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 case $FIND in
6697 [\\/]* | ?:[\\/]*)
6698 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6699 ;;
6700 *)
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006707 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 +00006708 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712done
6713done
6714IFS=$as_save_IFS
6715
6716 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6717 ;;
6718esac
6719fi
6720FIND=$ac_cv_path_FIND
6721if test -n "$FIND"; then
6722 { echo "$as_me:$LINENO: result: $FIND" >&5
6723echo "${ECHO_T}$FIND" >&6; }
6724else
6725 { echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6; }
6727fi
6728
6729
6730# Extract the first word of "grep", so it can be a program name with args.
6731set dummy grep; ac_word=$2
6732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737 case $GREP in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6740 ;;
6741 *)
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006748 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 +00006749 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6758 ;;
6759esac
6760fi
6761GREP=$ac_cv_path_GREP
6762if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764echo "${ECHO_T}$GREP" >&6; }
6765else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6; }
6768fi
6769
6770
6771# Extract the first word of "mkdir", so it can be a program name with args.
6772set dummy mkdir; ac_word=$2
6773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775if test "${ac_cv_path_MKDIR+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 case $MKDIR in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006789 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 +00006790 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794done
6795done
6796IFS=$as_save_IFS
6797
6798 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6799 ;;
6800esac
6801fi
6802MKDIR=$ac_cv_path_MKDIR
6803if test -n "$MKDIR"; then
6804 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805echo "${ECHO_T}$MKDIR" >&6; }
6806else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6; }
6809fi
6810
6811
6812# Extract the first word of "mv", so it can be a program name with args.
6813set dummy mv; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_path_MV+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 case $MV in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6822 ;;
6823 *)
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006830 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 +00006831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6840 ;;
6841esac
6842fi
6843MV=$ac_cv_path_MV
6844if test -n "$MV"; then
6845 { echo "$as_me:$LINENO: result: $MV" >&5
6846echo "${ECHO_T}$MV" >&6; }
6847else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006870 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 +00006871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881RANLIB=$ac_cv_prog_RANLIB
6882if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884echo "${ECHO_T}$RANLIB" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891fi
6892if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895set dummy ranlib; ac_word=$2
6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006910 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 +00006911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
6928fi
6929
6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&5
6938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939whose name does not start with the host triplet. If you think this
6940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941ac_tool_warned=yes ;;
6942esac
6943 RANLIB=$ac_ct_RANLIB
6944 fi
6945else
6946 RANLIB="$ac_cv_prog_RANLIB"
6947fi
6948
6949# Extract the first word of "rm", so it can be a program name with args.
6950set dummy rm; ac_word=$2
6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953if test "${ac_cv_path_RM+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $RM in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6959 ;;
6960 *)
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006967 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 +00006968 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974IFS=$as_save_IFS
6975
6976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6977 ;;
6978esac
6979fi
6980RM=$ac_cv_path_RM
6981if test -n "$RM"; then
6982 { echo "$as_me:$LINENO: result: $RM" >&5
6983echo "${ECHO_T}$RM" >&6; }
6984else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989
6990# Extract the first word of "sed", so it can be a program name with args.
6991set dummy sed; ac_word=$2
6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994if test "${ac_cv_path_SED+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 case $SED in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7000 ;;
7001 *)
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007008 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 +00007009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7018 ;;
7019esac
7020fi
7021SED=$ac_cv_path_SED
7022if test -n "$SED"; then
7023 { echo "$as_me:$LINENO: result: $SED" >&5
7024echo "${ECHO_T}$SED" >&6; }
7025else
7026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
7028fi
7029
7030
7031# Extract the first word of "tar", so it can be a program name with args.
7032set dummy tar; ac_word=$2
7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_path_TAR+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 case $TAR in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007049 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 +00007050 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056IFS=$as_save_IFS
7057
7058 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7059 ;;
7060esac
7061fi
7062TAR=$ac_cv_path_TAR
7063if test -n "$TAR"; then
7064 { echo "$as_me:$LINENO: result: $TAR" >&5
7065echo "${ECHO_T}$TAR" >&6; }
7066else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071
7072# Extract the first word of "pwd", so it can be a program name with args.
7073set dummy pwd; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_path_BINPWD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 case $BINPWD in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007090 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 +00007091 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097IFS=$as_save_IFS
7098
7099 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7100 ;;
7101esac
7102fi
7103BINPWD=$ac_cv_path_BINPWD
7104if test -n "$BINPWD"; then
7105 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106echo "${ECHO_T}$BINPWD" >&6; }
7107else
7108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
7110fi
7111
7112
7113
7114# Extract the first word of "Graphviz", so it can be a program name with args.
7115set dummy Graphviz; ac_word=$2
7116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 case $GRAPHVIZ in
7122 [\\/]* | ?:[\\/]*)
7123 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7124 ;;
7125 *)
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007132 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 +00007133 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138done
7139IFS=$as_save_IFS
7140
7141 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7142 ;;
7143esac
7144fi
7145GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7146if test -n "$GRAPHVIZ"; then
7147 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148echo "${ECHO_T}$GRAPHVIZ" >&6; }
7149else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6; }
7152fi
7153
7154
7155if test "$GRAPHVIZ" != "echo Graphviz" ; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_GRAPHVIZ 1
7159_ACEOF
7160
7161 if test "$llvm_cv_os_type" = "MingW" ; then
7162 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7163 fi
7164
7165cat >>confdefs.h <<_ACEOF
7166#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7167_ACEOF
7168
7169fi
7170# Extract the first word of "dot", so it can be a program name with args.
7171set dummy dot; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_path_DOT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 case $DOT in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007188 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 +00007189 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194done
7195IFS=$as_save_IFS
7196
7197 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7198 ;;
7199esac
7200fi
7201DOT=$ac_cv_path_DOT
7202if test -n "$DOT"; then
7203 { echo "$as_me:$LINENO: result: $DOT" >&5
7204echo "${ECHO_T}$DOT" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211if test "$DOT" != "echo dot" ; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_DOT 1
7215_ACEOF
7216
7217 if test "$llvm_cv_os_type" = "MingW" ; then
7218 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7219 fi
7220
7221cat >>confdefs.h <<_ACEOF
7222#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7223_ACEOF
7224
7225fi
David Greenedb740ef2009-07-09 17:16:26 +00007226# Extract the first word of "fdp", so it can be a program name with args.
7227set dummy fdp; ac_word=$2
7228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230if test "${ac_cv_path_FDP+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 case $FDP in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251IFS=$as_save_IFS
7252
7253 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7254 ;;
7255esac
7256fi
7257FDP=$ac_cv_path_FDP
7258if test -n "$FDP"; then
7259 { echo "$as_me:$LINENO: result: $FDP" >&5
7260echo "${ECHO_T}$FDP" >&6; }
7261else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6; }
7264fi
7265
7266
7267if test "$FDP" != "echo fdp" ; then
7268
7269cat >>confdefs.h <<\_ACEOF
7270#define HAVE_FDP 1
7271_ACEOF
7272
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7275 fi
7276
7277cat >>confdefs.h <<_ACEOF
7278#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7279_ACEOF
7280
7281fi
7282# Extract the first word of "neato", so it can be a program name with args.
7283set dummy neato; ac_word=$2
7284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286if test "${ac_cv_path_NEATO+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 case $NEATO in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305done
7306done
7307IFS=$as_save_IFS
7308
7309 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7310 ;;
7311esac
7312fi
7313NEATO=$ac_cv_path_NEATO
7314if test -n "$NEATO"; then
7315 { echo "$as_me:$LINENO: result: $NEATO" >&5
7316echo "${ECHO_T}$NEATO" >&6; }
7317else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
7320fi
7321
7322
7323if test "$NEATO" != "echo neato" ; then
7324
7325cat >>confdefs.h <<\_ACEOF
7326#define HAVE_NEATO 1
7327_ACEOF
7328
7329 if test "$llvm_cv_os_type" = "MingW" ; then
7330 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331 fi
7332
7333cat >>confdefs.h <<_ACEOF
7334#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7335_ACEOF
7336
7337fi
7338# Extract the first word of "twopi", so it can be a program name with args.
7339set dummy twopi; ac_word=$2
7340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_TWOPI+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345 case $TWOPI in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363IFS=$as_save_IFS
7364
7365 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7366 ;;
7367esac
7368fi
7369TWOPI=$ac_cv_path_TWOPI
7370if test -n "$TWOPI"; then
7371 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7372echo "${ECHO_T}$TWOPI" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379if test "$TWOPI" != "echo twopi" ; then
7380
7381cat >>confdefs.h <<\_ACEOF
7382#define HAVE_TWOPI 1
7383_ACEOF
7384
7385 if test "$llvm_cv_os_type" = "MingW" ; then
7386 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7387 fi
7388
7389cat >>confdefs.h <<_ACEOF
7390#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7391_ACEOF
7392
7393fi
7394# Extract the first word of "circo", so it can be a program name with args.
7395set dummy circo; ac_word=$2
7396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398if test "${ac_cv_path_CIRCO+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 case $CIRCO in
7402 [\\/]* | ?:[\\/]*)
7403 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7404 ;;
7405 *)
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417done
7418done
7419IFS=$as_save_IFS
7420
7421 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7422 ;;
7423esac
7424fi
7425CIRCO=$ac_cv_path_CIRCO
7426if test -n "$CIRCO"; then
7427 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7428echo "${ECHO_T}$CIRCO" >&6; }
7429else
7430 { echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6; }
7432fi
7433
7434
7435if test "$CIRCO" != "echo circo" ; then
7436
7437cat >>confdefs.h <<\_ACEOF
7438#define HAVE_CIRCO 1
7439_ACEOF
7440
7441 if test "$llvm_cv_os_type" = "MingW" ; then
7442 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7443 fi
7444
7445cat >>confdefs.h <<_ACEOF
7446#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7447_ACEOF
7448
7449fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007450for ac_prog in gv gsview32
7451do
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453set dummy $ac_prog; ac_word=$2
7454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_GV+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 case $GV in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007470 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 +00007471 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476done
7477IFS=$as_save_IFS
7478
7479 ;;
7480esac
7481fi
7482GV=$ac_cv_path_GV
7483if test -n "$GV"; then
7484 { echo "$as_me:$LINENO: result: $GV" >&5
7485echo "${ECHO_T}$GV" >&6; }
7486else
7487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
7489fi
7490
7491
7492 test -n "$GV" && break
7493done
7494test -n "$GV" || GV="echo gv"
7495
7496if test "$GV" != "echo gv" ; then
7497
7498cat >>confdefs.h <<\_ACEOF
7499#define HAVE_GV 1
7500_ACEOF
7501
7502 if test "$llvm_cv_os_type" = "MingW" ; then
7503 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7504 fi
7505
7506cat >>confdefs.h <<_ACEOF
7507#define LLVM_PATH_GV "$GV${EXEEXT}"
7508_ACEOF
7509
7510fi
7511# Extract the first word of "dotty", so it can be a program name with args.
7512set dummy dotty; ac_word=$2
7513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515if test "${ac_cv_path_DOTTY+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 case $DOTTY in
7519 [\\/]* | ?:[\\/]*)
7520 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7521 ;;
7522 *)
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007529 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 +00007530 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535done
7536IFS=$as_save_IFS
7537
7538 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7539 ;;
7540esac
7541fi
7542DOTTY=$ac_cv_path_DOTTY
7543if test -n "$DOTTY"; then
7544 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7545echo "${ECHO_T}$DOTTY" >&6; }
7546else
7547 { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
7549fi
7550
7551
7552if test "$DOTTY" != "echo dotty" ; then
7553
7554cat >>confdefs.h <<\_ACEOF
7555#define HAVE_DOTTY 1
7556_ACEOF
7557
7558 if test "$llvm_cv_os_type" = "MingW" ; then
7559 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7560 fi
7561
7562cat >>confdefs.h <<_ACEOF
7563#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7564_ACEOF
7565
7566fi
7567
7568
7569# Extract the first word of "perl", so it can be a program name with args.
7570set dummy perl; ac_word=$2
7571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573if test "${ac_cv_path_PERL+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576 case $PERL in
7577 [\\/]* | ?:[\\/]*)
7578 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7579 ;;
7580 *)
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007587 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 +00007588 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592done
7593done
7594IFS=$as_save_IFS
7595
7596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7597 ;;
7598esac
7599fi
7600PERL=$ac_cv_path_PERL
7601if test -n "$PERL"; then
7602 { echo "$as_me:$LINENO: result: $PERL" >&5
7603echo "${ECHO_T}$PERL" >&6; }
7604else
7605 { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
7607fi
7608
7609
7610if test "$PERL" != "none"; then
7611 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7612echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7613 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7614 { echo "$as_me:$LINENO: result: yes" >&5
7615echo "${ECHO_T}yes" >&6; }
7616 else
7617 PERL=none
7618 { echo "$as_me:$LINENO: result: not found" >&5
7619echo "${ECHO_T}not found" >&6; }
7620 fi
7621fi
7622
7623
7624if test x"$PERL" = xnone; then
7625 HAVE_PERL=0
7626
7627 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7628echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7629 { (exit 1); exit 1; }; }
7630else
7631 HAVE_PERL=1
7632
7633fi
7634
7635# Find a good install program. We prefer a C program (faster),
7636# so one script is as good as another. But avoid the broken or
7637# incompatible versions:
7638# SysV /etc/install, /usr/sbin/install
7639# SunOS /usr/etc/install
7640# IRIX /sbin/install
7641# AIX /bin/install
7642# AmigaOS /C/install, which installs bootblocks on floppy discs
7643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7646# OS/2's system install, which has a completely different semantic
7647# ./install, which can be erroneously created by make from ./install.sh.
7648{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7649echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7650if test -z "$INSTALL"; then
7651if test "${ac_cv_path_install+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 # Account for people who put trailing slashes in PATH elements.
7660case $as_dir/ in
7661 ./ | .// | /cC/* | \
7662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7664 /usr/ucb/* ) ;;
7665 *)
7666 # OSF1 and SCO ODT 3.0 have their own names for install.
7667 # Don't use installbsd from OSF since it installs stuff as root
7668 # by default.
7669 for ac_prog in ginstall scoinst install; do
7670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007671 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 +00007672 if test $ac_prog = install &&
7673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7674 # AIX install. It has an incompatible calling convention.
7675 :
7676 elif test $ac_prog = install &&
7677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7678 # program-specific install script used by HP pwplus--don't use.
7679 :
7680 else
7681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7682 break 3
7683 fi
7684 fi
7685 done
7686 done
7687 ;;
7688esac
7689done
7690IFS=$as_save_IFS
7691
7692
7693fi
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL=$ac_cv_path_install
7696 else
7697 # As a last resort, use the slow shell script. Don't cache a
7698 # value for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the value is a relative name.
7701 INSTALL=$ac_install_sh
7702 fi
7703fi
7704{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7705echo "${ECHO_T}$INSTALL" >&6; }
7706
7707# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708# It thinks the first close brace ends the variable substitution.
7709test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7710
7711test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7712
7713test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714
7715
7716# Extract the first word of "bzip2", so it can be a program name with args.
7717set dummy bzip2; ac_word=$2
7718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720if test "${ac_cv_path_BZIP2+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 case $BZIP2 in
7724 [\\/]* | ?:[\\/]*)
7725 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7726 ;;
7727 *)
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007734 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 +00007735 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739done
7740done
7741IFS=$as_save_IFS
7742
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007743 ;;
7744esac
7745fi
7746BZIP2=$ac_cv_path_BZIP2
7747if test -n "$BZIP2"; then
7748 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7749echo "${ECHO_T}$BZIP2" >&6; }
7750else
7751 { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
7753fi
7754
7755
7756# Extract the first word of "doxygen", so it can be a program name with args.
7757set dummy doxygen; ac_word=$2
7758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760if test "${ac_cv_path_DOXYGEN+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 case $DOXYGEN in
7764 [\\/]* | ?:[\\/]*)
7765 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7766 ;;
7767 *)
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007774 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 +00007775 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779done
7780done
7781IFS=$as_save_IFS
7782
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007783 ;;
7784esac
7785fi
7786DOXYGEN=$ac_cv_path_DOXYGEN
7787if test -n "$DOXYGEN"; then
7788 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7789echo "${ECHO_T}$DOXYGEN" >&6; }
7790else
7791 { echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6; }
7793fi
7794
7795
7796# Extract the first word of "groff", so it can be a program name with args.
7797set dummy groff; ac_word=$2
7798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800if test "${ac_cv_path_GROFF+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 case $GROFF in
7804 [\\/]* | ?:[\\/]*)
7805 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7806 ;;
7807 *)
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007814 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 +00007815 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820done
7821IFS=$as_save_IFS
7822
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007823 ;;
7824esac
7825fi
7826GROFF=$ac_cv_path_GROFF
7827if test -n "$GROFF"; then
7828 { echo "$as_me:$LINENO: result: $GROFF" >&5
7829echo "${ECHO_T}$GROFF" >&6; }
7830else
7831 { echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6; }
7833fi
7834
7835
7836# Extract the first word of "gzip", so it can be a program name with args.
7837set dummy gzip; ac_word=$2
7838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840if test "${ac_cv_path_GZIP+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 case $GZIP in
7844 [\\/]* | ?:[\\/]*)
7845 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007854 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 +00007855 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859done
7860done
7861IFS=$as_save_IFS
7862
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007863 ;;
7864esac
7865fi
7866GZIP=$ac_cv_path_GZIP
7867if test -n "$GZIP"; then
7868 { echo "$as_me:$LINENO: result: $GZIP" >&5
7869echo "${ECHO_T}$GZIP" >&6; }
7870else
7871 { echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6; }
7873fi
7874
7875
7876# Extract the first word of "pod2html", so it can be a program name with args.
7877set dummy pod2html; ac_word=$2
7878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880if test "${ac_cv_path_POD2HTML+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883 case $POD2HTML in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007894 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 +00007895 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900done
7901IFS=$as_save_IFS
7902
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007903 ;;
7904esac
7905fi
7906POD2HTML=$ac_cv_path_POD2HTML
7907if test -n "$POD2HTML"; then
7908 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7909echo "${ECHO_T}$POD2HTML" >&6; }
7910else
7911 { echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6; }
7913fi
7914
7915
7916# Extract the first word of "pod2man", so it can be a program name with args.
7917set dummy pod2man; ac_word=$2
7918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7920if test "${ac_cv_path_POD2MAN+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923 case $POD2MAN in
7924 [\\/]* | ?:[\\/]*)
7925 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7926 ;;
7927 *)
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007934 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 +00007935 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939done
7940done
7941IFS=$as_save_IFS
7942
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007943 ;;
7944esac
7945fi
7946POD2MAN=$ac_cv_path_POD2MAN
7947if test -n "$POD2MAN"; then
7948 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7949echo "${ECHO_T}$POD2MAN" >&6; }
7950else
7951 { echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6; }
7953fi
7954
7955
7956# Extract the first word of "runtest", so it can be a program name with args.
7957set dummy runtest; ac_word=$2
7958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960if test "${ac_cv_path_RUNTEST+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 case $RUNTEST in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007974 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 +00007975 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979done
7980done
7981IFS=$as_save_IFS
7982
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007983 ;;
7984esac
7985fi
7986RUNTEST=$ac_cv_path_RUNTEST
7987if test -n "$RUNTEST"; then
7988 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7989echo "${ECHO_T}$RUNTEST" >&6; }
7990else
7991 { echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6; }
7993fi
7994
7995
7996
7997no_itcl=true
7998{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7999echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8000
8001# Check whether --with-tclinclude was given.
8002if test "${with_tclinclude+set}" = set; then
8003 withval=$with_tclinclude; with_tclinclude=${withval}
8004else
8005 with_tclinclude=''
8006fi
8007
8008if test "${ac_cv_path_tclsh+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011
8012if test x"${with_tclinclude}" != x ; then
8013 if test -f ${with_tclinclude}/tclsh ; then
8014 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8015 elif test -f ${with_tclinclude}/src/tclsh ; then
8016 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8017 else
8018 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8019echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8020 { (exit 1); exit 1; }; }
8021 fi
8022fi
8023
8024if test x"${ac_cv_path_tclsh}" = x ; then
8025 { echo "$as_me:$LINENO: result: none" >&5
8026echo "${ECHO_T}none" >&6; }
8027 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
8028do
8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
8030set dummy $ac_prog; ac_word=$2
8031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033if test "${ac_cv_path_TCLSH+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 case $TCLSH in
8037 [\\/]* | ?:[\\/]*)
8038 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8039 ;;
8040 *)
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008047 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 +00008048 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053done
8054IFS=$as_save_IFS
8055
8056 ;;
8057esac
8058fi
8059TCLSH=$ac_cv_path_TCLSH
8060if test -n "$TCLSH"; then
8061 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8062echo "${ECHO_T}$TCLSH" >&6; }
8063else
8064 { echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6; }
8066fi
8067
8068
8069 test -n "$TCLSH" && break
8070done
8071
8072 if test x"${TCLSH}" = x ; then
8073 ac_cv_path_tclsh='';
8074 else
8075 ac_cv_path_tclsh="${TCLSH}";
8076 fi
8077else
8078 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8079echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8080 TCLSH="${ac_cv_path_tclsh}"
8081
8082fi
8083
8084fi
8085
8086# Extract the first word of "zip", so it can be a program name with args.
8087set dummy zip; ac_word=$2
8088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090if test "${ac_cv_path_ZIP+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 case $ZIP in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8096 ;;
8097 *)
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008104 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 +00008105 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109done
8110done
8111IFS=$as_save_IFS
8112
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008113 ;;
8114esac
8115fi
8116ZIP=$ac_cv_path_ZIP
8117if test -n "$ZIP"; then
8118 { echo "$as_me:$LINENO: result: $ZIP" >&5
8119echo "${ECHO_T}$ZIP" >&6; }
8120else
8121 { echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6; }
8123fi
8124
8125
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008126for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008127do
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_OCAMLC+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 case $OCAMLC in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008146 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 +00008147 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153IFS=$as_save_IFS
8154
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008155 ;;
8156esac
8157fi
8158OCAMLC=$ac_cv_path_OCAMLC
8159if test -n "$OCAMLC"; then
8160 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8161echo "${ECHO_T}$OCAMLC" >&6; }
8162else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008168 test -n "$OCAMLC" && break
8169done
8170
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008171for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008172do
8173 # Extract the first word of "$ac_prog", so it can be a program name with args.
8174set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 case $OCAMLOPT in
8181 [\\/]* | ?:[\\/]*)
8182 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8183 ;;
8184 *)
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008191 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 +00008192 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196done
8197done
8198IFS=$as_save_IFS
8199
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008200 ;;
8201esac
8202fi
8203OCAMLOPT=$ac_cv_path_OCAMLOPT
8204if test -n "$OCAMLOPT"; then
8205 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8206echo "${ECHO_T}$OCAMLOPT" >&6; }
8207else
8208 { echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6; }
8210fi
8211
8212
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008213 test -n "$OCAMLOPT" && break
8214done
8215
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008216for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008217do
8218 # Extract the first word of "$ac_prog", so it can be a program name with args.
8219set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 case $OCAMLDEP in
8226 [\\/]* | ?:[\\/]*)
8227 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8228 ;;
8229 *)
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008236 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 +00008237 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241done
8242done
8243IFS=$as_save_IFS
8244
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008245 ;;
8246esac
8247fi
8248OCAMLDEP=$ac_cv_path_OCAMLDEP
8249if test -n "$OCAMLDEP"; then
8250 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8251echo "${ECHO_T}$OCAMLDEP" >&6; }
8252else
8253 { echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6; }
8255fi
8256
8257
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008258 test -n "$OCAMLDEP" && break
8259done
8260
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008261for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008262do
8263 # Extract the first word of "$ac_prog", so it can be a program name with args.
8264set dummy $ac_prog; ac_word=$2
8265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 case $OCAMLDOC in
8271 [\\/]* | ?:[\\/]*)
8272 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8273 ;;
8274 *)
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008281 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 +00008282 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286done
8287done
8288IFS=$as_save_IFS
8289
8290 ;;
8291esac
8292fi
8293OCAMLDOC=$ac_cv_path_OCAMLDOC
8294if test -n "$OCAMLDOC"; then
8295 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8296echo "${ECHO_T}$OCAMLDOC" >&6; }
8297else
8298 { echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6; }
8300fi
8301
8302
8303 test -n "$OCAMLDOC" && break
8304done
8305
Edwin Török20176752008-10-22 09:56:27 +00008306for ac_prog in gas as
8307do
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309set dummy $ac_prog; ac_word=$2
8310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312if test "${ac_cv_path_GAS+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 case $GAS in
8316 [\\/]* | ?:[\\/]*)
8317 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8318 ;;
8319 *)
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008326 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 +00008327 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331done
8332done
8333IFS=$as_save_IFS
8334
8335 ;;
8336esac
8337fi
8338GAS=$ac_cv_path_GAS
8339if test -n "$GAS"; then
8340 { echo "$as_me:$LINENO: result: $GAS" >&5
8341echo "${ECHO_T}$GAS" >&6; }
8342else
8343 { echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6; }
8345fi
8346
8347
8348 test -n "$GAS" && break
8349done
8350
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008351
8352{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8353echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8354if test "${llvm_cv_link_use_r+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363 oldcflags="$CFLAGS"
8364 CFLAGS="$CFLAGS -Wl,-R."
8365 cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
8372int
8373main ()
8374{
8375int main() { return 0; }
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008414 llvm_cv_link_use_r=yes
8415else
8416 echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 llvm_cv_link_use_r=no
8420fi
8421
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008422rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008423 conftest$ac_exeext conftest.$ac_ext
8424 CFLAGS="$oldcflags"
8425 ac_ext=c
8426ac_cpp='$CPP $CPPFLAGS'
8427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430
8431
8432fi
8433{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8434echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8435if test "$llvm_cv_link_use_r" = yes ; then
8436
8437cat >>confdefs.h <<\_ACEOF
8438#define HAVE_LINK_R 1
8439_ACEOF
8440
8441 fi
8442
8443
Nick Lewycky6eab6652009-03-05 08:20:44 +00008444{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8445echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8446if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455 oldcflags="$CFLAGS"
8456 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463
8464int
8465main ()
8466{
8467int main() { return 0; }
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008506 llvm_cv_link_use_export_dynamic=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 llvm_cv_link_use_export_dynamic=no
8512fi
8513
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6eab6652009-03-05 08:20:44 +00008515 conftest$ac_exeext conftest.$ac_ext
8516 CFLAGS="$oldcflags"
8517 ac_ext=c
8518ac_cpp='$CPP $CPPFLAGS'
8519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524fi
8525{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8526echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8527if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_LINK_EXPORT_DYNAMIC 1
8531_ACEOF
8532
8533 fi
8534
8535
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008536
8537
8538{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8539echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8540if test "${ac_cv_c_const+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542else
8543 cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549
8550int
8551main ()
8552{
8553/* FIXME: Include the comments suggested by Paul. */
8554#ifndef __cplusplus
8555 /* Ultrix mips cc rejects this. */
8556 typedef int charset[2];
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008557 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008558 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008559 char const *const *ccp;
8560 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008561 /* NEC SVR4.0.2 mips cc rejects this. */
8562 struct point {int x, y;};
8563 static struct point const zero = {0,0};
8564 /* AIX XL C 1.02.0.0 rejects this.
8565 It does not let you subtract one const X* pointer from another in
8566 an arm of an if-expression whose if-part is not a constant
8567 expression */
8568 const char *g = "string";
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008569 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008570 /* HPUX 7.0 cc rejects these. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008571 ++ccp;
8572 p = (char**) ccp;
8573 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008574 { /* SCO 3.2v4 cc rejects this. */
8575 char *t;
8576 char const *s = 0 ? (char *) 0 : (char const *) 0;
8577
8578 *t++ = 0;
8579 if (s) return 0;
8580 }
8581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8582 int x[] = {25, 17};
8583 const int *foo = &x[0];
8584 ++foo;
8585 }
8586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8587 typedef const int *iptr;
8588 iptr p = 0;
8589 ++p;
8590 }
8591 { /* AIX XL C 1.02.0.0 rejects this saying
8592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8593 struct s { int j; const int *ap[3]; };
8594 struct s *b; b->j = 5;
8595 }
8596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8597 const int foo = 10;
8598 if (!foo) return 0;
8599 }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008600 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008601#endif
8602
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (ac_try="$ac_compile"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008641 ac_cv_c_const=yes
8642else
8643 echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_c_const=no
8647fi
8648
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8652echo "${ECHO_T}$ac_cv_c_const" >&6; }
8653if test $ac_cv_c_const = no; then
8654
8655cat >>confdefs.h <<\_ACEOF
8656#define const
8657_ACEOF
8658
8659fi
8660
8661
8662
8663
8664
8665
8666ac_header_dirent=no
8667for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8669{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8670echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#include <sys/types.h>
8681#include <$ac_hdr>
8682
8683int
8684main ()
8685{
8686if ((DIR *) 0)
8687return 0;
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext
8693if { (ac_try="$ac_compile"
8694case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008726 eval "$as_ac_Header=yes"
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 eval "$as_ac_Header=no"
8732fi
8733
8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735fi
8736ac_res=`eval echo '${'$as_ac_Header'}'`
8737 { echo "$as_me:$LINENO: result: $ac_res" >&5
8738echo "${ECHO_T}$ac_res" >&6; }
8739if test `eval echo '${'$as_ac_Header'}'` = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8742_ACEOF
8743
8744ac_header_dirent=$ac_hdr; break
8745fi
8746
8747done
8748# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749if test $ac_header_dirent = dirent.h; then
8750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8752if test "${ac_cv_search_opendir+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 ac_func_search_save_LIBS=$LIBS
8756cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762
8763/* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8766#ifdef __cplusplus
8767extern "C"
8768#endif
8769char opendir ();
8770int
8771main ()
8772{
8773return opendir ();
8774 ;
8775 return 0;
8776}
8777_ACEOF
8778for ac_lib in '' dir; do
8779 if test -z "$ac_lib"; then
8780 ac_res="none required"
8781 else
8782 ac_res=-l$ac_lib
8783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8784 fi
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (ac_try="$ac_link"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008819 ac_cv_search_opendir=$ac_res
8820else
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824
8825fi
8826
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008827rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008828 conftest$ac_exeext
8829 if test "${ac_cv_search_opendir+set}" = set; then
8830 break
8831fi
8832done
8833if test "${ac_cv_search_opendir+set}" = set; then
8834 :
8835else
8836 ac_cv_search_opendir=no
8837fi
8838rm conftest.$ac_ext
8839LIBS=$ac_func_search_save_LIBS
8840fi
8841{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8842echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8843ac_res=$ac_cv_search_opendir
8844if test "$ac_res" != no; then
8845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8846
8847fi
8848
8849else
8850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8851echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8852if test "${ac_cv_search_opendir+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 ac_func_search_save_LIBS=$LIBS
8856cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862
8863/* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8866#ifdef __cplusplus
8867extern "C"
8868#endif
8869char opendir ();
8870int
8871main ()
8872{
8873return opendir ();
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878for ac_lib in '' x; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required"
8881 else
8882 ac_res=-l$ac_lib
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8884 fi
8885 rm -f conftest.$ac_objext conftest$ac_exeext
8886if { (ac_try="$ac_link"
8887case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890esac
8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_link") 2>conftest.er1
8893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903esac
8904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008919 ac_cv_search_opendir=$ac_res
8920else
8921 echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
8924
8925fi
8926
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008927rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008928 conftest$ac_exeext
8929 if test "${ac_cv_search_opendir+set}" = set; then
8930 break
8931fi
8932done
8933if test "${ac_cv_search_opendir+set}" = set; then
8934 :
8935else
8936 ac_cv_search_opendir=no
8937fi
8938rm conftest.$ac_ext
8939LIBS=$ac_func_search_save_LIBS
8940fi
8941{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8942echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8943ac_res=$ac_cv_search_opendir
8944if test "$ac_res" != no; then
8945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8946
8947fi
8948
8949fi
8950
8951
8952for ac_header in dlfcn.h
8953do
8954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960fi
8961ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963echo "${ECHO_T}$ac_res" >&6; }
8964else
8965 # Is the header compilable?
8966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8968cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974$ac_includes_default
8975#include <$ac_header>
8976_ACEOF
8977rm -f conftest.$ac_objext
8978if { (ac_try="$ac_compile"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009011 ac_header_compiler=yes
9012else
9013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 ac_header_compiler=no
9017fi
9018
9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021echo "${ECHO_T}$ac_header_compiler" >&6; }
9022
9023# Is the header present?
9024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9026cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032#include <$ac_header>
9033_ACEOF
9034if { (ac_try="$ac_cpp conftest.$ac_ext"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9050 else
9051 ac_cpp_err=
9052 fi
9053else
9054 ac_cpp_err=yes
9055fi
9056if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009057 ac_header_preproc=yes
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 ac_header_preproc=no
9063fi
9064
9065rm -f conftest.err conftest.$ac_ext
9066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9067echo "${ECHO_T}$ac_header_preproc" >&6; }
9068
9069# So? What about this header?
9070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9071 yes:no: )
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9076 ac_header_preproc=yes
9077 ;;
9078 no:yes:* )
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9091 ( cat <<\_ASBOX
9092## ----------------------------------- ##
9093## Report this to llvmbugs@cs.uiuc.edu ##
9094## ----------------------------------- ##
9095_ASBOX
9096 ) | sed "s/^/$as_me: WARNING: /" >&2
9097 ;;
9098esac
9099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104 eval "$as_ac_Header=\$ac_header_preproc"
9105fi
9106ac_res=`eval echo '${'$as_ac_Header'}'`
9107 { echo "$as_me:$LINENO: result: $ac_res" >&5
9108echo "${ECHO_T}$ac_res" >&6; }
9109
9110fi
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114_ACEOF
9115
9116fi
9117
9118done
9119
9120# Check whether --enable-ltdl-install was given.
9121if test "${enable_ltdl_install+set}" = set; then
9122 enableval=$enable_ltdl_install;
9123fi
9124
9125
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009126
9127
9128if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009129 INSTALL_LTDL_TRUE=
9130 INSTALL_LTDL_FALSE='#'
9131else
9132 INSTALL_LTDL_TRUE='#'
9133 INSTALL_LTDL_FALSE=
9134fi
9135
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009136
9137
9138if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009139 CONVENIENCE_LTDL_TRUE=
9140 CONVENIENCE_LTDL_FALSE='#'
9141else
9142 CONVENIENCE_LTDL_TRUE='#'
9143 CONVENIENCE_LTDL_FALSE=
9144fi
9145
9146
9147{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9149library_names_spec=
9150libname_spec='lib$name'
9151soname_spec=
9152shrext_cmds=".so"
9153postinstall_cmds=
9154postuninstall_cmds=
9155finish_cmds=
9156finish_eval=
9157shlibpath_var=
9158shlibpath_overrides_runpath=unknown
9159version_type=none
9160dynamic_linker="$host_os ld.so"
9161sys_lib_dlsearch_path_spec="/lib /usr/lib"
9162if test "$GCC" = yes; then
9163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9165 # if the path contains ";" then we assume it to be the separator
9166 # otherwise default to the standard path separator (i.e. ":") - it is
9167 # assumed that no part of a normal pathname contains ";" but that should
9168 # okay in the real world where ";" in dirpaths is itself problematic.
9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9170 else
9171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 fi
9173else
9174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9175fi
9176need_lib_prefix=unknown
9177hardcode_into_libs=no
9178
9179# when you set need_version to no, make sure it does not cause -set_version
9180# flags to be left without arguments
9181need_version=unknown
9182
9183case $host_os in
9184aix3*)
9185 version_type=linux
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187 shlibpath_var=LIBPATH
9188
9189 # AIX 3 has no versioning support, so we append a major version to the name.
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 ;;
9192
9193aix4* | aix5*)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 hardcode_into_libs=yes
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 supports IA64
9200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 else
9203 # With GCC up to 2.95.x, collect2 would create an import file
9204 # for dependence libraries. The import file would start with
9205 # the line `#! .'. This would cause the generated library to
9206 # depend on `.', always an invalid library. This was fixed in
9207 # development snapshots of GCC prior to 3.0.
9208 case $host_os in
9209 aix4 | aix4.[01] | aix4.[01].*)
9210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9211 echo ' yes '
9212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9213 :
9214 else
9215 can_build_shared=no
9216 fi
9217 ;;
9218 esac
9219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220 # soname into executable. Probably we can add versioning support to
9221 # collect2, so additional links can be useful in future.
9222 if test "$aix_use_runtimelinking" = yes; then
9223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224 # instead of lib<name>.a to let people know that these are not
9225 # typical AIX shared libraries.
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 else
9228 # We preserve .a as extension for shared libraries through AIX4.2
9229 # and later when we are not doing run time linking.
9230 library_names_spec='${libname}${release}.a $libname.a'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 fi
9233 shlibpath_var=LIBPATH
9234 fi
9235 ;;
9236
9237amigaos*)
9238 library_names_spec='$libname.ixlibrary $libname.a'
9239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9240 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'
9241 ;;
9242
9243beos*)
9244 library_names_spec='${libname}${shared_ext}'
9245 dynamic_linker="$host_os ld.so"
9246 shlibpath_var=LIBRARY_PATH
9247 ;;
9248
9249bsdi[45]*)
9250 version_type=linux
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9258 # the default ld.so.conf also contains /usr/contrib/lib and
9259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260 # libtool to hard-code these into programs
9261 ;;
9262
9263cygwin* | mingw* | pw32*)
9264 version_type=windows
9265 shrext_cmds=".dll"
9266 need_version=no
9267 need_lib_prefix=no
9268
9269 case $GCC,$host_os in
9270 yes,cygwin* | yes,mingw* | yes,pw32*)
9271 library_names_spec='$libname.dll.a'
9272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273 postinstall_cmds='base_file=`basename \${file}`~
9274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9275 dldir=$destdir/`dirname \$dlpath`~
9276 test -d \$dldir || mkdir -p \$dldir~
9277 $install_prog $dir/$dlname \$dldir/$dlname~
9278 chmod a+x \$dldir/$dlname'
9279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9280 dlpath=$dir/\$dldll~
9281 $rm \$dlpath'
9282 shlibpath_overrides_runpath=yes
9283
9284 case $host_os in
9285 cygwin*)
9286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9289 ;;
9290 mingw*)
9291 # MinGW DLLs use traditional 'lib' prefix
9292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9295 # It is most probably a Windows format PATH printed by
9296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9297 # path with ; separators, and with drive letters. We can handle the
9298 # drive letters (cygwin fileutils understands them), so leave them,
9299 # especially as we might pass files found there to a mingw objdump,
9300 # which wouldn't understand a cygwinified path. Ahh.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9302 else
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9304 fi
9305 ;;
9306 pw32*)
9307 # pw32 DLLs use 'pw' prefix rather than 'lib'
9308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309 ;;
9310 esac
9311 ;;
9312
9313 *)
9314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9315 ;;
9316 esac
9317 dynamic_linker='Win32 ld.exe'
9318 # FIXME: first we should search . and the directory the executable is in
9319 shlibpath_var=PATH
9320 ;;
9321
9322darwin* | rhapsody*)
9323 dynamic_linker="$host_os dyld"
9324 version_type=darwin
9325 need_lib_prefix=no
9326 need_version=no
9327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9328 soname_spec='${libname}${release}${major}$shared_ext'
9329 shlibpath_overrides_runpath=yes
9330 shlibpath_var=DYLD_LIBRARY_PATH
9331 shrext_cmds='.dylib'
9332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9333 if test "$GCC" = yes; then
9334 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"`
9335 else
9336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9337 fi
9338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9339 ;;
9340
9341dgux*)
9342 version_type=linux
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 ;;
9349
9350freebsd1*)
9351 dynamic_linker=no
9352 ;;
9353
9354kfreebsd*-gnu)
9355 version_type=linux
9356 need_lib_prefix=no
9357 need_version=no
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=no
9362 hardcode_into_libs=yes
9363 dynamic_linker='GNU ld.so'
9364 ;;
9365
9366freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9371 else
9372 case $host_os in
9373 freebsd[123]*) objformat=aout ;;
9374 *) objformat=elf ;;
9375 esac
9376 fi
9377 version_type=freebsd-$objformat
9378 case $version_type in
9379 freebsd-elf*)
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381 need_version=no
9382 need_lib_prefix=no
9383 ;;
9384 freebsd-*)
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386 need_version=yes
9387 ;;
9388 esac
9389 shlibpath_var=LD_LIBRARY_PATH
9390 case $host_os in
9391 freebsd2*)
9392 shlibpath_overrides_runpath=yes
9393 ;;
9394 freebsd3.[01]* | freebsdelf3.[01]*)
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9397 ;;
9398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9402 ;;
9403 freebsd*) # from 4.6 on
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9406 ;;
9407 esac
9408 ;;
9409
9410gnu*)
9411 version_type=linux
9412 need_lib_prefix=no
9413 need_version=no
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9418 ;;
9419
9420hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9423 version_type=sunos
9424 need_lib_prefix=no
9425 need_version=no
9426 case $host_cpu in
9427 ia64*)
9428 shrext_cmds='.so'
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437 else
9438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439 fi
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441 ;;
9442 hppa*64*)
9443 shrext_cmds='.sl'
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452 ;;
9453 *)
9454 shrext_cmds='.sl'
9455 dynamic_linker="$host_os dld.sl"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 ;;
9461 esac
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9464 ;;
9465
9466interix3*)
9467 version_type=linux
9468 need_lib_prefix=no
9469 need_version=no
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9476 ;;
9477
9478irix5* | irix6* | nonstopux*)
9479 case $host_os in
9480 nonstopux*) version_type=nonstopux ;;
9481 *)
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9483 version_type=linux
9484 else
9485 version_type=irix
9486 fi ;;
9487 esac
9488 need_lib_prefix=no
9489 need_version=no
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492 case $host_os in
9493 irix5* | nonstopux*)
9494 libsuff= shlibsuff=
9495 ;;
9496 *)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9505 esac
9506 ;;
9507 esac
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512 hardcode_into_libs=yes
9513 ;;
9514
9515# No shared lib support for Linux oldld, aout, or coff.
9516linux*oldld* | linux*aout* | linux*coff*)
9517 dynamic_linker=no
9518 ;;
9519
9520# This must be Linux ELF.
9521linux*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9534
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
9537 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' ' '`
9538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539 fi
9540
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9548 ;;
9549
9550knetbsd*-gnu)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 dynamic_linker='GNU ld.so'
9560 ;;
9561
9562netbsd*)
9563 version_type=sunos
9564 need_lib_prefix=no
9565 need_version=no
9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569 dynamic_linker='NetBSD (a.out) ld.so'
9570 else
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='NetBSD ld.elf_so'
9574 fi
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9578 ;;
9579
9580newsos6)
9581 version_type=linux
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9585 ;;
9586
9587nto-qnx*)
9588 version_type=linux
9589 need_lib_prefix=no
9590 need_version=no
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 ;;
9596
9597openbsd*)
9598 version_type=sunos
9599 sys_lib_dlsearch_path_spec="/usr/lib"
9600 need_lib_prefix=no
9601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9602 case $host_os in
9603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604 *) need_version=no ;;
9605 esac
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610 case $host_os in
9611 openbsd2.[89] | openbsd2.[89].*)
9612 shlibpath_overrides_runpath=no
9613 ;;
9614 *)
9615 shlibpath_overrides_runpath=yes
9616 ;;
9617 esac
9618 else
9619 shlibpath_overrides_runpath=yes
9620 fi
9621 ;;
9622
9623os2*)
9624 libname_spec='$name'
9625 shrext_cmds=".dll"
9626 need_lib_prefix=no
9627 library_names_spec='$libname${shared_ext} $libname.a'
9628 dynamic_linker='OS/2 ld.exe'
9629 shlibpath_var=LIBPATH
9630 ;;
9631
9632osf3* | osf4* | osf5*)
9633 version_type=osf
9634 need_lib_prefix=no
9635 need_version=no
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9641 ;;
9642
9643solaris*)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 # ldd complains unless libraries are executable
9653 postinstall_cmds='chmod +x $lib'
9654 ;;
9655
9656sunos4*)
9657 version_type=sunos
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 if test "$with_gnu_ld" = yes; then
9663 need_lib_prefix=no
9664 fi
9665 need_version=yes
9666 ;;
9667
9668sysv4 | sysv4.3*)
9669 version_type=linux
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_vendor in
9674 sni)
9675 shlibpath_overrides_runpath=no
9676 need_lib_prefix=no
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 runpath_var=LD_RUN_PATH
9679 ;;
9680 siemens)
9681 need_lib_prefix=no
9682 ;;
9683 motorola)
9684 need_lib_prefix=no
9685 need_version=no
9686 shlibpath_overrides_runpath=no
9687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9688 ;;
9689 esac
9690 ;;
9691
9692sysv4*MP*)
9693 if test -d /usr/nec ;then
9694 version_type=linux
9695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9696 soname_spec='$libname${shared_ext}.$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 fi
9699 ;;
9700
9701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9702 version_type=freebsd-elf
9703 need_lib_prefix=no
9704 need_version=no
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 hardcode_into_libs=yes
9709 if test "$with_gnu_ld" = yes; then
9710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711 shlibpath_overrides_runpath=no
9712 else
9713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9714 shlibpath_overrides_runpath=yes
9715 case $host_os in
9716 sco3.2v5*)
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9718 ;;
9719 esac
9720 fi
9721 sys_lib_dlsearch_path_spec='/usr/lib'
9722 ;;
9723
9724uts4*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 ;;
9730
9731*)
9732 dynamic_linker=no
9733 ;;
9734esac
9735{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9736echo "${ECHO_T}$dynamic_linker" >&6; }
9737test "$dynamic_linker" = no && can_build_shared=no
9738
9739variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9740if test "$GCC" = yes; then
9741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9742fi
9743
9744
9745{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9746echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9747if test "${libltdl_cv_shlibext+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750
9751module=yes
9752eval libltdl_cv_shlibext=$shrext_cmds
9753
9754fi
9755{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9756echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9757if test -n "$libltdl_cv_shlibext"; then
9758
9759cat >>confdefs.h <<_ACEOF
9760#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9761_ACEOF
9762
9763fi
9764
9765
9766{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9767echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9768if test "${libltdl_cv_shlibpath_var+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771 libltdl_cv_shlibpath_var="$shlibpath_var"
9772fi
9773{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9774echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9775if test -n "$libltdl_cv_shlibpath_var"; then
9776
9777cat >>confdefs.h <<_ACEOF
9778#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9779_ACEOF
9780
9781fi
9782
9783
9784{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9785echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9786if test "${libltdl_cv_sys_search_path+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9790fi
9791{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9792echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9793if test -n "$libltdl_cv_sys_search_path"; then
9794 sys_search_path=
9795 for dir in $libltdl_cv_sys_search_path; do
9796 if test -z "$sys_search_path"; then
9797 sys_search_path="$dir"
9798 else
9799 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9800 fi
9801 done
9802
9803cat >>confdefs.h <<_ACEOF
9804#define LTDL_SYSSEARCHPATH "$sys_search_path"
9805_ACEOF
9806
9807fi
9808
9809{ echo "$as_me:$LINENO: checking for objdir" >&5
9810echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9811if test "${libltdl_cv_objdir+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 libltdl_cv_objdir="$objdir"
9815 if test -n "$objdir"; then
9816 :
9817 else
9818 rm -f .libs 2>/dev/null
9819 mkdir .libs 2>/dev/null
9820 if test -d .libs; then
9821 libltdl_cv_objdir=.libs
9822 else
9823 # MS-DOS does not allow filenames that begin with a dot.
9824 libltdl_cv_objdir=_libs
9825 fi
9826 rmdir .libs 2>/dev/null
9827 fi
9828
9829fi
9830{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9831echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9832
9833cat >>confdefs.h <<_ACEOF
9834#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9835_ACEOF
9836
9837
9838
9839
9840
9841
9842# Check for command to grab the raw symbol name followed by C symbol from nm.
9843{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9844echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9845if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848
9849# These are sane defaults that work on at least a few old systems.
9850# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9851
9852# Character class describing NM global symbol codes.
9853symcode='[BCDEGRST]'
9854
9855# Regexp to match symbols that can be accessed directly from C.
9856sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9857
9858# Transform an extracted symbol line into a proper C declaration
9859lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9860
9861# Transform an extracted symbol line into symbol name and symbol address
9862lt_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'"
9863
9864# Define system-specific variables.
9865case $host_os in
9866aix*)
9867 symcode='[BCDT]'
9868 ;;
9869cygwin* | mingw* | pw32*)
9870 symcode='[ABCDGISTW]'
9871 ;;
9872hpux*) # Its linker distinguishes data from code symbols
9873 if test "$host_cpu" = ia64; then
9874 symcode='[ABCDEGRST]'
9875 fi
9876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9877 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'"
9878 ;;
9879linux*)
9880 if test "$host_cpu" = ia64; then
9881 symcode='[ABCDGIRSTW]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9884 fi
9885 ;;
9886irix* | nonstopux*)
9887 symcode='[BCDEGRST]'
9888 ;;
9889osf*)
9890 symcode='[BCDEGQRST]'
9891 ;;
9892solaris*)
9893 symcode='[BDRT]'
9894 ;;
9895sco3.2v5*)
9896 symcode='[DT]'
9897 ;;
9898sysv4.2uw2*)
9899 symcode='[DT]'
9900 ;;
9901sysv5* | sco5v6* | unixware* | OpenUNIX*)
9902 symcode='[ABDT]'
9903 ;;
9904sysv4)
9905 symcode='[DFNSTU]'
9906 ;;
9907esac
9908
9909# Handle CRLF in mingw tool chain
9910opt_cr=
9911case $build_os in
9912mingw*)
9913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9914 ;;
9915esac
9916
9917# If we're using GNU nm, then use its standard symbol codes.
9918case `$NM -V 2>&1` in
9919*GNU* | *'with BFD'*)
9920 symcode='[ABCDGIRSTW]' ;;
9921esac
9922
9923# Try without a prefix undercore, then with it.
9924for ac_symprfx in "" "_"; do
9925
9926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9927 symxfrm="\\1 $ac_symprfx\\2 \\2"
9928
9929 # Write the raw and C identifiers.
9930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9931
9932 # Check to see that the pipe works correctly.
9933 pipe_works=no
9934
9935 rm -f conftest*
9936 cat > conftest.$ac_ext <<EOF
9937#ifdef __cplusplus
9938extern "C" {
9939#endif
9940char nm_test_var;
9941void nm_test_func(){}
9942#ifdef __cplusplus
9943}
9944#endif
9945int main(){nm_test_var='a';nm_test_func();return(0);}
9946EOF
9947
9948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; then
9953 # Now try to grab the symbols.
9954 nlist=conftest.nm
9955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && test -s "$nlist"; then
9960 # Try sorting and uniquifying the output.
9961 if sort "$nlist" | uniq > "$nlist"T; then
9962 mv -f "$nlist"T "$nlist"
9963 else
9964 rm -f "$nlist"T
9965 fi
9966
9967 # Make sure that we snagged all the symbols we need.
9968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9970 cat <<EOF > conftest.$ac_ext
9971#ifdef __cplusplus
9972extern "C" {
9973#endif
9974
9975EOF
9976 # Now generate the symbol file.
9977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9978
9979 cat <<EOF >> conftest.$ac_ext
9980#if defined (__STDC__) && __STDC__
9981# define lt_ptr_t void *
9982#else
9983# define lt_ptr_t char *
9984# define const
9985#endif
9986
9987/* The mapping between symbol names and symbols. */
9988const struct {
9989 const char *name;
9990 lt_ptr_t address;
9991}
9992lt_preloaded_symbols[] =
9993{
9994EOF
9995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9996 cat <<\EOF >> conftest.$ac_ext
9997 {0, (lt_ptr_t) 0}
9998};
9999
10000#ifdef __cplusplus
10001}
10002#endif
10003EOF
10004 # Now try linking the two files.
10005 mv conftest.$ac_objext conftstm.$ac_objext
10006 lt_save_LIBS="$LIBS"
10007 lt_save_CFLAGS="$CFLAGS"
10008 LIBS="conftstm.$ac_objext"
10009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10015 pipe_works=yes
10016 fi
10017 LIBS="$lt_save_LIBS"
10018 CFLAGS="$lt_save_CFLAGS"
10019 else
10020 echo "cannot find nm_test_func in $nlist" >&5
10021 fi
10022 else
10023 echo "cannot find nm_test_var in $nlist" >&5
10024 fi
10025 else
10026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10027 fi
10028 else
10029 echo "$progname: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 fi
10032 rm -f conftest* conftst*
10033
10034 # Do not use the global_symbol_pipe unless it works.
10035 if test "$pipe_works" = yes; then
10036 break
10037 else
10038 lt_cv_sys_global_symbol_pipe=
10039 fi
10040done
10041
10042fi
10043
10044if test -z "$lt_cv_sys_global_symbol_pipe"; then
10045 lt_cv_sys_global_symbol_to_cdecl=
10046fi
10047if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10048 { echo "$as_me:$LINENO: result: failed" >&5
10049echo "${ECHO_T}failed" >&6; }
10050else
10051 { echo "$as_me:$LINENO: result: ok" >&5
10052echo "${ECHO_T}ok" >&6; }
10053fi
10054
10055
10056{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10057echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10058if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10062 libltdl_cv_preloaded_symbols=yes
10063 else
10064 libltdl_cv_preloaded_symbols=no
10065 fi
10066
10067fi
10068{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10069echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10070if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10071
10072cat >>confdefs.h <<\_ACEOF
10073#define HAVE_PRELOADED_SYMBOLS 1
10074_ACEOF
10075
10076fi
10077
10078LIBADD_DL=
10079
10080ac_ext=c
10081ac_cpp='$CPP $CPPFLAGS'
10082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084ac_compiler_gnu=$ac_cv_c_compiler_gnu
10085
10086
10087{ echo "$as_me:$LINENO: checking for shl_load" >&5
10088echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10089if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100#define shl_load innocuous_shl_load
10101
10102/* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10106
10107#ifdef __STDC__
10108# include <limits.h>
10109#else
10110# include <assert.h>
10111#endif
10112
10113#undef shl_load
10114
10115/* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118#ifdef __cplusplus
10119extern "C"
10120#endif
10121char shl_load ();
10122/* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125#if defined __stub_shl_load || defined __stub___shl_load
10126choke me
10127#endif
10128
10129int
10130main ()
10131{
10132return shl_load ();
10133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext conftest$ac_exeext
10138if { (ac_try="$ac_link"
10139case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_link") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010171 ac_cv_func_shl_load=yes
10172else
10173 echo "$as_me: failed program was:" >&5
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
10176 ac_cv_func_shl_load=no
10177fi
10178
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010179rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010180 conftest$ac_exeext conftest.$ac_ext
10181fi
10182{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10183echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10184if test $ac_cv_func_shl_load = yes; then
10185
10186cat >>confdefs.h <<\_ACEOF
10187#define HAVE_SHL_LOAD 1
10188_ACEOF
10189
10190else
10191 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10192echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10193if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 ac_check_lib_save_LIBS=$LIBS
10197LIBS="-ldld $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204
10205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char shl_load ();
10212int
10213main ()
10214{
10215return shl_load ();
10216 ;
10217 return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
10221if { (ac_try="$ac_link"
10222case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010254 ac_cv_lib_dld_shl_load=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_cv_lib_dld_shl_load=no
10260fi
10261
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010262rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010263 conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10267echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10268if test $ac_cv_lib_dld_shl_load = yes; then
10269
10270cat >>confdefs.h <<\_ACEOF
10271#define HAVE_SHL_LOAD 1
10272_ACEOF
10273
10274 LIBADD_DL="$LIBADD_DL -ldld"
10275else
10276 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10277echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10278if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldl $LIBS"
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289
10290/* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296char dlopen ();
10297int
10298main ()
10299{
10300return dlopen ();
10301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
10306if { (ac_try="$ac_link"
10307case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310esac
10311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($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_try") 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333esac
10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010339 ac_cv_lib_dl_dlopen=yes
10340else
10341 echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 ac_cv_lib_dl_dlopen=no
10345fi
10346
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010347rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010348 conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
10351{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10353if test $ac_cv_lib_dl_dlopen = yes; then
10354
10355cat >>confdefs.h <<\_ACEOF
10356#define HAVE_LIBDL 1
10357_ACEOF
10358
10359 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10360else
10361 cat >conftest.$ac_ext <<_ACEOF
10362/* confdefs.h. */
10363_ACEOF
10364cat confdefs.h >>conftest.$ac_ext
10365cat >>conftest.$ac_ext <<_ACEOF
10366/* end confdefs.h. */
10367#if HAVE_DLFCN_H
10368# include <dlfcn.h>
10369#endif
10370
10371int
10372main ()
10373{
10374dlopen(0, 0);
10375 ;
10376 return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
10380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384esac
10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010413
10414cat >>confdefs.h <<\_ACEOF
10415#define HAVE_LIBDL 1
10416_ACEOF
10417 libltdl_cv_func_dlopen="yes"
10418else
10419 echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10423echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10424if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427 ac_check_lib_save_LIBS=$LIBS
10428LIBS="-lsvld $LIBS"
10429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h. */
10435
10436/* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439#ifdef __cplusplus
10440extern "C"
10441#endif
10442char dlopen ();
10443int
10444main ()
10445{
10446return dlopen ();
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (ac_try="$ac_link"
10453case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010485 ac_cv_lib_svld_dlopen=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_cv_lib_svld_dlopen=no
10491fi
10492
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010493rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010494 conftest$ac_exeext conftest.$ac_ext
10495LIBS=$ac_check_lib_save_LIBS
10496fi
10497{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10498echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10499if test $ac_cv_lib_svld_dlopen = yes; then
10500
10501cat >>confdefs.h <<\_ACEOF
10502#define HAVE_LIBDL 1
10503_ACEOF
10504
10505 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10506else
10507 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10508echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10509if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-ldld $LIBS"
10514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520
10521/* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527char dld_link ();
10528int
10529main ()
10530{
10531return dld_link ();
10532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext conftest$ac_exeext
10537if { (ac_try="$ac_link"
10538case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010570 ac_cv_lib_dld_dld_link=yes
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_cv_lib_dld_dld_link=no
10576fi
10577
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010578rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010579 conftest$ac_exeext conftest.$ac_ext
10580LIBS=$ac_check_lib_save_LIBS
10581fi
10582{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10583echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10584if test $ac_cv_lib_dld_dld_link = yes; then
10585
10586cat >>confdefs.h <<\_ACEOF
10587#define HAVE_DLD 1
10588_ACEOF
10589
10590 LIBADD_DL="$LIBADD_DL -ldld"
10591else
10592 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10593echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10594if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596else
10597 cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10605#define _dyld_func_lookup innocuous__dyld_func_lookup
10606
10607/* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char _dyld_func_lookup (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10611
10612#ifdef __STDC__
10613# include <limits.h>
10614#else
10615# include <assert.h>
10616#endif
10617
10618#undef _dyld_func_lookup
10619
10620/* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10623#ifdef __cplusplus
10624extern "C"
10625#endif
10626char _dyld_func_lookup ();
10627/* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10631choke me
10632#endif
10633
10634int
10635main ()
10636{
10637return _dyld_func_lookup ();
10638 ;
10639 return 0;
10640}
10641_ACEOF
10642rm -f conftest.$ac_objext conftest$ac_exeext
10643if { (ac_try="$ac_link"
10644case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010676 ac_cv_func__dyld_func_lookup=yes
10677else
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_cv_func__dyld_func_lookup=no
10682fi
10683
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010684rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010685 conftest$ac_exeext conftest.$ac_ext
10686fi
10687{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10688echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10689if test $ac_cv_func__dyld_func_lookup = yes; then
10690
10691cat >>confdefs.h <<\_ACEOF
10692#define HAVE_DYLD 1
10693_ACEOF
10694
10695fi
10696
10697
10698fi
10699
10700
10701fi
10702
10703
10704fi
10705
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010706rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010707 conftest$ac_exeext conftest.$ac_ext
10708
10709fi
10710
10711
10712fi
10713
10714
10715fi
10716
10717
10718if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10719then
10720 lt_save_LIBS="$LIBS"
10721 LIBS="$LIBS $LIBADD_DL"
10722
10723for ac_func in dlerror
10724do
10725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730else
10731 cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739#define $ac_func innocuous_$ac_func
10740
10741/* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char $ac_func (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10745
10746#ifdef __STDC__
10747# include <limits.h>
10748#else
10749# include <assert.h>
10750#endif
10751
10752#undef $ac_func
10753
10754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757#ifdef __cplusplus
10758extern "C"
10759#endif
10760char $ac_func ();
10761/* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764#if defined __stub_$ac_func || defined __stub___$ac_func
10765choke me
10766#endif
10767
10768int
10769main ()
10770{
10771return $ac_func ();
10772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext conftest$ac_exeext
10777if { (ac_try="$ac_link"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010810 eval "$as_ac_var=yes"
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 eval "$as_ac_var=no"
10816fi
10817
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010818rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010819 conftest$ac_exeext conftest.$ac_ext
10820fi
10821ac_res=`eval echo '${'$as_ac_var'}'`
10822 { echo "$as_me:$LINENO: result: $ac_res" >&5
10823echo "${ECHO_T}$ac_res" >&6; }
10824if test `eval echo '${'$as_ac_var'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827_ACEOF
10828
10829fi
10830done
10831
10832 LIBS="$lt_save_LIBS"
10833fi
10834ac_ext=c
10835ac_cpp='$CPP $CPPFLAGS'
10836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
10842{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10843echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10844if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846else
10847 ac_cv_sys_symbol_underscore=no
10848 cat > conftest.$ac_ext <<EOF
10849void nm_test_func(){}
10850int main(){nm_test_func;return 0;}
10851EOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; then
10857 # Now try to grab the symbols.
10858 ac_nlist=conftest.nm
10859 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10860 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && test -s "$ac_nlist"; then
10864 # See whether the symbols have a leading underscore.
10865 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10866 ac_cv_sys_symbol_underscore=yes
10867 else
10868 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10869 :
10870 else
10871 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10872 fi
10873 fi
10874 else
10875 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10876 fi
10877 else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.c >&5
10880 fi
10881 rm -rf conftest*
10882
10883fi
10884{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10885echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10886
10887
10888if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10889 if test x"$libltdl_cv_func_dlopen" = xyes ||
10890 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10891 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10892echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10893if test "${libltdl_cv_need_uscore+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 libltdl_cv_need_uscore=unknown
10897 save_LIBS="$LIBS"
10898 LIBS="$LIBS $LIBADD_DL"
10899 if test "$cross_compiling" = yes; then :
10900 libltdl_cv_need_uscore=cross
10901else
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000010905#line 10905 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010906#include "confdefs.h"
10907
10908#if HAVE_DLFCN_H
10909#include <dlfcn.h>
10910#endif
10911
10912#include <stdio.h>
10913
10914#ifdef RTLD_GLOBAL
10915# define LT_DLGLOBAL RTLD_GLOBAL
10916#else
10917# ifdef DL_GLOBAL
10918# define LT_DLGLOBAL DL_GLOBAL
10919# else
10920# define LT_DLGLOBAL 0
10921# endif
10922#endif
10923
10924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926#ifndef LT_DLLAZY_OR_NOW
10927# ifdef RTLD_LAZY
10928# define LT_DLLAZY_OR_NOW RTLD_LAZY
10929# else
10930# ifdef DL_LAZY
10931# define LT_DLLAZY_OR_NOW DL_LAZY
10932# else
10933# ifdef RTLD_NOW
10934# define LT_DLLAZY_OR_NOW RTLD_NOW
10935# else
10936# ifdef DL_NOW
10937# define LT_DLLAZY_OR_NOW DL_NOW
10938# else
10939# define LT_DLLAZY_OR_NOW 0
10940# endif
10941# endif
10942# endif
10943# endif
10944#endif
10945
10946#ifdef __cplusplus
10947extern "C" void exit (int);
10948#endif
10949
10950void fnord() { int i=42;}
10951int main ()
10952{
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10955
10956 if (self)
10957 {
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10961 }
10962 else
10963 puts (dlerror ());
10964
10965 exit (status);
10966}
10967EOF
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10974 lt_status=$?
10975 case x$lt_status in
10976 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10977 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10978 x$lt_dlunknown|x*) ;;
10979 esac
10980 else :
10981 # compilation failed
10982
10983 fi
10984fi
10985rm -fr conftest*
10986
10987 LIBS="$save_LIBS"
10988
10989fi
10990{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10991echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10992 fi
10993fi
10994
10995if test x"$libltdl_cv_need_uscore" = xyes; then
10996
10997cat >>confdefs.h <<\_ACEOF
10998#define NEED_USCORE 1
10999_ACEOF
11000
11001fi
11002
11003
11004{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11005echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11006if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 # PORTME does your system automatically load deplibs for dlopen?
11010 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11011 # For now, we just catch OSes we know something about -- in the
11012 # future, we'll try test this programmatically.
11013 libltdl_cv_sys_dlopen_deplibs=unknown
11014 case "$host_os" in
11015 aix3*|aix4.1.*|aix4.2.*)
11016 # Unknown whether this is true for these versions of AIX, but
11017 # we want this `case' here to explicitly catch those versions.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11019 ;;
11020 aix[45]*)
11021 libltdl_cv_sys_dlopen_deplibs=yes
11022 ;;
11023 darwin*)
11024 # Assuming the user has installed a libdl from somewhere, this is true
11025 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11026 libltdl_cv_sys_dlopen_deplibs=yes
11027 ;;
11028 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11029 # GNU and its variants, using gnu ld.so (Glibc)
11030 libltdl_cv_sys_dlopen_deplibs=yes
11031 ;;
11032 hpux10*|hpux11*)
11033 libltdl_cv_sys_dlopen_deplibs=yes
11034 ;;
11035 interix*)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11037 ;;
11038 irix[12345]*|irix6.[01]*)
11039 # Catch all versions of IRIX before 6.2, and indicate that we don't
11040 # know how it worked for any of those versions.
11041 libltdl_cv_sys_dlopen_deplibs=unknown
11042 ;;
11043 irix*)
11044 # The case above catches anything before 6.2, and it's known that
11045 # at 6.2 and later dlopen does load deplibs.
11046 libltdl_cv_sys_dlopen_deplibs=yes
11047 ;;
11048 netbsd*)
11049 libltdl_cv_sys_dlopen_deplibs=yes
11050 ;;
11051 openbsd*)
11052 libltdl_cv_sys_dlopen_deplibs=yes
11053 ;;
11054 osf[1234]*)
11055 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11056 # it did *not* use an RPATH in a shared library to find objects the
11057 # library depends on, so we explictly say `no'.
11058 libltdl_cv_sys_dlopen_deplibs=no
11059 ;;
11060 osf5.0|osf5.0a|osf5.1)
11061 # dlopen *does* load deplibs and with the right loader patch applied
11062 # it even uses RPATH in a shared library to search for shared objects
11063 # that the library depends on, but there's no easy way to know if that
11064 # patch is installed. Since this is the case, all we can really
11065 # say is unknown -- it depends on the patch being installed. If
11066 # it is, this changes to `yes'. Without it, it would be `no'.
11067 libltdl_cv_sys_dlopen_deplibs=unknown
11068 ;;
11069 osf*)
11070 # the two cases above should catch all versions of osf <= 5.1. Read
11071 # the comments above for what we know about them.
11072 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11073 # is used to find them so we can finally say `yes'.
11074 libltdl_cv_sys_dlopen_deplibs=yes
11075 ;;
11076 solaris*)
11077 libltdl_cv_sys_dlopen_deplibs=yes
11078 ;;
11079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080 libltdl_cv_sys_dlopen_deplibs=yes
11081 ;;
11082 esac
11083
11084fi
11085{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11086echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11087if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define LTDL_DLOPEN_DEPLIBS 1
11091_ACEOF
11092
11093fi
11094
11095
11096for ac_header in argz.h
11097do
11098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104fi
11105ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107echo "${ECHO_T}$ac_res" >&6; }
11108else
11109 # Is the header compilable?
11110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h. */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
11118$ac_includes_default
11119#include <$ac_header>
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (ac_try="$ac_compile"
11123case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011155 ac_header_compiler=yes
11156else
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ac_header_compiler=no
11161fi
11162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165echo "${ECHO_T}$ac_header_compiler" >&6; }
11166
11167# Is the header present?
11168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176#include <$ac_header>
11177_ACEOF
11178if { (ac_try="$ac_cpp conftest.$ac_ext"
11179case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194 else
11195 ac_cpp_err=
11196 fi
11197else
11198 ac_cpp_err=yes
11199fi
11200if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011201 ac_header_preproc=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_header_preproc=no
11207fi
11208
11209rm -f conftest.err conftest.$ac_ext
11210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211echo "${ECHO_T}$ac_header_preproc" >&6; }
11212
11213# So? What about this header?
11214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11215 yes:no: )
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11221 ;;
11222 no:yes:* )
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 ( cat <<\_ASBOX
11236## ----------------------------------- ##
11237## Report this to llvmbugs@cs.uiuc.edu ##
11238## ----------------------------------- ##
11239_ASBOX
11240 ) | sed "s/^/$as_me: WARNING: /" >&2
11241 ;;
11242esac
11243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 eval "$as_ac_Header=\$ac_header_preproc"
11249fi
11250ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252echo "${ECHO_T}$ac_res" >&6; }
11253
11254fi
11255if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258_ACEOF
11259
11260fi
11261
11262done
11263
11264
11265{ echo "$as_me:$LINENO: checking for error_t" >&5
11266echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11267if test "${ac_cv_type_error_t+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276#if HAVE_ARGZ_H
11277# include <argz.h>
11278#endif
11279
11280typedef error_t ac__type_new_;
11281int
11282main ()
11283{
11284if ((ac__type_new_ *) 0)
11285 return 0;
11286if (sizeof (ac__type_new_))
11287 return 0;
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext
11293if { (ac_try="$ac_compile"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011326 ac_cv_type_error_t=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 ac_cv_type_error_t=no
11332fi
11333
11334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335fi
11336{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11337echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11338if test $ac_cv_type_error_t = yes; then
11339
11340cat >>confdefs.h <<_ACEOF
11341#define HAVE_ERROR_T 1
11342_ACEOF
11343
11344
11345else
11346
11347cat >>confdefs.h <<\_ACEOF
11348#define error_t int
11349_ACEOF
11350
11351fi
11352
11353
11354
11355
11356
11357
11358
11359for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11360do
11361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375#define $ac_func innocuous_$ac_func
11376
11377/* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11381
11382#ifdef __STDC__
11383# include <limits.h>
11384#else
11385# include <assert.h>
11386#endif
11387
11388#undef $ac_func
11389
11390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393#ifdef __cplusplus
11394extern "C"
11395#endif
11396char $ac_func ();
11397/* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
11400#if defined __stub_$ac_func || defined __stub___$ac_func
11401choke me
11402#endif
11403
11404int
11405main ()
11406{
11407return $ac_func ();
11408 ;
11409 return 0;
11410}
11411_ACEOF
11412rm -f conftest.$ac_objext conftest$ac_exeext
11413if { (ac_try="$ac_link"
11414case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011446 eval "$as_ac_var=yes"
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 eval "$as_ac_var=no"
11452fi
11453
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011454rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011455 conftest$ac_exeext conftest.$ac_ext
11456fi
11457ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459echo "${ECHO_T}$ac_res" >&6; }
11460if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11463_ACEOF
11464
11465fi
11466done
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11496 stdio.h unistd.h
11497do
11498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504fi
11505ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507echo "${ECHO_T}$ac_res" >&6; }
11508else
11509 # Is the header compilable?
11510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11512cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519#include <$ac_header>
11520_ACEOF
11521rm -f conftest.$ac_objext
11522if { (ac_try="$ac_compile"
11523case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011555 ac_header_compiler=yes
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_header_compiler=no
11561fi
11562
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565echo "${ECHO_T}$ac_header_compiler" >&6; }
11566
11567# Is the header present?
11568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576#include <$ac_header>
11577_ACEOF
11578if { (ac_try="$ac_cpp conftest.$ac_ext"
11579case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582esac
11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594 else
11595 ac_cpp_err=
11596 fi
11597else
11598 ac_cpp_err=yes
11599fi
11600if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011601 ac_header_preproc=yes
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 ac_header_preproc=no
11607fi
11608
11609rm -f conftest.err conftest.$ac_ext
11610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611echo "${ECHO_T}$ac_header_preproc" >&6; }
11612
11613# So? What about this header?
11614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 yes:no: )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11621 ;;
11622 no:yes:* )
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635 ( cat <<\_ASBOX
11636## ----------------------------------- ##
11637## Report this to llvmbugs@cs.uiuc.edu ##
11638## ----------------------------------- ##
11639_ASBOX
11640 ) | sed "s/^/$as_me: WARNING: /" >&2
11641 ;;
11642esac
11643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648 eval "$as_ac_Header=\$ac_header_preproc"
11649fi
11650ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652echo "${ECHO_T}$ac_res" >&6; }
11653
11654fi
11655if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658_ACEOF
11659
11660fi
11661
11662done
11663
11664
11665
11666
11667
11668for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11669do
11670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676fi
11677ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result: $ac_res" >&5
11679echo "${ECHO_T}$ac_res" >&6; }
11680else
11681 # Is the header compilable?
11682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11684cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690$ac_includes_default
11691#include <$ac_header>
11692_ACEOF
11693rm -f conftest.$ac_objext
11694if { (ac_try="$ac_compile"
11695case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711esac
11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_try") 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011727 ac_header_compiler=yes
11728else
11729 echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
11731
11732 ac_header_compiler=no
11733fi
11734
11735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11737echo "${ECHO_T}$ac_header_compiler" >&6; }
11738
11739# Is the header present?
11740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11742cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748#include <$ac_header>
11749_ACEOF
11750if { (ac_try="$ac_cpp conftest.$ac_ext"
11751case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754esac
11755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011762 (exit $ac_status); } >/dev/null; then
11763 if test -s conftest.err; then
11764 ac_cpp_err=$ac_c_preproc_warn_flag
11765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11766 else
11767 ac_cpp_err=
11768 fi
11769else
11770 ac_cpp_err=yes
11771fi
11772if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011773 ac_header_preproc=yes
11774else
11775 echo "$as_me: failed program was:" >&5
11776sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_header_preproc=no
11779fi
11780
11781rm -f conftest.err conftest.$ac_ext
11782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11783echo "${ECHO_T}$ac_header_preproc" >&6; }
11784
11785# So? What about this header?
11786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11787 yes:no: )
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11792 ac_header_preproc=yes
11793 ;;
11794 no:yes:* )
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11807 ( cat <<\_ASBOX
11808## ----------------------------------- ##
11809## Report this to llvmbugs@cs.uiuc.edu ##
11810## ----------------------------------- ##
11811_ASBOX
11812 ) | sed "s/^/$as_me: WARNING: /" >&2
11813 ;;
11814esac
11815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 eval "$as_ac_Header=\$ac_header_preproc"
11821fi
11822ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824echo "${ECHO_T}$ac_res" >&6; }
11825
11826fi
11827if test `eval echo '${'$as_ac_Header'}'` = yes; then
11828 cat >>confdefs.h <<_ACEOF
11829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830_ACEOF
11831
11832fi
11833
11834done
11835
11836
11837
11838for ac_header in string.h strings.h
11839do
11840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846fi
11847ac_res=`eval echo '${'$as_ac_Header'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849echo "${ECHO_T}$ac_res" >&6; }
11850else
11851 # Is the header compilable?
11852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860$ac_includes_default
11861#include <$ac_header>
11862_ACEOF
11863rm -f conftest.$ac_objext
11864if { (ac_try="$ac_compile"
11865case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011897 ac_header_compiler=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_header_compiler=no
11903fi
11904
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907echo "${ECHO_T}$ac_header_compiler" >&6; }
11908
11909# Is the header present?
11910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11912cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918#include <$ac_header>
11919_ACEOF
11920if { (ac_try="$ac_cpp conftest.$ac_ext"
11921case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924esac
11925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011932 (exit $ac_status); } >/dev/null; then
11933 if test -s conftest.err; then
11934 ac_cpp_err=$ac_c_preproc_warn_flag
11935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11936 else
11937 ac_cpp_err=
11938 fi
11939else
11940 ac_cpp_err=yes
11941fi
11942if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011943 ac_header_preproc=yes
11944else
11945 echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 ac_header_preproc=no
11949fi
11950
11951rm -f conftest.err conftest.$ac_ext
11952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953echo "${ECHO_T}$ac_header_preproc" >&6; }
11954
11955# So? What about this header?
11956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11957 yes:no: )
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc=yes
11963 ;;
11964 no:yes:* )
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11977 ( cat <<\_ASBOX
11978## ----------------------------------- ##
11979## Report this to llvmbugs@cs.uiuc.edu ##
11980## ----------------------------------- ##
11981_ASBOX
11982 ) | sed "s/^/$as_me: WARNING: /" >&2
11983 ;;
11984esac
11985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 eval "$as_ac_Header=\$ac_header_preproc"
11991fi
11992ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994echo "${ECHO_T}$ac_res" >&6; }
11995
11996fi
11997if test `eval echo '${'$as_ac_Header'}'` = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12000_ACEOF
12001 break
12002fi
12003
12004done
12005
12006
12007
12008
12009for ac_func in strchr index
12010do
12011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12012{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025#define $ac_func innocuous_$ac_func
12026
12027/* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12031
12032#ifdef __STDC__
12033# include <limits.h>
12034#else
12035# include <assert.h>
12036#endif
12037
12038#undef $ac_func
12039
12040/* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12043#ifdef __cplusplus
12044extern "C"
12045#endif
12046char $ac_func ();
12047/* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
12050#if defined __stub_$ac_func || defined __stub___$ac_func
12051choke me
12052#endif
12053
12054int
12055main ()
12056{
12057return $ac_func ();
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext conftest$ac_exeext
12063if { (ac_try="$ac_link"
12064case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090esac
12091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012096 eval "$as_ac_var=yes"
12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 eval "$as_ac_var=no"
12102fi
12103
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012104rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012105 conftest$ac_exeext conftest.$ac_ext
12106fi
12107ac_res=`eval echo '${'$as_ac_var'}'`
12108 { echo "$as_me:$LINENO: result: $ac_res" >&5
12109echo "${ECHO_T}$ac_res" >&6; }
12110if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113_ACEOF
12114 break
12115fi
12116done
12117
12118
12119
12120for ac_func in strrchr rindex
12121do
12122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128 cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136#define $ac_func innocuous_$ac_func
12137
12138/* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12142
12143#ifdef __STDC__
12144# include <limits.h>
12145#else
12146# include <assert.h>
12147#endif
12148
12149#undef $ac_func
12150
12151/* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12154#ifdef __cplusplus
12155extern "C"
12156#endif
12157char $ac_func ();
12158/* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161#if defined __stub_$ac_func || defined __stub___$ac_func
12162choke me
12163#endif
12164
12165int
12166main ()
12167{
12168return $ac_func ();
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext conftest$ac_exeext
12174if { (ac_try="$ac_link"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012207 eval "$as_ac_var=yes"
12208else
12209 echo "$as_me: failed program was:" >&5
12210sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 eval "$as_ac_var=no"
12213fi
12214
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012215rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012216 conftest$ac_exeext conftest.$ac_ext
12217fi
12218ac_res=`eval echo '${'$as_ac_var'}'`
12219 { echo "$as_me:$LINENO: result: $ac_res" >&5
12220echo "${ECHO_T}$ac_res" >&6; }
12221if test `eval echo '${'$as_ac_var'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224_ACEOF
12225 break
12226fi
12227done
12228
12229
12230
12231for ac_func in memcpy bcopy
12232do
12233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247#define $ac_func innocuous_$ac_func
12248
12249/* System header to define __stub macros and hopefully few prototypes,
12250 which can conflict with char $ac_func (); below.
12251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252 <limits.h> exists even on freestanding compilers. */
12253
12254#ifdef __STDC__
12255# include <limits.h>
12256#else
12257# include <assert.h>
12258#endif
12259
12260#undef $ac_func
12261
12262/* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265#ifdef __cplusplus
12266extern "C"
12267#endif
12268char $ac_func ();
12269/* The GNU C library defines this for functions which it implements
12270 to always fail with ENOSYS. Some functions are actually named
12271 something starting with __ and the normal name is an alias. */
12272#if defined __stub_$ac_func || defined __stub___$ac_func
12273choke me
12274#endif
12275
12276int
12277main ()
12278{
12279return $ac_func ();
12280 ;
12281 return 0;
12282}
12283_ACEOF
12284rm -f conftest.$ac_objext conftest$ac_exeext
12285if { (ac_try="$ac_link"
12286case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289esac
12290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_link") 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest$ac_exeext'
12309 { (case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312esac
12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_try") 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012318 eval "$as_ac_var=yes"
12319else
12320 echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 eval "$as_ac_var=no"
12324fi
12325
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012326rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012327 conftest$ac_exeext conftest.$ac_ext
12328fi
12329ac_res=`eval echo '${'$as_ac_var'}'`
12330 { echo "$as_me:$LINENO: result: $ac_res" >&5
12331echo "${ECHO_T}$ac_res" >&6; }
12332if test `eval echo '${'$as_ac_var'}'` = yes; then
12333 cat >>confdefs.h <<_ACEOF
12334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335_ACEOF
12336 break
12337fi
12338done
12339
12340
12341
12342for ac_func in memmove strcmp
12343do
12344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12345{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12347if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 cat >conftest.$ac_ext <<_ACEOF
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
12355/* end confdefs.h. */
12356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358#define $ac_func innocuous_$ac_func
12359
12360/* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12364
12365#ifdef __STDC__
12366# include <limits.h>
12367#else
12368# include <assert.h>
12369#endif
12370
12371#undef $ac_func
12372
12373/* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12376#ifdef __cplusplus
12377extern "C"
12378#endif
12379char $ac_func ();
12380/* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383#if defined __stub_$ac_func || defined __stub___$ac_func
12384choke me
12385#endif
12386
12387int
12388main ()
12389{
12390return $ac_func ();
12391 ;
12392 return 0;
12393}
12394_ACEOF
12395rm -f conftest.$ac_objext conftest$ac_exeext
12396if { (ac_try="$ac_link"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012429 eval "$as_ac_var=yes"
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 eval "$as_ac_var=no"
12435fi
12436
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012437rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012438 conftest$ac_exeext conftest.$ac_ext
12439fi
12440ac_res=`eval echo '${'$as_ac_var'}'`
12441 { echo "$as_me:$LINENO: result: $ac_res" >&5
12442echo "${ECHO_T}$ac_res" >&6; }
12443if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446_ACEOF
12447
12448fi
12449done
12450
12451
12452
12453
12454for ac_func in closedir opendir readdir
12455do
12456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12470#define $ac_func innocuous_$ac_func
12471
12472/* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12476
12477#ifdef __STDC__
12478# include <limits.h>
12479#else
12480# include <assert.h>
12481#endif
12482
12483#undef $ac_func
12484
12485/* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12488#ifdef __cplusplus
12489extern "C"
12490#endif
12491char $ac_func ();
12492/* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
12495#if defined __stub_$ac_func || defined __stub___$ac_func
12496choke me
12497#endif
12498
12499int
12500main ()
12501{
12502return $ac_func ();
12503 ;
12504 return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext conftest$ac_exeext
12508if { (ac_try="$ac_link"
12509case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512esac
12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12522 { (case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525esac
12526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_try") 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012541 eval "$as_ac_var=yes"
12542else
12543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 eval "$as_ac_var=no"
12547fi
12548
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012549rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012550 conftest$ac_exeext conftest.$ac_ext
12551fi
12552ac_res=`eval echo '${'$as_ac_var'}'`
12553 { echo "$as_me:$LINENO: result: $ac_res" >&5
12554echo "${ECHO_T}$ac_res" >&6; }
12555if test `eval echo '${'$as_ac_var'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558_ACEOF
12559
12560fi
12561done
12562
12563
12564# Check whether --enable-shared was given.
12565if test "${enable_shared+set}" = set; then
12566 enableval=$enable_shared; p=${PACKAGE-default}
12567 case $enableval in
12568 yes) enable_shared=yes ;;
12569 no) enable_shared=no ;;
12570 *)
12571 enable_shared=no
12572 # Look at the argument we got. We use all the common list separators.
12573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12574 for pkg in $enableval; do
12575 IFS="$lt_save_ifs"
12576 if test "X$pkg" = "X$p"; then
12577 enable_shared=yes
12578 fi
12579 done
12580 IFS="$lt_save_ifs"
12581 ;;
12582 esac
12583else
12584 enable_shared=yes
12585fi
12586
12587
12588# Check whether --enable-static was given.
12589if test "${enable_static+set}" = set; then
12590 enableval=$enable_static; p=${PACKAGE-default}
12591 case $enableval in
12592 yes) enable_static=yes ;;
12593 no) enable_static=no ;;
12594 *)
12595 enable_static=no
12596 # Look at the argument we got. We use all the common list separators.
12597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12598 for pkg in $enableval; do
12599 IFS="$lt_save_ifs"
12600 if test "X$pkg" = "X$p"; then
12601 enable_static=yes
12602 fi
12603 done
12604 IFS="$lt_save_ifs"
12605 ;;
12606 esac
12607else
12608 enable_static=yes
12609fi
12610
12611
12612# Check whether --enable-fast-install was given.
12613if test "${enable_fast_install+set}" = set; then
12614 enableval=$enable_fast_install; p=${PACKAGE-default}
12615 case $enableval in
12616 yes) enable_fast_install=yes ;;
12617 no) enable_fast_install=no ;;
12618 *)
12619 enable_fast_install=no
12620 # Look at the argument we got. We use all the common list separators.
12621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12622 for pkg in $enableval; do
12623 IFS="$lt_save_ifs"
12624 if test "X$pkg" = "X$p"; then
12625 enable_fast_install=yes
12626 fi
12627 done
12628 IFS="$lt_save_ifs"
12629 ;;
12630 esac
12631else
12632 enable_fast_install=yes
12633fi
12634
12635
12636{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12637echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12638if test "${lt_cv_path_SED+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 # Loop through the user's path and test for sed and gsed.
12642# Then use that list of sed's as ones to test for truncation.
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for lt_ac_prog in sed gsed; do
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12651 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12652 fi
12653 done
12654 done
12655done
12656lt_ac_max=0
12657lt_ac_count=0
12658# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12659# along with /bin/sed that truncates output.
12660for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12661 test ! -f $lt_ac_sed && continue
12662 cat /dev/null > conftest.in
12663 lt_ac_count=0
12664 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12665 # Check for GNU sed and select it if it is found.
12666 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12667 lt_cv_path_SED=$lt_ac_sed
12668 break
12669 fi
12670 while true; do
12671 cat conftest.in conftest.in >conftest.tmp
12672 mv conftest.tmp conftest.in
12673 cp conftest.in conftest.nl
12674 echo >>conftest.nl
12675 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12676 cmp -s conftest.out conftest.nl || break
12677 # 10000 chars as input seems more than enough
12678 test $lt_ac_count -gt 10 && break
12679 lt_ac_count=`expr $lt_ac_count + 1`
12680 if test $lt_ac_count -gt $lt_ac_max; then
12681 lt_ac_max=$lt_ac_count
12682 lt_cv_path_SED=$lt_ac_sed
12683 fi
12684 done
12685done
12686
12687fi
12688
12689SED=$lt_cv_path_SED
12690{ echo "$as_me:$LINENO: result: $SED" >&5
12691echo "${ECHO_T}$SED" >&6; }
12692
12693
12694# Check whether --with-gnu-ld was given.
12695if test "${with_gnu_ld+set}" = set; then
12696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12697else
12698 with_gnu_ld=no
12699fi
12700
12701ac_prog=ld
12702if test "$GCC" = yes; then
12703 # Check if gcc -print-prog-name=ld gives a path.
12704 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12705echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12706 case $host in
12707 *-*-mingw*)
12708 # gcc leaves a trailing carriage return which upsets mingw
12709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12710 *)
12711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12712 esac
12713 case $ac_prog in
12714 # Accept absolute paths.
12715 [\\/]* | ?:[\\/]*)
12716 re_direlt='/[^/][^/]*/\.\./'
12717 # Canonicalize the pathname of ld
12718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12721 done
12722 test -z "$LD" && LD="$ac_prog"
12723 ;;
12724 "")
12725 # If it fails, then pretend we aren't using GCC.
12726 ac_prog=ld
12727 ;;
12728 *)
12729 # If it is relative, then search for the first ld in PATH.
12730 with_gnu_ld=unknown
12731 ;;
12732 esac
12733elif test "$with_gnu_ld" = yes; then
12734 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12735echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12736else
12737 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12738echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12739fi
12740if test "${lt_cv_path_LD+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742else
12743 if test -z "$LD"; then
12744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12745 for ac_dir in $PATH; do
12746 IFS="$lt_save_ifs"
12747 test -z "$ac_dir" && ac_dir=.
12748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12749 lt_cv_path_LD="$ac_dir/$ac_prog"
12750 # Check to see if the program is GNU ld. I'd rather use --version,
12751 # but apparently some variants of GNU ld only accept -v.
12752 # Break only if it was the GNU/non-GNU ld that we prefer.
12753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12754 *GNU* | *'with BFD'*)
12755 test "$with_gnu_ld" != no && break
12756 ;;
12757 *)
12758 test "$with_gnu_ld" != yes && break
12759 ;;
12760 esac
12761 fi
12762 done
12763 IFS="$lt_save_ifs"
12764else
12765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12766fi
12767fi
12768
12769LD="$lt_cv_path_LD"
12770if test -n "$LD"; then
12771 { echo "$as_me:$LINENO: result: $LD" >&5
12772echo "${ECHO_T}$LD" >&6; }
12773else
12774 { echo "$as_me:$LINENO: result: no" >&5
12775echo "${ECHO_T}no" >&6; }
12776fi
12777test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12778echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12779 { (exit 1); exit 1; }; }
12780{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12781echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12782if test "${lt_cv_prog_gnu_ld+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
12785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12786case `$LD -v 2>&1 </dev/null` in
12787*GNU* | *'with BFD'*)
12788 lt_cv_prog_gnu_ld=yes
12789 ;;
12790*)
12791 lt_cv_prog_gnu_ld=no
12792 ;;
12793esac
12794fi
12795{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12796echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12797with_gnu_ld=$lt_cv_prog_gnu_ld
12798
12799
12800{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12801echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12802if test "${lt_cv_ld_reload_flag+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 lt_cv_ld_reload_flag='-r'
12806fi
12807{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12808echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12809reload_flag=$lt_cv_ld_reload_flag
12810case $reload_flag in
12811"" | " "*) ;;
12812*) reload_flag=" $reload_flag" ;;
12813esac
12814reload_cmds='$LD$reload_flag -o $output$reload_objs'
12815case $host_os in
12816 darwin*)
12817 if test "$GCC" = yes; then
12818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12819 else
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12821 fi
12822 ;;
12823esac
12824
12825{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12826echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12827if test "${lt_cv_deplibs_check_method+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831lt_cv_file_magic_test_file=
12832lt_cv_deplibs_check_method='unknown'
12833# Need to set the preceding variable on all platforms that support
12834# interlibrary dependencies.
12835# 'none' -- dependencies not supported.
12836# `unknown' -- same as none, but documents that we really don't know.
12837# 'pass_all' -- all dependencies passed with no checks.
12838# 'test_compile' -- check by making test program.
12839# 'file_magic [[regex]]' -- check by looking for files in library path
12840# which responds to the $file_magic_cmd with a given extended regex.
12841# If you have `file' or equivalent on your system and you're not sure
12842# whether `pass_all' will *always* work, you probably want this one.
12843
12844case $host_os in
12845aix4* | aix5*)
12846 lt_cv_deplibs_check_method=pass_all
12847 ;;
12848
12849beos*)
12850 lt_cv_deplibs_check_method=pass_all
12851 ;;
12852
12853bsdi[45]*)
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12857 ;;
12858
12859cygwin*)
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12863 ;;
12864
12865mingw* | pw32*)
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12869 lt_cv_file_magic_cmd='$OBJDUMP -f'
12870 ;;
12871
12872darwin* | rhapsody*)
12873 lt_cv_deplibs_check_method=pass_all
12874 ;;
12875
12876freebsd* | kfreebsd*-gnu | dragonfly*)
12877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12878 case $host_cpu in
12879 i*86 )
12880 # Not sure whether the presence of OpenBSD here was a mistake.
12881 # Let's accept both of them until this is cleared up.
12882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12883 lt_cv_file_magic_cmd=/usr/bin/file
12884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12885 ;;
12886 esac
12887 else
12888 lt_cv_deplibs_check_method=pass_all
12889 fi
12890 ;;
12891
12892gnu*)
12893 lt_cv_deplibs_check_method=pass_all
12894 ;;
12895
12896hpux10.20* | hpux11*)
12897 lt_cv_file_magic_cmd=/usr/bin/file
12898 case $host_cpu in
12899 ia64*)
12900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12902 ;;
12903 hppa*64*)
12904 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]'
12905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12906 ;;
12907 *)
12908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12910 ;;
12911 esac
12912 ;;
12913
12914interix3*)
12915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12917 ;;
12918
12919irix5* | irix6* | nonstopux*)
12920 case $LD in
12921 *-32|*"-32 ") libmagic=32-bit;;
12922 *-n32|*"-n32 ") libmagic=N32;;
12923 *-64|*"-64 ") libmagic=64-bit;;
12924 *) libmagic=never-match;;
12925 esac
12926 lt_cv_deplibs_check_method=pass_all
12927 ;;
12928
12929# This must be Linux ELF.
12930linux*)
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934netbsd*)
12935 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12937 else
12938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12939 fi
12940 ;;
12941
12942newos6*)
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12944 lt_cv_file_magic_cmd=/usr/bin/file
12945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12946 ;;
12947
12948nto-qnx*)
12949 lt_cv_deplibs_check_method=unknown
12950 ;;
12951
12952openbsd*)
12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12955 else
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12957 fi
12958 ;;
12959
12960osf3* | osf4* | osf5*)
12961 lt_cv_deplibs_check_method=pass_all
12962 ;;
12963
12964solaris*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
12968sysv4 | sysv4.3*)
12969 case $host_vendor in
12970 motorola)
12971 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]'
12972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12973 ;;
12974 ncr)
12975 lt_cv_deplibs_check_method=pass_all
12976 ;;
12977 sequent)
12978 lt_cv_file_magic_cmd='/bin/file'
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12980 ;;
12981 sni)
12982 lt_cv_file_magic_cmd='/bin/file'
12983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12984 lt_cv_file_magic_test_file=/lib/libc.so
12985 ;;
12986 siemens)
12987 lt_cv_deplibs_check_method=pass_all
12988 ;;
12989 pc)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992 esac
12993 ;;
12994
12995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996 lt_cv_deplibs_check_method=pass_all
12997 ;;
12998esac
12999
13000fi
13001{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13002echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13003file_magic_cmd=$lt_cv_file_magic_cmd
13004deplibs_check_method=$lt_cv_deplibs_check_method
13005test -z "$deplibs_check_method" && deplibs_check_method=unknown
13006
13007
13008
13009# If no C compiler was specified, use CC.
13010LTCC=${LTCC-"$CC"}
13011
13012# If no C compiler flags were specified, use CFLAGS.
13013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13014
13015# Allow CC to be a program name with arguments.
13016compiler=$CC
13017
13018# Check whether --enable-libtool-lock was given.
13019if test "${enable_libtool_lock+set}" = set; then
13020 enableval=$enable_libtool_lock;
13021fi
13022
13023test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13024
13025# Some flags need to be propagated to the compiler or linker for good
13026# libtool support.
13027case $host in
13028ia64-*-hpux*)
13029 # Find out which ABI we are using.
13030 echo 'int i;' > conftest.$ac_ext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; then
13036 case `/usr/bin/file conftest.$ac_objext` in
13037 *ELF-32*)
13038 HPUX_IA64_MODE="32"
13039 ;;
13040 *ELF-64*)
13041 HPUX_IA64_MODE="64"
13042 ;;
13043 esac
13044 fi
13045 rm -rf conftest*
13046 ;;
13047*-*-irix6*)
13048 # Find out which ABI we are using.
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000013049 echo '#line 13049 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; then
13055 if test "$lt_cv_prog_gnu_ld" = yes; then
13056 case `/usr/bin/file conftest.$ac_objext` in
13057 *32-bit*)
13058 LD="${LD-ld} -melf32bsmip"
13059 ;;
13060 *N32*)
13061 LD="${LD-ld} -melf32bmipn32"
13062 ;;
13063 *64-bit*)
13064 LD="${LD-ld} -melf64bmip"
13065 ;;
13066 esac
13067 else
13068 case `/usr/bin/file conftest.$ac_objext` in
13069 *32-bit*)
13070 LD="${LD-ld} -32"
13071 ;;
13072 *N32*)
13073 LD="${LD-ld} -n32"
13074 ;;
13075 *64-bit*)
13076 LD="${LD-ld} -64"
13077 ;;
13078 esac
13079 fi
13080 fi
13081 rm -rf conftest*
13082 ;;
13083
13084x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13085 # Find out which ABI we are using.
13086 echo 'int i;' > conftest.$ac_ext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; then
13092 case `/usr/bin/file conftest.o` in
13093 *32-bit*)
13094 case $host in
13095 x86_64-*linux*)
13096 LD="${LD-ld} -m elf_i386"
13097 ;;
13098 ppc64-*linux*|powerpc64-*linux*)
13099 LD="${LD-ld} -m elf32ppclinux"
13100 ;;
13101 s390x-*linux*)
13102 LD="${LD-ld} -m elf_s390"
13103 ;;
13104 sparc64-*linux*)
13105 LD="${LD-ld} -m elf32_sparc"
13106 ;;
13107 esac
13108 ;;
13109 *64-bit*)
13110 case $host in
13111 x86_64-*linux*)
13112 LD="${LD-ld} -m elf_x86_64"
13113 ;;
13114 ppc*-*linux*|powerpc*-*linux*)
13115 LD="${LD-ld} -m elf64ppc"
13116 ;;
13117 s390*-*linux*)
13118 LD="${LD-ld} -m elf64_s390"
13119 ;;
13120 sparc*-*linux*)
13121 LD="${LD-ld} -m elf64_sparc"
13122 ;;
13123 esac
13124 ;;
13125 esac
13126 fi
13127 rm -rf conftest*
13128 ;;
13129
13130*-*-sco3.2v5*)
13131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13132 SAVE_CFLAGS="$CFLAGS"
13133 CFLAGS="$CFLAGS -belf"
13134 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13135echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13136if test "${lt_cv_cc_needs_belf+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
13139 ac_ext=c
13140ac_cpp='$CPP $CPPFLAGS'
13141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144
13145 cat >conftest.$ac_ext <<_ACEOF
13146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160rm -f conftest.$ac_objext conftest$ac_exeext
13161if { (ac_try="$ac_link"
13162case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165esac
13166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013194 lt_cv_cc_needs_belf=yes
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 lt_cv_cc_needs_belf=no
13200fi
13201
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013202rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013203 conftest$ac_exeext conftest.$ac_ext
13204 ac_ext=c
13205ac_cpp='$CPP $CPPFLAGS'
13206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208ac_compiler_gnu=$ac_cv_c_compiler_gnu
13209
13210fi
13211{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13212echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13215 CFLAGS="$SAVE_CFLAGS"
13216 fi
13217 ;;
13218sparc*-*solaris*)
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; then
13226 case `/usr/bin/file conftest.o` in
13227 *64-bit*)
13228 case $lt_cv_prog_gnu_ld in
13229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13230 *) LD="${LD-ld} -64" ;;
13231 esac
13232 ;;
13233 esac
13234 fi
13235 rm -rf conftest*
13236 ;;
13237
13238
13239esac
13240
13241need_locks="$enable_libtool_lock"
13242
13243
13244
13245
13246if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13248 (test "X$CXX" != "Xg++"))) ; then
13249 ac_ext=cpp
13250ac_cpp='$CXXCPP $CPPFLAGS'
13251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13254{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13255echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13256if test -z "$CXXCPP"; then
13257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259else
13260 # Double quotes because CXXCPP needs to be expanded
13261 for CXXCPP in "$CXX -E" "/lib/cpp"
13262 do
13263 ac_preproc_ok=false
13264for ac_cxx_preproc_warn_flag in '' yes
13265do
13266 # Use a header file that comes with gcc, so configuring glibc
13267 # with a fresh cross-compiler works.
13268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13269 # <limits.h> exists even on freestanding compilers.
13270 # On the NeXT, cc -E runs the code through the compiler's parser,
13271 # not just through cpp. "Syntax error" is here to catch this case.
13272 cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278#ifdef __STDC__
13279# include <limits.h>
13280#else
13281# include <assert.h>
13282#endif
13283 Syntax error
13284_ACEOF
13285if { (ac_try="$ac_cpp conftest.$ac_ext"
13286case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13289esac
13290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013297 (exit $ac_status); } >/dev/null; then
13298 if test -s conftest.err; then
13299 ac_cpp_err=$ac_cxx_preproc_warn_flag
13300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13301 else
13302 ac_cpp_err=
13303 fi
13304else
13305 ac_cpp_err=yes
13306fi
13307if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013308 :
13309else
13310 echo "$as_me: failed program was:" >&5
13311sed 's/^/| /' conftest.$ac_ext >&5
13312
13313 # Broken: fails on valid input.
13314continue
13315fi
13316
13317rm -f conftest.err conftest.$ac_ext
13318
13319 # OK, works on sane cases. Now check whether nonexistent headers
13320 # can be detected and how.
13321 cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327#include <ac_nonexistent.h>
13328_ACEOF
13329if { (ac_try="$ac_cpp conftest.$ac_ext"
13330case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345 else
13346 ac_cpp_err=
13347 fi
13348else
13349 ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013352 # Broken: success on invalid input.
13353continue
13354else
13355 echo "$as_me: failed program was:" >&5
13356sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 # Passes both tests.
13359ac_preproc_ok=:
13360break
13361fi
13362
13363rm -f conftest.err conftest.$ac_ext
13364
13365done
13366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13367rm -f conftest.err conftest.$ac_ext
13368if $ac_preproc_ok; then
13369 break
13370fi
13371
13372 done
13373 ac_cv_prog_CXXCPP=$CXXCPP
13374
13375fi
13376 CXXCPP=$ac_cv_prog_CXXCPP
13377else
13378 ac_cv_prog_CXXCPP=$CXXCPP
13379fi
13380{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13381echo "${ECHO_T}$CXXCPP" >&6; }
13382ac_preproc_ok=false
13383for ac_cxx_preproc_warn_flag in '' yes
13384do
13385 # Use a header file that comes with gcc, so configuring glibc
13386 # with a fresh cross-compiler works.
13387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 # <limits.h> exists even on freestanding compilers.
13389 # On the NeXT, cc -E runs the code through the compiler's parser,
13390 # not just through cpp. "Syntax error" is here to catch this case.
13391 cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
13397#ifdef __STDC__
13398# include <limits.h>
13399#else
13400# include <assert.h>
13401#endif
13402 Syntax error
13403_ACEOF
13404if { (ac_try="$ac_cpp conftest.$ac_ext"
13405case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013416 (exit $ac_status); } >/dev/null; then
13417 if test -s conftest.err; then
13418 ac_cpp_err=$ac_cxx_preproc_warn_flag
13419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13420 else
13421 ac_cpp_err=
13422 fi
13423else
13424 ac_cpp_err=yes
13425fi
13426if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013427 :
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 # Broken: fails on valid input.
13433continue
13434fi
13435
13436rm -f conftest.err conftest.$ac_ext
13437
13438 # OK, works on sane cases. Now check whether nonexistent headers
13439 # can be detected and how.
13440 cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h. */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h. */
13446#include <ac_nonexistent.h>
13447_ACEOF
13448if { (ac_try="$ac_cpp conftest.$ac_ext"
13449case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13455 ac_status=$?
13456 grep -v '^ *+' conftest.er1 >conftest.err
13457 rm -f conftest.er1
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_cxx_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13464 else
13465 ac_cpp_err=
13466 fi
13467else
13468 ac_cpp_err=yes
13469fi
13470if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013471 # Broken: success on invalid input.
13472continue
13473else
13474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 # Passes both tests.
13478ac_preproc_ok=:
13479break
13480fi
13481
13482rm -f conftest.err conftest.$ac_ext
13483
13484done
13485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13486rm -f conftest.err conftest.$ac_ext
13487if $ac_preproc_ok; then
13488 :
13489else
13490 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13491See \`config.log' for more details." >&5
13492echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13493See \`config.log' for more details." >&2;}
13494 { (exit 1); exit 1; }; }
13495fi
13496
13497ac_ext=cpp
13498ac_cpp='$CXXCPP $CPPFLAGS'
13499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13502
13503fi
13504
13505
13506ac_ext=f
13507ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13508ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13510if test -n "$ac_tool_prefix"; then
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013511 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 +000013512 do
13513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13517if test "${ac_cv_prog_F77+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 if test -n "$F77"; then
13521 ac_cv_prog_F77="$F77" # Let the user override the test.
13522else
13523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524for as_dir in $PATH
13525do
13526 IFS=$as_save_IFS
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013529 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 +000013530 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 break 2
13533 fi
13534done
13535done
13536IFS=$as_save_IFS
13537
13538fi
13539fi
13540F77=$ac_cv_prog_F77
13541if test -n "$F77"; then
13542 { echo "$as_me:$LINENO: result: $F77" >&5
13543echo "${ECHO_T}$F77" >&6; }
13544else
13545 { echo "$as_me:$LINENO: result: no" >&5
13546echo "${ECHO_T}no" >&6; }
13547fi
13548
13549
13550 test -n "$F77" && break
13551 done
13552fi
13553if test -z "$F77"; then
13554 ac_ct_F77=$F77
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013555 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 +000013556do
13557 # Extract the first word of "$ac_prog", so it can be a program name with args.
13558set dummy $ac_prog; ac_word=$2
13559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563else
13564 if test -n "$ac_ct_F77"; then
13565 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13566else
13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568for as_dir in $PATH
13569do
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013573 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 +000013574 ac_cv_prog_ac_ct_F77="$ac_prog"
13575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 break 2
13577 fi
13578done
13579done
13580IFS=$as_save_IFS
13581
13582fi
13583fi
13584ac_ct_F77=$ac_cv_prog_ac_ct_F77
13585if test -n "$ac_ct_F77"; then
13586 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13587echo "${ECHO_T}$ac_ct_F77" >&6; }
13588else
13589 { echo "$as_me:$LINENO: result: no" >&5
13590echo "${ECHO_T}no" >&6; }
13591fi
13592
13593
13594 test -n "$ac_ct_F77" && break
13595done
13596
13597 if test "x$ac_ct_F77" = x; then
13598 F77=""
13599 else
13600 case $cross_compiling:$ac_tool_warned in
13601yes:)
13602{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13603whose name does not start with the host triplet. If you think this
13604configuration is useful to you, please write to autoconf@gnu.org." >&5
13605echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13606whose name does not start with the host triplet. If you think this
13607configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13608ac_tool_warned=yes ;;
13609esac
13610 F77=$ac_ct_F77
13611 fi
13612fi
13613
13614
13615# Provide some information about the compiler.
13616echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13617ac_compiler=`set X $ac_compile; echo $2`
13618{ (ac_try="$ac_compiler --version >&5"
13619case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compiler --version >&5") 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628{ (ac_try="$ac_compiler -v >&5"
13629case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compiler -v >&5") 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13638{ (ac_try="$ac_compiler -V >&5"
13639case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642esac
13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compiler -V >&5") 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }
13648rm -f a.out
13649
13650# If we don't use `.F' as extension, the preprocessor is not run on the
13651# input file. (Note that this only needs to work for GNU compilers.)
13652ac_save_ext=$ac_ext
13653ac_ext=F
13654{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13655echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13656if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659 cat >conftest.$ac_ext <<_ACEOF
13660 program main
13661#ifndef __GNUC__
13662 choke me
13663#endif
13664
13665 end
13666_ACEOF
13667rm -f conftest.$ac_objext
13668if { (ac_try="$ac_compile"
13669case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013701 ac_compiler_gnu=yes
13702else
13703 echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_compiler_gnu=no
13707fi
13708
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13711
13712fi
13713{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13714echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13715ac_ext=$ac_save_ext
13716ac_test_FFLAGS=${FFLAGS+set}
13717ac_save_FFLAGS=$FFLAGS
13718FFLAGS=
13719{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13720echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13721if test "${ac_cv_prog_f77_g+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723else
13724 FFLAGS=-g
13725cat >conftest.$ac_ext <<_ACEOF
13726 program main
13727
13728 end
13729_ACEOF
13730rm -f conftest.$ac_objext
13731if { (ac_try="$ac_compile"
13732case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013764 ac_cv_prog_f77_g=yes
13765else
13766 echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ac_cv_prog_f77_g=no
13770fi
13771
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773
13774fi
13775{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13776echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13777if test "$ac_test_FFLAGS" = set; then
13778 FFLAGS=$ac_save_FFLAGS
13779elif test $ac_cv_prog_f77_g = yes; then
13780 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13781 FFLAGS="-g -O2"
13782 else
13783 FFLAGS="-g"
13784 fi
13785else
13786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13787 FFLAGS="-O2"
13788 else
13789 FFLAGS=
13790 fi
13791fi
13792
13793G77=`test $ac_compiler_gnu = yes && echo yes`
13794ac_ext=c
13795ac_cpp='$CPP $CPPFLAGS'
13796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799
13800
13801
13802# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13803
13804# find the maximum length of command line arguments
13805{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13806echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13807if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 i=0
13811 teststring="ABCD"
13812
13813 case $build_os in
13814 msdosdjgpp*)
13815 # On DJGPP, this test can blow up pretty badly due to problems in libc
13816 # (any single argument exceeding 2000 bytes causes a buffer overrun
13817 # during glob expansion). Even if it were fixed, the result of this
13818 # check would be larger than it should be.
13819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13820 ;;
13821
13822 gnu*)
13823 # Under GNU Hurd, this test is not required because there is
13824 # no limit to the length of command line arguments.
13825 # Libtool will interpret -1 as no limit whatsoever
13826 lt_cv_sys_max_cmd_len=-1;
13827 ;;
13828
13829 cygwin* | mingw*)
13830 # On Win9x/ME, this test blows up -- it succeeds, but takes
13831 # about 5 minutes as the teststring grows exponentially.
13832 # Worse, since 9x/ME are not pre-emptively multitasking,
13833 # you end up with a "frozen" computer, even though with patience
13834 # the test eventually succeeds (with a max line length of 256k).
13835 # Instead, let's just punt: use the minimum linelength reported by
13836 # all of the supported platforms: 8192 (on NT/2K/XP).
13837 lt_cv_sys_max_cmd_len=8192;
13838 ;;
13839
13840 amigaos*)
13841 # On AmigaOS with pdksh, this test takes hours, literally.
13842 # So we just punt and use a minimum line length of 8192.
13843 lt_cv_sys_max_cmd_len=8192;
13844 ;;
13845
13846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13847 # This has been around since 386BSD, at least. Likely further.
13848 if test -x /sbin/sysctl; then
13849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13850 elif test -x /usr/sbin/sysctl; then
13851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13852 else
13853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13854 fi
13855 # And add a safety zone
13856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13858 ;;
13859
13860 interix*)
13861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13862 lt_cv_sys_max_cmd_len=196608
13863 ;;
13864
13865 osf*)
13866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13868 # nice to cause kernel panics so lets avoid the loop below.
13869 # First set a reasonable default.
13870 lt_cv_sys_max_cmd_len=16384
13871 #
13872 if test -x /sbin/sysconfig; then
13873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13875 esac
13876 fi
13877 ;;
13878 sco3.2v5*)
13879 lt_cv_sys_max_cmd_len=102400
13880 ;;
13881 sysv5* | sco5v6* | sysv4.2uw2*)
13882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13883 if test -n "$kargmax"; then
13884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13885 else
13886 lt_cv_sys_max_cmd_len=32768
13887 fi
13888 ;;
13889 *)
13890 # If test is not a shell built-in, we'll probably end up computing a
13891 # maximum length that is only half of the actual maximum length, but
13892 # we can't tell.
13893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13894 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13895 = "XX$teststring") >/dev/null 2>&1 &&
13896 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13897 lt_cv_sys_max_cmd_len=$new_result &&
13898 test $i != 17 # 1/2 MB should be enough
13899 do
13900 i=`expr $i + 1`
13901 teststring=$teststring$teststring
13902 done
13903 teststring=
13904 # Add a significant safety factor because C++ compilers can tack on massive
13905 # amounts of additional arguments before passing them to the linker.
13906 # It appears as though 1/2 is a usable value.
13907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13908 ;;
13909 esac
13910
13911fi
13912
13913if test -n $lt_cv_sys_max_cmd_len ; then
13914 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13915echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13916else
13917 { echo "$as_me:$LINENO: result: none" >&5
13918echo "${ECHO_T}none" >&6; }
13919fi
13920
13921
13922
13923
13924# Check for command to grab the raw symbol name followed by C symbol from nm.
13925{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13926echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13927if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929else
13930
13931# These are sane defaults that work on at least a few old systems.
13932# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13933
13934# Character class describing NM global symbol codes.
13935symcode='[BCDEGRST]'
13936
13937# Regexp to match symbols that can be accessed directly from C.
13938sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13939
13940# Transform an extracted symbol line into a proper C declaration
13941lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13942
13943# Transform an extracted symbol line into symbol name and symbol address
13944lt_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'"
13945
13946# Define system-specific variables.
13947case $host_os in
13948aix*)
13949 symcode='[BCDT]'
13950 ;;
13951cygwin* | mingw* | pw32*)
13952 symcode='[ABCDGISTW]'
13953 ;;
13954hpux*) # Its linker distinguishes data from code symbols
13955 if test "$host_cpu" = ia64; then
13956 symcode='[ABCDEGRST]'
13957 fi
13958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 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'"
13960 ;;
13961linux*)
13962 if test "$host_cpu" = ia64; then
13963 symcode='[ABCDGIRSTW]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13966 fi
13967 ;;
13968irix* | nonstopux*)
13969 symcode='[BCDEGRST]'
13970 ;;
13971osf*)
13972 symcode='[BCDEGQRST]'
13973 ;;
13974solaris*)
13975 symcode='[BDRT]'
13976 ;;
13977sco3.2v5*)
13978 symcode='[DT]'
13979 ;;
13980sysv4.2uw2*)
13981 symcode='[DT]'
13982 ;;
13983sysv5* | sco5v6* | unixware* | OpenUNIX*)
13984 symcode='[ABDT]'
13985 ;;
13986sysv4)
13987 symcode='[DFNSTU]'
13988 ;;
13989esac
13990
13991# Handle CRLF in mingw tool chain
13992opt_cr=
13993case $build_os in
13994mingw*)
13995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13996 ;;
13997esac
13998
13999# If we're using GNU nm, then use its standard symbol codes.
14000case `$NM -V 2>&1` in
14001*GNU* | *'with BFD'*)
14002 symcode='[ABCDGIRSTW]' ;;
14003esac
14004
14005# Try without a prefix undercore, then with it.
14006for ac_symprfx in "" "_"; do
14007
14008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14009 symxfrm="\\1 $ac_symprfx\\2 \\2"
14010
14011 # Write the raw and C identifiers.
14012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14013
14014 # Check to see that the pipe works correctly.
14015 pipe_works=no
14016
14017 rm -f conftest*
14018 cat > conftest.$ac_ext <<EOF
14019#ifdef __cplusplus
14020extern "C" {
14021#endif
14022char nm_test_var;
14023void nm_test_func(){}
14024#ifdef __cplusplus
14025}
14026#endif
14027int main(){nm_test_var='a';nm_test_func();return(0);}
14028EOF
14029
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; then
14035 # Now try to grab the symbols.
14036 nlist=conftest.nm
14037 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14038 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && test -s "$nlist"; then
14042 # Try sorting and uniquifying the output.
14043 if sort "$nlist" | uniq > "$nlist"T; then
14044 mv -f "$nlist"T "$nlist"
14045 else
14046 rm -f "$nlist"T
14047 fi
14048
14049 # Make sure that we snagged all the symbols we need.
14050 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14051 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14052 cat <<EOF > conftest.$ac_ext
14053#ifdef __cplusplus
14054extern "C" {
14055#endif
14056
14057EOF
14058 # Now generate the symbol file.
14059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14060
14061 cat <<EOF >> conftest.$ac_ext
14062#if defined (__STDC__) && __STDC__
14063# define lt_ptr_t void *
14064#else
14065# define lt_ptr_t char *
14066# define const
14067#endif
14068
14069/* The mapping between symbol names and symbols. */
14070const struct {
14071 const char *name;
14072 lt_ptr_t address;
14073}
14074lt_preloaded_symbols[] =
14075{
14076EOF
14077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14078 cat <<\EOF >> conftest.$ac_ext
14079 {0, (lt_ptr_t) 0}
14080};
14081
14082#ifdef __cplusplus
14083}
14084#endif
14085EOF
14086 # Now try linking the two files.
14087 mv conftest.$ac_objext conftstm.$ac_objext
14088 lt_save_LIBS="$LIBS"
14089 lt_save_CFLAGS="$CFLAGS"
14090 LIBS="conftstm.$ac_objext"
14091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14097 pipe_works=yes
14098 fi
14099 LIBS="$lt_save_LIBS"
14100 CFLAGS="$lt_save_CFLAGS"
14101 else
14102 echo "cannot find nm_test_func in $nlist" >&5
14103 fi
14104 else
14105 echo "cannot find nm_test_var in $nlist" >&5
14106 fi
14107 else
14108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14109 fi
14110 else
14111 echo "$progname: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 fi
14114 rm -f conftest* conftst*
14115
14116 # Do not use the global_symbol_pipe unless it works.
14117 if test "$pipe_works" = yes; then
14118 break
14119 else
14120 lt_cv_sys_global_symbol_pipe=
14121 fi
14122done
14123
14124fi
14125
14126if test -z "$lt_cv_sys_global_symbol_pipe"; then
14127 lt_cv_sys_global_symbol_to_cdecl=
14128fi
14129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14130 { echo "$as_me:$LINENO: result: failed" >&5
14131echo "${ECHO_T}failed" >&6; }
14132else
14133 { echo "$as_me:$LINENO: result: ok" >&5
14134echo "${ECHO_T}ok" >&6; }
14135fi
14136
14137{ echo "$as_me:$LINENO: checking for objdir" >&5
14138echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14139if test "${lt_cv_objdir+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142 rm -f .libs 2>/dev/null
14143mkdir .libs 2>/dev/null
14144if test -d .libs; then
14145 lt_cv_objdir=.libs
14146else
14147 # MS-DOS does not allow filenames that begin with a dot.
14148 lt_cv_objdir=_libs
14149fi
14150rmdir .libs 2>/dev/null
14151fi
14152{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14153echo "${ECHO_T}$lt_cv_objdir" >&6; }
14154objdir=$lt_cv_objdir
14155
14156
14157
14158
14159
14160case $host_os in
14161aix3*)
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14166 COLLECT_NAMES=
14167 export COLLECT_NAMES
14168 fi
14169 ;;
14170esac
14171
14172# Sed substitution that helps us do robust quoting. It backslashifies
14173# metacharacters that are still active within double-quoted strings.
14174Xsed='sed -e 1s/^X//'
14175sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14176
14177# Same as above, but do not quote variable references.
14178double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14179
14180# Sed substitution to delay expansion of an escaped shell variable in a
14181# double_quote_subst'ed string.
14182delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14183
14184# Sed substitution to avoid accidental globbing in evaled expressions
14185no_glob_subst='s/\*/\\\*/g'
14186
14187# Constants:
14188rm="rm -f"
14189
14190# Global variables:
14191default_ofile=mklib
14192can_build_shared=yes
14193
14194# All known linkers require a `.a' archive for static linking (except MSVC,
14195# which needs '.lib').
14196libext=a
14197ltmain="$ac_aux_dir/ltmain.sh"
14198ofile="$default_ofile"
14199with_gnu_ld="$lt_cv_prog_gnu_ld"
14200
14201if test -n "$ac_tool_prefix"; then
14202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14203set dummy ${ac_tool_prefix}ar; ac_word=$2
14204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206if test "${ac_cv_prog_AR+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209 if test -n "$AR"; then
14210 ac_cv_prog_AR="$AR" # Let the user override the test.
14211else
14212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213for as_dir in $PATH
14214do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014218 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 +000014219 ac_cv_prog_AR="${ac_tool_prefix}ar"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14222 fi
14223done
14224done
14225IFS=$as_save_IFS
14226
14227fi
14228fi
14229AR=$ac_cv_prog_AR
14230if test -n "$AR"; then
14231 { echo "$as_me:$LINENO: result: $AR" >&5
14232echo "${ECHO_T}$AR" >&6; }
14233else
14234 { echo "$as_me:$LINENO: result: no" >&5
14235echo "${ECHO_T}no" >&6; }
14236fi
14237
14238
14239fi
14240if test -z "$ac_cv_prog_AR"; then
14241 ac_ct_AR=$AR
14242 # Extract the first word of "ar", so it can be a program name with args.
14243set dummy ar; ac_word=$2
14244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14246if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 if test -n "$ac_ct_AR"; then
14250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14251else
14252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253for as_dir in $PATH
14254do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014258 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 +000014259 ac_cv_prog_ac_ct_AR="ar"
14260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263done
14264done
14265IFS=$as_save_IFS
14266
14267fi
14268fi
14269ac_ct_AR=$ac_cv_prog_ac_ct_AR
14270if test -n "$ac_ct_AR"; then
14271 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14272echo "${ECHO_T}$ac_ct_AR" >&6; }
14273else
14274 { echo "$as_me:$LINENO: result: no" >&5
14275echo "${ECHO_T}no" >&6; }
14276fi
14277
14278 if test "x$ac_ct_AR" = x; then
14279 AR="false"
14280 else
14281 case $cross_compiling:$ac_tool_warned in
14282yes:)
14283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14284whose name does not start with the host triplet. If you think this
14285configuration is useful to you, please write to autoconf@gnu.org." >&5
14286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14287whose name does not start with the host triplet. If you think this
14288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14289ac_tool_warned=yes ;;
14290esac
14291 AR=$ac_ct_AR
14292 fi
14293else
14294 AR="$ac_cv_prog_AR"
14295fi
14296
14297if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302if test "${ac_cv_prog_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014314 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 +000014315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319done
14320done
14321IFS=$as_save_IFS
14322
14323fi
14324fi
14325RANLIB=$ac_cv_prog_RANLIB
14326if test -n "$RANLIB"; then
14327 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14328echo "${ECHO_T}$RANLIB" >&6; }
14329else
14330 { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
14332fi
14333
14334
14335fi
14336if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib", so it can be a program name with args.
14339set dummy ranlib; ac_word=$2
14340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14342if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14347else
14348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349for as_dir in $PATH
14350do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014354 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 +000014355 ac_cv_prog_ac_ct_RANLIB="ranlib"
14356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359done
14360done
14361IFS=$as_save_IFS
14362
14363fi
14364fi
14365ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366if test -n "$ac_ct_RANLIB"; then
14367 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14368echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14369else
14370 { echo "$as_me:$LINENO: result: no" >&5
14371echo "${ECHO_T}no" >&6; }
14372fi
14373
14374 if test "x$ac_ct_RANLIB" = x; then
14375 RANLIB=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378yes:)
14379{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14380whose name does not start with the host triplet. If you think this
14381configuration is useful to you, please write to autoconf@gnu.org." >&5
14382echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14383whose name does not start with the host triplet. If you think this
14384configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14385ac_tool_warned=yes ;;
14386esac
14387 RANLIB=$ac_ct_RANLIB
14388 fi
14389else
14390 RANLIB="$ac_cv_prog_RANLIB"
14391fi
14392
14393if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14395set dummy ${ac_tool_prefix}strip; ac_word=$2
14396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398if test "${ac_cv_prog_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 if test -n "$STRIP"; then
14402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14403else
14404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014410 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 +000014411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 break 2
14414 fi
14415done
14416done
14417IFS=$as_save_IFS
14418
14419fi
14420fi
14421STRIP=$ac_cv_prog_STRIP
14422if test -n "$STRIP"; then
14423 { echo "$as_me:$LINENO: result: $STRIP" >&5
14424echo "${ECHO_T}$STRIP" >&6; }
14425else
14426 { echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6; }
14428fi
14429
14430
14431fi
14432if test -z "$ac_cv_prog_STRIP"; then
14433 ac_ct_STRIP=$STRIP
14434 # Extract the first word of "strip", so it can be a program name with args.
14435set dummy strip; ac_word=$2
14436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14438if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 if test -n "$ac_ct_STRIP"; then
14442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14443else
14444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445for as_dir in $PATH
14446do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014450 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 +000014451 ac_cv_prog_ac_ct_STRIP="strip"
14452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455done
14456done
14457IFS=$as_save_IFS
14458
14459fi
14460fi
14461ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14462if test -n "$ac_ct_STRIP"; then
14463 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14464echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14465else
14466 { echo "$as_me:$LINENO: result: no" >&5
14467echo "${ECHO_T}no" >&6; }
14468fi
14469
14470 if test "x$ac_ct_STRIP" = x; then
14471 STRIP=":"
14472 else
14473 case $cross_compiling:$ac_tool_warned in
14474yes:)
14475{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14476whose name does not start with the host triplet. If you think this
14477configuration is useful to you, please write to autoconf@gnu.org." >&5
14478echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14479whose name does not start with the host triplet. If you think this
14480configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14481ac_tool_warned=yes ;;
14482esac
14483 STRIP=$ac_ct_STRIP
14484 fi
14485else
14486 STRIP="$ac_cv_prog_STRIP"
14487fi
14488
14489
14490old_CC="$CC"
14491old_CFLAGS="$CFLAGS"
14492
14493# Set sane defaults for various variables
14494test -z "$AR" && AR=ar
14495test -z "$AR_FLAGS" && AR_FLAGS=cru
14496test -z "$AS" && AS=as
14497test -z "$CC" && CC=cc
14498test -z "$LTCC" && LTCC=$CC
14499test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14500test -z "$DLLTOOL" && DLLTOOL=dlltool
14501test -z "$LD" && LD=ld
14502test -z "$LN_S" && LN_S="ln -s"
14503test -z "$MAGIC_CMD" && MAGIC_CMD=file
14504test -z "$NM" && NM=nm
14505test -z "$SED" && SED=sed
14506test -z "$OBJDUMP" && OBJDUMP=objdump
14507test -z "$RANLIB" && RANLIB=:
14508test -z "$STRIP" && STRIP=:
14509test -z "$ac_objext" && ac_objext=o
14510
14511# Determine commands to create old-style static archives.
14512old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14513old_postinstall_cmds='chmod 644 $oldlib'
14514old_postuninstall_cmds=
14515
14516if test -n "$RANLIB"; then
14517 case $host_os in
14518 openbsd*)
14519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14520 ;;
14521 *)
14522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14523 ;;
14524 esac
14525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14526fi
14527
14528for cc_temp in $compiler""; do
14529 case $cc_temp in
14530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14532 \-*) ;;
14533 *) break;;
14534 esac
14535done
14536cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14537
14538
14539# Only perform the check for file, if the check method requires it
14540case $deplibs_check_method in
14541file_magic*)
14542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14543 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14544echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14545if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
14548 case $MAGIC_CMD in
14549[\\/*] | ?:[\\/]*)
14550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14551 ;;
14552*)
14553 lt_save_MAGIC_CMD="$MAGIC_CMD"
14554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14556 for ac_dir in $ac_dummy; do
14557 IFS="$lt_save_ifs"
14558 test -z "$ac_dir" && ac_dir=.
14559 if test -f $ac_dir/${ac_tool_prefix}file; then
14560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561 if test -n "$file_magic_test_file"; then
14562 case $deplibs_check_method in
14563 "file_magic "*)
14564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567 $EGREP "$file_magic_regex" > /dev/null; then
14568 :
14569 else
14570 cat <<EOF 1>&2
14571
14572*** Warning: the command libtool uses to detect shared libraries,
14573*** $file_magic_cmd, produces output that libtool cannot recognize.
14574*** The result is that libtool may fail to recognize shared libraries
14575*** as such. This will affect the creation of libtool libraries that
14576*** depend on shared libraries, but programs linked with such libtool
14577*** libraries will work regardless of this problem. Nevertheless, you
14578*** may want to report the problem to your system manager and/or to
14579*** bug-libtool@gnu.org
14580
14581EOF
14582 fi ;;
14583 esac
14584 fi
14585 break
14586 fi
14587 done
14588 IFS="$lt_save_ifs"
14589 MAGIC_CMD="$lt_save_MAGIC_CMD"
14590 ;;
14591esac
14592fi
14593
14594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595if test -n "$MAGIC_CMD"; then
14596 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14597echo "${ECHO_T}$MAGIC_CMD" >&6; }
14598else
14599 { echo "$as_me:$LINENO: result: no" >&5
14600echo "${ECHO_T}no" >&6; }
14601fi
14602
14603if test -z "$lt_cv_path_MAGIC_CMD"; then
14604 if test -n "$ac_tool_prefix"; then
14605 { echo "$as_me:$LINENO: checking for file" >&5
14606echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609else
14610 case $MAGIC_CMD in
14611[\\/*] | ?:[\\/]*)
14612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14613 ;;
14614*)
14615 lt_save_MAGIC_CMD="$MAGIC_CMD"
14616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14618 for ac_dir in $ac_dummy; do
14619 IFS="$lt_save_ifs"
14620 test -z "$ac_dir" && ac_dir=.
14621 if test -f $ac_dir/file; then
14622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14623 if test -n "$file_magic_test_file"; then
14624 case $deplibs_check_method in
14625 "file_magic "*)
14626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14629 $EGREP "$file_magic_regex" > /dev/null; then
14630 :
14631 else
14632 cat <<EOF 1>&2
14633
14634*** Warning: the command libtool uses to detect shared libraries,
14635*** $file_magic_cmd, produces output that libtool cannot recognize.
14636*** The result is that libtool may fail to recognize shared libraries
14637*** as such. This will affect the creation of libtool libraries that
14638*** depend on shared libraries, but programs linked with such libtool
14639*** libraries will work regardless of this problem. Nevertheless, you
14640*** may want to report the problem to your system manager and/or to
14641*** bug-libtool@gnu.org
14642
14643EOF
14644 fi ;;
14645 esac
14646 fi
14647 break
14648 fi
14649 done
14650 IFS="$lt_save_ifs"
14651 MAGIC_CMD="$lt_save_MAGIC_CMD"
14652 ;;
14653esac
14654fi
14655
14656MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14657if test -n "$MAGIC_CMD"; then
14658 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14659echo "${ECHO_T}$MAGIC_CMD" >&6; }
14660else
14661 { echo "$as_me:$LINENO: result: no" >&5
14662echo "${ECHO_T}no" >&6; }
14663fi
14664
14665 else
14666 MAGIC_CMD=:
14667 fi
14668fi
14669
14670 fi
14671 ;;
14672esac
14673
14674enable_dlopen=yes
14675enable_win32_dll=no
14676
14677# Check whether --enable-libtool-lock was given.
14678if test "${enable_libtool_lock+set}" = set; then
14679 enableval=$enable_libtool_lock;
14680fi
14681
14682test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14683
14684
14685# Check whether --with-pic was given.
14686if test "${with_pic+set}" = set; then
14687 withval=$with_pic; pic_mode="$withval"
14688else
14689 pic_mode=default
14690fi
14691
14692test -z "$pic_mode" && pic_mode=default
14693
14694# Use C for the default configuration in the libtool script
14695tagname=
14696lt_save_CC="$CC"
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;\n"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}\n'
14716
14717
14718# If no C compiler was specified, use CC.
14719LTCC=${LTCC-"$CC"}
14720
14721# If no C compiler flags were specified, use CFLAGS.
14722LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14723
14724# Allow CC to be a program name with arguments.
14725compiler=$CC
14726
14727
14728# save warnings/boilerplate of simple test code
14729ac_outfile=conftest.$ac_objext
14730printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14731eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14732_lt_compiler_boilerplate=`cat conftest.err`
14733$rm conftest*
14734
14735ac_outfile=conftest.$ac_objext
14736printf "$lt_simple_link_test_code" >conftest.$ac_ext
14737eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738_lt_linker_boilerplate=`cat conftest.err`
14739$rm conftest*
14740
14741
14742
14743lt_prog_compiler_no_builtin_flag=
14744
14745if test "$GCC" = yes; then
14746 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14747
14748
14749{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14750echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14751if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753else
14754 lt_cv_prog_compiler_rtti_exceptions=no
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="-fno-rtti -fno-exceptions"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014767 (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014768 (eval "$lt_compile" 2>conftest.err)
14769 ac_status=$?
14770 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000014771 echo "$as_me:14771: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
14775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_rtti_exceptions=yes
14779 fi
14780 fi
14781 $rm conftest*
14782
14783fi
14784{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14786
14787if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14789else
14790 :
14791fi
14792
14793fi
14794
14795lt_prog_compiler_wl=
14796lt_prog_compiler_pic=
14797lt_prog_compiler_static=
14798
14799{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14800echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14801
14802 if test "$GCC" = yes; then
14803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_static='-static'
14805
14806 case $host_os in
14807 aix*)
14808 # All AIX code is PIC.
14809 if test "$host_cpu" = ia64; then
14810 # AIX 5 now supports IA64 processor
14811 lt_prog_compiler_static='-Bstatic'
14812 fi
14813 ;;
14814
14815 amigaos*)
14816 # FIXME: we need at least 68020 code to build shared libraries, but
14817 # adding the `-m68020' flag to GCC prevents building anything better,
14818 # like `-m68040'.
14819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14820 ;;
14821
14822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14823 # PIC is the default for these OSes.
14824 ;;
14825
14826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14830 ;;
14831
14832 darwin* | rhapsody*)
14833 # PIC is the default on this platform
14834 # Common symbols not allowed in MH_DYLIB files
14835 lt_prog_compiler_pic='-fno-common'
14836 ;;
14837
14838 interix3*)
14839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840 # Instead, we relocate shared libraries at runtime.
14841 ;;
14842
14843 msdosdjgpp*)
14844 # Just because we use GCC doesn't mean we suddenly get shared libraries
14845 # on systems that don't support them.
14846 lt_prog_compiler_can_build_shared=no
14847 enable_shared=no
14848 ;;
14849
14850 sysv4*MP*)
14851 if test -d /usr/nec; then
14852 lt_prog_compiler_pic=-Kconform_pic
14853 fi
14854 ;;
14855
14856 hpux*)
14857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858 # not for PA HP-UX.
14859 case $host_cpu in
14860 hppa*64*|ia64*)
14861 # +Z the default
14862 ;;
14863 *)
14864 lt_prog_compiler_pic='-fPIC'
14865 ;;
14866 esac
14867 ;;
14868
14869 *)
14870 lt_prog_compiler_pic='-fPIC'
14871 ;;
14872 esac
14873 else
14874 # PORTME Check for flag to pass linker flags through the system compiler.
14875 case $host_os in
14876 aix*)
14877 lt_prog_compiler_wl='-Wl,'
14878 if test "$host_cpu" = ia64; then
14879 # AIX 5 now supports IA64 processor
14880 lt_prog_compiler_static='-Bstatic'
14881 else
14882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14883 fi
14884 ;;
14885 darwin*)
14886 # PIC is the default on this platform
14887 # Common symbols not allowed in MH_DYLIB files
14888 case $cc_basename in
14889 xlc*)
14890 lt_prog_compiler_pic='-qnocommon'
14891 lt_prog_compiler_wl='-Wl,'
14892 ;;
14893 esac
14894 ;;
14895
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14900 ;;
14901
14902 hpux9* | hpux10* | hpux11*)
14903 lt_prog_compiler_wl='-Wl,'
14904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905 # not for PA HP-UX.
14906 case $host_cpu in
14907 hppa*64*|ia64*)
14908 # +Z the default
14909 ;;
14910 *)
14911 lt_prog_compiler_pic='+Z'
14912 ;;
14913 esac
14914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915 lt_prog_compiler_static='${wl}-a ${wl}archive'
14916 ;;
14917
14918 irix5* | irix6* | nonstopux*)
14919 lt_prog_compiler_wl='-Wl,'
14920 # PIC (with -KPIC) is the default.
14921 lt_prog_compiler_static='-non_shared'
14922 ;;
14923
14924 newsos6)
14925 lt_prog_compiler_pic='-KPIC'
14926 lt_prog_compiler_static='-Bstatic'
14927 ;;
14928
14929 linux*)
14930 case $cc_basename in
14931 icc* | ecc*)
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_pic='-KPIC'
14934 lt_prog_compiler_static='-static'
14935 ;;
14936 pgcc* | pgf77* | pgf90* | pgf95*)
14937 # Portland Group compilers (*not* the Pentium gcc compiler,
14938 # which looks to be a dead project)
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_pic='-fpic'
14941 lt_prog_compiler_static='-Bstatic'
14942 ;;
14943 ccc*)
14944 lt_prog_compiler_wl='-Wl,'
14945 # All Alpha code is PIC.
14946 lt_prog_compiler_static='-non_shared'
14947 ;;
14948 esac
14949 ;;
14950
14951 osf3* | osf4* | osf5*)
14952 lt_prog_compiler_wl='-Wl,'
14953 # All OSF/1 code is PIC.
14954 lt_prog_compiler_static='-non_shared'
14955 ;;
14956
14957 solaris*)
14958 lt_prog_compiler_pic='-KPIC'
14959 lt_prog_compiler_static='-Bstatic'
14960 case $cc_basename in
14961 f77* | f90* | f95*)
14962 lt_prog_compiler_wl='-Qoption ld ';;
14963 *)
14964 lt_prog_compiler_wl='-Wl,';;
14965 esac
14966 ;;
14967
14968 sunos4*)
14969 lt_prog_compiler_wl='-Qoption ld '
14970 lt_prog_compiler_pic='-PIC'
14971 lt_prog_compiler_static='-Bstatic'
14972 ;;
14973
14974 sysv4 | sysv4.2uw2* | sysv4.3*)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
14978 ;;
14979
14980 sysv4*MP*)
14981 if test -d /usr/nec ;then
14982 lt_prog_compiler_pic='-Kconform_pic'
14983 lt_prog_compiler_static='-Bstatic'
14984 fi
14985 ;;
14986
14987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14988 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-KPIC'
14990 lt_prog_compiler_static='-Bstatic'
14991 ;;
14992
14993 unicos*)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_can_build_shared=no
14996 ;;
14997
14998 uts4*)
14999 lt_prog_compiler_pic='-pic'
15000 lt_prog_compiler_static='-Bstatic'
15001 ;;
15002
15003 *)
15004 lt_prog_compiler_can_build_shared=no
15005 ;;
15006 esac
15007 fi
15008
15009{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15010echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15011
15012#
15013# Check to make sure the PIC flag actually works.
15014#
15015if test -n "$lt_prog_compiler_pic"; then
15016
15017{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15018echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15019if test "${lt_prog_compiler_pic_works+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021else
15022 lt_prog_compiler_pic_works=no
15023 ac_outfile=conftest.$ac_objext
15024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15026 # Insert the option either (1) after the last *FLAGS variable, or
15027 # (2) before a word containing "conftest.", or (3) at the end.
15028 # Note that $ac_compile itself does not contain backslashes and begins
15029 # with a dollar sign (not a hyphen), so the echo should work correctly.
15030 # The option is referenced via a variable to avoid confusing sed.
15031 lt_compile=`echo "$ac_compile" | $SED \
15032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000015035 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015036 (eval "$lt_compile" 2>conftest.err)
15037 ac_status=$?
15038 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000015039 echo "$as_me:15039: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015040 if (exit $ac_status) && test -s "$ac_outfile"; then
15041 # The compiler can only warn and ignore the option if not recognized
15042 # So say no if there are warnings other than the usual output.
15043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15046 lt_prog_compiler_pic_works=yes
15047 fi
15048 fi
15049 $rm conftest*
15050
15051fi
15052{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15053echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15054
15055if test x"$lt_prog_compiler_pic_works" = xyes; then
15056 case $lt_prog_compiler_pic in
15057 "" | " "*) ;;
15058 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15059 esac
15060else
15061 lt_prog_compiler_pic=
15062 lt_prog_compiler_can_build_shared=no
15063fi
15064
15065fi
15066case $host_os in
15067 # For platforms which do not support PIC, -DPIC is meaningless:
15068 *djgpp*)
15069 lt_prog_compiler_pic=
15070 ;;
15071 *)
15072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15073 ;;
15074esac
15075
15076#
15077# Check to make sure the static flag actually works.
15078#
15079wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15080{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15081echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15082if test "${lt_prog_compiler_static_works+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 lt_prog_compiler_static_works=no
15086 save_LDFLAGS="$LDFLAGS"
15087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15088 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15090 # The linker can only warn and ignore the option if not recognized
15091 # So say no if there are warnings
15092 if test -s conftest.err; then
15093 # Append any errors to the config.log.
15094 cat conftest.err 1>&5
15095 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_prog_compiler_static_works=yes
15099 fi
15100 else
15101 lt_prog_compiler_static_works=yes
15102 fi
15103 fi
15104 $rm conftest*
15105 LDFLAGS="$save_LDFLAGS"
15106
15107fi
15108{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15109echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15110
15111if test x"$lt_prog_compiler_static_works" = xyes; then
15112 :
15113else
15114 lt_prog_compiler_static=
15115fi
15116
15117
15118{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15119echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15120if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122else
15123 lt_cv_prog_compiler_c_o=no
15124 $rm -r conftest 2>/dev/null
15125 mkdir conftest
15126 cd conftest
15127 mkdir out
15128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130 lt_compiler_flag="-o out/conftest2.$ac_objext"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 lt_compile=`echo "$ac_compile" | $SED \
15136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000015139 (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015140 (eval "$lt_compile" 2>out/conftest.err)
15141 ac_status=$?
15142 cat out/conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000015143 echo "$as_me:15143: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145 then
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings
15148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_c_o=yes
15152 fi
15153 fi
15154 chmod u+w . 2>&5
15155 $rm conftest*
15156 # SGI C++ compiler will create directory out/ii_files/ for
15157 # template instantiation
15158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15159 $rm out/* && rmdir out
15160 cd ..
15161 rmdir conftest
15162 $rm conftest*
15163
15164fi
15165{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15166echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15167
15168
15169hard_links="nottested"
15170if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15171 # do not overwrite the value of need_locks provided by the user
15172 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15173echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15174 hard_links=yes
15175 $rm conftest*
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177 touch conftest.a
15178 ln conftest.a conftest.b 2>&5 || hard_links=no
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 { echo "$as_me:$LINENO: result: $hard_links" >&5
15181echo "${ECHO_T}$hard_links" >&6; }
15182 if test "$hard_links" = no; then
15183 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15184echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15185 need_locks=warn
15186 fi
15187else
15188 need_locks=no
15189fi
15190
15191{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15192echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15193
15194 runpath_var=
15195 allow_undefined_flag=
15196 enable_shared_with_static_runtimes=no
15197 archive_cmds=
15198 archive_expsym_cmds=
15199 old_archive_From_new_cmds=
15200 old_archive_from_expsyms_cmds=
15201 export_dynamic_flag_spec=
15202 whole_archive_flag_spec=
15203 thread_safe_flag_spec=
15204 hardcode_libdir_flag_spec=
15205 hardcode_libdir_flag_spec_ld=
15206 hardcode_libdir_separator=
15207 hardcode_direct=no
15208 hardcode_minus_L=no
15209 hardcode_shlibpath_var=unsupported
15210 link_all_deplibs=unknown
15211 hardcode_automatic=no
15212 module_cmds=
15213 module_expsym_cmds=
15214 always_export_symbols=no
15215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15216 # include_expsyms should be a list of space-separated symbols to be *always*
15217 # included in the symbol list
15218 include_expsyms=
15219 # exclude_expsyms can be an extended regexp of symbols to exclude
15220 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15221 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15222 # as well as any symbol that contains `d'.
15223 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15225 # platforms (ab)use it in PIC code, but their linkers get confused if
15226 # the symbol is explicitly referenced. Since portable code cannot
15227 # rely on this symbol name, it's probably fine to never include it in
15228 # preloaded symbol tables.
15229 extract_expsyms_cmds=
15230 # Just being paranoid about ensuring that cc_basename is set.
15231 for cc_temp in $compiler""; do
15232 case $cc_temp in
15233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15235 \-*) ;;
15236 *) break;;
15237 esac
15238done
15239cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15240
15241 case $host_os in
15242 cygwin* | mingw* | pw32*)
15243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244 # When not using gcc, we currently assume that we are using
15245 # Microsoft Visual C++.
15246 if test "$GCC" != yes; then
15247 with_gnu_ld=no
15248 fi
15249 ;;
15250 interix*)
15251 # we just hope/assume this is gcc and not c89 (= MSVC++)
15252 with_gnu_ld=yes
15253 ;;
15254 openbsd*)
15255 with_gnu_ld=no
15256 ;;
15257 esac
15258
15259 ld_shlibs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 # If archive_cmds runs LD, not CC, wlarc should be empty
15262 wlarc='${wl}'
15263
15264 # Set some defaults for GNU ld with shared library support. These
15265 # are reset later if shared libraries are not supported. Putting them
15266 # here allows them to be overridden if necessary.
15267 runpath_var=LD_RUN_PATH
15268 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15269 export_dynamic_flag_spec='${wl}--export-dynamic'
15270 # ancient GNU ld didn't support --whole-archive et. al.
15271 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15273 else
15274 whole_archive_flag_spec=
15275 fi
15276 supports_anon_versioning=no
15277 case `$LD -v 2>/dev/null` in
15278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281 *\ 2.11.*) ;; # other 2.11 versions
15282 *) supports_anon_versioning=yes ;;
15283 esac
15284
15285 # See if GNU ld supports shared libraries.
15286 case $host_os in
15287 aix3* | aix4* | aix5*)
15288 # On AIX/PPC, the GNU linker is very broken
15289 if test "$host_cpu" != ia64; then
15290 ld_shlibs=no
15291 cat <<EOF 1>&2
15292
15293*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294*** to be unable to reliably create shared libraries on AIX.
15295*** Therefore, libtool is disabling shared libraries support. If you
15296*** really care for shared libraries, you may want to modify your PATH
15297*** so that a non-GNU linker is found, and then restart.
15298
15299EOF
15300 fi
15301 ;;
15302
15303 amigaos*)
15304 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)'
15305 hardcode_libdir_flag_spec='-L$libdir'
15306 hardcode_minus_L=yes
15307
15308 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309 # that the semantics of dynamic libraries on AmigaOS, at least up
15310 # to version 4, is to share data among multiple programs linked
15311 # with the same dynamic library. Since this doesn't match the
15312 # behavior of shared libraries on other platforms, we can't use
15313 # them.
15314 ld_shlibs=no
15315 ;;
15316
15317 beos*)
15318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15319 allow_undefined_flag=unsupported
15320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321 # support --undefined. This deserves some investigation. FIXME
15322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15323 else
15324 ld_shlibs=no
15325 fi
15326 ;;
15327
15328 cygwin* | mingw* | pw32*)
15329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15330 # as there is no search path for DLLs.
15331 hardcode_libdir_flag_spec='-L$libdir'
15332 allow_undefined_flag=unsupported
15333 always_export_symbols=no
15334 enable_shared_with_static_runtimes=yes
15335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15336
15337 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15339 # If the export-symbols file already is a .def file (1st line
15340 # is EXPORTS), use it as is; otherwise, prepend...
15341 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342 cp $export_symbols $output_objdir/$soname.def;
15343 else
15344 echo EXPORTS > $output_objdir/$soname.def;
15345 cat $export_symbols >> $output_objdir/$soname.def;
15346 fi~
15347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348 else
15349 ld_shlibs=no
15350 fi
15351 ;;
15352
15353 interix3*)
15354 hardcode_direct=no
15355 hardcode_shlibpath_var=no
15356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15357 export_dynamic_flag_spec='${wl}-E'
15358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359 # Instead, shared libraries are loaded at an image base (0x10000000 by
15360 # default) and relocated if they conflict, which is a slow very memory
15361 # consuming and fragmenting process. To avoid this, we pick a random,
15362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15365 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'
15366 ;;
15367
15368 linux*)
15369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15370 tmp_addflag=
15371 case $cc_basename,$host_cpu in
15372 pgcc*) # Portland Group C compiler
15373 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'
15374 tmp_addflag=' $pic_flag'
15375 ;;
15376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15377 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'
15378 tmp_addflag=' $pic_flag -Mnomain' ;;
15379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15380 tmp_addflag=' -i_dynamic' ;;
15381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15382 tmp_addflag=' -i_dynamic -nofor_main' ;;
15383 ifc* | ifort*) # Intel Fortran compiler
15384 tmp_addflag=' -nofor_main' ;;
15385 esac
15386 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15387
15388 if test $supports_anon_versioning = yes; then
15389 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15391 $echo "local: *; };" >> $output_objdir/$libname.ver~
15392 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15393 fi
15394 else
15395 ld_shlibs=no
15396 fi
15397 ;;
15398
15399 netbsd*)
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15402 wlarc=
15403 else
15404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15406 fi
15407 ;;
15408
15409 solaris*)
15410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15411 ld_shlibs=no
15412 cat <<EOF 1>&2
15413
15414*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15415*** create shared libraries on Solaris systems. Therefore, libtool
15416*** is disabling shared libraries support. We urge you to upgrade GNU
15417*** binutils to release 2.9.1 or newer. Another option is to modify
15418*** your PATH or compiler configuration so that the native linker is
15419*** used, and then restart.
15420
15421EOF
15422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15425 else
15426 ld_shlibs=no
15427 fi
15428 ;;
15429
15430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15431 case `$LD -v 2>&1` in
15432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15433 ld_shlibs=no
15434 cat <<_LT_EOF 1>&2
15435
15436*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15437*** reliably create shared libraries on SCO systems. Therefore, libtool
15438*** is disabling shared libraries support. We urge you to upgrade GNU
15439*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15440*** your PATH or compiler configuration so that the native linker is
15441*** used, and then restart.
15442
15443_LT_EOF
15444 ;;
15445 *)
15446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15450 else
15451 ld_shlibs=no
15452 fi
15453 ;;
15454 esac
15455 ;;
15456
15457 sunos4*)
15458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 wlarc=
15460 hardcode_direct=yes
15461 hardcode_shlibpath_var=no
15462 ;;
15463
15464 *)
15465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468 else
15469 ld_shlibs=no
15470 fi
15471 ;;
15472 esac
15473
15474 if test "$ld_shlibs" = no; then
15475 runpath_var=
15476 hardcode_libdir_flag_spec=
15477 export_dynamic_flag_spec=
15478 whole_archive_flag_spec=
15479 fi
15480 else
15481 # PORTME fill in a description of your system's linker (not GNU ld)
15482 case $host_os in
15483 aix3*)
15484 allow_undefined_flag=unsupported
15485 always_export_symbols=yes
15486 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'
15487 # Note: this linker hardcodes the directories in LIBPATH if there
15488 # are no directories specified by -L.
15489 hardcode_minus_L=yes
15490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15491 # Neither direct hardcoding nor static linking is supported with a
15492 # broken collect2.
15493 hardcode_direct=unsupported
15494 fi
15495 ;;
15496
15497 aix4* | aix5*)
15498 if test "$host_cpu" = ia64; then
15499 # On IA64, the linker does run time linking by default, so we don't
15500 # have to do anything special.
15501 aix_use_runtimelinking=no
15502 exp_sym_flag='-Bexport'
15503 no_entry_flag=""
15504 else
15505 # If we're using GNU nm, then we don't want the "-C" option.
15506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15508 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'
15509 else
15510 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'
15511 fi
15512 aix_use_runtimelinking=no
15513
15514 # Test if we are trying to use run time linking or normal
15515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15516 # need to do runtime linking.
15517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15518 for ld_flag in $LDFLAGS; do
15519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15520 aix_use_runtimelinking=yes
15521 break
15522 fi
15523 done
15524 ;;
15525 esac
15526
15527 exp_sym_flag='-bexport'
15528 no_entry_flag='-bnoentry'
15529 fi
15530
15531 # When large executables or shared objects are built, AIX ld can
15532 # have problems creating the table of contents. If linking a library
15533 # or program results in "error TOC overflow" add -mminimal-toc to
15534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15536
15537 archive_cmds=''
15538 hardcode_direct=yes
15539 hardcode_libdir_separator=':'
15540 link_all_deplibs=yes
15541
15542 if test "$GCC" = yes; then
15543 case $host_os in aix4.[012]|aix4.[012].*)
15544 # We only want to do this on AIX 4.2 and lower, the check
15545 # below for broken collect2 doesn't work under 4.3+
15546 collect2name=`${CC} -print-prog-name=collect2`
15547 if test -f "$collect2name" && \
15548 strings "$collect2name" | grep resolve_lib_name >/dev/null
15549 then
15550 # We have reworked collect2
15551 hardcode_direct=yes
15552 else
15553 # We have old collect2
15554 hardcode_direct=unsupported
15555 # It fails to find uninstalled libraries when the uninstalled
15556 # path is not listed in the libpath. Setting hardcode_minus_L
15557 # to unsupported forces relinking
15558 hardcode_minus_L=yes
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_libdir_separator=
15561 fi
15562 ;;
15563 esac
15564 shared_flag='-shared'
15565 if test "$aix_use_runtimelinking" = yes; then
15566 shared_flag="$shared_flag "'${wl}-G'
15567 fi
15568 else
15569 # not using gcc
15570 if test "$host_cpu" = ia64; then
15571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15572 # chokes on -Wl,-G. The following line is correct:
15573 shared_flag='-G'
15574 else
15575 if test "$aix_use_runtimelinking" = yes; then
15576 shared_flag='${wl}-G'
15577 else
15578 shared_flag='${wl}-bM:SRE'
15579 fi
15580 fi
15581 fi
15582
15583 # It seems that -bexpall does not export symbols beginning with
15584 # underscore (_), so it is better to generate a list of symbols to export.
15585 always_export_symbols=yes
15586 if test "$aix_use_runtimelinking" = yes; then
15587 # Warning - without using the other runtime loading flags (-brtl),
15588 # -berok will link without error, but may produce a broken library.
15589 allow_undefined_flag='-berok'
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597
15598int
15599main ()
15600{
15601
15602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext conftest$ac_exeext
15607if { (ac_try="$ac_link"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015640
15641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642}'`
15643# Check for a 64-bit object if we didn't find anything.
15644if 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; }
15645}'`; fi
15646else
15647 echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650
15651fi
15652
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015653rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015654 conftest$ac_exeext conftest.$ac_ext
15655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15656
15657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658 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"
15659 else
15660 if test "$host_cpu" = ia64; then
15661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15662 allow_undefined_flag="-z nodefs"
15663 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"
15664 else
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672
15673int
15674main ()
15675{
15676
15677 ;
15678 return 0;
15679}
15680_ACEOF
15681rm -f conftest.$ac_objext conftest$ac_exeext
15682if { (ac_try="$ac_link"
15683case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15686esac
15687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015715
15716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15717}'`
15718# Check for a 64-bit object if we didn't find anything.
15719if 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; }
15720}'`; fi
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725
15726fi
15727
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015728rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015729 conftest$ac_exeext conftest.$ac_ext
15730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15731
15732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15733 # Warning - without using the other run time loading flags,
15734 # -berok will link without error, but may produce a broken library.
15735 no_undefined_flag=' ${wl}-bernotok'
15736 allow_undefined_flag=' ${wl}-berok'
15737 # Exported symbols can be pulled into shared objects from archives
15738 whole_archive_flag_spec='$convenience'
15739 archive_cmds_need_lc=yes
15740 # This is similar to how AIX traditionally builds its shared libraries.
15741 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'
15742 fi
15743 fi
15744 ;;
15745
15746 amigaos*)
15747 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)'
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_minus_L=yes
15750 # see comment about different semantics on the GNU ld section
15751 ld_shlibs=no
15752 ;;
15753
15754 bsdi[45]*)
15755 export_dynamic_flag_spec=-rdynamic
15756 ;;
15757
15758 cygwin* | mingw* | pw32*)
15759 # When not using gcc, we currently assume that we are using
15760 # Microsoft Visual C++.
15761 # hardcode_libdir_flag_spec is actually meaningless, as there is
15762 # no search path for DLLs.
15763 hardcode_libdir_flag_spec=' '
15764 allow_undefined_flag=unsupported
15765 # Tell ltmain to make .lib files, not .a files.
15766 libext=lib
15767 # Tell ltmain to make .dll files, not .so files.
15768 shrext_cmds=".dll"
15769 # FIXME: Setting linknames here is a bad hack.
15770 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15771 # The linker will automatically build a .lib file if we build a DLL.
15772 old_archive_From_new_cmds='true'
15773 # FIXME: Should let the user specify the lib program.
15774 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15775 fix_srcfile_path='`cygpath -w "$srcfile"`'
15776 enable_shared_with_static_runtimes=yes
15777 ;;
15778
15779 darwin* | rhapsody*)
15780 case $host_os in
15781 rhapsody* | darwin1.[012])
15782 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15783 ;;
15784 *) # Darwin 1.3 on
15785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15786 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15787 else
15788 case ${MACOSX_DEPLOYMENT_TARGET} in
15789 10.[012])
15790 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15791 ;;
15792 10.*)
15793 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15794 ;;
15795 esac
15796 fi
15797 ;;
15798 esac
15799 archive_cmds_need_lc=no
15800 hardcode_direct=no
15801 hardcode_automatic=yes
15802 hardcode_shlibpath_var=unsupported
15803 whole_archive_flag_spec=''
15804 link_all_deplibs=yes
15805 if test "$GCC" = yes ; then
15806 output_verbose_link_cmd='echo'
15807 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15808 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15810 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}'
15811 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}'
15812 else
15813 case $cc_basename in
15814 xlc*)
15815 output_verbose_link_cmd='echo'
15816 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15817 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15819 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}'
15820 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}'
15821 ;;
15822 *)
15823 ld_shlibs=no
15824 ;;
15825 esac
15826 fi
15827 ;;
15828
15829 dgux*)
15830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 hardcode_libdir_flag_spec='-L$libdir'
15832 hardcode_shlibpath_var=no
15833 ;;
15834
15835 freebsd1*)
15836 ld_shlibs=no
15837 ;;
15838
15839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15840 # support. Future versions do this automatically, but an explicit c++rt0.o
15841 # does not break anything, and helps significantly (at the cost of a little
15842 # extra space).
15843 freebsd2.2*)
15844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15845 hardcode_libdir_flag_spec='-R$libdir'
15846 hardcode_direct=yes
15847 hardcode_shlibpath_var=no
15848 ;;
15849
15850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15851 freebsd2*)
15852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes
15854 hardcode_minus_L=yes
15855 hardcode_shlibpath_var=no
15856 ;;
15857
15858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15859 freebsd* | kfreebsd*-gnu | dragonfly*)
15860 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15861 hardcode_libdir_flag_spec='-R$libdir'
15862 hardcode_direct=yes
15863 hardcode_shlibpath_var=no
15864 ;;
15865
15866 hpux9*)
15867 if test "$GCC" = yes; then
15868 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'
15869 else
15870 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'
15871 fi
15872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15873 hardcode_libdir_separator=:
15874 hardcode_direct=yes
15875
15876 # hardcode_minus_L: Not really in the search PATH,
15877 # but as the default location of the library.
15878 hardcode_minus_L=yes
15879 export_dynamic_flag_spec='${wl}-E'
15880 ;;
15881
15882 hpux10*)
15883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15885 else
15886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15887 fi
15888 if test "$with_gnu_ld" = no; then
15889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15890 hardcode_libdir_separator=:
15891
15892 hardcode_direct=yes
15893 export_dynamic_flag_spec='${wl}-E'
15894
15895 # hardcode_minus_L: Not really in the search PATH,
15896 # but as the default location of the library.
15897 hardcode_minus_L=yes
15898 fi
15899 ;;
15900
15901 hpux11*)
15902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15903 case $host_cpu in
15904 hppa*64*)
15905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 ;;
15907 ia64*)
15908 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15909 ;;
15910 *)
15911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 esac
15914 else
15915 case $host_cpu in
15916 hppa*64*)
15917 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 ia64*)
15920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15921 ;;
15922 *)
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 esac
15926 fi
15927 if test "$with_gnu_ld" = no; then
15928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15929 hardcode_libdir_separator=:
15930
15931 case $host_cpu in
15932 hppa*64*|ia64*)
15933 hardcode_libdir_flag_spec_ld='+b $libdir'
15934 hardcode_direct=no
15935 hardcode_shlibpath_var=no
15936 ;;
15937 *)
15938 hardcode_direct=yes
15939 export_dynamic_flag_spec='${wl}-E'
15940
15941 # hardcode_minus_L: Not really in the search PATH,
15942 # but as the default location of the library.
15943 hardcode_minus_L=yes
15944 ;;
15945 esac
15946 fi
15947 ;;
15948
15949 irix5* | irix6* | nonstopux*)
15950 if test "$GCC" = yes; then
15951 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'
15952 else
15953 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'
15954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15955 fi
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator=:
15958 link_all_deplibs=yes
15959 ;;
15960
15961 netbsd*)
15962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15964 else
15965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15966 fi
15967 hardcode_libdir_flag_spec='-R$libdir'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15970 ;;
15971
15972 newsos6)
15973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974 hardcode_direct=yes
15975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator=:
15977 hardcode_shlibpath_var=no
15978 ;;
15979
15980 openbsd*)
15981 hardcode_direct=yes
15982 hardcode_shlibpath_var=no
15983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15987 export_dynamic_flag_spec='${wl}-E'
15988 else
15989 case $host_os in
15990 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_libdir_flag_spec='-R$libdir'
15993 ;;
15994 *)
15995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15997 ;;
15998 esac
15999 fi
16000 ;;
16001
16002 os2*)
16003 hardcode_libdir_flag_spec='-L$libdir'
16004 hardcode_minus_L=yes
16005 allow_undefined_flag=unsupported
16006 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'
16007 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16008 ;;
16009
16010 osf3*)
16011 if test "$GCC" = yes; then
16012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16013 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'
16014 else
16015 allow_undefined_flag=' -expect_unresolved \*'
16016 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'
16017 fi
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator=:
16020 ;;
16021
16022 osf4* | osf5*) # as osf3* with the addition of -msym flag
16023 if test "$GCC" = yes; then
16024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16025 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'
16026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 else
16028 allow_undefined_flag=' -expect_unresolved \*'
16029 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'
16030 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16031 $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'
16032
16033 # Both c and cxx compiler support -rpath directly
16034 hardcode_libdir_flag_spec='-rpath $libdir'
16035 fi
16036 hardcode_libdir_separator=:
16037 ;;
16038
16039 solaris*)
16040 no_undefined_flag=' -z text'
16041 if test "$GCC" = yes; then
16042 wlarc='${wl}'
16043 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16046 else
16047 wlarc=''
16048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16051 fi
16052 hardcode_libdir_flag_spec='-R$libdir'
16053 hardcode_shlibpath_var=no
16054 case $host_os in
16055 solaris2.[0-5] | solaris2.[0-5].*) ;;
16056 *)
16057 # The compiler driver will combine linker options so we
16058 # cannot just pass the convience library names through
16059 # without $wl, iff we do not link with $LD.
16060 # Luckily, gcc supports the same syntax we need for Sun Studio.
16061 # Supported since Solaris 2.6 (maybe 2.5.1?)
16062 case $wlarc in
16063 '')
16064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16065 *)
16066 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' ;;
16067 esac ;;
16068 esac
16069 link_all_deplibs=yes
16070 ;;
16071
16072 sunos4*)
16073 if test "x$host_vendor" = xsequent; then
16074 # Use $CC to link under sequent, because it throws in some extra .o
16075 # files that make .init and .fini sections work.
16076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16077 else
16078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16079 fi
16080 hardcode_libdir_flag_spec='-L$libdir'
16081 hardcode_direct=yes
16082 hardcode_minus_L=yes
16083 hardcode_shlibpath_var=no
16084 ;;
16085
16086 sysv4)
16087 case $host_vendor in
16088 sni)
16089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct=yes # is this really true???
16091 ;;
16092 siemens)
16093 ## LD is ld it makes a PLAMLIB
16094 ## CC just makes a GrossModule.
16095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16096 reload_cmds='$CC -r -o $output$reload_objs'
16097 hardcode_direct=no
16098 ;;
16099 motorola)
16100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16102 ;;
16103 esac
16104 runpath_var='LD_RUN_PATH'
16105 hardcode_shlibpath_var=no
16106 ;;
16107
16108 sysv4.3*)
16109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_shlibpath_var=no
16111 export_dynamic_flag_spec='-Bexport'
16112 ;;
16113
16114 sysv4*MP*)
16115 if test -d /usr/nec; then
16116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_shlibpath_var=no
16118 runpath_var=LD_RUN_PATH
16119 hardcode_runpath_var=yes
16120 ld_shlibs=yes
16121 fi
16122 ;;
16123
16124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16125 no_undefined_flag='${wl}-z,text'
16126 archive_cmds_need_lc=no
16127 hardcode_shlibpath_var=no
16128 runpath_var='LD_RUN_PATH'
16129
16130 if test "$GCC" = yes; then
16131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16133 else
16134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 fi
16137 ;;
16138
16139 sysv5* | sco3.2v5* | sco5v6*)
16140 # Note: We can NOT use -z defs as we might desire, because we do not
16141 # link with -lc, and that would cause any symbols used from libc to
16142 # always be unresolved, which means just about no library would
16143 # ever link correctly. If we're not using GNU ld we use -z text
16144 # though, which does catch some bad symbols but isn't as heavy-handed
16145 # as -z defs.
16146 no_undefined_flag='${wl}-z,text'
16147 allow_undefined_flag='${wl}-z,nodefs'
16148 archive_cmds_need_lc=no
16149 hardcode_shlibpath_var=no
16150 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16151 hardcode_libdir_separator=':'
16152 link_all_deplibs=yes
16153 export_dynamic_flag_spec='${wl}-Bexport'
16154 runpath_var='LD_RUN_PATH'
16155
16156 if test "$GCC" = yes; then
16157 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 else
16160 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 fi
16163 ;;
16164
16165 uts4*)
16166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec='-L$libdir'
16168 hardcode_shlibpath_var=no
16169 ;;
16170
16171 *)
16172 ld_shlibs=no
16173 ;;
16174 esac
16175 fi
16176
16177{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16178echo "${ECHO_T}$ld_shlibs" >&6; }
16179test "$ld_shlibs" = no && can_build_shared=no
16180
16181#
16182# Do we need to explicitly link libc?
16183#
16184case "x$archive_cmds_need_lc" in
16185x|xyes)
16186 # Assume -lc should be added
16187 archive_cmds_need_lc=yes
16188
16189 if test "$enable_shared" = yes && test "$GCC" = yes; then
16190 case $archive_cmds in
16191 *'~'*)
16192 # FIXME: we may have to deal with multi-command sequences.
16193 ;;
16194 '$CC '*)
16195 # Test whether the compiler implicitly links with -lc since on some
16196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197 # to ld, don't add -lc before -lgcc.
16198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16200 $rm conftest*
16201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16202
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } 2>conftest.err; then
16208 soname=conftest
16209 lib=conftest
16210 libobjs=conftest.$ac_objext
16211 deplibs=
16212 wl=$lt_prog_compiler_wl
16213 pic_flag=$lt_prog_compiler_pic
16214 compiler_flags=-v
16215 linker_flags=-v
16216 verstring=
16217 output_objdir=.
16218 libname=conftest
16219 lt_save_allow_undefined_flag=$allow_undefined_flag
16220 allow_undefined_flag=
16221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }
16226 then
16227 archive_cmds_need_lc=no
16228 else
16229 archive_cmds_need_lc=yes
16230 fi
16231 allow_undefined_flag=$lt_save_allow_undefined_flag
16232 else
16233 cat conftest.err 1>&5
16234 fi
16235 $rm conftest*
16236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16237echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16238 ;;
16239 esac
16240 fi
16241 ;;
16242esac
16243
16244{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16245echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16246library_names_spec=
16247libname_spec='lib$name'
16248soname_spec=
16249shrext_cmds=".so"
16250postinstall_cmds=
16251postuninstall_cmds=
16252finish_cmds=
16253finish_eval=
16254shlibpath_var=
16255shlibpath_overrides_runpath=unknown
16256version_type=none
16257dynamic_linker="$host_os ld.so"
16258sys_lib_dlsearch_path_spec="/lib /usr/lib"
16259if test "$GCC" = yes; then
16260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16262 # if the path contains ";" then we assume it to be the separator
16263 # otherwise default to the standard path separator (i.e. ":") - it is
16264 # assumed that no part of a normal pathname contains ";" but that should
16265 # okay in the real world where ";" in dirpaths is itself problematic.
16266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16267 else
16268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16269 fi
16270else
16271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16272fi
16273need_lib_prefix=unknown
16274hardcode_into_libs=no
16275
16276# when you set need_version to no, make sure it does not cause -set_version
16277# flags to be left without arguments
16278need_version=unknown
16279
16280case $host_os in
16281aix3*)
16282 version_type=linux
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16284 shlibpath_var=LIBPATH
16285
16286 # AIX 3 has no versioning support, so we append a major version to the name.
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 ;;
16289
16290aix4* | aix5*)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 hardcode_into_libs=yes
16295 if test "$host_cpu" = ia64; then
16296 # AIX 5 supports IA64
16297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 else
16300 # With GCC up to 2.95.x, collect2 would create an import file
16301 # for dependence libraries. The import file would start with
16302 # the line `#! .'. This would cause the generated library to
16303 # depend on `.', always an invalid library. This was fixed in
16304 # development snapshots of GCC prior to 3.0.
16305 case $host_os in
16306 aix4 | aix4.[01] | aix4.[01].*)
16307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16308 echo ' yes '
16309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16310 :
16311 else
16312 can_build_shared=no
16313 fi
16314 ;;
16315 esac
16316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317 # soname into executable. Probably we can add versioning support to
16318 # collect2, so additional links can be useful in future.
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321 # instead of lib<name>.a to let people know that these are not
16322 # typical AIX shared libraries.
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 else
16325 # We preserve .a as extension for shared libraries through AIX4.2
16326 # and later when we are not doing run time linking.
16327 library_names_spec='${libname}${release}.a $libname.a'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 fi
16330 shlibpath_var=LIBPATH
16331 fi
16332 ;;
16333
16334amigaos*)
16335 library_names_spec='$libname.ixlibrary $libname.a'
16336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16337 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'
16338 ;;
16339
16340beos*)
16341 library_names_spec='${libname}${shared_ext}'
16342 dynamic_linker="$host_os ld.so"
16343 shlibpath_var=LIBRARY_PATH
16344 ;;
16345
16346bsdi[45]*)
16347 version_type=linux
16348 need_version=no
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16355 # the default ld.so.conf also contains /usr/contrib/lib and
16356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16357 # libtool to hard-code these into programs
16358 ;;
16359
16360cygwin* | mingw* | pw32*)
16361 version_type=windows
16362 shrext_cmds=".dll"
16363 need_version=no
16364 need_lib_prefix=no
16365
16366 case $GCC,$host_os in
16367 yes,cygwin* | yes,mingw* | yes,pw32*)
16368 library_names_spec='$libname.dll.a'
16369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370 postinstall_cmds='base_file=`basename \${file}`~
16371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16372 dldir=$destdir/`dirname \$dlpath`~
16373 test -d \$dldir || mkdir -p \$dldir~
16374 $install_prog $dir/$dlname \$dldir/$dlname~
16375 chmod a+x \$dldir/$dlname'
16376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16377 dlpath=$dir/\$dldll~
16378 $rm \$dlpath'
16379 shlibpath_overrides_runpath=yes
16380
16381 case $host_os in
16382 cygwin*)
16383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16386 ;;
16387 mingw*)
16388 # MinGW DLLs use traditional 'lib' prefix
16389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16392 # It is most probably a Windows format PATH printed by
16393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16394 # path with ; separators, and with drive letters. We can handle the
16395 # drive letters (cygwin fileutils understands them), so leave them,
16396 # especially as we might pass files found there to a mingw objdump,
16397 # which wouldn't understand a cygwinified path. Ahh.
16398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399 else
16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16401 fi
16402 ;;
16403 pw32*)
16404 # pw32 DLLs use 'pw' prefix rather than 'lib'
16405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16406 ;;
16407 esac
16408 ;;
16409
16410 *)
16411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16412 ;;
16413 esac
16414 dynamic_linker='Win32 ld.exe'
16415 # FIXME: first we should search . and the directory the executable is in
16416 shlibpath_var=PATH
16417 ;;
16418
16419darwin* | rhapsody*)
16420 dynamic_linker="$host_os dyld"
16421 version_type=darwin
16422 need_lib_prefix=no
16423 need_version=no
16424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425 soname_spec='${libname}${release}${major}$shared_ext'
16426 shlibpath_overrides_runpath=yes
16427 shlibpath_var=DYLD_LIBRARY_PATH
16428 shrext_cmds='.dylib'
16429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16430 if test "$GCC" = yes; then
16431 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"`
16432 else
16433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16434 fi
16435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16436 ;;
16437
16438dgux*)
16439 version_type=linux
16440 need_lib_prefix=no
16441 need_version=no
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 ;;
16446
16447freebsd1*)
16448 dynamic_linker=no
16449 ;;
16450
16451kfreebsd*-gnu)
16452 version_type=linux
16453 need_lib_prefix=no
16454 need_version=no
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=no
16459 hardcode_into_libs=yes
16460 dynamic_linker='GNU ld.so'
16461 ;;
16462
16463freebsd* | dragonfly*)
16464 # DragonFly does not have aout. When/if they implement a new
16465 # versioning mechanism, adjust this.
16466 if test -x /usr/bin/objformat; then
16467 objformat=`/usr/bin/objformat`
16468 else
16469 case $host_os in
16470 freebsd[123]*) objformat=aout ;;
16471 *) objformat=elf ;;
16472 esac
16473 fi
16474 version_type=freebsd-$objformat
16475 case $version_type in
16476 freebsd-elf*)
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478 need_version=no
16479 need_lib_prefix=no
16480 ;;
16481 freebsd-*)
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16483 need_version=yes
16484 ;;
16485 esac
16486 shlibpath_var=LD_LIBRARY_PATH
16487 case $host_os in
16488 freebsd2*)
16489 shlibpath_overrides_runpath=yes
16490 ;;
16491 freebsd3.[01]* | freebsdelf3.[01]*)
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16494 ;;
16495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16497 shlibpath_overrides_runpath=no
16498 hardcode_into_libs=yes
16499 ;;
16500 freebsd*) # from 4.6 on
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16503 ;;
16504 esac
16505 ;;
16506
16507gnu*)
16508 version_type=linux
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 hardcode_into_libs=yes
16515 ;;
16516
16517hpux9* | hpux10* | hpux11*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
16520 version_type=sunos
16521 need_lib_prefix=no
16522 need_version=no
16523 case $host_cpu in
16524 ia64*)
16525 shrext_cmds='.so'
16526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.so"
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
16533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534 else
16535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536 fi
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538 ;;
16539 hppa*64*)
16540 shrext_cmds='.sl'
16541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 ;;
16550 *)
16551 shrext_cmds='.sl'
16552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=SHLIB_PATH
16554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 ;;
16558 esac
16559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560 postinstall_cmds='chmod 555 $lib'
16561 ;;
16562
16563interix3*)
16564 version_type=linux
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16573 ;;
16574
16575irix5* | irix6* | nonstopux*)
16576 case $host_os in
16577 nonstopux*) version_type=nonstopux ;;
16578 *)
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16580 version_type=linux
16581 else
16582 version_type=irix
16583 fi ;;
16584 esac
16585 need_lib_prefix=no
16586 need_version=no
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16589 case $host_os in
16590 irix5* | nonstopux*)
16591 libsuff= shlibsuff=
16592 ;;
16593 *)
16594 case $LD in # libtool.m4 will add one of these switches to LD
16595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596 libsuff= shlibsuff= libmagic=32-bit;;
16597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598 libsuff=32 shlibsuff=N32 libmagic=N32;;
16599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601 *) libsuff= shlibsuff= libmagic=never-match;;
16602 esac
16603 ;;
16604 esac
16605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606 shlibpath_overrides_runpath=no
16607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609 hardcode_into_libs=yes
16610 ;;
16611
16612# No shared lib support for Linux oldld, aout, or coff.
16613linux*oldld* | linux*aout* | linux*coff*)
16614 dynamic_linker=no
16615 ;;
16616
16617# This must be Linux ELF.
16618linux*)
16619 version_type=linux
16620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 # This implies no fast_install, which is unacceptable.
16628 # Some rework will be needed to allow for fast_install
16629 # before this can be enabled.
16630 hardcode_into_libs=yes
16631
16632 # Append ld.so.conf contents to the search path
16633 if test -f /etc/ld.so.conf; then
16634 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' ' '`
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16636 fi
16637
16638 # We used to test for /lib/ld.so.1 and disable shared libraries on
16639 # powerpc, because MkLinux only supported shared libraries with the
16640 # GNU dynamic linker. Since this was broken with cross compilers,
16641 # most powerpc-linux boxes support dynamic linking these days and
16642 # people can always --disable-shared, the test was removed, and we
16643 # assume the GNU/Linux dynamic linker is in use.
16644 dynamic_linker='GNU/Linux ld.so'
16645 ;;
16646
16647knetbsd*-gnu)
16648 version_type=linux
16649 need_lib_prefix=no
16650 need_version=no
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=no
16655 hardcode_into_libs=yes
16656 dynamic_linker='GNU ld.so'
16657 ;;
16658
16659netbsd*)
16660 version_type=sunos
16661 need_lib_prefix=no
16662 need_version=no
16663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16666 dynamic_linker='NetBSD (a.out) ld.so'
16667 else
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16669 soname_spec='${libname}${release}${shared_ext}$major'
16670 dynamic_linker='NetBSD ld.elf_so'
16671 fi
16672 shlibpath_var=LD_LIBRARY_PATH
16673 shlibpath_overrides_runpath=yes
16674 hardcode_into_libs=yes
16675 ;;
16676
16677newsos6)
16678 version_type=linux
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=yes
16682 ;;
16683
16684nto-qnx*)
16685 version_type=linux
16686 need_lib_prefix=no
16687 need_version=no
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 ;;
16693
16694openbsd*)
16695 version_type=sunos
16696 sys_lib_dlsearch_path_spec="/usr/lib"
16697 need_lib_prefix=no
16698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16699 case $host_os in
16700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16701 *) need_version=no ;;
16702 esac
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16707 case $host_os in
16708 openbsd2.[89] | openbsd2.[89].*)
16709 shlibpath_overrides_runpath=no
16710 ;;
16711 *)
16712 shlibpath_overrides_runpath=yes
16713 ;;
16714 esac
16715 else
16716 shlibpath_overrides_runpath=yes
16717 fi
16718 ;;
16719
16720os2*)
16721 libname_spec='$name'
16722 shrext_cmds=".dll"
16723 need_lib_prefix=no
16724 library_names_spec='$libname${shared_ext} $libname.a'
16725 dynamic_linker='OS/2 ld.exe'
16726 shlibpath_var=LIBPATH
16727 ;;
16728
16729osf3* | osf4* | osf5*)
16730 version_type=osf
16731 need_lib_prefix=no
16732 need_version=no
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16738 ;;
16739
16740solaris*)
16741 version_type=linux
16742 need_lib_prefix=no
16743 need_version=no
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 soname_spec='${libname}${release}${shared_ext}$major'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16749 # ldd complains unless libraries are executable
16750 postinstall_cmds='chmod +x $lib'
16751 ;;
16752
16753sunos4*)
16754 version_type=sunos
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 if test "$with_gnu_ld" = yes; then
16760 need_lib_prefix=no
16761 fi
16762 need_version=yes
16763 ;;
16764
16765sysv4 | sysv4.3*)
16766 version_type=linux
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 case $host_vendor in
16771 sni)
16772 shlibpath_overrides_runpath=no
16773 need_lib_prefix=no
16774 export_dynamic_flag_spec='${wl}-Blargedynsym'
16775 runpath_var=LD_RUN_PATH
16776 ;;
16777 siemens)
16778 need_lib_prefix=no
16779 ;;
16780 motorola)
16781 need_lib_prefix=no
16782 need_version=no
16783 shlibpath_overrides_runpath=no
16784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16785 ;;
16786 esac
16787 ;;
16788
16789sysv4*MP*)
16790 if test -d /usr/nec ;then
16791 version_type=linux
16792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16793 soname_spec='$libname${shared_ext}.$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 fi
16796 ;;
16797
16798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16799 version_type=freebsd-elf
16800 need_lib_prefix=no
16801 need_version=no
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 hardcode_into_libs=yes
16806 if test "$with_gnu_ld" = yes; then
16807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16808 shlibpath_overrides_runpath=no
16809 else
16810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16811 shlibpath_overrides_runpath=yes
16812 case $host_os in
16813 sco3.2v5*)
16814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16815 ;;
16816 esac
16817 fi
16818 sys_lib_dlsearch_path_spec='/usr/lib'
16819 ;;
16820
16821uts4*)
16822 version_type=linux
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 shlibpath_var=LD_LIBRARY_PATH
16826 ;;
16827
16828*)
16829 dynamic_linker=no
16830 ;;
16831esac
16832{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16833echo "${ECHO_T}$dynamic_linker" >&6; }
16834test "$dynamic_linker" = no && can_build_shared=no
16835
16836variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16837if test "$GCC" = yes; then
16838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16839fi
16840
16841{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16842echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16843hardcode_action=
16844if test -n "$hardcode_libdir_flag_spec" || \
16845 test -n "$runpath_var" || \
16846 test "X$hardcode_automatic" = "Xyes" ; then
16847
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no &&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action=relink
16857 else
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action=immediate
16860 fi
16861else
16862 # We cannot hardcode anything, or else we can only hardcode existing
16863 # directories.
16864 hardcode_action=unsupported
16865fi
16866{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867echo "${ECHO_T}$hardcode_action" >&6; }
16868
16869if test "$hardcode_action" = relink; then
16870 # Fast installation is not supported
16871 enable_fast_install=no
16872elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no; then
16874 # Fast installation is not necessary
16875 enable_fast_install=needless
16876fi
16877
16878striplib=
16879old_striplib=
16880{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16885 { echo "$as_me:$LINENO: result: yes" >&5
16886echo "${ECHO_T}yes" >&6; }
16887else
16888# FIXME - insert some real tests, host_os isn't really good enough
16889 case $host_os in
16890 darwin*)
16891 if test -n "$STRIP" ; then
16892 striplib="$STRIP -x"
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894echo "${ECHO_T}yes" >&6; }
16895 else
16896 { echo "$as_me:$LINENO: result: no" >&5
16897echo "${ECHO_T}no" >&6; }
16898fi
16899 ;;
16900 *)
16901 { echo "$as_me:$LINENO: result: no" >&5
16902echo "${ECHO_T}no" >&6; }
16903 ;;
16904 esac
16905fi
16906
16907if test "x$enable_dlopen" != xyes; then
16908 enable_dlopen=unknown
16909 enable_dlopen_self=unknown
16910 enable_dlopen_self_static=unknown
16911else
16912 lt_cv_dlopen=no
16913 lt_cv_dlopen_libs=
16914
16915 case $host_os in
16916 beos*)
16917 lt_cv_dlopen="load_add_on"
16918 lt_cv_dlopen_libs=
16919 lt_cv_dlopen_self=yes
16920 ;;
16921
16922 mingw* | pw32*)
16923 lt_cv_dlopen="LoadLibrary"
16924 lt_cv_dlopen_libs=
16925 ;;
16926
16927 cygwin*)
16928 lt_cv_dlopen="dlopen"
16929 lt_cv_dlopen_libs=
16930 ;;
16931
16932 darwin*)
16933 # if libdl is installed we need to link against it
16934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938else
16939 ac_check_lib_save_LIBS=$LIBS
16940LIBS="-ldl $LIBS"
16941cat >conftest.$ac_ext <<_ACEOF
16942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
16947
16948/* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16951#ifdef __cplusplus
16952extern "C"
16953#endif
16954char dlopen ();
16955int
16956main ()
16957{
16958return dlopen ();
16959 ;
16960 return 0;
16961}
16962_ACEOF
16963rm -f conftest.$ac_objext conftest$ac_exeext
16964if { (ac_try="$ac_link"
16965case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968esac
16969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991esac
16992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016997 ac_cv_lib_dl_dlopen=yes
16998else
16999 echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ac_cv_lib_dl_dlopen=no
17003fi
17004
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017005rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017006 conftest$ac_exeext conftest.$ac_ext
17007LIBS=$ac_check_lib_save_LIBS
17008fi
17009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17011if test $ac_cv_lib_dl_dlopen = yes; then
17012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17013else
17014
17015 lt_cv_dlopen="dyld"
17016 lt_cv_dlopen_libs=
17017 lt_cv_dlopen_self=yes
17018
17019fi
17020
17021 ;;
17022
17023 *)
17024 { echo "$as_me:$LINENO: checking for shl_load" >&5
17025echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17026if test "${ac_cv_func_shl_load+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037#define shl_load innocuous_shl_load
17038
17039/* System header to define __stub macros and hopefully few prototypes,
17040 which can conflict with char shl_load (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
17043
17044#ifdef __STDC__
17045# include <limits.h>
17046#else
17047# include <assert.h>
17048#endif
17049
17050#undef shl_load
17051
17052/* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
17055#ifdef __cplusplus
17056extern "C"
17057#endif
17058char shl_load ();
17059/* The GNU C library defines this for functions which it implements
17060 to always fail with ENOSYS. Some functions are actually named
17061 something starting with __ and the normal name is an alias. */
17062#if defined __stub_shl_load || defined __stub___shl_load
17063choke me
17064#endif
17065
17066int
17067main ()
17068{
17069return shl_load ();
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074rm -f conftest.$ac_objext conftest$ac_exeext
17075if { (ac_try="$ac_link"
17076case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_link") 2>conftest.er1
17082 ac_status=$?
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017087 (exit $ac_status); } &&
17088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102esac
17103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017108 ac_cv_func_shl_load=yes
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_cv_func_shl_load=no
17114fi
17115
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017116rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017117 conftest$ac_exeext conftest.$ac_ext
17118fi
17119{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17121if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen="shl_load"
17123else
17124 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17126if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128else
17129 ac_check_lib_save_LIBS=$LIBS
17130LIBS="-ldld $LIBS"
17131cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137
17138/* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17141#ifdef __cplusplus
17142extern "C"
17143#endif
17144char shl_load ();
17145int
17146main ()
17147{
17148return shl_load ();
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext conftest$ac_exeext
17154if { (ac_try="$ac_link"
17155case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017187 ac_cv_lib_dld_shl_load=yes
17188else
17189 echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_cv_lib_dld_shl_load=no
17193fi
17194
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017195rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017196 conftest$ac_exeext conftest.$ac_ext
17197LIBS=$ac_check_lib_save_LIBS
17198fi
17199{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17200echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17201if test $ac_cv_lib_dld_shl_load = yes; then
17202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17203else
17204 { echo "$as_me:$LINENO: checking for dlopen" >&5
17205echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17206if test "${ac_cv_func_dlopen+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208else
17209 cat >conftest.$ac_ext <<_ACEOF
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217#define dlopen innocuous_dlopen
17218
17219/* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char dlopen (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
17223
17224#ifdef __STDC__
17225# include <limits.h>
17226#else
17227# include <assert.h>
17228#endif
17229
17230#undef dlopen
17231
17232/* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17235#ifdef __cplusplus
17236extern "C"
17237#endif
17238char dlopen ();
17239/* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
17242#if defined __stub_dlopen || defined __stub___dlopen
17243choke me
17244#endif
17245
17246int
17247main ()
17248{
17249return dlopen ();
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest.$ac_objext conftest$ac_exeext
17255if { (ac_try="$ac_link"
17256case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17282esac
17283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017288 ac_cv_func_dlopen=yes
17289else
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_cv_func_dlopen=no
17294fi
17295
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017296rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017297 conftest$ac_exeext conftest.$ac_ext
17298fi
17299{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17300echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17301if test $ac_cv_func_dlopen = yes; then
17302 lt_cv_dlopen="dlopen"
17303else
17304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17305echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17306if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309 ac_check_lib_save_LIBS=$LIBS
17310LIBS="-ldl $LIBS"
17311cat >conftest.$ac_ext <<_ACEOF
17312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
17317
17318/* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17321#ifdef __cplusplus
17322extern "C"
17323#endif
17324char dlopen ();
17325int
17326main ()
17327{
17328return dlopen ();
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext conftest$ac_exeext
17334if { (ac_try="$ac_link"
17335case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017367 ac_cv_lib_dl_dlopen=yes
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_cv_lib_dl_dlopen=no
17373fi
17374
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017375rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017376 conftest$ac_exeext conftest.$ac_ext
17377LIBS=$ac_check_lib_save_LIBS
17378fi
17379{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17381if test $ac_cv_lib_dl_dlopen = yes; then
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383else
17384 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17385echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17386if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
17389 ac_check_lib_save_LIBS=$LIBS
17390LIBS="-lsvld $LIBS"
17391cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
17397
17398/* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404char dlopen ();
17405int
17406main ()
17407{
17408return dlopen ();
17409 ;
17410 return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
17414if { (ac_try="$ac_link"
17415case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
17419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest$ac_exeext'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017447 ac_cv_lib_svld_dlopen=yes
17448else
17449 echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ac_cv_lib_svld_dlopen=no
17453fi
17454
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017455rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017456 conftest$ac_exeext conftest.$ac_ext
17457LIBS=$ac_check_lib_save_LIBS
17458fi
17459{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17460echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17461if test $ac_cv_lib_svld_dlopen = yes; then
17462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17463else
17464 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17465echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17466if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469 ac_check_lib_save_LIBS=$LIBS
17470LIBS="-ldld $LIBS"
17471cat >conftest.$ac_ext <<_ACEOF
17472/* confdefs.h. */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h. */
17477
17478/* Override any GCC internal prototype to avoid an error.
17479 Use char because int might match the return type of a GCC
17480 builtin and then its argument prototype would still apply. */
17481#ifdef __cplusplus
17482extern "C"
17483#endif
17484char dld_link ();
17485int
17486main ()
17487{
17488return dld_link ();
17489 ;
17490 return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext conftest$ac_exeext
17494if { (ac_try="$ac_link"
17495case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521esac
17522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017527 ac_cv_lib_dld_dld_link=yes
17528else
17529 echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 ac_cv_lib_dld_dld_link=no
17533fi
17534
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017535rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017536 conftest$ac_exeext conftest.$ac_ext
17537LIBS=$ac_check_lib_save_LIBS
17538fi
17539{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17540echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17541if test $ac_cv_lib_dld_dld_link = yes; then
17542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17543fi
17544
17545
17546fi
17547
17548
17549fi
17550
17551
17552fi
17553
17554
17555fi
17556
17557
17558fi
17559
17560 ;;
17561 esac
17562
17563 if test "x$lt_cv_dlopen" != xno; then
17564 enable_dlopen=yes
17565 else
17566 enable_dlopen=no
17567 fi
17568
17569 case $lt_cv_dlopen in
17570 dlopen)
17571 save_CPPFLAGS="$CPPFLAGS"
17572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17573
17574 save_LDFLAGS="$LDFLAGS"
17575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17576
17577 save_LIBS="$LIBS"
17578 LIBS="$lt_cv_dlopen_libs $LIBS"
17579
17580 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17581echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17582if test "${lt_cv_dlopen_self+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584else
17585 if test "$cross_compiling" = yes; then :
17586 lt_cv_dlopen_self=cross
17587else
17588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17589 lt_status=$lt_dlunknown
17590 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000017591#line 17591 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017592#include "confdefs.h"
17593
17594#if HAVE_DLFCN_H
17595#include <dlfcn.h>
17596#endif
17597
17598#include <stdio.h>
17599
17600#ifdef RTLD_GLOBAL
17601# define LT_DLGLOBAL RTLD_GLOBAL
17602#else
17603# ifdef DL_GLOBAL
17604# define LT_DLGLOBAL DL_GLOBAL
17605# else
17606# define LT_DLGLOBAL 0
17607# endif
17608#endif
17609
17610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17611 find out it does not work in some platform. */
17612#ifndef LT_DLLAZY_OR_NOW
17613# ifdef RTLD_LAZY
17614# define LT_DLLAZY_OR_NOW RTLD_LAZY
17615# else
17616# ifdef DL_LAZY
17617# define LT_DLLAZY_OR_NOW DL_LAZY
17618# else
17619# ifdef RTLD_NOW
17620# define LT_DLLAZY_OR_NOW RTLD_NOW
17621# else
17622# ifdef DL_NOW
17623# define LT_DLLAZY_OR_NOW DL_NOW
17624# else
17625# define LT_DLLAZY_OR_NOW 0
17626# endif
17627# endif
17628# endif
17629# endif
17630#endif
17631
17632#ifdef __cplusplus
17633extern "C" void exit (int);
17634#endif
17635
17636void fnord() { int i=42;}
17637int main ()
17638{
17639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17640 int status = $lt_dlunknown;
17641
17642 if (self)
17643 {
17644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17646 /* dlclose (self); */
17647 }
17648 else
17649 puts (dlerror ());
17650
17651 exit (status);
17652}
17653EOF
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659 (./conftest; exit; ) >&5 2>/dev/null
17660 lt_status=$?
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17665 esac
17666 else :
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17669 fi
17670fi
17671rm -fr conftest*
17672
17673
17674fi
17675{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17677
17678 if test "x$lt_cv_dlopen_self" = xyes; then
17679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17680 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17682if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684else
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17687else
17688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000017691#line 17691 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017692#include "confdefs.h"
17693
17694#if HAVE_DLFCN_H
17695#include <dlfcn.h>
17696#endif
17697
17698#include <stdio.h>
17699
17700#ifdef RTLD_GLOBAL
17701# define LT_DLGLOBAL RTLD_GLOBAL
17702#else
17703# ifdef DL_GLOBAL
17704# define LT_DLGLOBAL DL_GLOBAL
17705# else
17706# define LT_DLGLOBAL 0
17707# endif
17708#endif
17709
17710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712#ifndef LT_DLLAZY_OR_NOW
17713# ifdef RTLD_LAZY
17714# define LT_DLLAZY_OR_NOW RTLD_LAZY
17715# else
17716# ifdef DL_LAZY
17717# define LT_DLLAZY_OR_NOW DL_LAZY
17718# else
17719# ifdef RTLD_NOW
17720# define LT_DLLAZY_OR_NOW RTLD_NOW
17721# else
17722# ifdef DL_NOW
17723# define LT_DLLAZY_OR_NOW DL_NOW
17724# else
17725# define LT_DLLAZY_OR_NOW 0
17726# endif
17727# endif
17728# endif
17729# endif
17730#endif
17731
17732#ifdef __cplusplus
17733extern "C" void exit (int);
17734#endif
17735
17736void fnord() { int i=42;}
17737int main ()
17738{
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17741
17742 if (self)
17743 {
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17747 }
17748 else
17749 puts (dlerror ());
17750
17751 exit (status);
17752}
17753EOF
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17759 (./conftest; exit; ) >&5 2>/dev/null
17760 lt_status=$?
17761 case x$lt_status in
17762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17765 esac
17766 else :
17767 # compilation failed
17768 lt_cv_dlopen_self_static=no
17769 fi
17770fi
17771rm -fr conftest*
17772
17773
17774fi
17775{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17776echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17777 fi
17778
17779 CPPFLAGS="$save_CPPFLAGS"
17780 LDFLAGS="$save_LDFLAGS"
17781 LIBS="$save_LIBS"
17782 ;;
17783 esac
17784
17785 case $lt_cv_dlopen_self in
17786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17787 *) enable_dlopen_self=unknown ;;
17788 esac
17789
17790 case $lt_cv_dlopen_self_static in
17791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17792 *) enable_dlopen_self_static=unknown ;;
17793 esac
17794fi
17795
17796
17797# Report which library types will actually be built
17798{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17799echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17800{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17801echo "${ECHO_T}$can_build_shared" >&6; }
17802
17803{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17804echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17805test "$can_build_shared" = "no" && enable_shared=no
17806
17807# On AIX, shared libraries and static libraries use the same namespace, and
17808# are all built from PIC.
17809case $host_os in
17810aix3*)
17811 test "$enable_shared" = yes && enable_static=no
17812 if test -n "$RANLIB"; then
17813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17814 postinstall_cmds='$RANLIB $lib'
17815 fi
17816 ;;
17817
17818aix4* | aix5*)
17819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820 test "$enable_shared" = yes && enable_static=no
17821 fi
17822 ;;
17823esac
17824{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17825echo "${ECHO_T}$enable_shared" >&6; }
17826
17827{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17828echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17829# Make sure either enable_shared or enable_static is yes.
17830test "$enable_shared" = yes || enable_static=yes
17831{ echo "$as_me:$LINENO: result: $enable_static" >&5
17832echo "${ECHO_T}$enable_static" >&6; }
17833
17834# The else clause should only fire when bootstrapping the
17835# libtool distribution, otherwise you forgot to ship ltmain.sh
17836# with your package, and you will get complaints that there are
17837# no rules to generate ltmain.sh.
17838if test -f "$ltmain"; then
17839 # See if we are running on zsh, and set the options which allow our commands through
17840 # without removal of \ escapes.
17841 if test -n "${ZSH_VERSION+set}" ; then
17842 setopt NO_GLOB_SUBST
17843 fi
17844 # Now quote all the things that may contain metacharacters while being
17845 # careful not to overquote the AC_SUBSTed values. We take copies of the
17846 # variables and quote the copies for generation of the libtool script.
17847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17848 SED SHELL STRIP \
17849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851 deplibs_check_method reload_flag reload_cmds need_locks \
17852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853 lt_cv_sys_global_symbol_to_c_name_address \
17854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855 old_postinstall_cmds old_postuninstall_cmds \
17856 compiler \
17857 CC \
17858 LD \
17859 lt_prog_compiler_wl \
17860 lt_prog_compiler_pic \
17861 lt_prog_compiler_static \
17862 lt_prog_compiler_no_builtin_flag \
17863 export_dynamic_flag_spec \
17864 thread_safe_flag_spec \
17865 whole_archive_flag_spec \
17866 enable_shared_with_static_runtimes \
17867 old_archive_cmds \
17868 old_archive_from_new_cmds \
17869 predep_objects \
17870 postdep_objects \
17871 predeps \
17872 postdeps \
17873 compiler_lib_search_path \
17874 archive_cmds \
17875 archive_expsym_cmds \
17876 postinstall_cmds \
17877 postuninstall_cmds \
17878 old_archive_from_expsyms_cmds \
17879 allow_undefined_flag \
17880 no_undefined_flag \
17881 export_symbols_cmds \
17882 hardcode_libdir_flag_spec \
17883 hardcode_libdir_flag_spec_ld \
17884 hardcode_libdir_separator \
17885 hardcode_automatic \
17886 module_cmds \
17887 module_expsym_cmds \
17888 lt_cv_prog_compiler_c_o \
17889 exclude_expsyms \
17890 include_expsyms; do
17891
17892 case $var in
17893 old_archive_cmds | \
17894 old_archive_from_new_cmds | \
17895 archive_cmds | \
17896 archive_expsym_cmds | \
17897 module_cmds | \
17898 module_expsym_cmds | \
17899 old_archive_from_expsyms_cmds | \
17900 export_symbols_cmds | \
17901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17902 postinstall_cmds | postuninstall_cmds | \
17903 old_postinstall_cmds | old_postuninstall_cmds | \
17904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17905 # Double-quote double-evaled strings.
17906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17907 ;;
17908 *)
17909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17910 ;;
17911 esac
17912 done
17913
17914 case $lt_echo in
17915 *'\$0 --fallback-echo"')
17916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17917 ;;
17918 esac
17919
17920cfgfile="${ofile}T"
17921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17922 $rm -f "$cfgfile"
17923 { echo "$as_me:$LINENO: creating $ofile" >&5
17924echo "$as_me: creating $ofile" >&6;}
17925
17926 cat <<__EOF__ >> "$cfgfile"
17927#! $SHELL
17928
17929# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17930# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17932#
17933# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17934# Free Software Foundation, Inc.
17935#
17936# This file is part of GNU Libtool:
17937# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17938#
17939# This program is free software; you can redistribute it and/or modify
17940# it under the terms of the GNU General Public License as published by
17941# the Free Software Foundation; either version 2 of the License, or
17942# (at your option) any later version.
17943#
17944# This program is distributed in the hope that it will be useful, but
17945# WITHOUT ANY WARRANTY; without even the implied warranty of
17946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17947# General Public License for more details.
17948#
17949# You should have received a copy of the GNU General Public License
17950# along with this program; if not, write to the Free Software
17951# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17952#
17953# As a special exception to the GNU General Public License, if you
17954# distribute this file as part of a program that contains a
17955# configuration script generated by Autoconf, you may include it under
17956# the same distribution terms that you use for the rest of that program.
17957
17958# A sed program that does not truncate output.
17959SED=$lt_SED
17960
17961# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17962Xsed="$SED -e 1s/^X//"
17963
17964# The HP-UX ksh and POSIX shell print the target directory to stdout
17965# if CDPATH is set.
17966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17967
17968# The names of the tagged configurations supported by this script.
17969available_tags=
17970
17971# ### BEGIN LIBTOOL CONFIG
17972
17973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17974
17975# Shell to use when invoking shell scripts.
17976SHELL=$lt_SHELL
17977
17978# Whether or not to build shared libraries.
17979build_libtool_libs=$enable_shared
17980
17981# Whether or not to build static libraries.
17982build_old_libs=$enable_static
17983
17984# Whether or not to add -lc for building shared libraries.
17985build_libtool_need_lc=$archive_cmds_need_lc
17986
17987# Whether or not to disallow shared libs when runtime libs are static
17988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17989
17990# Whether or not to optimize for fast installation.
17991fast_install=$enable_fast_install
17992
17993# The host system.
17994host_alias=$host_alias
17995host=$host
17996host_os=$host_os
17997
17998# The build system.
17999build_alias=$build_alias
18000build=$build
18001build_os=$build_os
18002
18003# An echo program that does not interpret backslashes.
18004echo=$lt_echo
18005
18006# The archiver.
18007AR=$lt_AR
18008AR_FLAGS=$lt_AR_FLAGS
18009
18010# A C compiler.
18011LTCC=$lt_LTCC
18012
18013# LTCC compiler flags.
18014LTCFLAGS=$lt_LTCFLAGS
18015
18016# A language-specific compiler.
18017CC=$lt_compiler
18018
18019# Is the compiler the GNU C compiler?
18020with_gcc=$GCC
18021
18022# An ERE matcher.
18023EGREP=$lt_EGREP
18024
18025# The linker used to build libraries.
18026LD=$lt_LD
18027
18028# Whether we need hard or soft links.
18029LN_S=$lt_LN_S
18030
18031# A BSD-compatible nm program.
18032NM=$lt_NM
18033
18034# A symbol stripping program
18035STRIP=$lt_STRIP
18036
18037# Used to examine libraries when file_magic_cmd begins "file"
18038MAGIC_CMD=$MAGIC_CMD
18039
18040# Used on cygwin: DLL creation program.
18041DLLTOOL="$DLLTOOL"
18042
18043# Used on cygwin: object dumper.
18044OBJDUMP="$OBJDUMP"
18045
18046# Used on cygwin: assembler.
18047AS="$AS"
18048
18049# The name of the directory that contains temporary libtool files.
18050objdir=$objdir
18051
18052# How to create reloadable object files.
18053reload_flag=$lt_reload_flag
18054reload_cmds=$lt_reload_cmds
18055
18056# How to pass a linker flag through the compiler.
18057wl=$lt_lt_prog_compiler_wl
18058
18059# Object file suffix (normally "o").
18060objext="$ac_objext"
18061
18062# Old archive suffix (normally "a").
18063libext="$libext"
18064
18065# Shared library suffix (normally ".so").
18066shrext_cmds='$shrext_cmds'
18067
18068# Executable file suffix (normally "").
18069exeext="$exeext"
18070
18071# Additional compiler flags for building library objects.
18072pic_flag=$lt_lt_prog_compiler_pic
18073pic_mode=$pic_mode
18074
18075# What is the maximum length of a command?
18076max_cmd_len=$lt_cv_sys_max_cmd_len
18077
18078# Does compiler simultaneously support -c and -o options?
18079compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18080
18081# Must we lock files when doing compilation?
18082need_locks=$lt_need_locks
18083
18084# Do we need the lib prefix for modules?
18085need_lib_prefix=$need_lib_prefix
18086
18087# Do we need a version for libraries?
18088need_version=$need_version
18089
18090# Whether dlopen is supported.
18091dlopen_support=$enable_dlopen
18092
18093# Whether dlopen of programs is supported.
18094dlopen_self=$enable_dlopen_self
18095
18096# Whether dlopen of statically linked programs is supported.
18097dlopen_self_static=$enable_dlopen_self_static
18098
18099# Compiler flag to prevent dynamic linking.
18100link_static_flag=$lt_lt_prog_compiler_static
18101
18102# Compiler flag to turn off builtin functions.
18103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18104
18105# Compiler flag to allow reflexive dlopens.
18106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18107
18108# Compiler flag to generate shared objects directly from archives.
18109whole_archive_flag_spec=$lt_whole_archive_flag_spec
18110
18111# Compiler flag to generate thread-safe objects.
18112thread_safe_flag_spec=$lt_thread_safe_flag_spec
18113
18114# Library versioning type.
18115version_type=$version_type
18116
18117# Format of library name prefix.
18118libname_spec=$lt_libname_spec
18119
18120# List of archive names. First name is the real one, the rest are links.
18121# The last name is the one that the linker finds with -lNAME.
18122library_names_spec=$lt_library_names_spec
18123
18124# The coded name of the library, if different from the real name.
18125soname_spec=$lt_soname_spec
18126
18127# Commands used to build and install an old-style archive.
18128RANLIB=$lt_RANLIB
18129old_archive_cmds=$lt_old_archive_cmds
18130old_postinstall_cmds=$lt_old_postinstall_cmds
18131old_postuninstall_cmds=$lt_old_postuninstall_cmds
18132
18133# Create an old-style archive from a shared archive.
18134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18135
18136# Create a temporary old-style archive to link instead of a shared archive.
18137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18138
18139# Commands used to build and install a shared archive.
18140archive_cmds=$lt_archive_cmds
18141archive_expsym_cmds=$lt_archive_expsym_cmds
18142postinstall_cmds=$lt_postinstall_cmds
18143postuninstall_cmds=$lt_postuninstall_cmds
18144
18145# Commands used to build a loadable module (assumed same as above if empty)
18146module_cmds=$lt_module_cmds
18147module_expsym_cmds=$lt_module_expsym_cmds
18148
18149# Commands to strip libraries.
18150old_striplib=$lt_old_striplib
18151striplib=$lt_striplib
18152
18153# Dependencies to place before the objects being linked to create a
18154# shared library.
18155predep_objects=$lt_predep_objects
18156
18157# Dependencies to place after the objects being linked to create a
18158# shared library.
18159postdep_objects=$lt_postdep_objects
18160
18161# Dependencies to place before the objects being linked to create a
18162# shared library.
18163predeps=$lt_predeps
18164
18165# Dependencies to place after the objects being linked to create a
18166# shared library.
18167postdeps=$lt_postdeps
18168
18169# The library search path used internally by the compiler when linking
18170# a shared library.
18171compiler_lib_search_path=$lt_compiler_lib_search_path
18172
18173# Method to check whether dependent libraries are shared objects.
18174deplibs_check_method=$lt_deplibs_check_method
18175
18176# Command to use when deplibs_check_method == file_magic.
18177file_magic_cmd=$lt_file_magic_cmd
18178
18179# Flag that allows shared libraries with undefined symbols to be built.
18180allow_undefined_flag=$lt_allow_undefined_flag
18181
18182# Flag that forces no undefined symbols.
18183no_undefined_flag=$lt_no_undefined_flag
18184
18185# Commands used to finish a libtool library installation in a directory.
18186finish_cmds=$lt_finish_cmds
18187
18188# Same as above, but a single script fragment to be evaled but not shown.
18189finish_eval=$lt_finish_eval
18190
18191# Take the output of nm and produce a listing of raw symbols and C names.
18192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18193
18194# Transform the output of nm in a proper C declaration
18195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18196
18197# Transform the output of nm in a C name address pair
18198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18199
18200# This is the shared library runtime path variable.
18201runpath_var=$runpath_var
18202
18203# This is the shared library path variable.
18204shlibpath_var=$shlibpath_var
18205
18206# Is shlibpath searched before the hard-coded library search path?
18207shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18208
18209# How to hardcode a shared library path into an executable.
18210hardcode_action=$hardcode_action
18211
18212# Whether we should hardcode library paths into libraries.
18213hardcode_into_libs=$hardcode_into_libs
18214
18215# Flag to hardcode \$libdir into a binary during linking.
18216# This must work even if \$libdir does not exist.
18217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18218
18219# If ld is used when linking, flag to hardcode \$libdir into
18220# a binary during linking. This must work even if \$libdir does
18221# not exist.
18222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18223
18224# Whether we need a single -rpath flag with a separated argument.
18225hardcode_libdir_separator=$lt_hardcode_libdir_separator
18226
18227# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18228# resulting binary.
18229hardcode_direct=$hardcode_direct
18230
18231# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18232# resulting binary.
18233hardcode_minus_L=$hardcode_minus_L
18234
18235# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18236# the resulting binary.
18237hardcode_shlibpath_var=$hardcode_shlibpath_var
18238
18239# Set to yes if building a shared library automatically hardcodes DIR into the library
18240# and all subsequent libraries and executables linked against it.
18241hardcode_automatic=$hardcode_automatic
18242
18243# Variables whose values should be saved in libtool wrapper scripts and
18244# restored at relink time.
18245variables_saved_for_relink="$variables_saved_for_relink"
18246
18247# Whether libtool must link a program against all its dependency libraries.
18248link_all_deplibs=$link_all_deplibs
18249
18250# Compile-time system search path for libraries
18251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18252
18253# Run-time system search path for libraries
18254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18255
18256# Fix the shell variable \$srcfile for the compiler.
18257fix_srcfile_path="$fix_srcfile_path"
18258
18259# Set to yes if exported symbols are required.
18260always_export_symbols=$always_export_symbols
18261
18262# The commands to list exported symbols.
18263export_symbols_cmds=$lt_export_symbols_cmds
18264
18265# The commands to extract the exported symbol list from a shared archive.
18266extract_expsyms_cmds=$lt_extract_expsyms_cmds
18267
18268# Symbols that should not be listed in the preloaded symbols.
18269exclude_expsyms=$lt_exclude_expsyms
18270
18271# Symbols that must always be exported.
18272include_expsyms=$lt_include_expsyms
18273
18274# ### END LIBTOOL CONFIG
18275
18276__EOF__
18277
18278
18279 case $host_os in
18280 aix3*)
18281 cat <<\EOF >> "$cfgfile"
18282
18283# AIX sometimes has problems with the GCC collect2 program. For some
18284# reason, if we set the COLLECT_NAMES environment variable, the problems
18285# vanish in a puff of smoke.
18286if test "X${COLLECT_NAMES+set}" != Xset; then
18287 COLLECT_NAMES=
18288 export COLLECT_NAMES
18289fi
18290EOF
18291 ;;
18292 esac
18293
18294 # We use sed instead of cat because bash on DJGPP gets confused if
18295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18296 # text mode, it properly converts lines to CR/LF. This bash problem
18297 # is reportedly fixed, but why not run on old versions too?
18298 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18299
18300 mv -f "$cfgfile" "$ofile" || \
18301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18302 chmod +x "$ofile"
18303
18304else
18305 # If there is no Makefile yet, we rely on a make rule to execute
18306 # `config.status --recheck' to rerun these tests and create the
18307 # libtool script then.
18308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18309 if test -f "$ltmain_in"; then
18310 test -f Makefile && make "$ltmain"
18311 fi
18312fi
18313
18314
18315ac_ext=c
18316ac_cpp='$CPP $CPPFLAGS'
18317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320
18321CC="$lt_save_CC"
18322
18323
18324# Check whether --with-tags was given.
18325if test "${with_tags+set}" = set; then
18326 withval=$with_tags; tagnames="$withval"
18327fi
18328
18329
18330if test -f "$ltmain" && test -n "$tagnames"; then
18331 if test ! -f "${ofile}"; then
18332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18333echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18334 fi
18335
18336 if test -z "$LTCC"; then
18337 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18338 if test -z "$LTCC"; then
18339 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18340echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18341 else
18342 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18343echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18344 fi
18345 fi
18346 if test -z "$LTCFLAGS"; then
18347 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18348 fi
18349
18350 # Extract list of available tagged configurations in $ofile.
18351 # Note that this assumes the entire list is on one line.
18352 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18353
18354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18355 for tagname in $tagnames; do
18356 IFS="$lt_save_ifs"
18357 # Check whether tagname contains only valid characters
18358 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18359 "") ;;
18360 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18361echo "$as_me: error: invalid tag name: $tagname" >&2;}
18362 { (exit 1); exit 1; }; }
18363 ;;
18364 esac
18365
18366 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18367 then
18368 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18369echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18370 { (exit 1); exit 1; }; }
18371 fi
18372
18373 # Update the list of available tags.
18374 if test -n "$tagname"; then
18375 echo appending configuration tag \"$tagname\" to $ofile
18376
18377 case $tagname in
18378 CXX)
18379 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18380 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18381 (test "X$CXX" != "Xg++"))) ; then
18382 ac_ext=cpp
18383ac_cpp='$CXXCPP $CPPFLAGS'
18384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18387
18388
18389
18390
18391archive_cmds_need_lc_CXX=no
18392allow_undefined_flag_CXX=
18393always_export_symbols_CXX=no
18394archive_expsym_cmds_CXX=
18395export_dynamic_flag_spec_CXX=
18396hardcode_direct_CXX=no
18397hardcode_libdir_flag_spec_CXX=
18398hardcode_libdir_flag_spec_ld_CXX=
18399hardcode_libdir_separator_CXX=
18400hardcode_minus_L_CXX=no
18401hardcode_shlibpath_var_CXX=unsupported
18402hardcode_automatic_CXX=no
18403module_cmds_CXX=
18404module_expsym_cmds_CXX=
18405link_all_deplibs_CXX=unknown
18406old_archive_cmds_CXX=$old_archive_cmds
18407no_undefined_flag_CXX=
18408whole_archive_flag_spec_CXX=
18409enable_shared_with_static_runtimes_CXX=no
18410
18411# Dependencies to place before and after the object being linked:
18412predep_objects_CXX=
18413postdep_objects_CXX=
18414predeps_CXX=
18415postdeps_CXX=
18416compiler_lib_search_path_CXX=
18417
18418# Source file extension for C++ test sources.
18419ac_ext=cpp
18420
18421# Object file extension for compiled C++ test sources.
18422objext=o
18423objext_CXX=$objext
18424
18425# Code to be used in simple compile tests
18426lt_simple_compile_test_code="int some_variable = 0;\n"
18427
18428# Code to be used in simple link tests
18429lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18430
18431# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18432
18433# If no C compiler was specified, use CC.
18434LTCC=${LTCC-"$CC"}
18435
18436# If no C compiler flags were specified, use CFLAGS.
18437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18438
18439# Allow CC to be a program name with arguments.
18440compiler=$CC
18441
18442
18443# save warnings/boilerplate of simple test code
18444ac_outfile=conftest.$ac_objext
18445printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18447_lt_compiler_boilerplate=`cat conftest.err`
18448$rm conftest*
18449
18450ac_outfile=conftest.$ac_objext
18451printf "$lt_simple_link_test_code" >conftest.$ac_ext
18452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453_lt_linker_boilerplate=`cat conftest.err`
18454$rm conftest*
18455
18456
18457# Allow CC to be a program name with arguments.
18458lt_save_CC=$CC
18459lt_save_LD=$LD
18460lt_save_GCC=$GCC
18461GCC=$GXX
18462lt_save_with_gnu_ld=$with_gnu_ld
18463lt_save_path_LD=$lt_cv_path_LD
18464if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18465 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18466else
18467 $as_unset lt_cv_prog_gnu_ld
18468fi
18469if test -n "${lt_cv_path_LDCXX+set}"; then
18470 lt_cv_path_LD=$lt_cv_path_LDCXX
18471else
18472 $as_unset lt_cv_path_LD
18473fi
18474test -z "${LDCXX+set}" || LD=$LDCXX
18475CC=${CXX-"c++"}
18476compiler=$CC
18477compiler_CXX=$CC
18478for cc_temp in $compiler""; do
18479 case $cc_temp in
18480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18482 \-*) ;;
18483 *) break;;
18484 esac
18485done
18486cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18487
18488
18489# We don't want -fno-exception wen compiling C++ code, so set the
18490# no_builtin_flag separately
18491if test "$GXX" = yes; then
18492 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18493else
18494 lt_prog_compiler_no_builtin_flag_CXX=
18495fi
18496
18497if test "$GXX" = yes; then
18498 # Set up default GNU C++ configuration
18499
18500
18501# Check whether --with-gnu-ld was given.
18502if test "${with_gnu_ld+set}" = set; then
18503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18504else
18505 with_gnu_ld=no
18506fi
18507
18508ac_prog=ld
18509if test "$GCC" = yes; then
18510 # Check if gcc -print-prog-name=ld gives a path.
18511 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18512echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18513 case $host in
18514 *-*-mingw*)
18515 # gcc leaves a trailing carriage return which upsets mingw
18516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18517 *)
18518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18519 esac
18520 case $ac_prog in
18521 # Accept absolute paths.
18522 [\\/]* | ?:[\\/]*)
18523 re_direlt='/[^/][^/]*/\.\./'
18524 # Canonicalize the pathname of ld
18525 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18527 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18528 done
18529 test -z "$LD" && LD="$ac_prog"
18530 ;;
18531 "")
18532 # If it fails, then pretend we aren't using GCC.
18533 ac_prog=ld
18534 ;;
18535 *)
18536 # If it is relative, then search for the first ld in PATH.
18537 with_gnu_ld=unknown
18538 ;;
18539 esac
18540elif test "$with_gnu_ld" = yes; then
18541 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18542echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18543else
18544 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18545echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18546fi
18547if test "${lt_cv_path_LD+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550 if test -z "$LD"; then
18551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18552 for ac_dir in $PATH; do
18553 IFS="$lt_save_ifs"
18554 test -z "$ac_dir" && ac_dir=.
18555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18556 lt_cv_path_LD="$ac_dir/$ac_prog"
18557 # Check to see if the program is GNU ld. I'd rather use --version,
18558 # but apparently some variants of GNU ld only accept -v.
18559 # Break only if it was the GNU/non-GNU ld that we prefer.
18560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18561 *GNU* | *'with BFD'*)
18562 test "$with_gnu_ld" != no && break
18563 ;;
18564 *)
18565 test "$with_gnu_ld" != yes && break
18566 ;;
18567 esac
18568 fi
18569 done
18570 IFS="$lt_save_ifs"
18571else
18572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18573fi
18574fi
18575
18576LD="$lt_cv_path_LD"
18577if test -n "$LD"; then
18578 { echo "$as_me:$LINENO: result: $LD" >&5
18579echo "${ECHO_T}$LD" >&6; }
18580else
18581 { echo "$as_me:$LINENO: result: no" >&5
18582echo "${ECHO_T}no" >&6; }
18583fi
18584test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18585echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18586 { (exit 1); exit 1; }; }
18587{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18588echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18589if test "${lt_cv_prog_gnu_ld+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18593case `$LD -v 2>&1 </dev/null` in
18594*GNU* | *'with BFD'*)
18595 lt_cv_prog_gnu_ld=yes
18596 ;;
18597*)
18598 lt_cv_prog_gnu_ld=no
18599 ;;
18600esac
18601fi
18602{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18603echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18604with_gnu_ld=$lt_cv_prog_gnu_ld
18605
18606
18607
18608 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18609 # archiving commands below assume that GNU ld is being used.
18610 if test "$with_gnu_ld" = yes; then
18611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612 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'
18613
18614 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18616
18617 # If archive_cmds runs LD, not CC, wlarc should be empty
18618 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18619 # investigate it a little bit more. (MM)
18620 wlarc='${wl}'
18621
18622 # ancient GNU ld didn't support --whole-archive et. al.
18623 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18624 grep 'no-whole-archive' > /dev/null; then
18625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18626 else
18627 whole_archive_flag_spec_CXX=
18628 fi
18629 else
18630 with_gnu_ld=no
18631 wlarc=
18632
18633 # A generic and very simple default shared library creation
18634 # command for GNU C++ for the case where it uses the native
18635 # linker, instead of GNU ld. If possible, this setting should
18636 # overridden to take advantage of the native linker features on
18637 # the platform it is being used on.
18638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18639 fi
18640
18641 # Commands to make compiler produce verbose output that lists
18642 # what "hidden" libraries, object files and flags are used when
18643 # linking a shared library.
18644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18645
18646else
18647 GXX=no
18648 with_gnu_ld=no
18649 wlarc=
18650fi
18651
18652# PORTME: fill in a description of your system's C++ link characteristics
18653{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18654echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18655ld_shlibs_CXX=yes
18656case $host_os in
18657 aix3*)
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
18661 aix4* | aix5*)
18662 if test "$host_cpu" = ia64; then
18663 # On IA64, the linker does run time linking by default, so we don't
18664 # have to do anything special.
18665 aix_use_runtimelinking=no
18666 exp_sym_flag='-Bexport'
18667 no_entry_flag=""
18668 else
18669 aix_use_runtimelinking=no
18670
18671 # Test if we are trying to use run time linking or normal
18672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18673 # need to do runtime linking.
18674 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18675 for ld_flag in $LDFLAGS; do
18676 case $ld_flag in
18677 *-brtl*)
18678 aix_use_runtimelinking=yes
18679 break
18680 ;;
18681 esac
18682 done
18683 ;;
18684 esac
18685
18686 exp_sym_flag='-bexport'
18687 no_entry_flag='-bnoentry'
18688 fi
18689
18690 # When large executables or shared objects are built, AIX ld can
18691 # have problems creating the table of contents. If linking a library
18692 # or program results in "error TOC overflow" add -mminimal-toc to
18693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18695
18696 archive_cmds_CXX=''
18697 hardcode_direct_CXX=yes
18698 hardcode_libdir_separator_CXX=':'
18699 link_all_deplibs_CXX=yes
18700
18701 if test "$GXX" = yes; then
18702 case $host_os in aix4.[012]|aix4.[012].*)
18703 # We only want to do this on AIX 4.2 and lower, the check
18704 # below for broken collect2 doesn't work under 4.3+
18705 collect2name=`${CC} -print-prog-name=collect2`
18706 if test -f "$collect2name" && \
18707 strings "$collect2name" | grep resolve_lib_name >/dev/null
18708 then
18709 # We have reworked collect2
18710 hardcode_direct_CXX=yes
18711 else
18712 # We have old collect2
18713 hardcode_direct_CXX=unsupported
18714 # It fails to find uninstalled libraries when the uninstalled
18715 # path is not listed in the libpath. Setting hardcode_minus_L
18716 # to unsupported forces relinking
18717 hardcode_minus_L_CXX=yes
18718 hardcode_libdir_flag_spec_CXX='-L$libdir'
18719 hardcode_libdir_separator_CXX=
18720 fi
18721 ;;
18722 esac
18723 shared_flag='-shared'
18724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag="$shared_flag "'${wl}-G'
18726 fi
18727 else
18728 # not using gcc
18729 if test "$host_cpu" = ia64; then
18730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731 # chokes on -Wl,-G. The following line is correct:
18732 shared_flag='-G'
18733 else
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag='${wl}-G'
18736 else
18737 shared_flag='${wl}-bM:SRE'
18738 fi
18739 fi
18740 fi
18741
18742 # It seems that -bexpall does not export symbols beginning with
18743 # underscore (_), so it is better to generate a list of symbols to export.
18744 always_export_symbols_CXX=yes
18745 if test "$aix_use_runtimelinking" = yes; then
18746 # Warning - without using the other runtime loading flags (-brtl),
18747 # -berok will link without error, but may produce a broken library.
18748 allow_undefined_flag_CXX='-berok'
18749 # Determine the default libpath from the value encoded in an empty executable.
18750 cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756
18757int
18758main ()
18759{
18760
18761 ;
18762 return 0;
18763}
18764_ACEOF
18765rm -f conftest.$ac_objext conftest$ac_exeext
18766if { (ac_try="$ac_link"
18767case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770esac
18771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018799
18800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18801}'`
18802# Check for a 64-bit object if we didn't find anything.
18803if 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; }
18804}'`; fi
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809
18810fi
18811
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018812rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018813 conftest$ac_exeext conftest.$ac_ext
18814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18815
18816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18817
18818 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"
18819 else
18820 if test "$host_cpu" = ia64; then
18821 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18822 allow_undefined_flag_CXX="-z nodefs"
18823 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"
18824 else
18825 # Determine the default libpath from the value encoded in an empty executable.
18826 cat >conftest.$ac_ext <<_ACEOF
18827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
18832
18833int
18834main ()
18835{
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext conftest$ac_exeext
18842if { (ac_try="$ac_link"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest$ac_exeext'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018875
18876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18877}'`
18878# Check for a 64-bit object if we didn't find anything.
18879if 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; }
18880}'`; fi
18881else
18882 echo "$as_me: failed program was:" >&5
18883sed 's/^/| /' conftest.$ac_ext >&5
18884
18885
18886fi
18887
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018888rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018889 conftest$ac_exeext conftest.$ac_ext
18890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18891
18892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893 # Warning - without using the other run time loading flags,
18894 # -berok will link without error, but may produce a broken library.
18895 no_undefined_flag_CXX=' ${wl}-bernotok'
18896 allow_undefined_flag_CXX=' ${wl}-berok'
18897 # Exported symbols can be pulled into shared objects from archives
18898 whole_archive_flag_spec_CXX='$convenience'
18899 archive_cmds_need_lc_CXX=yes
18900 # This is similar to how AIX traditionally builds its shared libraries.
18901 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'
18902 fi
18903 fi
18904 ;;
18905
18906 beos*)
18907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908 allow_undefined_flag_CXX=unsupported
18909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18910 # support --undefined. This deserves some investigation. FIXME
18911 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18912 else
18913 ld_shlibs_CXX=no
18914 fi
18915 ;;
18916
18917 chorus*)
18918 case $cc_basename in
18919 *)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18922 ;;
18923 esac
18924 ;;
18925
18926 cygwin* | mingw* | pw32*)
18927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18928 # as there is no search path for DLLs.
18929 hardcode_libdir_flag_spec_CXX='-L$libdir'
18930 allow_undefined_flag_CXX=unsupported
18931 always_export_symbols_CXX=no
18932 enable_shared_with_static_runtimes_CXX=yes
18933
18934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18935 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'
18936 # If the export-symbols file already is a .def file (1st line
18937 # is EXPORTS), use it as is; otherwise, prepend...
18938 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18939 cp $export_symbols $output_objdir/$soname.def;
18940 else
18941 echo EXPORTS > $output_objdir/$soname.def;
18942 cat $export_symbols >> $output_objdir/$soname.def;
18943 fi~
18944 $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'
18945 else
18946 ld_shlibs_CXX=no
18947 fi
18948 ;;
18949 darwin* | rhapsody*)
18950 case $host_os in
18951 rhapsody* | darwin1.[012])
18952 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18953 ;;
18954 *) # Darwin 1.3 on
18955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18956 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18957 else
18958 case ${MACOSX_DEPLOYMENT_TARGET} in
18959 10.[012])
18960 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18961 ;;
18962 10.*)
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18964 ;;
18965 esac
18966 fi
18967 ;;
18968 esac
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_direct_CXX=no
18971 hardcode_automatic_CXX=yes
18972 hardcode_shlibpath_var_CXX=unsupported
18973 whole_archive_flag_spec_CXX=''
18974 link_all_deplibs_CXX=yes
18975
18976 if test "$GXX" = yes ; then
18977 lt_int_apple_cc_single_mod=no
18978 output_verbose_link_cmd='echo'
18979 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18980 lt_int_apple_cc_single_mod=yes
18981 fi
18982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18983 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18984 else
18985 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'
18986 fi
18987 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18990 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}'
18991 else
18992 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}'
18993 fi
18994 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}'
18995 else
18996 case $cc_basename in
18997 xlc*)
18998 output_verbose_link_cmd='echo'
18999 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'
19000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19002 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}'
19003 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}'
19004 ;;
19005 *)
19006 ld_shlibs_CXX=no
19007 ;;
19008 esac
19009 fi
19010 ;;
19011
19012 dgux*)
19013 case $cc_basename in
19014 ec++*)
19015 # FIXME: insert proper C++ library support
19016 ld_shlibs_CXX=no
19017 ;;
19018 ghcx*)
19019 # Green Hills C++ Compiler
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 ;;
19023 *)
19024 # FIXME: insert proper C++ library support
19025 ld_shlibs_CXX=no
19026 ;;
19027 esac
19028 ;;
19029 freebsd[12]*)
19030 # C++ shared libraries reported to be fairly broken before switch to ELF
19031 ld_shlibs_CXX=no
19032 ;;
19033 freebsd-elf*)
19034 archive_cmds_need_lc_CXX=no
19035 ;;
19036 freebsd* | kfreebsd*-gnu | dragonfly*)
19037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19038 # conventions
19039 ld_shlibs_CXX=yes
19040 ;;
19041 gnu*)
19042 ;;
19043 hpux9*)
19044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 hardcode_direct_CXX=yes
19048 hardcode_minus_L_CXX=yes # Not in the search PATH,
19049 # but as the default
19050 # location of the library.
19051
19052 case $cc_basename in
19053 CC*)
19054 # FIXME: insert proper C++ library support
19055 ld_shlibs_CXX=no
19056 ;;
19057 aCC*)
19058 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'
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19062 #
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19066 # dependencies.
19067 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'
19068 ;;
19069 *)
19070 if test "$GXX" = yes; then
19071 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'
19072 else
19073 # FIXME: insert proper C++ library support
19074 ld_shlibs_CXX=no
19075 fi
19076 ;;
19077 esac
19078 ;;
19079 hpux10*|hpux11*)
19080 if test $with_gnu_ld = no; then
19081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19082 hardcode_libdir_separator_CXX=:
19083
19084 case $host_cpu in
19085 hppa*64*|ia64*)
19086 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19087 ;;
19088 *)
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 ;;
19091 esac
19092 fi
19093 case $host_cpu in
19094 hppa*64*|ia64*)
19095 hardcode_direct_CXX=no
19096 hardcode_shlibpath_var_CXX=no
19097 ;;
19098 *)
19099 hardcode_direct_CXX=yes
19100 hardcode_minus_L_CXX=yes # Not in the search PATH,
19101 # but as the default
19102 # location of the library.
19103 ;;
19104 esac
19105
19106 case $cc_basename in
19107 CC*)
19108 # FIXME: insert proper C++ library support
19109 ld_shlibs_CXX=no
19110 ;;
19111 aCC*)
19112 case $host_cpu in
19113 hppa*64*)
19114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19115 ;;
19116 ia64*)
19117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19118 ;;
19119 *)
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121 ;;
19122 esac
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19126 #
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19130 # dependencies.
19131 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'
19132 ;;
19133 *)
19134 if test "$GXX" = yes; then
19135 if test $with_gnu_ld = no; then
19136 case $host_cpu in
19137 hppa*64*)
19138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19139 ;;
19140 ia64*)
19141 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19142 ;;
19143 *)
19144 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'
19145 ;;
19146 esac
19147 fi
19148 else
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 fi
19152 ;;
19153 esac
19154 ;;
19155 interix3*)
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19161 # Instead, shared libraries are loaded at an image base (0x10000000 by
19162 # default) and relocated if they conflict, which is a slow very memory
19163 # consuming and fragmenting process. To avoid this, we pick a random,
19164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19166 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'
19167 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'
19168 ;;
19169 irix5* | irix6*)
19170 case $cc_basename in
19171 CC*)
19172 # SGI C++
19173 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'
19174
19175 # Archives containing C++ object files must be created using
19176 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19177 # necessary to make sure instantiated templates are included
19178 # in the archive.
19179 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19180 ;;
19181 *)
19182 if test "$GXX" = yes; then
19183 if test "$with_gnu_ld" = no; then
19184 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'
19185 else
19186 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'
19187 fi
19188 fi
19189 link_all_deplibs_CXX=yes
19190 ;;
19191 esac
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_CXX=:
19194 ;;
19195 linux*)
19196 case $cc_basename in
19197 KCC*)
19198 # Kuck and Associates, Inc. (KAI) C++ Compiler
19199
19200 # KCC will only create a shared library if the output file
19201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19202 # to its proper name (with version) after linking.
19203 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'
19204 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'
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19208 #
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19212 # dependencies.
19213 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'
19214
19215 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19217
19218 # Archives containing C++ object files must be created using
19219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19221 ;;
19222 icpc*)
19223 # Intel C++
19224 with_gnu_ld=yes
19225 # version 8.0 and above of icpc choke on multiply defined symbols
19226 # if we add $predep_objects and $postdep_objects, however 7.1 and
19227 # earlier do not add the objects themselves.
19228 case `$CC -V 2>&1` in
19229 *"Version 7."*)
19230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 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'
19232 ;;
19233 *) # Version 8.0 or newer
19234 tmp_idyn=
19235 case $host_cpu in
19236 ia64*) tmp_idyn=' -i_dynamic';;
19237 esac
19238 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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'
19240 ;;
19241 esac
19242 archive_cmds_need_lc_CXX=no
19243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19246 ;;
19247 pgCC*)
19248 # Portland Group C++ compiler
19249 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19250 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'
19251
19252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19254 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'
19255 ;;
19256 cxx*)
19257 # Compaq C++
19258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 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'
19260
19261 runpath_var=LD_RUN_PATH
19262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19263 hardcode_libdir_separator_CXX=:
19264
19265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
19268 #
19269 # There doesn't appear to be a way to prevent this compiler from
19270 # explicitly linking system object files so we need to strip them
19271 # from the output so that they don't get included in the library
19272 # dependencies.
19273 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'
19274 ;;
19275 esac
19276 ;;
19277 lynxos*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
19281 m88k*)
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
19285 mvs*)
19286 case $cc_basename in
19287 cxx*)
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19290 ;;
19291 *)
19292 # FIXME: insert proper C++ library support
19293 ld_shlibs_CXX=no
19294 ;;
19295 esac
19296 ;;
19297 netbsd*)
19298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19299 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19300 wlarc=
19301 hardcode_libdir_flag_spec_CXX='-R$libdir'
19302 hardcode_direct_CXX=yes
19303 hardcode_shlibpath_var_CXX=no
19304 fi
19305 # Workaround some broken pre-1.5 toolchains
19306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19307 ;;
19308 openbsd2*)
19309 # C++ shared libraries are fairly broken
19310 ld_shlibs_CXX=no
19311 ;;
19312 openbsd*)
19313 hardcode_direct_CXX=yes
19314 hardcode_shlibpath_var_CXX=no
19315 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19318 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19319 export_dynamic_flag_spec_CXX='${wl}-E'
19320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19321 fi
19322 output_verbose_link_cmd='echo'
19323 ;;
19324 osf3*)
19325 case $cc_basename in
19326 KCC*)
19327 # Kuck and Associates, Inc. (KAI) C++ Compiler
19328
19329 # KCC will only create a shared library if the output file
19330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331 # to its proper name (with version) after linking.
19332 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'
19333
19334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19335 hardcode_libdir_separator_CXX=:
19336
19337 # Archives containing C++ object files must be created using
19338 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19339 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19340
19341 ;;
19342 RCC*)
19343 # Rational C++ 2.4.1
19344 # FIXME: insert proper C++ library support
19345 ld_shlibs_CXX=no
19346 ;;
19347 cxx*)
19348 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19349 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'
19350
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19352 hardcode_libdir_separator_CXX=:
19353
19354 # Commands to make compiler produce verbose output that lists
19355 # what "hidden" libraries, object files and flags are used when
19356 # linking a shared library.
19357 #
19358 # There doesn't appear to be a way to prevent this compiler from
19359 # explicitly linking system object files so we need to strip them
19360 # from the output so that they don't get included in the library
19361 # dependencies.
19362 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'
19363 ;;
19364 *)
19365 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19366 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19367 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'
19368
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX=:
19371
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19376
19377 else
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19380 fi
19381 ;;
19382 esac
19383 ;;
19384 osf4* | osf5*)
19385 case $cc_basename in
19386 KCC*)
19387 # Kuck and Associates, Inc. (KAI) C++ Compiler
19388
19389 # KCC will only create a shared library if the output file
19390 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19391 # to its proper name (with version) after linking.
19392 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'
19393
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19395 hardcode_libdir_separator_CXX=:
19396
19397 # Archives containing C++ object files must be created using
19398 # the KAI C++ compiler.
19399 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19400 ;;
19401 RCC*)
19402 # Rational C++ 2.4.1
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19405 ;;
19406 cxx*)
19407 allow_undefined_flag_CXX=' -expect_unresolved \*'
19408 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'
19409 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19410 echo "-hidden">> $lib.exp~
19411 $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~
19412 $rm $lib.exp'
19413
19414 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19415 hardcode_libdir_separator_CXX=:
19416
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19420 #
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19424 # dependencies.
19425 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'
19426 ;;
19427 *)
19428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19429 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19430 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'
19431
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433 hardcode_libdir_separator_CXX=:
19434
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19439
19440 else
19441 # FIXME: insert proper C++ library support
19442 ld_shlibs_CXX=no
19443 fi
19444 ;;
19445 esac
19446 ;;
19447 psos*)
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19450 ;;
19451 sunos4*)
19452 case $cc_basename in
19453 CC*)
19454 # Sun C++ 4.x
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 ;;
19458 lcc*)
19459 # Lucid
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
19463 *)
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 esac
19468 ;;
19469 solaris*)
19470 case $cc_basename in
19471 CC*)
19472 # Sun C++ 4.2, 5.x and Centerline C++
19473 archive_cmds_need_lc_CXX=yes
19474 no_undefined_flag_CXX=' -zdefs'
19475 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477 $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'
19478
19479 hardcode_libdir_flag_spec_CXX='-R$libdir'
19480 hardcode_shlibpath_var_CXX=no
19481 case $host_os in
19482 solaris2.[0-5] | solaris2.[0-5].*) ;;
19483 *)
19484 # The C++ compiler is used as linker so we must use $wl
19485 # flag to pass the commands to the underlying system
19486 # linker. We must also pass each convience library through
19487 # to the system linker between allextract/defaultextract.
19488 # The C++ compiler will combine linker options so we
19489 # cannot just pass the convience library names through
19490 # without $wl.
19491 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 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'
19493 ;;
19494 esac
19495 link_all_deplibs_CXX=yes
19496
19497 output_verbose_link_cmd='echo'
19498
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19502 # in the archive.
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19504 ;;
19505 gcx*)
19506 # Green Hills C++ Compiler
19507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19508
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19511 ;;
19512 *)
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516 if $CC --version | grep -v '^2\.7' > /dev/null; then
19517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19520
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19525 else
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19527 # platform.
19528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19531
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19536 fi
19537
19538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19539 fi
19540 ;;
19541 esac
19542 ;;
19543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19544 no_undefined_flag_CXX='${wl}-z,text'
19545 archive_cmds_need_lc_CXX=no
19546 hardcode_shlibpath_var_CXX=no
19547 runpath_var='LD_RUN_PATH'
19548
19549 case $cc_basename in
19550 CC*)
19551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 ;;
19554 *)
19555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 ;;
19558 esac
19559 ;;
19560 sysv5* | sco3.2v5* | sco5v6*)
19561 # Note: We can NOT use -z defs as we might desire, because we do not
19562 # link with -lc, and that would cause any symbols used from libc to
19563 # always be unresolved, which means just about no library would
19564 # ever link correctly. If we're not using GNU ld we use -z text
19565 # though, which does catch some bad symbols but isn't as heavy-handed
19566 # as -z defs.
19567 # For security reasons, it is highly recommended that you always
19568 # use absolute paths for naming shared libraries, and exclude the
19569 # DT_RUNPATH tag from executables and libraries. But doing so
19570 # requires that you compile everything twice, which is a pain.
19571 # So that behaviour is only enabled if SCOABSPATH is set to a
19572 # non-empty value in the environment. Most likely only useful for
19573 # creating official distributions of packages.
19574 # This is a hack until libtool officially supports absolute path
19575 # names for shared libraries.
19576 no_undefined_flag_CXX='${wl}-z,text'
19577 allow_undefined_flag_CXX='${wl}-z,nodefs'
19578 archive_cmds_need_lc_CXX=no
19579 hardcode_shlibpath_var_CXX=no
19580 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19581 hardcode_libdir_separator_CXX=':'
19582 link_all_deplibs_CXX=yes
19583 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19584 runpath_var='LD_RUN_PATH'
19585
19586 case $cc_basename in
19587 CC*)
19588 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 ;;
19591 *)
19592 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 ;;
19595 esac
19596 ;;
19597 tandem*)
19598 case $cc_basename in
19599 NCC*)
19600 # NonStop-UX NCC 3.20
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19603 ;;
19604 *)
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19607 ;;
19608 esac
19609 ;;
19610 vxworks*)
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19613 ;;
19614 *)
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 ;;
19618esac
19619{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621test "$ld_shlibs_CXX" = no && can_build_shared=no
19622
19623GCC_CXX="$GXX"
19624LD_CXX="$LD"
19625
19626
19627cat > conftest.$ac_ext <<EOF
19628class Foo
19629{
19630public:
19631 Foo (void) { a = 0; }
19632private:
19633 int a;
19634};
19635EOF
19636
19637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; then
19642 # Parse the compiler output and extract the necessary
19643 # objects, libraries and library flags.
19644
19645 # Sentinel used to keep track of whether or not we are before
19646 # the conftest object file.
19647 pre_test_object_deps_done=no
19648
19649 # The `*' in the case matches for architectures that use `case' in
19650 # $output_verbose_cmd can trigger glob expansion during the loop
19651 # eval without this substitution.
19652 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19653
19654 for p in `eval $output_verbose_link_cmd`; do
19655 case $p in
19656
19657 -L* | -R* | -l*)
19658 # Some compilers place space between "-{L,R}" and the path.
19659 # Remove the space.
19660 if test $p = "-L" \
19661 || test $p = "-R"; then
19662 prev=$p
19663 continue
19664 else
19665 prev=
19666 fi
19667
19668 if test "$pre_test_object_deps_done" = no; then
19669 case $p in
19670 -L* | -R*)
19671 # Internal compiler library paths should come after those
19672 # provided the user. The postdeps already come after the
19673 # user supplied libs so there is no need to process them.
19674 if test -z "$compiler_lib_search_path_CXX"; then
19675 compiler_lib_search_path_CXX="${prev}${p}"
19676 else
19677 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19678 fi
19679 ;;
19680 # The "-l" case would never come before the object being
19681 # linked, so don't bother handling this case.
19682 esac
19683 else
19684 if test -z "$postdeps_CXX"; then
19685 postdeps_CXX="${prev}${p}"
19686 else
19687 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19688 fi
19689 fi
19690 ;;
19691
19692 *.$objext)
19693 # This assumes that the test object file only shows up
19694 # once in the compiler output.
19695 if test "$p" = "conftest.$objext"; then
19696 pre_test_object_deps_done=yes
19697 continue
19698 fi
19699
19700 if test "$pre_test_object_deps_done" = no; then
19701 if test -z "$predep_objects_CXX"; then
19702 predep_objects_CXX="$p"
19703 else
19704 predep_objects_CXX="$predep_objects_CXX $p"
19705 fi
19706 else
19707 if test -z "$postdep_objects_CXX"; then
19708 postdep_objects_CXX="$p"
19709 else
19710 postdep_objects_CXX="$postdep_objects_CXX $p"
19711 fi
19712 fi
19713 ;;
19714
19715 *) ;; # Ignore the rest.
19716
19717 esac
19718 done
19719
19720 # Clean up.
19721 rm -f a.out a.exe
19722else
19723 echo "libtool.m4: error: problem compiling CXX test program"
19724fi
19725
19726$rm -f confest.$objext
19727
19728# PORTME: override above test on systems where it is broken
19729case $host_os in
19730interix3*)
19731 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732 # hack all around it, let's just trust "g++" to DTRT.
19733 predep_objects_CXX=
19734 postdep_objects_CXX=
19735 postdeps_CXX=
19736 ;;
19737
19738solaris*)
19739 case $cc_basename in
19740 CC*)
19741 # Adding this requires a known-good setup of shared libraries for
19742 # Sun compiler versions before 5.6, else PIC objects from an old
19743 # archive will be linked into the output, leading to subtle bugs.
19744 postdeps_CXX='-lCstd -lCrun'
19745 ;;
19746 esac
19747 ;;
19748esac
19749
19750
19751case " $postdeps_CXX " in
19752*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19753esac
19754
19755lt_prog_compiler_wl_CXX=
19756lt_prog_compiler_pic_CXX=
19757lt_prog_compiler_static_CXX=
19758
19759{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19761
19762 # C++ specific cases for pic, static, wl, etc.
19763 if test "$GXX" = yes; then
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_static_CXX='-static'
19766
19767 case $host_os in
19768 aix*)
19769 # All AIX code is PIC.
19770 if test "$host_cpu" = ia64; then
19771 # AIX 5 now supports IA64 processor
19772 lt_prog_compiler_static_CXX='-Bstatic'
19773 fi
19774 ;;
19775 amigaos*)
19776 # FIXME: we need at least 68020 code to build shared libraries, but
19777 # adding the `-m68020' flag to GCC prevents building anything better,
19778 # like `-m68040'.
19779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19780 ;;
19781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19782 # PIC is the default for these OSes.
19783 ;;
19784 mingw* | os2* | pw32*)
19785 # This hack is so that the source file can tell whether it is being
19786 # built for inclusion in a dll (and should export symbols for example).
19787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19788 ;;
19789 darwin* | rhapsody*)
19790 # PIC is the default on this platform
19791 # Common symbols not allowed in MH_DYLIB files
19792 lt_prog_compiler_pic_CXX='-fno-common'
19793 ;;
19794 *djgpp*)
19795 # DJGPP does not support shared libraries at all
19796 lt_prog_compiler_pic_CXX=
19797 ;;
19798 interix3*)
19799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800 # Instead, we relocate shared libraries at runtime.
19801 ;;
19802 sysv4*MP*)
19803 if test -d /usr/nec; then
19804 lt_prog_compiler_pic_CXX=-Kconform_pic
19805 fi
19806 ;;
19807 hpux*)
19808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19809 # not for PA HP-UX.
19810 case $host_cpu in
19811 hppa*64*|ia64*)
19812 ;;
19813 *)
19814 lt_prog_compiler_pic_CXX='-fPIC'
19815 ;;
19816 esac
19817 ;;
19818 *)
19819 lt_prog_compiler_pic_CXX='-fPIC'
19820 ;;
19821 esac
19822 else
19823 case $host_os in
19824 aix4* | aix5*)
19825 # All AIX code is PIC.
19826 if test "$host_cpu" = ia64; then
19827 # AIX 5 now supports IA64 processor
19828 lt_prog_compiler_static_CXX='-Bstatic'
19829 else
19830 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19831 fi
19832 ;;
19833 chorus*)
19834 case $cc_basename in
19835 cxch68*)
19836 # Green Hills C++ Compiler
19837 # _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"
19838 ;;
19839 esac
19840 ;;
19841 darwin*)
19842 # PIC is the default on this platform
19843 # Common symbols not allowed in MH_DYLIB files
19844 case $cc_basename in
19845 xlc*)
19846 lt_prog_compiler_pic_CXX='-qnocommon'
19847 lt_prog_compiler_wl_CXX='-Wl,'
19848 ;;
19849 esac
19850 ;;
19851 dgux*)
19852 case $cc_basename in
19853 ec++*)
19854 lt_prog_compiler_pic_CXX='-KPIC'
19855 ;;
19856 ghcx*)
19857 # Green Hills C++ Compiler
19858 lt_prog_compiler_pic_CXX='-pic'
19859 ;;
19860 *)
19861 ;;
19862 esac
19863 ;;
19864 freebsd* | kfreebsd*-gnu | dragonfly*)
19865 # FreeBSD uses GNU C++
19866 ;;
19867 hpux9* | hpux10* | hpux11*)
19868 case $cc_basename in
19869 CC*)
19870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19872 if test "$host_cpu" != ia64; then
19873 lt_prog_compiler_pic_CXX='+Z'
19874 fi
19875 ;;
19876 aCC*)
19877 lt_prog_compiler_wl_CXX='-Wl,'
19878 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19879 case $host_cpu in
19880 hppa*64*|ia64*)
19881 # +Z the default
19882 ;;
19883 *)
19884 lt_prog_compiler_pic_CXX='+Z'
19885 ;;
19886 esac
19887 ;;
19888 *)
19889 ;;
19890 esac
19891 ;;
19892 interix*)
19893 # This is c89, which is MS Visual C++ (no shared libs)
19894 # Anyone wants to do a port?
19895 ;;
19896 irix5* | irix6* | nonstopux*)
19897 case $cc_basename in
19898 CC*)
19899 lt_prog_compiler_wl_CXX='-Wl,'
19900 lt_prog_compiler_static_CXX='-non_shared'
19901 # CC pic flag -KPIC is the default.
19902 ;;
19903 *)
19904 ;;
19905 esac
19906 ;;
19907 linux*)
19908 case $cc_basename in
19909 KCC*)
19910 # KAI C++ Compiler
19911 lt_prog_compiler_wl_CXX='--backend -Wl,'
19912 lt_prog_compiler_pic_CXX='-fPIC'
19913 ;;
19914 icpc* | ecpc*)
19915 # Intel C++
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_pic_CXX='-KPIC'
19918 lt_prog_compiler_static_CXX='-static'
19919 ;;
19920 pgCC*)
19921 # Portland Group C++ compiler.
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-fpic'
19924 lt_prog_compiler_static_CXX='-Bstatic'
19925 ;;
19926 cxx*)
19927 # Compaq C++
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX=
19931 lt_prog_compiler_static_CXX='-non_shared'
19932 ;;
19933 *)
19934 ;;
19935 esac
19936 ;;
19937 lynxos*)
19938 ;;
19939 m88k*)
19940 ;;
19941 mvs*)
19942 case $cc_basename in
19943 cxx*)
19944 lt_prog_compiler_pic_CXX='-W c,exportall'
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 netbsd*)
19951 ;;
19952 osf3* | osf4* | osf5*)
19953 case $cc_basename in
19954 KCC*)
19955 lt_prog_compiler_wl_CXX='--backend -Wl,'
19956 ;;
19957 RCC*)
19958 # Rational C++ 2.4.1
19959 lt_prog_compiler_pic_CXX='-pic'
19960 ;;
19961 cxx*)
19962 # Digital/Compaq C++
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX=
19967 lt_prog_compiler_static_CXX='-non_shared'
19968 ;;
19969 *)
19970 ;;
19971 esac
19972 ;;
19973 psos*)
19974 ;;
19975 solaris*)
19976 case $cc_basename in
19977 CC*)
19978 # Sun C++ 4.2, 5.x and Centerline C++
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19981 lt_prog_compiler_wl_CXX='-Qoption ld '
19982 ;;
19983 gcx*)
19984 # Green Hills C++ Compiler
19985 lt_prog_compiler_pic_CXX='-PIC'
19986 ;;
19987 *)
19988 ;;
19989 esac
19990 ;;
19991 sunos4*)
19992 case $cc_basename in
19993 CC*)
19994 # Sun C++ 4.x
19995 lt_prog_compiler_pic_CXX='-pic'
19996 lt_prog_compiler_static_CXX='-Bstatic'
19997 ;;
19998 lcc*)
19999 # Lucid
20000 lt_prog_compiler_pic_CXX='-pic'
20001 ;;
20002 *)
20003 ;;
20004 esac
20005 ;;
20006 tandem*)
20007 case $cc_basename in
20008 NCC*)
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX='-KPIC'
20011 ;;
20012 *)
20013 ;;
20014 esac
20015 ;;
20016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20017 case $cc_basename in
20018 CC*)
20019 lt_prog_compiler_wl_CXX='-Wl,'
20020 lt_prog_compiler_pic_CXX='-KPIC'
20021 lt_prog_compiler_static_CXX='-Bstatic'
20022 ;;
20023 esac
20024 ;;
20025 vxworks*)
20026 ;;
20027 *)
20028 lt_prog_compiler_can_build_shared_CXX=no
20029 ;;
20030 esac
20031 fi
20032
20033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20034echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20035
20036#
20037# Check to make sure the PIC flag actually works.
20038#
20039if test -n "$lt_prog_compiler_pic_CXX"; then
20040
20041{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20042echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20043if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20045else
20046 lt_prog_compiler_pic_works_CXX=no
20047 ac_outfile=conftest.$ac_objext
20048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20050 # Insert the option either (1) after the last *FLAGS variable, or
20051 # (2) before a word containing "conftest.", or (3) at the end.
20052 # Note that $ac_compile itself does not contain backslashes and begins
20053 # with a dollar sign (not a hyphen), so the echo should work correctly.
20054 # The option is referenced via a variable to avoid confusing sed.
20055 lt_compile=`echo "$ac_compile" | $SED \
20056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20058 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000020059 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020060 (eval "$lt_compile" 2>conftest.err)
20061 ac_status=$?
20062 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000020063 echo "$as_me:20063: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020064 if (exit $ac_status) && test -s "$ac_outfile"; then
20065 # The compiler can only warn and ignore the option if not recognized
20066 # So say no if there are warnings other than the usual output.
20067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20070 lt_prog_compiler_pic_works_CXX=yes
20071 fi
20072 fi
20073 $rm conftest*
20074
20075fi
20076{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20077echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20078
20079if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20080 case $lt_prog_compiler_pic_CXX in
20081 "" | " "*) ;;
20082 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20083 esac
20084else
20085 lt_prog_compiler_pic_CXX=
20086 lt_prog_compiler_can_build_shared_CXX=no
20087fi
20088
20089fi
20090case $host_os in
20091 # For platforms which do not support PIC, -DPIC is meaningless:
20092 *djgpp*)
20093 lt_prog_compiler_pic_CXX=
20094 ;;
20095 *)
20096 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20097 ;;
20098esac
20099
20100#
20101# Check to make sure the static flag actually works.
20102#
20103wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20104{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20106if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108else
20109 lt_prog_compiler_static_works_CXX=no
20110 save_LDFLAGS="$LDFLAGS"
20111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20112 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20114 # The linker can only warn and ignore the option if not recognized
20115 # So say no if there are warnings
20116 if test -s conftest.err; then
20117 # Append any errors to the config.log.
20118 cat conftest.err 1>&5
20119 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20121 if diff conftest.exp conftest.er2 >/dev/null; then
20122 lt_prog_compiler_static_works_CXX=yes
20123 fi
20124 else
20125 lt_prog_compiler_static_works_CXX=yes
20126 fi
20127 fi
20128 $rm conftest*
20129 LDFLAGS="$save_LDFLAGS"
20130
20131fi
20132{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20133echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20134
20135if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20136 :
20137else
20138 lt_prog_compiler_static_CXX=
20139fi
20140
20141
20142{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20143echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20144if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146else
20147 lt_cv_prog_compiler_c_o_CXX=no
20148 $rm -r conftest 2>/dev/null
20149 mkdir conftest
20150 cd conftest
20151 mkdir out
20152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20153
20154 lt_compiler_flag="-o out/conftest2.$ac_objext"
20155 # Insert the option either (1) after the last *FLAGS variable, or
20156 # (2) before a word containing "conftest.", or (3) at the end.
20157 # Note that $ac_compile itself does not contain backslashes and begins
20158 # with a dollar sign (not a hyphen), so the echo should work correctly.
20159 lt_compile=`echo "$ac_compile" | $SED \
20160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20162 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000020163 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020164 (eval "$lt_compile" 2>out/conftest.err)
20165 ac_status=$?
20166 cat out/conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000020167 echo "$as_me:20167: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20169 then
20170 # The compiler can only warn and ignore the option if not recognized
20171 # So say no if there are warnings
20172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20175 lt_cv_prog_compiler_c_o_CXX=yes
20176 fi
20177 fi
20178 chmod u+w . 2>&5
20179 $rm conftest*
20180 # SGI C++ compiler will create directory out/ii_files/ for
20181 # template instantiation
20182 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20183 $rm out/* && rmdir out
20184 cd ..
20185 rmdir conftest
20186 $rm conftest*
20187
20188fi
20189{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20190echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20191
20192
20193hard_links="nottested"
20194if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20195 # do not overwrite the value of need_locks provided by the user
20196 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20197echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20198 hard_links=yes
20199 $rm conftest*
20200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20201 touch conftest.a
20202 ln conftest.a conftest.b 2>&5 || hard_links=no
20203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20204 { echo "$as_me:$LINENO: result: $hard_links" >&5
20205echo "${ECHO_T}$hard_links" >&6; }
20206 if test "$hard_links" = no; then
20207 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20208echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20209 need_locks=warn
20210 fi
20211else
20212 need_locks=no
20213fi
20214
20215{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20216echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20217
20218 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20219 case $host_os in
20220 aix4* | aix5*)
20221 # If we're using GNU nm, then we don't want the "-C" option.
20222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20223 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20224 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'
20225 else
20226 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'
20227 fi
20228 ;;
20229 pw32*)
20230 export_symbols_cmds_CXX="$ltdll_cmds"
20231 ;;
20232 cygwin* | mingw*)
20233 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'
20234 ;;
20235 *)
20236 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 ;;
20238 esac
20239
20240{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20241echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20242test "$ld_shlibs_CXX" = no && can_build_shared=no
20243
20244#
20245# Do we need to explicitly link libc?
20246#
20247case "x$archive_cmds_need_lc_CXX" in
20248x|xyes)
20249 # Assume -lc should be added
20250 archive_cmds_need_lc_CXX=yes
20251
20252 if test "$enable_shared" = yes && test "$GCC" = yes; then
20253 case $archive_cmds_CXX in
20254 *'~'*)
20255 # FIXME: we may have to deal with multi-command sequences.
20256 ;;
20257 '$CC '*)
20258 # Test whether the compiler implicitly links with -lc since on some
20259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20260 # to ld, don't add -lc before -lgcc.
20261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20262echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20263 $rm conftest*
20264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20265
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } 2>conftest.err; then
20271 soname=conftest
20272 lib=conftest
20273 libobjs=conftest.$ac_objext
20274 deplibs=
20275 wl=$lt_prog_compiler_wl_CXX
20276 pic_flag=$lt_prog_compiler_pic_CXX
20277 compiler_flags=-v
20278 linker_flags=-v
20279 verstring=
20280 output_objdir=.
20281 libname=conftest
20282 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20283 allow_undefined_flag_CXX=
20284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20285 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }
20289 then
20290 archive_cmds_need_lc_CXX=no
20291 else
20292 archive_cmds_need_lc_CXX=yes
20293 fi
20294 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20295 else
20296 cat conftest.err 1>&5
20297 fi
20298 $rm conftest*
20299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20300echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20301 ;;
20302 esac
20303 fi
20304 ;;
20305esac
20306
20307{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20309library_names_spec=
20310libname_spec='lib$name'
20311soname_spec=
20312shrext_cmds=".so"
20313postinstall_cmds=
20314postuninstall_cmds=
20315finish_cmds=
20316finish_eval=
20317shlibpath_var=
20318shlibpath_overrides_runpath=unknown
20319version_type=none
20320dynamic_linker="$host_os ld.so"
20321sys_lib_dlsearch_path_spec="/lib /usr/lib"
20322if test "$GCC" = yes; then
20323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20325 # if the path contains ";" then we assume it to be the separator
20326 # otherwise default to the standard path separator (i.e. ":") - it is
20327 # assumed that no part of a normal pathname contains ";" but that should
20328 # okay in the real world where ";" in dirpaths is itself problematic.
20329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20330 else
20331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20332 fi
20333else
20334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20335fi
20336need_lib_prefix=unknown
20337hardcode_into_libs=no
20338
20339# when you set need_version to no, make sure it does not cause -set_version
20340# flags to be left without arguments
20341need_version=unknown
20342
20343case $host_os in
20344aix3*)
20345 version_type=linux
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20347 shlibpath_var=LIBPATH
20348
20349 # AIX 3 has no versioning support, so we append a major version to the name.
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 ;;
20352
20353aix4* | aix5*)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 hardcode_into_libs=yes
20358 if test "$host_cpu" = ia64; then
20359 # AIX 5 supports IA64
20360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 else
20363 # With GCC up to 2.95.x, collect2 would create an import file
20364 # for dependence libraries. The import file would start with
20365 # the line `#! .'. This would cause the generated library to
20366 # depend on `.', always an invalid library. This was fixed in
20367 # development snapshots of GCC prior to 3.0.
20368 case $host_os in
20369 aix4 | aix4.[01] | aix4.[01].*)
20370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20371 echo ' yes '
20372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20373 :
20374 else
20375 can_build_shared=no
20376 fi
20377 ;;
20378 esac
20379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380 # soname into executable. Probably we can add versioning support to
20381 # collect2, so additional links can be useful in future.
20382 if test "$aix_use_runtimelinking" = yes; then
20383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384 # instead of lib<name>.a to let people know that these are not
20385 # typical AIX shared libraries.
20386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387 else
20388 # We preserve .a as extension for shared libraries through AIX4.2
20389 # and later when we are not doing run time linking.
20390 library_names_spec='${libname}${release}.a $libname.a'
20391 soname_spec='${libname}${release}${shared_ext}$major'
20392 fi
20393 shlibpath_var=LIBPATH
20394 fi
20395 ;;
20396
20397amigaos*)
20398 library_names_spec='$libname.ixlibrary $libname.a'
20399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20400 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'
20401 ;;
20402
20403beos*)
20404 library_names_spec='${libname}${shared_ext}'
20405 dynamic_linker="$host_os ld.so"
20406 shlibpath_var=LIBRARY_PATH
20407 ;;
20408
20409bsdi[45]*)
20410 version_type=linux
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20418 # the default ld.so.conf also contains /usr/contrib/lib and
20419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420 # libtool to hard-code these into programs
20421 ;;
20422
20423cygwin* | mingw* | pw32*)
20424 version_type=windows
20425 shrext_cmds=".dll"
20426 need_version=no
20427 need_lib_prefix=no
20428
20429 case $GCC,$host_os in
20430 yes,cygwin* | yes,mingw* | yes,pw32*)
20431 library_names_spec='$libname.dll.a'
20432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20433 postinstall_cmds='base_file=`basename \${file}`~
20434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435 dldir=$destdir/`dirname \$dlpath`~
20436 test -d \$dldir || mkdir -p \$dldir~
20437 $install_prog $dir/$dlname \$dldir/$dlname~
20438 chmod a+x \$dldir/$dlname'
20439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440 dlpath=$dir/\$dldll~
20441 $rm \$dlpath'
20442 shlibpath_overrides_runpath=yes
20443
20444 case $host_os in
20445 cygwin*)
20446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20449 ;;
20450 mingw*)
20451 # MinGW DLLs use traditional 'lib' prefix
20452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20455 # It is most probably a Windows format PATH printed by
20456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457 # path with ; separators, and with drive letters. We can handle the
20458 # drive letters (cygwin fileutils understands them), so leave them,
20459 # especially as we might pass files found there to a mingw objdump,
20460 # which wouldn't understand a cygwinified path. Ahh.
20461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20462 else
20463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20464 fi
20465 ;;
20466 pw32*)
20467 # pw32 DLLs use 'pw' prefix rather than 'lib'
20468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20469 ;;
20470 esac
20471 ;;
20472
20473 *)
20474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20475 ;;
20476 esac
20477 dynamic_linker='Win32 ld.exe'
20478 # FIXME: first we should search . and the directory the executable is in
20479 shlibpath_var=PATH
20480 ;;
20481
20482darwin* | rhapsody*)
20483 dynamic_linker="$host_os dyld"
20484 version_type=darwin
20485 need_lib_prefix=no
20486 need_version=no
20487 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20488 soname_spec='${libname}${release}${major}$shared_ext'
20489 shlibpath_overrides_runpath=yes
20490 shlibpath_var=DYLD_LIBRARY_PATH
20491 shrext_cmds='.dylib'
20492 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20493 if test "$GCC" = yes; then
20494 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"`
20495 else
20496 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20497 fi
20498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20499 ;;
20500
20501dgux*)
20502 version_type=linux
20503 need_lib_prefix=no
20504 need_version=no
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 ;;
20509
20510freebsd1*)
20511 dynamic_linker=no
20512 ;;
20513
20514kfreebsd*-gnu)
20515 version_type=linux
20516 need_lib_prefix=no
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=no
20522 hardcode_into_libs=yes
20523 dynamic_linker='GNU ld.so'
20524 ;;
20525
20526freebsd* | dragonfly*)
20527 # DragonFly does not have aout. When/if they implement a new
20528 # versioning mechanism, adjust this.
20529 if test -x /usr/bin/objformat; then
20530 objformat=`/usr/bin/objformat`
20531 else
20532 case $host_os in
20533 freebsd[123]*) objformat=aout ;;
20534 *) objformat=elf ;;
20535 esac
20536 fi
20537 version_type=freebsd-$objformat
20538 case $version_type in
20539 freebsd-elf*)
20540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541 need_version=no
20542 need_lib_prefix=no
20543 ;;
20544 freebsd-*)
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20546 need_version=yes
20547 ;;
20548 esac
20549 shlibpath_var=LD_LIBRARY_PATH
20550 case $host_os in
20551 freebsd2*)
20552 shlibpath_overrides_runpath=yes
20553 ;;
20554 freebsd3.[01]* | freebsdelf3.[01]*)
20555 shlibpath_overrides_runpath=yes
20556 hardcode_into_libs=yes
20557 ;;
20558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20560 shlibpath_overrides_runpath=no
20561 hardcode_into_libs=yes
20562 ;;
20563 freebsd*) # from 4.6 on
20564 shlibpath_overrides_runpath=yes
20565 hardcode_into_libs=yes
20566 ;;
20567 esac
20568 ;;
20569
20570gnu*)
20571 version_type=linux
20572 need_lib_prefix=no
20573 need_version=no
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20575 soname_spec='${libname}${release}${shared_ext}$major'
20576 shlibpath_var=LD_LIBRARY_PATH
20577 hardcode_into_libs=yes
20578 ;;
20579
20580hpux9* | hpux10* | hpux11*)
20581 # Give a soname corresponding to the major version so that dld.sl refuses to
20582 # link against other versions.
20583 version_type=sunos
20584 need_lib_prefix=no
20585 need_version=no
20586 case $host_cpu in
20587 ia64*)
20588 shrext_cmds='.so'
20589 hardcode_into_libs=yes
20590 dynamic_linker="$host_os dld.so"
20591 shlibpath_var=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
20596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20597 else
20598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20599 fi
20600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20601 ;;
20602 hppa*64*)
20603 shrext_cmds='.sl'
20604 hardcode_into_libs=yes
20605 dynamic_linker="$host_os dld.sl"
20606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20612 ;;
20613 *)
20614 shrext_cmds='.sl'
20615 dynamic_linker="$host_os dld.sl"
20616 shlibpath_var=SHLIB_PATH
20617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 ;;
20621 esac
20622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20623 postinstall_cmds='chmod 555 $lib'
20624 ;;
20625
20626interix3*)
20627 version_type=linux
20628 need_lib_prefix=no
20629 need_version=no
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 shlibpath_overrides_runpath=no
20635 hardcode_into_libs=yes
20636 ;;
20637
20638irix5* | irix6* | nonstopux*)
20639 case $host_os in
20640 nonstopux*) version_type=nonstopux ;;
20641 *)
20642 if test "$lt_cv_prog_gnu_ld" = yes; then
20643 version_type=linux
20644 else
20645 version_type=irix
20646 fi ;;
20647 esac
20648 need_lib_prefix=no
20649 need_version=no
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20652 case $host_os in
20653 irix5* | nonstopux*)
20654 libsuff= shlibsuff=
20655 ;;
20656 *)
20657 case $LD in # libtool.m4 will add one of these switches to LD
20658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20659 libsuff= shlibsuff= libmagic=32-bit;;
20660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20661 libsuff=32 shlibsuff=N32 libmagic=N32;;
20662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20664 *) libsuff= shlibsuff= libmagic=never-match;;
20665 esac
20666 ;;
20667 esac
20668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20669 shlibpath_overrides_runpath=no
20670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20672 hardcode_into_libs=yes
20673 ;;
20674
20675# No shared lib support for Linux oldld, aout, or coff.
20676linux*oldld* | linux*aout* | linux*coff*)
20677 dynamic_linker=no
20678 ;;
20679
20680# This must be Linux ELF.
20681linux*)
20682 version_type=linux
20683 need_lib_prefix=no
20684 need_version=no
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=no
20690 # This implies no fast_install, which is unacceptable.
20691 # Some rework will be needed to allow for fast_install
20692 # before this can be enabled.
20693 hardcode_into_libs=yes
20694
20695 # Append ld.so.conf contents to the search path
20696 if test -f /etc/ld.so.conf; then
20697 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' ' '`
20698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20699 fi
20700
20701 # We used to test for /lib/ld.so.1 and disable shared libraries on
20702 # powerpc, because MkLinux only supported shared libraries with the
20703 # GNU dynamic linker. Since this was broken with cross compilers,
20704 # most powerpc-linux boxes support dynamic linking these days and
20705 # people can always --disable-shared, the test was removed, and we
20706 # assume the GNU/Linux dynamic linker is in use.
20707 dynamic_linker='GNU/Linux ld.so'
20708 ;;
20709
20710knetbsd*-gnu)
20711 version_type=linux
20712 need_lib_prefix=no
20713 need_version=no
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 shlibpath_var=LD_LIBRARY_PATH
20717 shlibpath_overrides_runpath=no
20718 hardcode_into_libs=yes
20719 dynamic_linker='GNU ld.so'
20720 ;;
20721
20722netbsd*)
20723 version_type=sunos
20724 need_lib_prefix=no
20725 need_version=no
20726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20729 dynamic_linker='NetBSD (a.out) ld.so'
20730 else
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20732 soname_spec='${libname}${release}${shared_ext}$major'
20733 dynamic_linker='NetBSD ld.elf_so'
20734 fi
20735 shlibpath_var=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20738 ;;
20739
20740newsos6)
20741 version_type=linux
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=yes
20745 ;;
20746
20747nto-qnx*)
20748 version_type=linux
20749 need_lib_prefix=no
20750 need_version=no
20751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 soname_spec='${libname}${release}${shared_ext}$major'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=yes
20755 ;;
20756
20757openbsd*)
20758 version_type=sunos
20759 sys_lib_dlsearch_path_spec="/usr/lib"
20760 need_lib_prefix=no
20761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20762 case $host_os in
20763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20764 *) need_version=no ;;
20765 esac
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20770 case $host_os in
20771 openbsd2.[89] | openbsd2.[89].*)
20772 shlibpath_overrides_runpath=no
20773 ;;
20774 *)
20775 shlibpath_overrides_runpath=yes
20776 ;;
20777 esac
20778 else
20779 shlibpath_overrides_runpath=yes
20780 fi
20781 ;;
20782
20783os2*)
20784 libname_spec='$name'
20785 shrext_cmds=".dll"
20786 need_lib_prefix=no
20787 library_names_spec='$libname${shared_ext} $libname.a'
20788 dynamic_linker='OS/2 ld.exe'
20789 shlibpath_var=LIBPATH
20790 ;;
20791
20792osf3* | osf4* | osf5*)
20793 version_type=osf
20794 need_lib_prefix=no
20795 need_version=no
20796 soname_spec='${libname}${release}${shared_ext}$major'
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 shlibpath_var=LD_LIBRARY_PATH
20799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20801 ;;
20802
20803solaris*)
20804 version_type=linux
20805 need_lib_prefix=no
20806 need_version=no
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20812 # ldd complains unless libraries are executable
20813 postinstall_cmds='chmod +x $lib'
20814 ;;
20815
20816sunos4*)
20817 version_type=sunos
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 if test "$with_gnu_ld" = yes; then
20823 need_lib_prefix=no
20824 fi
20825 need_version=yes
20826 ;;
20827
20828sysv4 | sysv4.3*)
20829 version_type=linux
20830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec='${libname}${release}${shared_ext}$major'
20832 shlibpath_var=LD_LIBRARY_PATH
20833 case $host_vendor in
20834 sni)
20835 shlibpath_overrides_runpath=no
20836 need_lib_prefix=no
20837 export_dynamic_flag_spec='${wl}-Blargedynsym'
20838 runpath_var=LD_RUN_PATH
20839 ;;
20840 siemens)
20841 need_lib_prefix=no
20842 ;;
20843 motorola)
20844 need_lib_prefix=no
20845 need_version=no
20846 shlibpath_overrides_runpath=no
20847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20848 ;;
20849 esac
20850 ;;
20851
20852sysv4*MP*)
20853 if test -d /usr/nec ;then
20854 version_type=linux
20855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20856 soname_spec='$libname${shared_ext}.$major'
20857 shlibpath_var=LD_LIBRARY_PATH
20858 fi
20859 ;;
20860
20861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20862 version_type=freebsd-elf
20863 need_lib_prefix=no
20864 need_version=no
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 hardcode_into_libs=yes
20869 if test "$with_gnu_ld" = yes; then
20870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20871 shlibpath_overrides_runpath=no
20872 else
20873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20874 shlibpath_overrides_runpath=yes
20875 case $host_os in
20876 sco3.2v5*)
20877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20878 ;;
20879 esac
20880 fi
20881 sys_lib_dlsearch_path_spec='/usr/lib'
20882 ;;
20883
20884uts4*)
20885 version_type=linux
20886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 shlibpath_var=LD_LIBRARY_PATH
20889 ;;
20890
20891*)
20892 dynamic_linker=no
20893 ;;
20894esac
20895{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20896echo "${ECHO_T}$dynamic_linker" >&6; }
20897test "$dynamic_linker" = no && can_build_shared=no
20898
20899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20900if test "$GCC" = yes; then
20901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20902fi
20903
20904{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20905echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20906hardcode_action_CXX=
20907if test -n "$hardcode_libdir_flag_spec_CXX" || \
20908 test -n "$runpath_var_CXX" || \
20909 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20910
20911 # We can hardcode non-existant directories.
20912 if test "$hardcode_direct_CXX" != no &&
20913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20914 # have to relink, otherwise we might link with an installed library
20915 # when we should be linking with a yet-to-be-installed one
20916 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20917 test "$hardcode_minus_L_CXX" != no; then
20918 # Linking always hardcodes the temporary library directory.
20919 hardcode_action_CXX=relink
20920 else
20921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20922 hardcode_action_CXX=immediate
20923 fi
20924else
20925 # We cannot hardcode anything, or else we can only hardcode existing
20926 # directories.
20927 hardcode_action_CXX=unsupported
20928fi
20929{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20930echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20931
20932if test "$hardcode_action_CXX" = relink; then
20933 # Fast installation is not supported
20934 enable_fast_install=no
20935elif test "$shlibpath_overrides_runpath" = yes ||
20936 test "$enable_shared" = no; then
20937 # Fast installation is not necessary
20938 enable_fast_install=needless
20939fi
20940
20941
20942# The else clause should only fire when bootstrapping the
20943# libtool distribution, otherwise you forgot to ship ltmain.sh
20944# with your package, and you will get complaints that there are
20945# no rules to generate ltmain.sh.
20946if test -f "$ltmain"; then
20947 # See if we are running on zsh, and set the options which allow our commands through
20948 # without removal of \ escapes.
20949 if test -n "${ZSH_VERSION+set}" ; then
20950 setopt NO_GLOB_SUBST
20951 fi
20952 # Now quote all the things that may contain metacharacters while being
20953 # careful not to overquote the AC_SUBSTed values. We take copies of the
20954 # variables and quote the copies for generation of the libtool script.
20955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20956 SED SHELL STRIP \
20957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20959 deplibs_check_method reload_flag reload_cmds need_locks \
20960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20961 lt_cv_sys_global_symbol_to_c_name_address \
20962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20963 old_postinstall_cmds old_postuninstall_cmds \
20964 compiler_CXX \
20965 CC_CXX \
20966 LD_CXX \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_pic_CXX \
20969 lt_prog_compiler_static_CXX \
20970 lt_prog_compiler_no_builtin_flag_CXX \
20971 export_dynamic_flag_spec_CXX \
20972 thread_safe_flag_spec_CXX \
20973 whole_archive_flag_spec_CXX \
20974 enable_shared_with_static_runtimes_CXX \
20975 old_archive_cmds_CXX \
20976 old_archive_from_new_cmds_CXX \
20977 predep_objects_CXX \
20978 postdep_objects_CXX \
20979 predeps_CXX \
20980 postdeps_CXX \
20981 compiler_lib_search_path_CXX \
20982 archive_cmds_CXX \
20983 archive_expsym_cmds_CXX \
20984 postinstall_cmds_CXX \
20985 postuninstall_cmds_CXX \
20986 old_archive_from_expsyms_cmds_CXX \
20987 allow_undefined_flag_CXX \
20988 no_undefined_flag_CXX \
20989 export_symbols_cmds_CXX \
20990 hardcode_libdir_flag_spec_CXX \
20991 hardcode_libdir_flag_spec_ld_CXX \
20992 hardcode_libdir_separator_CXX \
20993 hardcode_automatic_CXX \
20994 module_cmds_CXX \
20995 module_expsym_cmds_CXX \
20996 lt_cv_prog_compiler_c_o_CXX \
20997 exclude_expsyms_CXX \
20998 include_expsyms_CXX; do
20999
21000 case $var in
21001 old_archive_cmds_CXX | \
21002 old_archive_from_new_cmds_CXX | \
21003 archive_cmds_CXX | \
21004 archive_expsym_cmds_CXX | \
21005 module_cmds_CXX | \
21006 module_expsym_cmds_CXX | \
21007 old_archive_from_expsyms_cmds_CXX | \
21008 export_symbols_cmds_CXX | \
21009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21010 postinstall_cmds | postuninstall_cmds | \
21011 old_postinstall_cmds | old_postuninstall_cmds | \
21012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21013 # Double-quote double-evaled strings.
21014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21015 ;;
21016 *)
21017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21018 ;;
21019 esac
21020 done
21021
21022 case $lt_echo in
21023 *'\$0 --fallback-echo"')
21024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21025 ;;
21026 esac
21027
21028cfgfile="$ofile"
21029
21030 cat <<__EOF__ >> "$cfgfile"
21031# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21032
21033# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21034
21035# Shell to use when invoking shell scripts.
21036SHELL=$lt_SHELL
21037
21038# Whether or not to build shared libraries.
21039build_libtool_libs=$enable_shared
21040
21041# Whether or not to build static libraries.
21042build_old_libs=$enable_static
21043
21044# Whether or not to add -lc for building shared libraries.
21045build_libtool_need_lc=$archive_cmds_need_lc_CXX
21046
21047# Whether or not to disallow shared libs when runtime libs are static
21048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21049
21050# Whether or not to optimize for fast installation.
21051fast_install=$enable_fast_install
21052
21053# The host system.
21054host_alias=$host_alias
21055host=$host
21056host_os=$host_os
21057
21058# The build system.
21059build_alias=$build_alias
21060build=$build
21061build_os=$build_os
21062
21063# An echo program that does not interpret backslashes.
21064echo=$lt_echo
21065
21066# The archiver.
21067AR=$lt_AR
21068AR_FLAGS=$lt_AR_FLAGS
21069
21070# A C compiler.
21071LTCC=$lt_LTCC
21072
21073# LTCC compiler flags.
21074LTCFLAGS=$lt_LTCFLAGS
21075
21076# A language-specific compiler.
21077CC=$lt_compiler_CXX
21078
21079# Is the compiler the GNU C compiler?
21080with_gcc=$GCC_CXX
21081
21082# An ERE matcher.
21083EGREP=$lt_EGREP
21084
21085# The linker used to build libraries.
21086LD=$lt_LD_CXX
21087
21088# Whether we need hard or soft links.
21089LN_S=$lt_LN_S
21090
21091# A BSD-compatible nm program.
21092NM=$lt_NM
21093
21094# A symbol stripping program
21095STRIP=$lt_STRIP
21096
21097# Used to examine libraries when file_magic_cmd begins "file"
21098MAGIC_CMD=$MAGIC_CMD
21099
21100# Used on cygwin: DLL creation program.
21101DLLTOOL="$DLLTOOL"
21102
21103# Used on cygwin: object dumper.
21104OBJDUMP="$OBJDUMP"
21105
21106# Used on cygwin: assembler.
21107AS="$AS"
21108
21109# The name of the directory that contains temporary libtool files.
21110objdir=$objdir
21111
21112# How to create reloadable object files.
21113reload_flag=$lt_reload_flag
21114reload_cmds=$lt_reload_cmds
21115
21116# How to pass a linker flag through the compiler.
21117wl=$lt_lt_prog_compiler_wl_CXX
21118
21119# Object file suffix (normally "o").
21120objext="$ac_objext"
21121
21122# Old archive suffix (normally "a").
21123libext="$libext"
21124
21125# Shared library suffix (normally ".so").
21126shrext_cmds='$shrext_cmds'
21127
21128# Executable file suffix (normally "").
21129exeext="$exeext"
21130
21131# Additional compiler flags for building library objects.
21132pic_flag=$lt_lt_prog_compiler_pic_CXX
21133pic_mode=$pic_mode
21134
21135# What is the maximum length of a command?
21136max_cmd_len=$lt_cv_sys_max_cmd_len
21137
21138# Does compiler simultaneously support -c and -o options?
21139compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21140
21141# Must we lock files when doing compilation?
21142need_locks=$lt_need_locks
21143
21144# Do we need the lib prefix for modules?
21145need_lib_prefix=$need_lib_prefix
21146
21147# Do we need a version for libraries?
21148need_version=$need_version
21149
21150# Whether dlopen is supported.
21151dlopen_support=$enable_dlopen
21152
21153# Whether dlopen of programs is supported.
21154dlopen_self=$enable_dlopen_self
21155
21156# Whether dlopen of statically linked programs is supported.
21157dlopen_self_static=$enable_dlopen_self_static
21158
21159# Compiler flag to prevent dynamic linking.
21160link_static_flag=$lt_lt_prog_compiler_static_CXX
21161
21162# Compiler flag to turn off builtin functions.
21163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21164
21165# Compiler flag to allow reflexive dlopens.
21166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21167
21168# Compiler flag to generate shared objects directly from archives.
21169whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21170
21171# Compiler flag to generate thread-safe objects.
21172thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21173
21174# Library versioning type.
21175version_type=$version_type
21176
21177# Format of library name prefix.
21178libname_spec=$lt_libname_spec
21179
21180# List of archive names. First name is the real one, the rest are links.
21181# The last name is the one that the linker finds with -lNAME.
21182library_names_spec=$lt_library_names_spec
21183
21184# The coded name of the library, if different from the real name.
21185soname_spec=$lt_soname_spec
21186
21187# Commands used to build and install an old-style archive.
21188RANLIB=$lt_RANLIB
21189old_archive_cmds=$lt_old_archive_cmds_CXX
21190old_postinstall_cmds=$lt_old_postinstall_cmds
21191old_postuninstall_cmds=$lt_old_postuninstall_cmds
21192
21193# Create an old-style archive from a shared archive.
21194old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21195
21196# Create a temporary old-style archive to link instead of a shared archive.
21197old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21198
21199# Commands used to build and install a shared archive.
21200archive_cmds=$lt_archive_cmds_CXX
21201archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21202postinstall_cmds=$lt_postinstall_cmds
21203postuninstall_cmds=$lt_postuninstall_cmds
21204
21205# Commands used to build a loadable module (assumed same as above if empty)
21206module_cmds=$lt_module_cmds_CXX
21207module_expsym_cmds=$lt_module_expsym_cmds_CXX
21208
21209# Commands to strip libraries.
21210old_striplib=$lt_old_striplib
21211striplib=$lt_striplib
21212
21213# Dependencies to place before the objects being linked to create a
21214# shared library.
21215predep_objects=$lt_predep_objects_CXX
21216
21217# Dependencies to place after the objects being linked to create a
21218# shared library.
21219postdep_objects=$lt_postdep_objects_CXX
21220
21221# Dependencies to place before the objects being linked to create a
21222# shared library.
21223predeps=$lt_predeps_CXX
21224
21225# Dependencies to place after the objects being linked to create a
21226# shared library.
21227postdeps=$lt_postdeps_CXX
21228
21229# The library search path used internally by the compiler when linking
21230# a shared library.
21231compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21232
21233# Method to check whether dependent libraries are shared objects.
21234deplibs_check_method=$lt_deplibs_check_method
21235
21236# Command to use when deplibs_check_method == file_magic.
21237file_magic_cmd=$lt_file_magic_cmd
21238
21239# Flag that allows shared libraries with undefined symbols to be built.
21240allow_undefined_flag=$lt_allow_undefined_flag_CXX
21241
21242# Flag that forces no undefined symbols.
21243no_undefined_flag=$lt_no_undefined_flag_CXX
21244
21245# Commands used to finish a libtool library installation in a directory.
21246finish_cmds=$lt_finish_cmds
21247
21248# Same as above, but a single script fragment to be evaled but not shown.
21249finish_eval=$lt_finish_eval
21250
21251# Take the output of nm and produce a listing of raw symbols and C names.
21252global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21253
21254# Transform the output of nm in a proper C declaration
21255global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21256
21257# Transform the output of nm in a C name address pair
21258global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21259
21260# This is the shared library runtime path variable.
21261runpath_var=$runpath_var
21262
21263# This is the shared library path variable.
21264shlibpath_var=$shlibpath_var
21265
21266# Is shlibpath searched before the hard-coded library search path?
21267shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21268
21269# How to hardcode a shared library path into an executable.
21270hardcode_action=$hardcode_action_CXX
21271
21272# Whether we should hardcode library paths into libraries.
21273hardcode_into_libs=$hardcode_into_libs
21274
21275# Flag to hardcode \$libdir into a binary during linking.
21276# This must work even if \$libdir does not exist.
21277hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21278
21279# If ld is used when linking, flag to hardcode \$libdir into
21280# a binary during linking. This must work even if \$libdir does
21281# not exist.
21282hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21283
21284# Whether we need a single -rpath flag with a separated argument.
21285hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21286
21287# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21288# resulting binary.
21289hardcode_direct=$hardcode_direct_CXX
21290
21291# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21292# resulting binary.
21293hardcode_minus_L=$hardcode_minus_L_CXX
21294
21295# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21296# the resulting binary.
21297hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21298
21299# Set to yes if building a shared library automatically hardcodes DIR into the library
21300# and all subsequent libraries and executables linked against it.
21301hardcode_automatic=$hardcode_automatic_CXX
21302
21303# Variables whose values should be saved in libtool wrapper scripts and
21304# restored at relink time.
21305variables_saved_for_relink="$variables_saved_for_relink"
21306
21307# Whether libtool must link a program against all its dependency libraries.
21308link_all_deplibs=$link_all_deplibs_CXX
21309
21310# Compile-time system search path for libraries
21311sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21312
21313# Run-time system search path for libraries
21314sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21315
21316# Fix the shell variable \$srcfile for the compiler.
21317fix_srcfile_path="$fix_srcfile_path_CXX"
21318
21319# Set to yes if exported symbols are required.
21320always_export_symbols=$always_export_symbols_CXX
21321
21322# The commands to list exported symbols.
21323export_symbols_cmds=$lt_export_symbols_cmds_CXX
21324
21325# The commands to extract the exported symbol list from a shared archive.
21326extract_expsyms_cmds=$lt_extract_expsyms_cmds
21327
21328# Symbols that should not be listed in the preloaded symbols.
21329exclude_expsyms=$lt_exclude_expsyms_CXX
21330
21331# Symbols that must always be exported.
21332include_expsyms=$lt_include_expsyms_CXX
21333
21334# ### END LIBTOOL TAG CONFIG: $tagname
21335
21336__EOF__
21337
21338
21339else
21340 # If there is no Makefile yet, we rely on a make rule to execute
21341 # `config.status --recheck' to rerun these tests and create the
21342 # libtool script then.
21343 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21344 if test -f "$ltmain_in"; then
21345 test -f Makefile && make "$ltmain"
21346 fi
21347fi
21348
21349
21350ac_ext=c
21351ac_cpp='$CPP $CPPFLAGS'
21352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355
21356CC=$lt_save_CC
21357LDCXX=$LD
21358LD=$lt_save_LD
21359GCC=$lt_save_GCC
21360with_gnu_ldcxx=$with_gnu_ld
21361with_gnu_ld=$lt_save_with_gnu_ld
21362lt_cv_path_LDCXX=$lt_cv_path_LD
21363lt_cv_path_LD=$lt_save_path_LD
21364lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21365lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21366
21367 else
21368 tagname=""
21369 fi
21370 ;;
21371
21372 F77)
21373 if test -n "$F77" && test "X$F77" != "Xno"; then
21374
21375ac_ext=f
21376ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21377ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21379
21380
21381archive_cmds_need_lc_F77=no
21382allow_undefined_flag_F77=
21383always_export_symbols_F77=no
21384archive_expsym_cmds_F77=
21385export_dynamic_flag_spec_F77=
21386hardcode_direct_F77=no
21387hardcode_libdir_flag_spec_F77=
21388hardcode_libdir_flag_spec_ld_F77=
21389hardcode_libdir_separator_F77=
21390hardcode_minus_L_F77=no
21391hardcode_automatic_F77=no
21392module_cmds_F77=
21393module_expsym_cmds_F77=
21394link_all_deplibs_F77=unknown
21395old_archive_cmds_F77=$old_archive_cmds
21396no_undefined_flag_F77=
21397whole_archive_flag_spec_F77=
21398enable_shared_with_static_runtimes_F77=no
21399
21400# Source file extension for f77 test sources.
21401ac_ext=f
21402
21403# Object file extension for compiled f77 test sources.
21404objext=o
21405objext_F77=$objext
21406
21407# Code to be used in simple compile tests
21408lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21409
21410# Code to be used in simple link tests
21411lt_simple_link_test_code=" program t\n end\n"
21412
21413# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21414
21415# If no C compiler was specified, use CC.
21416LTCC=${LTCC-"$CC"}
21417
21418# If no C compiler flags were specified, use CFLAGS.
21419LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21420
21421# Allow CC to be a program name with arguments.
21422compiler=$CC
21423
21424
21425# save warnings/boilerplate of simple test code
21426ac_outfile=conftest.$ac_objext
21427printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21428eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21429_lt_compiler_boilerplate=`cat conftest.err`
21430$rm conftest*
21431
21432ac_outfile=conftest.$ac_objext
21433printf "$lt_simple_link_test_code" >conftest.$ac_ext
21434eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435_lt_linker_boilerplate=`cat conftest.err`
21436$rm conftest*
21437
21438
21439# Allow CC to be a program name with arguments.
21440lt_save_CC="$CC"
21441CC=${F77-"f77"}
21442compiler=$CC
21443compiler_F77=$CC
21444for cc_temp in $compiler""; do
21445 case $cc_temp in
21446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21448 \-*) ;;
21449 *) break;;
21450 esac
21451done
21452cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21453
21454
21455{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21456echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21457{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21458echo "${ECHO_T}$can_build_shared" >&6; }
21459
21460{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21461echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21462test "$can_build_shared" = "no" && enable_shared=no
21463
21464# On AIX, shared libraries and static libraries use the same namespace, and
21465# are all built from PIC.
21466case $host_os in
21467aix3*)
21468 test "$enable_shared" = yes && enable_static=no
21469 if test -n "$RANLIB"; then
21470 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21471 postinstall_cmds='$RANLIB $lib'
21472 fi
21473 ;;
21474aix4* | aix5*)
21475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21476 test "$enable_shared" = yes && enable_static=no
21477 fi
21478 ;;
21479esac
21480{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21481echo "${ECHO_T}$enable_shared" >&6; }
21482
21483{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21484echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21485# Make sure either enable_shared or enable_static is yes.
21486test "$enable_shared" = yes || enable_static=yes
21487{ echo "$as_me:$LINENO: result: $enable_static" >&5
21488echo "${ECHO_T}$enable_static" >&6; }
21489
21490GCC_F77="$G77"
21491LD_F77="$LD"
21492
21493lt_prog_compiler_wl_F77=
21494lt_prog_compiler_pic_F77=
21495lt_prog_compiler_static_F77=
21496
21497{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21498echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21499
21500 if test "$GCC" = yes; then
21501 lt_prog_compiler_wl_F77='-Wl,'
21502 lt_prog_compiler_static_F77='-static'
21503
21504 case $host_os in
21505 aix*)
21506 # All AIX code is PIC.
21507 if test "$host_cpu" = ia64; then
21508 # AIX 5 now supports IA64 processor
21509 lt_prog_compiler_static_F77='-Bstatic'
21510 fi
21511 ;;
21512
21513 amigaos*)
21514 # FIXME: we need at least 68020 code to build shared libraries, but
21515 # adding the `-m68020' flag to GCC prevents building anything better,
21516 # like `-m68040'.
21517 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21518 ;;
21519
21520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21521 # PIC is the default for these OSes.
21522 ;;
21523
21524 mingw* | pw32* | os2*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21528 ;;
21529
21530 darwin* | rhapsody*)
21531 # PIC is the default on this platform
21532 # Common symbols not allowed in MH_DYLIB files
21533 lt_prog_compiler_pic_F77='-fno-common'
21534 ;;
21535
21536 interix3*)
21537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21538 # Instead, we relocate shared libraries at runtime.
21539 ;;
21540
21541 msdosdjgpp*)
21542 # Just because we use GCC doesn't mean we suddenly get shared libraries
21543 # on systems that don't support them.
21544 lt_prog_compiler_can_build_shared_F77=no
21545 enable_shared=no
21546 ;;
21547
21548 sysv4*MP*)
21549 if test -d /usr/nec; then
21550 lt_prog_compiler_pic_F77=-Kconform_pic
21551 fi
21552 ;;
21553
21554 hpux*)
21555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21556 # not for PA HP-UX.
21557 case $host_cpu in
21558 hppa*64*|ia64*)
21559 # +Z the default
21560 ;;
21561 *)
21562 lt_prog_compiler_pic_F77='-fPIC'
21563 ;;
21564 esac
21565 ;;
21566
21567 *)
21568 lt_prog_compiler_pic_F77='-fPIC'
21569 ;;
21570 esac
21571 else
21572 # PORTME Check for flag to pass linker flags through the system compiler.
21573 case $host_os in
21574 aix*)
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 if test "$host_cpu" = ia64; then
21577 # AIX 5 now supports IA64 processor
21578 lt_prog_compiler_static_F77='-Bstatic'
21579 else
21580 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21581 fi
21582 ;;
21583 darwin*)
21584 # PIC is the default on this platform
21585 # Common symbols not allowed in MH_DYLIB files
21586 case $cc_basename in
21587 xlc*)
21588 lt_prog_compiler_pic_F77='-qnocommon'
21589 lt_prog_compiler_wl_F77='-Wl,'
21590 ;;
21591 esac
21592 ;;
21593
21594 mingw* | pw32* | os2*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21598 ;;
21599
21600 hpux9* | hpux10* | hpux11*)
21601 lt_prog_compiler_wl_F77='-Wl,'
21602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603 # not for PA HP-UX.
21604 case $host_cpu in
21605 hppa*64*|ia64*)
21606 # +Z the default
21607 ;;
21608 *)
21609 lt_prog_compiler_pic_F77='+Z'
21610 ;;
21611 esac
21612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21613 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21614 ;;
21615
21616 irix5* | irix6* | nonstopux*)
21617 lt_prog_compiler_wl_F77='-Wl,'
21618 # PIC (with -KPIC) is the default.
21619 lt_prog_compiler_static_F77='-non_shared'
21620 ;;
21621
21622 newsos6)
21623 lt_prog_compiler_pic_F77='-KPIC'
21624 lt_prog_compiler_static_F77='-Bstatic'
21625 ;;
21626
21627 linux*)
21628 case $cc_basename in
21629 icc* | ecc*)
21630 lt_prog_compiler_wl_F77='-Wl,'
21631 lt_prog_compiler_pic_F77='-KPIC'
21632 lt_prog_compiler_static_F77='-static'
21633 ;;
21634 pgcc* | pgf77* | pgf90* | pgf95*)
21635 # Portland Group compilers (*not* the Pentium gcc compiler,
21636 # which looks to be a dead project)
21637 lt_prog_compiler_wl_F77='-Wl,'
21638 lt_prog_compiler_pic_F77='-fpic'
21639 lt_prog_compiler_static_F77='-Bstatic'
21640 ;;
21641 ccc*)
21642 lt_prog_compiler_wl_F77='-Wl,'
21643 # All Alpha code is PIC.
21644 lt_prog_compiler_static_F77='-non_shared'
21645 ;;
21646 esac
21647 ;;
21648
21649 osf3* | osf4* | osf5*)
21650 lt_prog_compiler_wl_F77='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_F77='-non_shared'
21653 ;;
21654
21655 solaris*)
21656 lt_prog_compiler_pic_F77='-KPIC'
21657 lt_prog_compiler_static_F77='-Bstatic'
21658 case $cc_basename in
21659 f77* | f90* | f95*)
21660 lt_prog_compiler_wl_F77='-Qoption ld ';;
21661 *)
21662 lt_prog_compiler_wl_F77='-Wl,';;
21663 esac
21664 ;;
21665
21666 sunos4*)
21667 lt_prog_compiler_wl_F77='-Qoption ld '
21668 lt_prog_compiler_pic_F77='-PIC'
21669 lt_prog_compiler_static_F77='-Bstatic'
21670 ;;
21671
21672 sysv4 | sysv4.2uw2* | sysv4.3*)
21673 lt_prog_compiler_wl_F77='-Wl,'
21674 lt_prog_compiler_pic_F77='-KPIC'
21675 lt_prog_compiler_static_F77='-Bstatic'
21676 ;;
21677
21678 sysv4*MP*)
21679 if test -d /usr/nec ;then
21680 lt_prog_compiler_pic_F77='-Kconform_pic'
21681 lt_prog_compiler_static_F77='-Bstatic'
21682 fi
21683 ;;
21684
21685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21686 lt_prog_compiler_wl_F77='-Wl,'
21687 lt_prog_compiler_pic_F77='-KPIC'
21688 lt_prog_compiler_static_F77='-Bstatic'
21689 ;;
21690
21691 unicos*)
21692 lt_prog_compiler_wl_F77='-Wl,'
21693 lt_prog_compiler_can_build_shared_F77=no
21694 ;;
21695
21696 uts4*)
21697 lt_prog_compiler_pic_F77='-pic'
21698 lt_prog_compiler_static_F77='-Bstatic'
21699 ;;
21700
21701 *)
21702 lt_prog_compiler_can_build_shared_F77=no
21703 ;;
21704 esac
21705 fi
21706
21707{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21708echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21709
21710#
21711# Check to make sure the PIC flag actually works.
21712#
21713if test -n "$lt_prog_compiler_pic_F77"; then
21714
21715{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21716echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21717if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719else
21720 lt_prog_compiler_pic_works_F77=no
21721 ac_outfile=conftest.$ac_objext
21722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21723 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21724 # Insert the option either (1) after the last *FLAGS variable, or
21725 # (2) before a word containing "conftest.", or (3) at the end.
21726 # Note that $ac_compile itself does not contain backslashes and begins
21727 # with a dollar sign (not a hyphen), so the echo should work correctly.
21728 # The option is referenced via a variable to avoid confusing sed.
21729 lt_compile=`echo "$ac_compile" | $SED \
21730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21732 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000021733 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021734 (eval "$lt_compile" 2>conftest.err)
21735 ac_status=$?
21736 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000021737 echo "$as_me:21737: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021738 if (exit $ac_status) && test -s "$ac_outfile"; then
21739 # The compiler can only warn and ignore the option if not recognized
21740 # So say no if there are warnings other than the usual output.
21741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21744 lt_prog_compiler_pic_works_F77=yes
21745 fi
21746 fi
21747 $rm conftest*
21748
21749fi
21750{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21751echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21752
21753if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21754 case $lt_prog_compiler_pic_F77 in
21755 "" | " "*) ;;
21756 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21757 esac
21758else
21759 lt_prog_compiler_pic_F77=
21760 lt_prog_compiler_can_build_shared_F77=no
21761fi
21762
21763fi
21764case $host_os in
21765 # For platforms which do not support PIC, -DPIC is meaningless:
21766 *djgpp*)
21767 lt_prog_compiler_pic_F77=
21768 ;;
21769 *)
21770 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21771 ;;
21772esac
21773
21774#
21775# Check to make sure the static flag actually works.
21776#
21777wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21778{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21779echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21780if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782else
21783 lt_prog_compiler_static_works_F77=no
21784 save_LDFLAGS="$LDFLAGS"
21785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21786 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21788 # The linker can only warn and ignore the option if not recognized
21789 # So say no if there are warnings
21790 if test -s conftest.err; then
21791 # Append any errors to the config.log.
21792 cat conftest.err 1>&5
21793 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21795 if diff conftest.exp conftest.er2 >/dev/null; then
21796 lt_prog_compiler_static_works_F77=yes
21797 fi
21798 else
21799 lt_prog_compiler_static_works_F77=yes
21800 fi
21801 fi
21802 $rm conftest*
21803 LDFLAGS="$save_LDFLAGS"
21804
21805fi
21806{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21807echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21808
21809if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21810 :
21811else
21812 lt_prog_compiler_static_F77=
21813fi
21814
21815
21816{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21817echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21818if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820else
21821 lt_cv_prog_compiler_c_o_F77=no
21822 $rm -r conftest 2>/dev/null
21823 mkdir conftest
21824 cd conftest
21825 mkdir out
21826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21827
21828 lt_compiler_flag="-o out/conftest2.$ac_objext"
21829 # Insert the option either (1) after the last *FLAGS variable, or
21830 # (2) before a word containing "conftest.", or (3) at the end.
21831 # Note that $ac_compile itself does not contain backslashes and begins
21832 # with a dollar sign (not a hyphen), so the echo should work correctly.
21833 lt_compile=`echo "$ac_compile" | $SED \
21834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21836 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000021837 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021838 (eval "$lt_compile" 2>out/conftest.err)
21839 ac_status=$?
21840 cat out/conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000021841 echo "$as_me:21841: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21843 then
21844 # The compiler can only warn and ignore the option if not recognized
21845 # So say no if there are warnings
21846 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21849 lt_cv_prog_compiler_c_o_F77=yes
21850 fi
21851 fi
21852 chmod u+w . 2>&5
21853 $rm conftest*
21854 # SGI C++ compiler will create directory out/ii_files/ for
21855 # template instantiation
21856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21857 $rm out/* && rmdir out
21858 cd ..
21859 rmdir conftest
21860 $rm conftest*
21861
21862fi
21863{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21864echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21865
21866
21867hard_links="nottested"
21868if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21869 # do not overwrite the value of need_locks provided by the user
21870 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21871echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21872 hard_links=yes
21873 $rm conftest*
21874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21875 touch conftest.a
21876 ln conftest.a conftest.b 2>&5 || hard_links=no
21877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21878 { echo "$as_me:$LINENO: result: $hard_links" >&5
21879echo "${ECHO_T}$hard_links" >&6; }
21880 if test "$hard_links" = no; then
21881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21882echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21883 need_locks=warn
21884 fi
21885else
21886 need_locks=no
21887fi
21888
21889{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21890echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21891
21892 runpath_var=
21893 allow_undefined_flag_F77=
21894 enable_shared_with_static_runtimes_F77=no
21895 archive_cmds_F77=
21896 archive_expsym_cmds_F77=
21897 old_archive_From_new_cmds_F77=
21898 old_archive_from_expsyms_cmds_F77=
21899 export_dynamic_flag_spec_F77=
21900 whole_archive_flag_spec_F77=
21901 thread_safe_flag_spec_F77=
21902 hardcode_libdir_flag_spec_F77=
21903 hardcode_libdir_flag_spec_ld_F77=
21904 hardcode_libdir_separator_F77=
21905 hardcode_direct_F77=no
21906 hardcode_minus_L_F77=no
21907 hardcode_shlibpath_var_F77=unsupported
21908 link_all_deplibs_F77=unknown
21909 hardcode_automatic_F77=no
21910 module_cmds_F77=
21911 module_expsym_cmds_F77=
21912 always_export_symbols_F77=no
21913 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21914 # include_expsyms should be a list of space-separated symbols to be *always*
21915 # included in the symbol list
21916 include_expsyms_F77=
21917 # exclude_expsyms can be an extended regexp of symbols to exclude
21918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21920 # as well as any symbol that contains `d'.
21921 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21923 # platforms (ab)use it in PIC code, but their linkers get confused if
21924 # the symbol is explicitly referenced. Since portable code cannot
21925 # rely on this symbol name, it's probably fine to never include it in
21926 # preloaded symbol tables.
21927 extract_expsyms_cmds=
21928 # Just being paranoid about ensuring that cc_basename is set.
21929 for cc_temp in $compiler""; do
21930 case $cc_temp in
21931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21933 \-*) ;;
21934 *) break;;
21935 esac
21936done
21937cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21938
21939 case $host_os in
21940 cygwin* | mingw* | pw32*)
21941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21942 # When not using gcc, we currently assume that we are using
21943 # Microsoft Visual C++.
21944 if test "$GCC" != yes; then
21945 with_gnu_ld=no
21946 fi
21947 ;;
21948 interix*)
21949 # we just hope/assume this is gcc and not c89 (= MSVC++)
21950 with_gnu_ld=yes
21951 ;;
21952 openbsd*)
21953 with_gnu_ld=no
21954 ;;
21955 esac
21956
21957 ld_shlibs_F77=yes
21958 if test "$with_gnu_ld" = yes; then
21959 # If archive_cmds runs LD, not CC, wlarc should be empty
21960 wlarc='${wl}'
21961
21962 # Set some defaults for GNU ld with shared library support. These
21963 # are reset later if shared libraries are not supported. Putting them
21964 # here allows them to be overridden if necessary.
21965 runpath_var=LD_RUN_PATH
21966 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21967 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21968 # ancient GNU ld didn't support --whole-archive et. al.
21969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21970 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21971 else
21972 whole_archive_flag_spec_F77=
21973 fi
21974 supports_anon_versioning=no
21975 case `$LD -v 2>/dev/null` in
21976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21979 *\ 2.11.*) ;; # other 2.11 versions
21980 *) supports_anon_versioning=yes ;;
21981 esac
21982
21983 # See if GNU ld supports shared libraries.
21984 case $host_os in
21985 aix3* | aix4* | aix5*)
21986 # On AIX/PPC, the GNU linker is very broken
21987 if test "$host_cpu" != ia64; then
21988 ld_shlibs_F77=no
21989 cat <<EOF 1>&2
21990
21991*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21992*** to be unable to reliably create shared libraries on AIX.
21993*** Therefore, libtool is disabling shared libraries support. If you
21994*** really care for shared libraries, you may want to modify your PATH
21995*** so that a non-GNU linker is found, and then restart.
21996
21997EOF
21998 fi
21999 ;;
22000
22001 amigaos*)
22002 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)'
22003 hardcode_libdir_flag_spec_F77='-L$libdir'
22004 hardcode_minus_L_F77=yes
22005
22006 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22007 # that the semantics of dynamic libraries on AmigaOS, at least up
22008 # to version 4, is to share data among multiple programs linked
22009 # with the same dynamic library. Since this doesn't match the
22010 # behavior of shared libraries on other platforms, we can't use
22011 # them.
22012 ld_shlibs_F77=no
22013 ;;
22014
22015 beos*)
22016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22017 allow_undefined_flag_F77=unsupported
22018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22019 # support --undefined. This deserves some investigation. FIXME
22020 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22021 else
22022 ld_shlibs_F77=no
22023 fi
22024 ;;
22025
22026 cygwin* | mingw* | pw32*)
22027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22028 # as there is no search path for DLLs.
22029 hardcode_libdir_flag_spec_F77='-L$libdir'
22030 allow_undefined_flag_F77=unsupported
22031 always_export_symbols_F77=no
22032 enable_shared_with_static_runtimes_F77=yes
22033 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22034
22035 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22037 # If the export-symbols file already is a .def file (1st line
22038 # is EXPORTS), use it as is; otherwise, prepend...
22039 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22040 cp $export_symbols $output_objdir/$soname.def;
22041 else
22042 echo EXPORTS > $output_objdir/$soname.def;
22043 cat $export_symbols >> $output_objdir/$soname.def;
22044 fi~
22045 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22046 else
22047 ld_shlibs_F77=no
22048 fi
22049 ;;
22050
22051 interix3*)
22052 hardcode_direct_F77=no
22053 hardcode_shlibpath_var_F77=no
22054 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22055 export_dynamic_flag_spec_F77='${wl}-E'
22056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22057 # Instead, shared libraries are loaded at an image base (0x10000000 by
22058 # default) and relocated if they conflict, which is a slow very memory
22059 # consuming and fragmenting process. To avoid this, we pick a random,
22060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22062 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'
22063 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'
22064 ;;
22065
22066 linux*)
22067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22068 tmp_addflag=
22069 case $cc_basename,$host_cpu in
22070 pgcc*) # Portland Group C compiler
22071 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'
22072 tmp_addflag=' $pic_flag'
22073 ;;
22074 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22075 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'
22076 tmp_addflag=' $pic_flag -Mnomain' ;;
22077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22078 tmp_addflag=' -i_dynamic' ;;
22079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22080 tmp_addflag=' -i_dynamic -nofor_main' ;;
22081 ifc* | ifort*) # Intel Fortran compiler
22082 tmp_addflag=' -nofor_main' ;;
22083 esac
22084 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22085
22086 if test $supports_anon_versioning = yes; then
22087 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22089 $echo "local: *; };" >> $output_objdir/$libname.ver~
22090 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22091 fi
22092 else
22093 ld_shlibs_F77=no
22094 fi
22095 ;;
22096
22097 netbsd*)
22098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22099 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22100 wlarc=
22101 else
22102 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22103 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22104 fi
22105 ;;
22106
22107 solaris*)
22108 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22109 ld_shlibs_F77=no
22110 cat <<EOF 1>&2
22111
22112*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22113*** create shared libraries on Solaris systems. Therefore, libtool
22114*** is disabling shared libraries support. We urge you to upgrade GNU
22115*** binutils to release 2.9.1 or newer. Another option is to modify
22116*** your PATH or compiler configuration so that the native linker is
22117*** used, and then restart.
22118
22119EOF
22120 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22123 else
22124 ld_shlibs_F77=no
22125 fi
22126 ;;
22127
22128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22129 case `$LD -v 2>&1` in
22130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22131 ld_shlibs_F77=no
22132 cat <<_LT_EOF 1>&2
22133
22134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22135*** reliably create shared libraries on SCO systems. Therefore, libtool
22136*** is disabling shared libraries support. We urge you to upgrade GNU
22137*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22138*** your PATH or compiler configuration so that the native linker is
22139*** used, and then restart.
22140
22141_LT_EOF
22142 ;;
22143 *)
22144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22145 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22146 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22147 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22148 else
22149 ld_shlibs_F77=no
22150 fi
22151 ;;
22152 esac
22153 ;;
22154
22155 sunos4*)
22156 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22157 wlarc=
22158 hardcode_direct_F77=yes
22159 hardcode_shlibpath_var_F77=no
22160 ;;
22161
22162 *)
22163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22166 else
22167 ld_shlibs_F77=no
22168 fi
22169 ;;
22170 esac
22171
22172 if test "$ld_shlibs_F77" = no; then
22173 runpath_var=
22174 hardcode_libdir_flag_spec_F77=
22175 export_dynamic_flag_spec_F77=
22176 whole_archive_flag_spec_F77=
22177 fi
22178 else
22179 # PORTME fill in a description of your system's linker (not GNU ld)
22180 case $host_os in
22181 aix3*)
22182 allow_undefined_flag_F77=unsupported
22183 always_export_symbols_F77=yes
22184 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'
22185 # Note: this linker hardcodes the directories in LIBPATH if there
22186 # are no directories specified by -L.
22187 hardcode_minus_L_F77=yes
22188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22189 # Neither direct hardcoding nor static linking is supported with a
22190 # broken collect2.
22191 hardcode_direct_F77=unsupported
22192 fi
22193 ;;
22194
22195 aix4* | aix5*)
22196 if test "$host_cpu" = ia64; then
22197 # On IA64, the linker does run time linking by default, so we don't
22198 # have to do anything special.
22199 aix_use_runtimelinking=no
22200 exp_sym_flag='-Bexport'
22201 no_entry_flag=""
22202 else
22203 # If we're using GNU nm, then we don't want the "-C" option.
22204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22206 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'
22207 else
22208 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'
22209 fi
22210 aix_use_runtimelinking=no
22211
22212 # Test if we are trying to use run time linking or normal
22213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22214 # need to do runtime linking.
22215 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22216 for ld_flag in $LDFLAGS; do
22217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22218 aix_use_runtimelinking=yes
22219 break
22220 fi
22221 done
22222 ;;
22223 esac
22224
22225 exp_sym_flag='-bexport'
22226 no_entry_flag='-bnoentry'
22227 fi
22228
22229 # When large executables or shared objects are built, AIX ld can
22230 # have problems creating the table of contents. If linking a library
22231 # or program results in "error TOC overflow" add -mminimal-toc to
22232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22234
22235 archive_cmds_F77=''
22236 hardcode_direct_F77=yes
22237 hardcode_libdir_separator_F77=':'
22238 link_all_deplibs_F77=yes
22239
22240 if test "$GCC" = yes; then
22241 case $host_os in aix4.[012]|aix4.[012].*)
22242 # We only want to do this on AIX 4.2 and lower, the check
22243 # below for broken collect2 doesn't work under 4.3+
22244 collect2name=`${CC} -print-prog-name=collect2`
22245 if test -f "$collect2name" && \
22246 strings "$collect2name" | grep resolve_lib_name >/dev/null
22247 then
22248 # We have reworked collect2
22249 hardcode_direct_F77=yes
22250 else
22251 # We have old collect2
22252 hardcode_direct_F77=unsupported
22253 # It fails to find uninstalled libraries when the uninstalled
22254 # path is not listed in the libpath. Setting hardcode_minus_L
22255 # to unsupported forces relinking
22256 hardcode_minus_L_F77=yes
22257 hardcode_libdir_flag_spec_F77='-L$libdir'
22258 hardcode_libdir_separator_F77=
22259 fi
22260 ;;
22261 esac
22262 shared_flag='-shared'
22263 if test "$aix_use_runtimelinking" = yes; then
22264 shared_flag="$shared_flag "'${wl}-G'
22265 fi
22266 else
22267 # not using gcc
22268 if test "$host_cpu" = ia64; then
22269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22270 # chokes on -Wl,-G. The following line is correct:
22271 shared_flag='-G'
22272 else
22273 if test "$aix_use_runtimelinking" = yes; then
22274 shared_flag='${wl}-G'
22275 else
22276 shared_flag='${wl}-bM:SRE'
22277 fi
22278 fi
22279 fi
22280
22281 # It seems that -bexpall does not export symbols beginning with
22282 # underscore (_), so it is better to generate a list of symbols to export.
22283 always_export_symbols_F77=yes
22284 if test "$aix_use_runtimelinking" = yes; then
22285 # Warning - without using the other runtime loading flags (-brtl),
22286 # -berok will link without error, but may produce a broken library.
22287 allow_undefined_flag_F77='-berok'
22288 # Determine the default libpath from the value encoded in an empty executable.
22289 cat >conftest.$ac_ext <<_ACEOF
22290 program main
22291
22292 end
22293_ACEOF
22294rm -f conftest.$ac_objext conftest$ac_exeext
22295if { (ac_try="$ac_link"
22296case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299esac
22300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22302 ac_status=$?
22303 grep -v '^ *+' conftest.er1 >conftest.err
22304 rm -f conftest.er1
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest$ac_exeext'
22319 { (case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322esac
22323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022328
22329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22330}'`
22331# Check for a 64-bit object if we didn't find anything.
22332if 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; }
22333}'`; fi
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
22338
22339fi
22340
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022341rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022342 conftest$ac_exeext conftest.$ac_ext
22343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22344
22345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22346 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"
22347 else
22348 if test "$host_cpu" = ia64; then
22349 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22350 allow_undefined_flag_F77="-z nodefs"
22351 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"
22352 else
22353 # Determine the default libpath from the value encoded in an empty executable.
22354 cat >conftest.$ac_ext <<_ACEOF
22355 program main
22356
22357 end
22358_ACEOF
22359rm -f conftest.$ac_objext conftest$ac_exeext
22360if { (ac_try="$ac_link"
22361case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364esac
22365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022372 (exit $ac_status); } &&
22373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22374 { (case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377esac
22378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_try") 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest$ac_exeext'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387esac
22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022393
22394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22395}'`
22396# Check for a 64-bit object if we didn't find anything.
22397if 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; }
22398}'`; fi
22399else
22400 echo "$as_me: failed program was:" >&5
22401sed 's/^/| /' conftest.$ac_ext >&5
22402
22403
22404fi
22405
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022406rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022407 conftest$ac_exeext conftest.$ac_ext
22408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22409
22410 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22411 # Warning - without using the other run time loading flags,
22412 # -berok will link without error, but may produce a broken library.
22413 no_undefined_flag_F77=' ${wl}-bernotok'
22414 allow_undefined_flag_F77=' ${wl}-berok'
22415 # Exported symbols can be pulled into shared objects from archives
22416 whole_archive_flag_spec_F77='$convenience'
22417 archive_cmds_need_lc_F77=yes
22418 # This is similar to how AIX traditionally builds its shared libraries.
22419 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'
22420 fi
22421 fi
22422 ;;
22423
22424 amigaos*)
22425 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)'
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_minus_L_F77=yes
22428 # see comment about different semantics on the GNU ld section
22429 ld_shlibs_F77=no
22430 ;;
22431
22432 bsdi[45]*)
22433 export_dynamic_flag_spec_F77=-rdynamic
22434 ;;
22435
22436 cygwin* | mingw* | pw32*)
22437 # When not using gcc, we currently assume that we are using
22438 # Microsoft Visual C++.
22439 # hardcode_libdir_flag_spec is actually meaningless, as there is
22440 # no search path for DLLs.
22441 hardcode_libdir_flag_spec_F77=' '
22442 allow_undefined_flag_F77=unsupported
22443 # Tell ltmain to make .lib files, not .a files.
22444 libext=lib
22445 # Tell ltmain to make .dll files, not .so files.
22446 shrext_cmds=".dll"
22447 # FIXME: Setting linknames here is a bad hack.
22448 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22449 # The linker will automatically build a .lib file if we build a DLL.
22450 old_archive_From_new_cmds_F77='true'
22451 # FIXME: Should let the user specify the lib program.
22452 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22453 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22454 enable_shared_with_static_runtimes_F77=yes
22455 ;;
22456
22457 darwin* | rhapsody*)
22458 case $host_os in
22459 rhapsody* | darwin1.[012])
22460 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22461 ;;
22462 *) # Darwin 1.3 on
22463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22464 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22465 else
22466 case ${MACOSX_DEPLOYMENT_TARGET} in
22467 10.[012])
22468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22469 ;;
22470 10.*)
22471 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22472 ;;
22473 esac
22474 fi
22475 ;;
22476 esac
22477 archive_cmds_need_lc_F77=no
22478 hardcode_direct_F77=no
22479 hardcode_automatic_F77=yes
22480 hardcode_shlibpath_var_F77=unsupported
22481 whole_archive_flag_spec_F77=''
22482 link_all_deplibs_F77=yes
22483 if test "$GCC" = yes ; then
22484 output_verbose_link_cmd='echo'
22485 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22486 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22488 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}'
22489 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}'
22490 else
22491 case $cc_basename in
22492 xlc*)
22493 output_verbose_link_cmd='echo'
22494 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22495 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22497 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}'
22498 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}'
22499 ;;
22500 *)
22501 ld_shlibs_F77=no
22502 ;;
22503 esac
22504 fi
22505 ;;
22506
22507 dgux*)
22508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509 hardcode_libdir_flag_spec_F77='-L$libdir'
22510 hardcode_shlibpath_var_F77=no
22511 ;;
22512
22513 freebsd1*)
22514 ld_shlibs_F77=no
22515 ;;
22516
22517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22518 # support. Future versions do this automatically, but an explicit c++rt0.o
22519 # does not break anything, and helps significantly (at the cost of a little
22520 # extra space).
22521 freebsd2.2*)
22522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22523 hardcode_libdir_flag_spec_F77='-R$libdir'
22524 hardcode_direct_F77=yes
22525 hardcode_shlibpath_var_F77=no
22526 ;;
22527
22528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22529 freebsd2*)
22530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77=yes
22532 hardcode_minus_L_F77=yes
22533 hardcode_shlibpath_var_F77=no
22534 ;;
22535
22536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22537 freebsd* | kfreebsd*-gnu | dragonfly*)
22538 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22539 hardcode_libdir_flag_spec_F77='-R$libdir'
22540 hardcode_direct_F77=yes
22541 hardcode_shlibpath_var_F77=no
22542 ;;
22543
22544 hpux9*)
22545 if test "$GCC" = yes; then
22546 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'
22547 else
22548 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'
22549 fi
22550 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22551 hardcode_libdir_separator_F77=:
22552 hardcode_direct_F77=yes
22553
22554 # hardcode_minus_L: Not really in the search PATH,
22555 # but as the default location of the library.
22556 hardcode_minus_L_F77=yes
22557 export_dynamic_flag_spec_F77='${wl}-E'
22558 ;;
22559
22560 hpux10*)
22561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22562 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22563 else
22564 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22565 fi
22566 if test "$with_gnu_ld" = no; then
22567 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22568 hardcode_libdir_separator_F77=:
22569
22570 hardcode_direct_F77=yes
22571 export_dynamic_flag_spec_F77='${wl}-E'
22572
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_F77=yes
22576 fi
22577 ;;
22578
22579 hpux11*)
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22581 case $host_cpu in
22582 hppa*64*)
22583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 ;;
22585 ia64*)
22586 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22587 ;;
22588 *)
22589 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22590 ;;
22591 esac
22592 else
22593 case $host_cpu in
22594 hppa*64*)
22595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22596 ;;
22597 ia64*)
22598 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22599 ;;
22600 *)
22601 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22602 ;;
22603 esac
22604 fi
22605 if test "$with_gnu_ld" = no; then
22606 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22607 hardcode_libdir_separator_F77=:
22608
22609 case $host_cpu in
22610 hppa*64*|ia64*)
22611 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22612 hardcode_direct_F77=no
22613 hardcode_shlibpath_var_F77=no
22614 ;;
22615 *)
22616 hardcode_direct_F77=yes
22617 export_dynamic_flag_spec_F77='${wl}-E'
22618
22619 # hardcode_minus_L: Not really in the search PATH,
22620 # but as the default location of the library.
22621 hardcode_minus_L_F77=yes
22622 ;;
22623 esac
22624 fi
22625 ;;
22626
22627 irix5* | irix6* | nonstopux*)
22628 if test "$GCC" = yes; then
22629 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'
22630 else
22631 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'
22632 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22633 fi
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635 hardcode_libdir_separator_F77=:
22636 link_all_deplibs_F77=yes
22637 ;;
22638
22639 netbsd*)
22640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22642 else
22643 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22644 fi
22645 hardcode_libdir_flag_spec_F77='-R$libdir'
22646 hardcode_direct_F77=yes
22647 hardcode_shlibpath_var_F77=no
22648 ;;
22649
22650 newsos6)
22651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652 hardcode_direct_F77=yes
22653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_F77=:
22655 hardcode_shlibpath_var_F77=no
22656 ;;
22657
22658 openbsd*)
22659 hardcode_direct_F77=yes
22660 hardcode_shlibpath_var_F77=no
22661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22663 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22665 export_dynamic_flag_spec_F77='${wl}-E'
22666 else
22667 case $host_os in
22668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_libdir_flag_spec_F77='-R$libdir'
22671 ;;
22672 *)
22673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22675 ;;
22676 esac
22677 fi
22678 ;;
22679
22680 os2*)
22681 hardcode_libdir_flag_spec_F77='-L$libdir'
22682 hardcode_minus_L_F77=yes
22683 allow_undefined_flag_F77=unsupported
22684 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'
22685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22686 ;;
22687
22688 osf3*)
22689 if test "$GCC" = yes; then
22690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22691 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'
22692 else
22693 allow_undefined_flag_F77=' -expect_unresolved \*'
22694 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'
22695 fi
22696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22697 hardcode_libdir_separator_F77=:
22698 ;;
22699
22700 osf4* | osf5*) # as osf3* with the addition of -msym flag
22701 if test "$GCC" = yes; then
22702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22703 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'
22704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22705 else
22706 allow_undefined_flag_F77=' -expect_unresolved \*'
22707 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'
22708 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~
22709 $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'
22710
22711 # Both c and cxx compiler support -rpath directly
22712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22713 fi
22714 hardcode_libdir_separator_F77=:
22715 ;;
22716
22717 solaris*)
22718 no_undefined_flag_F77=' -z text'
22719 if test "$GCC" = yes; then
22720 wlarc='${wl}'
22721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22724 else
22725 wlarc=''
22726 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22729 fi
22730 hardcode_libdir_flag_spec_F77='-R$libdir'
22731 hardcode_shlibpath_var_F77=no
22732 case $host_os in
22733 solaris2.[0-5] | solaris2.[0-5].*) ;;
22734 *)
22735 # The compiler driver will combine linker options so we
22736 # cannot just pass the convience library names through
22737 # without $wl, iff we do not link with $LD.
22738 # Luckily, gcc supports the same syntax we need for Sun Studio.
22739 # Supported since Solaris 2.6 (maybe 2.5.1?)
22740 case $wlarc in
22741 '')
22742 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22743 *)
22744 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' ;;
22745 esac ;;
22746 esac
22747 link_all_deplibs_F77=yes
22748 ;;
22749
22750 sunos4*)
22751 if test "x$host_vendor" = xsequent; then
22752 # Use $CC to link under sequent, because it throws in some extra .o
22753 # files that make .init and .fini sections work.
22754 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22755 else
22756 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22757 fi
22758 hardcode_libdir_flag_spec_F77='-L$libdir'
22759 hardcode_direct_F77=yes
22760 hardcode_minus_L_F77=yes
22761 hardcode_shlibpath_var_F77=no
22762 ;;
22763
22764 sysv4)
22765 case $host_vendor in
22766 sni)
22767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22768 hardcode_direct_F77=yes # is this really true???
22769 ;;
22770 siemens)
22771 ## LD is ld it makes a PLAMLIB
22772 ## CC just makes a GrossModule.
22773 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22774 reload_cmds_F77='$CC -r -o $output$reload_objs'
22775 hardcode_direct_F77=no
22776 ;;
22777 motorola)
22778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22780 ;;
22781 esac
22782 runpath_var='LD_RUN_PATH'
22783 hardcode_shlibpath_var_F77=no
22784 ;;
22785
22786 sysv4.3*)
22787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22788 hardcode_shlibpath_var_F77=no
22789 export_dynamic_flag_spec_F77='-Bexport'
22790 ;;
22791
22792 sysv4*MP*)
22793 if test -d /usr/nec; then
22794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_shlibpath_var_F77=no
22796 runpath_var=LD_RUN_PATH
22797 hardcode_runpath_var=yes
22798 ld_shlibs_F77=yes
22799 fi
22800 ;;
22801
22802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22803 no_undefined_flag_F77='${wl}-z,text'
22804 archive_cmds_need_lc_F77=no
22805 hardcode_shlibpath_var_F77=no
22806 runpath_var='LD_RUN_PATH'
22807
22808 if test "$GCC" = yes; then
22809 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22811 else
22812 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22814 fi
22815 ;;
22816
22817 sysv5* | sco3.2v5* | sco5v6*)
22818 # Note: We can NOT use -z defs as we might desire, because we do not
22819 # link with -lc, and that would cause any symbols used from libc to
22820 # always be unresolved, which means just about no library would
22821 # ever link correctly. If we're not using GNU ld we use -z text
22822 # though, which does catch some bad symbols but isn't as heavy-handed
22823 # as -z defs.
22824 no_undefined_flag_F77='${wl}-z,text'
22825 allow_undefined_flag_F77='${wl}-z,nodefs'
22826 archive_cmds_need_lc_F77=no
22827 hardcode_shlibpath_var_F77=no
22828 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22829 hardcode_libdir_separator_F77=':'
22830 link_all_deplibs_F77=yes
22831 export_dynamic_flag_spec_F77='${wl}-Bexport'
22832 runpath_var='LD_RUN_PATH'
22833
22834 if test "$GCC" = yes; then
22835 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837 else
22838 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22840 fi
22841 ;;
22842
22843 uts4*)
22844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22845 hardcode_libdir_flag_spec_F77='-L$libdir'
22846 hardcode_shlibpath_var_F77=no
22847 ;;
22848
22849 *)
22850 ld_shlibs_F77=no
22851 ;;
22852 esac
22853 fi
22854
22855{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22856echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22857test "$ld_shlibs_F77" = no && can_build_shared=no
22858
22859#
22860# Do we need to explicitly link libc?
22861#
22862case "x$archive_cmds_need_lc_F77" in
22863x|xyes)
22864 # Assume -lc should be added
22865 archive_cmds_need_lc_F77=yes
22866
22867 if test "$enable_shared" = yes && test "$GCC" = yes; then
22868 case $archive_cmds_F77 in
22869 *'~'*)
22870 # FIXME: we may have to deal with multi-command sequences.
22871 ;;
22872 '$CC '*)
22873 # Test whether the compiler implicitly links with -lc since on some
22874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22875 # to ld, don't add -lc before -lgcc.
22876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22877echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22878 $rm conftest*
22879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22880
22881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22882 (eval $ac_compile) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } 2>conftest.err; then
22886 soname=conftest
22887 lib=conftest
22888 libobjs=conftest.$ac_objext
22889 deplibs=
22890 wl=$lt_prog_compiler_wl_F77
22891 pic_flag=$lt_prog_compiler_pic_F77
22892 compiler_flags=-v
22893 linker_flags=-v
22894 verstring=
22895 output_objdir=.
22896 libname=conftest
22897 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22898 allow_undefined_flag_F77=
22899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22900 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }
22904 then
22905 archive_cmds_need_lc_F77=no
22906 else
22907 archive_cmds_need_lc_F77=yes
22908 fi
22909 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22910 else
22911 cat conftest.err 1>&5
22912 fi
22913 $rm conftest*
22914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22915echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22916 ;;
22917 esac
22918 fi
22919 ;;
22920esac
22921
22922{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22923echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22924library_names_spec=
22925libname_spec='lib$name'
22926soname_spec=
22927shrext_cmds=".so"
22928postinstall_cmds=
22929postuninstall_cmds=
22930finish_cmds=
22931finish_eval=
22932shlibpath_var=
22933shlibpath_overrides_runpath=unknown
22934version_type=none
22935dynamic_linker="$host_os ld.so"
22936sys_lib_dlsearch_path_spec="/lib /usr/lib"
22937if test "$GCC" = yes; then
22938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22939 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22940 # if the path contains ";" then we assume it to be the separator
22941 # otherwise default to the standard path separator (i.e. ":") - it is
22942 # assumed that no part of a normal pathname contains ";" but that should
22943 # okay in the real world where ";" in dirpaths is itself problematic.
22944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22945 else
22946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22947 fi
22948else
22949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22950fi
22951need_lib_prefix=unknown
22952hardcode_into_libs=no
22953
22954# when you set need_version to no, make sure it does not cause -set_version
22955# flags to be left without arguments
22956need_version=unknown
22957
22958case $host_os in
22959aix3*)
22960 version_type=linux
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22962 shlibpath_var=LIBPATH
22963
22964 # AIX 3 has no versioning support, so we append a major version to the name.
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 ;;
22967
22968aix4* | aix5*)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 hardcode_into_libs=yes
22973 if test "$host_cpu" = ia64; then
22974 # AIX 5 supports IA64
22975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 else
22978 # With GCC up to 2.95.x, collect2 would create an import file
22979 # for dependence libraries. The import file would start with
22980 # the line `#! .'. This would cause the generated library to
22981 # depend on `.', always an invalid library. This was fixed in
22982 # development snapshots of GCC prior to 3.0.
22983 case $host_os in
22984 aix4 | aix4.[01] | aix4.[01].*)
22985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22986 echo ' yes '
22987 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22988 :
22989 else
22990 can_build_shared=no
22991 fi
22992 ;;
22993 esac
22994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22995 # soname into executable. Probably we can add versioning support to
22996 # collect2, so additional links can be useful in future.
22997 if test "$aix_use_runtimelinking" = yes; then
22998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22999 # instead of lib<name>.a to let people know that these are not
23000 # typical AIX shared libraries.
23001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23002 else
23003 # We preserve .a as extension for shared libraries through AIX4.2
23004 # and later when we are not doing run time linking.
23005 library_names_spec='${libname}${release}.a $libname.a'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23007 fi
23008 shlibpath_var=LIBPATH
23009 fi
23010 ;;
23011
23012amigaos*)
23013 library_names_spec='$libname.ixlibrary $libname.a'
23014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23015 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'
23016 ;;
23017
23018beos*)
23019 library_names_spec='${libname}${shared_ext}'
23020 dynamic_linker="$host_os ld.so"
23021 shlibpath_var=LIBRARY_PATH
23022 ;;
23023
23024bsdi[45]*)
23025 version_type=linux
23026 need_version=no
23027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec='${libname}${release}${shared_ext}$major'
23029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23033 # the default ld.so.conf also contains /usr/contrib/lib and
23034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23035 # libtool to hard-code these into programs
23036 ;;
23037
23038cygwin* | mingw* | pw32*)
23039 version_type=windows
23040 shrext_cmds=".dll"
23041 need_version=no
23042 need_lib_prefix=no
23043
23044 case $GCC,$host_os in
23045 yes,cygwin* | yes,mingw* | yes,pw32*)
23046 library_names_spec='$libname.dll.a'
23047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23048 postinstall_cmds='base_file=`basename \${file}`~
23049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23050 dldir=$destdir/`dirname \$dlpath`~
23051 test -d \$dldir || mkdir -p \$dldir~
23052 $install_prog $dir/$dlname \$dldir/$dlname~
23053 chmod a+x \$dldir/$dlname'
23054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23055 dlpath=$dir/\$dldll~
23056 $rm \$dlpath'
23057 shlibpath_overrides_runpath=yes
23058
23059 case $host_os in
23060 cygwin*)
23061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23064 ;;
23065 mingw*)
23066 # MinGW DLLs use traditional 'lib' prefix
23067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23070 # It is most probably a Windows format PATH printed by
23071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23072 # path with ; separators, and with drive letters. We can handle the
23073 # drive letters (cygwin fileutils understands them), so leave them,
23074 # especially as we might pass files found there to a mingw objdump,
23075 # which wouldn't understand a cygwinified path. Ahh.
23076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23077 else
23078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23079 fi
23080 ;;
23081 pw32*)
23082 # pw32 DLLs use 'pw' prefix rather than 'lib'
23083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23084 ;;
23085 esac
23086 ;;
23087
23088 *)
23089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23090 ;;
23091 esac
23092 dynamic_linker='Win32 ld.exe'
23093 # FIXME: first we should search . and the directory the executable is in
23094 shlibpath_var=PATH
23095 ;;
23096
23097darwin* | rhapsody*)
23098 dynamic_linker="$host_os dyld"
23099 version_type=darwin
23100 need_lib_prefix=no
23101 need_version=no
23102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23103 soname_spec='${libname}${release}${major}$shared_ext'
23104 shlibpath_overrides_runpath=yes
23105 shlibpath_var=DYLD_LIBRARY_PATH
23106 shrext_cmds='.dylib'
23107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23108 if test "$GCC" = yes; then
23109 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"`
23110 else
23111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23112 fi
23113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23114 ;;
23115
23116dgux*)
23117 version_type=linux
23118 need_lib_prefix=no
23119 need_version=no
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 ;;
23124
23125freebsd1*)
23126 dynamic_linker=no
23127 ;;
23128
23129kfreebsd*-gnu)
23130 version_type=linux
23131 need_lib_prefix=no
23132 need_version=no
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 shlibpath_var=LD_LIBRARY_PATH
23136 shlibpath_overrides_runpath=no
23137 hardcode_into_libs=yes
23138 dynamic_linker='GNU ld.so'
23139 ;;
23140
23141freebsd* | dragonfly*)
23142 # DragonFly does not have aout. When/if they implement a new
23143 # versioning mechanism, adjust this.
23144 if test -x /usr/bin/objformat; then
23145 objformat=`/usr/bin/objformat`
23146 else
23147 case $host_os in
23148 freebsd[123]*) objformat=aout ;;
23149 *) objformat=elf ;;
23150 esac
23151 fi
23152 version_type=freebsd-$objformat
23153 case $version_type in
23154 freebsd-elf*)
23155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156 need_version=no
23157 need_lib_prefix=no
23158 ;;
23159 freebsd-*)
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23161 need_version=yes
23162 ;;
23163 esac
23164 shlibpath_var=LD_LIBRARY_PATH
23165 case $host_os in
23166 freebsd2*)
23167 shlibpath_overrides_runpath=yes
23168 ;;
23169 freebsd3.[01]* | freebsdelf3.[01]*)
23170 shlibpath_overrides_runpath=yes
23171 hardcode_into_libs=yes
23172 ;;
23173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23175 shlibpath_overrides_runpath=no
23176 hardcode_into_libs=yes
23177 ;;
23178 freebsd*) # from 4.6 on
23179 shlibpath_overrides_runpath=yes
23180 hardcode_into_libs=yes
23181 ;;
23182 esac
23183 ;;
23184
23185gnu*)
23186 version_type=linux
23187 need_lib_prefix=no
23188 need_version=no
23189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23190 soname_spec='${libname}${release}${shared_ext}$major'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 hardcode_into_libs=yes
23193 ;;
23194
23195hpux9* | hpux10* | hpux11*)
23196 # Give a soname corresponding to the major version so that dld.sl refuses to
23197 # link against other versions.
23198 version_type=sunos
23199 need_lib_prefix=no
23200 need_version=no
23201 case $host_cpu in
23202 ia64*)
23203 shrext_cmds='.so'
23204 hardcode_into_libs=yes
23205 dynamic_linker="$host_os dld.so"
23206 shlibpath_var=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
23211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23212 else
23213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23214 fi
23215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23216 ;;
23217 hppa*64*)
23218 shrext_cmds='.sl'
23219 hardcode_into_libs=yes
23220 dynamic_linker="$host_os dld.sl"
23221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23227 ;;
23228 *)
23229 shrext_cmds='.sl'
23230 dynamic_linker="$host_os dld.sl"
23231 shlibpath_var=SHLIB_PATH
23232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234 soname_spec='${libname}${release}${shared_ext}$major'
23235 ;;
23236 esac
23237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23238 postinstall_cmds='chmod 555 $lib'
23239 ;;
23240
23241interix3*)
23242 version_type=linux
23243 need_lib_prefix=no
23244 need_version=no
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 shlibpath_overrides_runpath=no
23250 hardcode_into_libs=yes
23251 ;;
23252
23253irix5* | irix6* | nonstopux*)
23254 case $host_os in
23255 nonstopux*) version_type=nonstopux ;;
23256 *)
23257 if test "$lt_cv_prog_gnu_ld" = yes; then
23258 version_type=linux
23259 else
23260 version_type=irix
23261 fi ;;
23262 esac
23263 need_lib_prefix=no
23264 need_version=no
23265 soname_spec='${libname}${release}${shared_ext}$major'
23266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23267 case $host_os in
23268 irix5* | nonstopux*)
23269 libsuff= shlibsuff=
23270 ;;
23271 *)
23272 case $LD in # libtool.m4 will add one of these switches to LD
23273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23274 libsuff= shlibsuff= libmagic=32-bit;;
23275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23276 libsuff=32 shlibsuff=N32 libmagic=N32;;
23277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23279 *) libsuff= shlibsuff= libmagic=never-match;;
23280 esac
23281 ;;
23282 esac
23283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23284 shlibpath_overrides_runpath=no
23285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23287 hardcode_into_libs=yes
23288 ;;
23289
23290# No shared lib support for Linux oldld, aout, or coff.
23291linux*oldld* | linux*aout* | linux*coff*)
23292 dynamic_linker=no
23293 ;;
23294
23295# This must be Linux ELF.
23296linux*)
23297 version_type=linux
23298 need_lib_prefix=no
23299 need_version=no
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=no
23305 # This implies no fast_install, which is unacceptable.
23306 # Some rework will be needed to allow for fast_install
23307 # before this can be enabled.
23308 hardcode_into_libs=yes
23309
23310 # Append ld.so.conf contents to the search path
23311 if test -f /etc/ld.so.conf; then
23312 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' ' '`
23313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23314 fi
23315
23316 # We used to test for /lib/ld.so.1 and disable shared libraries on
23317 # powerpc, because MkLinux only supported shared libraries with the
23318 # GNU dynamic linker. Since this was broken with cross compilers,
23319 # most powerpc-linux boxes support dynamic linking these days and
23320 # people can always --disable-shared, the test was removed, and we
23321 # assume the GNU/Linux dynamic linker is in use.
23322 dynamic_linker='GNU/Linux ld.so'
23323 ;;
23324
23325knetbsd*-gnu)
23326 version_type=linux
23327 need_lib_prefix=no
23328 need_version=no
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23330 soname_spec='${libname}${release}${shared_ext}$major'
23331 shlibpath_var=LD_LIBRARY_PATH
23332 shlibpath_overrides_runpath=no
23333 hardcode_into_libs=yes
23334 dynamic_linker='GNU ld.so'
23335 ;;
23336
23337netbsd*)
23338 version_type=sunos
23339 need_lib_prefix=no
23340 need_version=no
23341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344 dynamic_linker='NetBSD (a.out) ld.so'
23345 else
23346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23347 soname_spec='${libname}${release}${shared_ext}$major'
23348 dynamic_linker='NetBSD ld.elf_so'
23349 fi
23350 shlibpath_var=LD_LIBRARY_PATH
23351 shlibpath_overrides_runpath=yes
23352 hardcode_into_libs=yes
23353 ;;
23354
23355newsos6)
23356 version_type=linux
23357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 shlibpath_var=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath=yes
23360 ;;
23361
23362nto-qnx*)
23363 version_type=linux
23364 need_lib_prefix=no
23365 need_version=no
23366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367 soname_spec='${libname}${release}${shared_ext}$major'
23368 shlibpath_var=LD_LIBRARY_PATH
23369 shlibpath_overrides_runpath=yes
23370 ;;
23371
23372openbsd*)
23373 version_type=sunos
23374 sys_lib_dlsearch_path_spec="/usr/lib"
23375 need_lib_prefix=no
23376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23377 case $host_os in
23378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23379 *) need_version=no ;;
23380 esac
23381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23383 shlibpath_var=LD_LIBRARY_PATH
23384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23385 case $host_os in
23386 openbsd2.[89] | openbsd2.[89].*)
23387 shlibpath_overrides_runpath=no
23388 ;;
23389 *)
23390 shlibpath_overrides_runpath=yes
23391 ;;
23392 esac
23393 else
23394 shlibpath_overrides_runpath=yes
23395 fi
23396 ;;
23397
23398os2*)
23399 libname_spec='$name'
23400 shrext_cmds=".dll"
23401 need_lib_prefix=no
23402 library_names_spec='$libname${shared_ext} $libname.a'
23403 dynamic_linker='OS/2 ld.exe'
23404 shlibpath_var=LIBPATH
23405 ;;
23406
23407osf3* | osf4* | osf5*)
23408 version_type=osf
23409 need_lib_prefix=no
23410 need_version=no
23411 soname_spec='${libname}${release}${shared_ext}$major'
23412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23413 shlibpath_var=LD_LIBRARY_PATH
23414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23416 ;;
23417
23418solaris*)
23419 version_type=linux
23420 need_lib_prefix=no
23421 need_version=no
23422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec='${libname}${release}${shared_ext}$major'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes
23426 hardcode_into_libs=yes
23427 # ldd complains unless libraries are executable
23428 postinstall_cmds='chmod +x $lib'
23429 ;;
23430
23431sunos4*)
23432 version_type=sunos
23433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23435 shlibpath_var=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath=yes
23437 if test "$with_gnu_ld" = yes; then
23438 need_lib_prefix=no
23439 fi
23440 need_version=yes
23441 ;;
23442
23443sysv4 | sysv4.3*)
23444 version_type=linux
23445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec='${libname}${release}${shared_ext}$major'
23447 shlibpath_var=LD_LIBRARY_PATH
23448 case $host_vendor in
23449 sni)
23450 shlibpath_overrides_runpath=no
23451 need_lib_prefix=no
23452 export_dynamic_flag_spec='${wl}-Blargedynsym'
23453 runpath_var=LD_RUN_PATH
23454 ;;
23455 siemens)
23456 need_lib_prefix=no
23457 ;;
23458 motorola)
23459 need_lib_prefix=no
23460 need_version=no
23461 shlibpath_overrides_runpath=no
23462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23463 ;;
23464 esac
23465 ;;
23466
23467sysv4*MP*)
23468 if test -d /usr/nec ;then
23469 version_type=linux
23470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23471 soname_spec='$libname${shared_ext}.$major'
23472 shlibpath_var=LD_LIBRARY_PATH
23473 fi
23474 ;;
23475
23476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23477 version_type=freebsd-elf
23478 need_lib_prefix=no
23479 need_version=no
23480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23481 soname_spec='${libname}${release}${shared_ext}$major'
23482 shlibpath_var=LD_LIBRARY_PATH
23483 hardcode_into_libs=yes
23484 if test "$with_gnu_ld" = yes; then
23485 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23486 shlibpath_overrides_runpath=no
23487 else
23488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23489 shlibpath_overrides_runpath=yes
23490 case $host_os in
23491 sco3.2v5*)
23492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23493 ;;
23494 esac
23495 fi
23496 sys_lib_dlsearch_path_spec='/usr/lib'
23497 ;;
23498
23499uts4*)
23500 version_type=linux
23501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23502 soname_spec='${libname}${release}${shared_ext}$major'
23503 shlibpath_var=LD_LIBRARY_PATH
23504 ;;
23505
23506*)
23507 dynamic_linker=no
23508 ;;
23509esac
23510{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23511echo "${ECHO_T}$dynamic_linker" >&6; }
23512test "$dynamic_linker" = no && can_build_shared=no
23513
23514variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23515if test "$GCC" = yes; then
23516 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23517fi
23518
23519{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23520echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23521hardcode_action_F77=
23522if test -n "$hardcode_libdir_flag_spec_F77" || \
23523 test -n "$runpath_var_F77" || \
23524 test "X$hardcode_automatic_F77" = "Xyes" ; then
23525
23526 # We can hardcode non-existant directories.
23527 if test "$hardcode_direct_F77" != no &&
23528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23529 # have to relink, otherwise we might link with an installed library
23530 # when we should be linking with a yet-to-be-installed one
23531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23532 test "$hardcode_minus_L_F77" != no; then
23533 # Linking always hardcodes the temporary library directory.
23534 hardcode_action_F77=relink
23535 else
23536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23537 hardcode_action_F77=immediate
23538 fi
23539else
23540 # We cannot hardcode anything, or else we can only hardcode existing
23541 # directories.
23542 hardcode_action_F77=unsupported
23543fi
23544{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23545echo "${ECHO_T}$hardcode_action_F77" >&6; }
23546
23547if test "$hardcode_action_F77" = relink; then
23548 # Fast installation is not supported
23549 enable_fast_install=no
23550elif test "$shlibpath_overrides_runpath" = yes ||
23551 test "$enable_shared" = no; then
23552 # Fast installation is not necessary
23553 enable_fast_install=needless
23554fi
23555
23556
23557# The else clause should only fire when bootstrapping the
23558# libtool distribution, otherwise you forgot to ship ltmain.sh
23559# with your package, and you will get complaints that there are
23560# no rules to generate ltmain.sh.
23561if test -f "$ltmain"; then
23562 # See if we are running on zsh, and set the options which allow our commands through
23563 # without removal of \ escapes.
23564 if test -n "${ZSH_VERSION+set}" ; then
23565 setopt NO_GLOB_SUBST
23566 fi
23567 # Now quote all the things that may contain metacharacters while being
23568 # careful not to overquote the AC_SUBSTed values. We take copies of the
23569 # variables and quote the copies for generation of the libtool script.
23570 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23571 SED SHELL STRIP \
23572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23574 deplibs_check_method reload_flag reload_cmds need_locks \
23575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23576 lt_cv_sys_global_symbol_to_c_name_address \
23577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23578 old_postinstall_cmds old_postuninstall_cmds \
23579 compiler_F77 \
23580 CC_F77 \
23581 LD_F77 \
23582 lt_prog_compiler_wl_F77 \
23583 lt_prog_compiler_pic_F77 \
23584 lt_prog_compiler_static_F77 \
23585 lt_prog_compiler_no_builtin_flag_F77 \
23586 export_dynamic_flag_spec_F77 \
23587 thread_safe_flag_spec_F77 \
23588 whole_archive_flag_spec_F77 \
23589 enable_shared_with_static_runtimes_F77 \
23590 old_archive_cmds_F77 \
23591 old_archive_from_new_cmds_F77 \
23592 predep_objects_F77 \
23593 postdep_objects_F77 \
23594 predeps_F77 \
23595 postdeps_F77 \
23596 compiler_lib_search_path_F77 \
23597 archive_cmds_F77 \
23598 archive_expsym_cmds_F77 \
23599 postinstall_cmds_F77 \
23600 postuninstall_cmds_F77 \
23601 old_archive_from_expsyms_cmds_F77 \
23602 allow_undefined_flag_F77 \
23603 no_undefined_flag_F77 \
23604 export_symbols_cmds_F77 \
23605 hardcode_libdir_flag_spec_F77 \
23606 hardcode_libdir_flag_spec_ld_F77 \
23607 hardcode_libdir_separator_F77 \
23608 hardcode_automatic_F77 \
23609 module_cmds_F77 \
23610 module_expsym_cmds_F77 \
23611 lt_cv_prog_compiler_c_o_F77 \
23612 exclude_expsyms_F77 \
23613 include_expsyms_F77; do
23614
23615 case $var in
23616 old_archive_cmds_F77 | \
23617 old_archive_from_new_cmds_F77 | \
23618 archive_cmds_F77 | \
23619 archive_expsym_cmds_F77 | \
23620 module_cmds_F77 | \
23621 module_expsym_cmds_F77 | \
23622 old_archive_from_expsyms_cmds_F77 | \
23623 export_symbols_cmds_F77 | \
23624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23625 postinstall_cmds | postuninstall_cmds | \
23626 old_postinstall_cmds | old_postuninstall_cmds | \
23627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23628 # Double-quote double-evaled strings.
23629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23630 ;;
23631 *)
23632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23633 ;;
23634 esac
23635 done
23636
23637 case $lt_echo in
23638 *'\$0 --fallback-echo"')
23639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23640 ;;
23641 esac
23642
23643cfgfile="$ofile"
23644
23645 cat <<__EOF__ >> "$cfgfile"
23646# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23647
23648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23649
23650# Shell to use when invoking shell scripts.
23651SHELL=$lt_SHELL
23652
23653# Whether or not to build shared libraries.
23654build_libtool_libs=$enable_shared
23655
23656# Whether or not to build static libraries.
23657build_old_libs=$enable_static
23658
23659# Whether or not to add -lc for building shared libraries.
23660build_libtool_need_lc=$archive_cmds_need_lc_F77
23661
23662# Whether or not to disallow shared libs when runtime libs are static
23663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23664
23665# Whether or not to optimize for fast installation.
23666fast_install=$enable_fast_install
23667
23668# The host system.
23669host_alias=$host_alias
23670host=$host
23671host_os=$host_os
23672
23673# The build system.
23674build_alias=$build_alias
23675build=$build
23676build_os=$build_os
23677
23678# An echo program that does not interpret backslashes.
23679echo=$lt_echo
23680
23681# The archiver.
23682AR=$lt_AR
23683AR_FLAGS=$lt_AR_FLAGS
23684
23685# A C compiler.
23686LTCC=$lt_LTCC
23687
23688# LTCC compiler flags.
23689LTCFLAGS=$lt_LTCFLAGS
23690
23691# A language-specific compiler.
23692CC=$lt_compiler_F77
23693
23694# Is the compiler the GNU C compiler?
23695with_gcc=$GCC_F77
23696
23697# An ERE matcher.
23698EGREP=$lt_EGREP
23699
23700# The linker used to build libraries.
23701LD=$lt_LD_F77
23702
23703# Whether we need hard or soft links.
23704LN_S=$lt_LN_S
23705
23706# A BSD-compatible nm program.
23707NM=$lt_NM
23708
23709# A symbol stripping program
23710STRIP=$lt_STRIP
23711
23712# Used to examine libraries when file_magic_cmd begins "file"
23713MAGIC_CMD=$MAGIC_CMD
23714
23715# Used on cygwin: DLL creation program.
23716DLLTOOL="$DLLTOOL"
23717
23718# Used on cygwin: object dumper.
23719OBJDUMP="$OBJDUMP"
23720
23721# Used on cygwin: assembler.
23722AS="$AS"
23723
23724# The name of the directory that contains temporary libtool files.
23725objdir=$objdir
23726
23727# How to create reloadable object files.
23728reload_flag=$lt_reload_flag
23729reload_cmds=$lt_reload_cmds
23730
23731# How to pass a linker flag through the compiler.
23732wl=$lt_lt_prog_compiler_wl_F77
23733
23734# Object file suffix (normally "o").
23735objext="$ac_objext"
23736
23737# Old archive suffix (normally "a").
23738libext="$libext"
23739
23740# Shared library suffix (normally ".so").
23741shrext_cmds='$shrext_cmds'
23742
23743# Executable file suffix (normally "").
23744exeext="$exeext"
23745
23746# Additional compiler flags for building library objects.
23747pic_flag=$lt_lt_prog_compiler_pic_F77
23748pic_mode=$pic_mode
23749
23750# What is the maximum length of a command?
23751max_cmd_len=$lt_cv_sys_max_cmd_len
23752
23753# Does compiler simultaneously support -c and -o options?
23754compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23755
23756# Must we lock files when doing compilation?
23757need_locks=$lt_need_locks
23758
23759# Do we need the lib prefix for modules?
23760need_lib_prefix=$need_lib_prefix
23761
23762# Do we need a version for libraries?
23763need_version=$need_version
23764
23765# Whether dlopen is supported.
23766dlopen_support=$enable_dlopen
23767
23768# Whether dlopen of programs is supported.
23769dlopen_self=$enable_dlopen_self
23770
23771# Whether dlopen of statically linked programs is supported.
23772dlopen_self_static=$enable_dlopen_self_static
23773
23774# Compiler flag to prevent dynamic linking.
23775link_static_flag=$lt_lt_prog_compiler_static_F77
23776
23777# Compiler flag to turn off builtin functions.
23778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23779
23780# Compiler flag to allow reflexive dlopens.
23781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23782
23783# Compiler flag to generate shared objects directly from archives.
23784whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23785
23786# Compiler flag to generate thread-safe objects.
23787thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23788
23789# Library versioning type.
23790version_type=$version_type
23791
23792# Format of library name prefix.
23793libname_spec=$lt_libname_spec
23794
23795# List of archive names. First name is the real one, the rest are links.
23796# The last name is the one that the linker finds with -lNAME.
23797library_names_spec=$lt_library_names_spec
23798
23799# The coded name of the library, if different from the real name.
23800soname_spec=$lt_soname_spec
23801
23802# Commands used to build and install an old-style archive.
23803RANLIB=$lt_RANLIB
23804old_archive_cmds=$lt_old_archive_cmds_F77
23805old_postinstall_cmds=$lt_old_postinstall_cmds
23806old_postuninstall_cmds=$lt_old_postuninstall_cmds
23807
23808# Create an old-style archive from a shared archive.
23809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23810
23811# Create a temporary old-style archive to link instead of a shared archive.
23812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23813
23814# Commands used to build and install a shared archive.
23815archive_cmds=$lt_archive_cmds_F77
23816archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23817postinstall_cmds=$lt_postinstall_cmds
23818postuninstall_cmds=$lt_postuninstall_cmds
23819
23820# Commands used to build a loadable module (assumed same as above if empty)
23821module_cmds=$lt_module_cmds_F77
23822module_expsym_cmds=$lt_module_expsym_cmds_F77
23823
23824# Commands to strip libraries.
23825old_striplib=$lt_old_striplib
23826striplib=$lt_striplib
23827
23828# Dependencies to place before the objects being linked to create a
23829# shared library.
23830predep_objects=$lt_predep_objects_F77
23831
23832# Dependencies to place after the objects being linked to create a
23833# shared library.
23834postdep_objects=$lt_postdep_objects_F77
23835
23836# Dependencies to place before the objects being linked to create a
23837# shared library.
23838predeps=$lt_predeps_F77
23839
23840# Dependencies to place after the objects being linked to create a
23841# shared library.
23842postdeps=$lt_postdeps_F77
23843
23844# The library search path used internally by the compiler when linking
23845# a shared library.
23846compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23847
23848# Method to check whether dependent libraries are shared objects.
23849deplibs_check_method=$lt_deplibs_check_method
23850
23851# Command to use when deplibs_check_method == file_magic.
23852file_magic_cmd=$lt_file_magic_cmd
23853
23854# Flag that allows shared libraries with undefined symbols to be built.
23855allow_undefined_flag=$lt_allow_undefined_flag_F77
23856
23857# Flag that forces no undefined symbols.
23858no_undefined_flag=$lt_no_undefined_flag_F77
23859
23860# Commands used to finish a libtool library installation in a directory.
23861finish_cmds=$lt_finish_cmds
23862
23863# Same as above, but a single script fragment to be evaled but not shown.
23864finish_eval=$lt_finish_eval
23865
23866# Take the output of nm and produce a listing of raw symbols and C names.
23867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23868
23869# Transform the output of nm in a proper C declaration
23870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23871
23872# Transform the output of nm in a C name address pair
23873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23874
23875# This is the shared library runtime path variable.
23876runpath_var=$runpath_var
23877
23878# This is the shared library path variable.
23879shlibpath_var=$shlibpath_var
23880
23881# Is shlibpath searched before the hard-coded library search path?
23882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23883
23884# How to hardcode a shared library path into an executable.
23885hardcode_action=$hardcode_action_F77
23886
23887# Whether we should hardcode library paths into libraries.
23888hardcode_into_libs=$hardcode_into_libs
23889
23890# Flag to hardcode \$libdir into a binary during linking.
23891# This must work even if \$libdir does not exist.
23892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23893
23894# If ld is used when linking, flag to hardcode \$libdir into
23895# a binary during linking. This must work even if \$libdir does
23896# not exist.
23897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23898
23899# Whether we need a single -rpath flag with a separated argument.
23900hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23901
23902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903# resulting binary.
23904hardcode_direct=$hardcode_direct_F77
23905
23906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907# resulting binary.
23908hardcode_minus_L=$hardcode_minus_L_F77
23909
23910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911# the resulting binary.
23912hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23913
23914# Set to yes if building a shared library automatically hardcodes DIR into the library
23915# and all subsequent libraries and executables linked against it.
23916hardcode_automatic=$hardcode_automatic_F77
23917
23918# Variables whose values should be saved in libtool wrapper scripts and
23919# restored at relink time.
23920variables_saved_for_relink="$variables_saved_for_relink"
23921
23922# Whether libtool must link a program against all its dependency libraries.
23923link_all_deplibs=$link_all_deplibs_F77
23924
23925# Compile-time system search path for libraries
23926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23927
23928# Run-time system search path for libraries
23929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23930
23931# Fix the shell variable \$srcfile for the compiler.
23932fix_srcfile_path="$fix_srcfile_path_F77"
23933
23934# Set to yes if exported symbols are required.
23935always_export_symbols=$always_export_symbols_F77
23936
23937# The commands to list exported symbols.
23938export_symbols_cmds=$lt_export_symbols_cmds_F77
23939
23940# The commands to extract the exported symbol list from a shared archive.
23941extract_expsyms_cmds=$lt_extract_expsyms_cmds
23942
23943# Symbols that should not be listed in the preloaded symbols.
23944exclude_expsyms=$lt_exclude_expsyms_F77
23945
23946# Symbols that must always be exported.
23947include_expsyms=$lt_include_expsyms_F77
23948
23949# ### END LIBTOOL TAG CONFIG: $tagname
23950
23951__EOF__
23952
23953
23954else
23955 # If there is no Makefile yet, we rely on a make rule to execute
23956 # `config.status --recheck' to rerun these tests and create the
23957 # libtool script then.
23958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959 if test -f "$ltmain_in"; then
23960 test -f Makefile && make "$ltmain"
23961 fi
23962fi
23963
23964
23965ac_ext=c
23966ac_cpp='$CPP $CPPFLAGS'
23967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969ac_compiler_gnu=$ac_cv_c_compiler_gnu
23970
23971CC="$lt_save_CC"
23972
23973 else
23974 tagname=""
23975 fi
23976 ;;
23977
23978 GCJ)
23979 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23980 ac_ext=c
23981ac_cpp='$CPP $CPPFLAGS'
23982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984ac_compiler_gnu=$ac_cv_c_compiler_gnu
23985
23986
23987# Source file extension for Java test sources.
23988ac_ext=java
23989
23990# Object file extension for compiled Java test sources.
23991objext=o
23992objext_GCJ=$objext
23993
23994# Code to be used in simple compile tests
23995lt_simple_compile_test_code="class foo {}\n"
23996
23997# Code to be used in simple link tests
23998lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23999
24000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24001
24002# If no C compiler was specified, use CC.
24003LTCC=${LTCC-"$CC"}
24004
24005# If no C compiler flags were specified, use CFLAGS.
24006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24007
24008# Allow CC to be a program name with arguments.
24009compiler=$CC
24010
24011
24012# save warnings/boilerplate of simple test code
24013ac_outfile=conftest.$ac_objext
24014printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24016_lt_compiler_boilerplate=`cat conftest.err`
24017$rm conftest*
24018
24019ac_outfile=conftest.$ac_objext
24020printf "$lt_simple_link_test_code" >conftest.$ac_ext
24021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022_lt_linker_boilerplate=`cat conftest.err`
24023$rm conftest*
24024
24025
24026# Allow CC to be a program name with arguments.
24027lt_save_CC="$CC"
24028CC=${GCJ-"gcj"}
24029compiler=$CC
24030compiler_GCJ=$CC
24031for cc_temp in $compiler""; do
24032 case $cc_temp in
24033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24035 \-*) ;;
24036 *) break;;
24037 esac
24038done
24039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24040
24041
24042# GCJ did not exist at the time GCC didn't implicitly link libc in.
24043archive_cmds_need_lc_GCJ=no
24044
24045old_archive_cmds_GCJ=$old_archive_cmds
24046
24047
24048lt_prog_compiler_no_builtin_flag_GCJ=
24049
24050if test "$GCC" = yes; then
24051 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24052
24053
24054{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24055echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24056if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058else
24059 lt_cv_prog_compiler_rtti_exceptions=no
24060 ac_outfile=conftest.$ac_objext
24061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24062 lt_compiler_flag="-fno-rtti -fno-exceptions"
24063 # Insert the option either (1) after the last *FLAGS variable, or
24064 # (2) before a word containing "conftest.", or (3) at the end.
24065 # Note that $ac_compile itself does not contain backslashes and begins
24066 # with a dollar sign (not a hyphen), so the echo should work correctly.
24067 # The option is referenced via a variable to avoid confusing sed.
24068 lt_compile=`echo "$ac_compile" | $SED \
24069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24071 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024072 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024073 (eval "$lt_compile" 2>conftest.err)
24074 ac_status=$?
24075 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024076 echo "$as_me:24076: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024077 if (exit $ac_status) && test -s "$ac_outfile"; then
24078 # The compiler can only warn and ignore the option if not recognized
24079 # So say no if there are warnings other than the usual output.
24080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24083 lt_cv_prog_compiler_rtti_exceptions=yes
24084 fi
24085 fi
24086 $rm conftest*
24087
24088fi
24089{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24090echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24091
24092if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24093 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24094else
24095 :
24096fi
24097
24098fi
24099
24100lt_prog_compiler_wl_GCJ=
24101lt_prog_compiler_pic_GCJ=
24102lt_prog_compiler_static_GCJ=
24103
24104{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24105echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24106
24107 if test "$GCC" = yes; then
24108 lt_prog_compiler_wl_GCJ='-Wl,'
24109 lt_prog_compiler_static_GCJ='-static'
24110
24111 case $host_os in
24112 aix*)
24113 # All AIX code is PIC.
24114 if test "$host_cpu" = ia64; then
24115 # AIX 5 now supports IA64 processor
24116 lt_prog_compiler_static_GCJ='-Bstatic'
24117 fi
24118 ;;
24119
24120 amigaos*)
24121 # FIXME: we need at least 68020 code to build shared libraries, but
24122 # adding the `-m68020' flag to GCC prevents building anything better,
24123 # like `-m68040'.
24124 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24125 ;;
24126
24127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24128 # PIC is the default for these OSes.
24129 ;;
24130
24131 mingw* | pw32* | os2*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24135 ;;
24136
24137 darwin* | rhapsody*)
24138 # PIC is the default on this platform
24139 # Common symbols not allowed in MH_DYLIB files
24140 lt_prog_compiler_pic_GCJ='-fno-common'
24141 ;;
24142
24143 interix3*)
24144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24145 # Instead, we relocate shared libraries at runtime.
24146 ;;
24147
24148 msdosdjgpp*)
24149 # Just because we use GCC doesn't mean we suddenly get shared libraries
24150 # on systems that don't support them.
24151 lt_prog_compiler_can_build_shared_GCJ=no
24152 enable_shared=no
24153 ;;
24154
24155 sysv4*MP*)
24156 if test -d /usr/nec; then
24157 lt_prog_compiler_pic_GCJ=-Kconform_pic
24158 fi
24159 ;;
24160
24161 hpux*)
24162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24163 # not for PA HP-UX.
24164 case $host_cpu in
24165 hppa*64*|ia64*)
24166 # +Z the default
24167 ;;
24168 *)
24169 lt_prog_compiler_pic_GCJ='-fPIC'
24170 ;;
24171 esac
24172 ;;
24173
24174 *)
24175 lt_prog_compiler_pic_GCJ='-fPIC'
24176 ;;
24177 esac
24178 else
24179 # PORTME Check for flag to pass linker flags through the system compiler.
24180 case $host_os in
24181 aix*)
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 if test "$host_cpu" = ia64; then
24184 # AIX 5 now supports IA64 processor
24185 lt_prog_compiler_static_GCJ='-Bstatic'
24186 else
24187 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24188 fi
24189 ;;
24190 darwin*)
24191 # PIC is the default on this platform
24192 # Common symbols not allowed in MH_DYLIB files
24193 case $cc_basename in
24194 xlc*)
24195 lt_prog_compiler_pic_GCJ='-qnocommon'
24196 lt_prog_compiler_wl_GCJ='-Wl,'
24197 ;;
24198 esac
24199 ;;
24200
24201 mingw* | pw32* | os2*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24205 ;;
24206
24207 hpux9* | hpux10* | hpux11*)
24208 lt_prog_compiler_wl_GCJ='-Wl,'
24209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24210 # not for PA HP-UX.
24211 case $host_cpu in
24212 hppa*64*|ia64*)
24213 # +Z the default
24214 ;;
24215 *)
24216 lt_prog_compiler_pic_GCJ='+Z'
24217 ;;
24218 esac
24219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24220 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24221 ;;
24222
24223 irix5* | irix6* | nonstopux*)
24224 lt_prog_compiler_wl_GCJ='-Wl,'
24225 # PIC (with -KPIC) is the default.
24226 lt_prog_compiler_static_GCJ='-non_shared'
24227 ;;
24228
24229 newsos6)
24230 lt_prog_compiler_pic_GCJ='-KPIC'
24231 lt_prog_compiler_static_GCJ='-Bstatic'
24232 ;;
24233
24234 linux*)
24235 case $cc_basename in
24236 icc* | ecc*)
24237 lt_prog_compiler_wl_GCJ='-Wl,'
24238 lt_prog_compiler_pic_GCJ='-KPIC'
24239 lt_prog_compiler_static_GCJ='-static'
24240 ;;
24241 pgcc* | pgf77* | pgf90* | pgf95*)
24242 # Portland Group compilers (*not* the Pentium gcc compiler,
24243 # which looks to be a dead project)
24244 lt_prog_compiler_wl_GCJ='-Wl,'
24245 lt_prog_compiler_pic_GCJ='-fpic'
24246 lt_prog_compiler_static_GCJ='-Bstatic'
24247 ;;
24248 ccc*)
24249 lt_prog_compiler_wl_GCJ='-Wl,'
24250 # All Alpha code is PIC.
24251 lt_prog_compiler_static_GCJ='-non_shared'
24252 ;;
24253 esac
24254 ;;
24255
24256 osf3* | osf4* | osf5*)
24257 lt_prog_compiler_wl_GCJ='-Wl,'
24258 # All OSF/1 code is PIC.
24259 lt_prog_compiler_static_GCJ='-non_shared'
24260 ;;
24261
24262 solaris*)
24263 lt_prog_compiler_pic_GCJ='-KPIC'
24264 lt_prog_compiler_static_GCJ='-Bstatic'
24265 case $cc_basename in
24266 f77* | f90* | f95*)
24267 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24268 *)
24269 lt_prog_compiler_wl_GCJ='-Wl,';;
24270 esac
24271 ;;
24272
24273 sunos4*)
24274 lt_prog_compiler_wl_GCJ='-Qoption ld '
24275 lt_prog_compiler_pic_GCJ='-PIC'
24276 lt_prog_compiler_static_GCJ='-Bstatic'
24277 ;;
24278
24279 sysv4 | sysv4.2uw2* | sysv4.3*)
24280 lt_prog_compiler_wl_GCJ='-Wl,'
24281 lt_prog_compiler_pic_GCJ='-KPIC'
24282 lt_prog_compiler_static_GCJ='-Bstatic'
24283 ;;
24284
24285 sysv4*MP*)
24286 if test -d /usr/nec ;then
24287 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24288 lt_prog_compiler_static_GCJ='-Bstatic'
24289 fi
24290 ;;
24291
24292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24293 lt_prog_compiler_wl_GCJ='-Wl,'
24294 lt_prog_compiler_pic_GCJ='-KPIC'
24295 lt_prog_compiler_static_GCJ='-Bstatic'
24296 ;;
24297
24298 unicos*)
24299 lt_prog_compiler_wl_GCJ='-Wl,'
24300 lt_prog_compiler_can_build_shared_GCJ=no
24301 ;;
24302
24303 uts4*)
24304 lt_prog_compiler_pic_GCJ='-pic'
24305 lt_prog_compiler_static_GCJ='-Bstatic'
24306 ;;
24307
24308 *)
24309 lt_prog_compiler_can_build_shared_GCJ=no
24310 ;;
24311 esac
24312 fi
24313
24314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24315echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24316
24317#
24318# Check to make sure the PIC flag actually works.
24319#
24320if test -n "$lt_prog_compiler_pic_GCJ"; then
24321
24322{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24323echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24324if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327 lt_prog_compiler_pic_works_GCJ=no
24328 ac_outfile=conftest.$ac_objext
24329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24330 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24331 # Insert the option either (1) after the last *FLAGS variable, or
24332 # (2) before a word containing "conftest.", or (3) at the end.
24333 # Note that $ac_compile itself does not contain backslashes and begins
24334 # with a dollar sign (not a hyphen), so the echo should work correctly.
24335 # The option is referenced via a variable to avoid confusing sed.
24336 lt_compile=`echo "$ac_compile" | $SED \
24337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24339 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024340 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024341 (eval "$lt_compile" 2>conftest.err)
24342 ac_status=$?
24343 cat conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024344 echo "$as_me:24344: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024345 if (exit $ac_status) && test -s "$ac_outfile"; then
24346 # The compiler can only warn and ignore the option if not recognized
24347 # So say no if there are warnings other than the usual output.
24348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24351 lt_prog_compiler_pic_works_GCJ=yes
24352 fi
24353 fi
24354 $rm conftest*
24355
24356fi
24357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24358echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24359
24360if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24361 case $lt_prog_compiler_pic_GCJ in
24362 "" | " "*) ;;
24363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24364 esac
24365else
24366 lt_prog_compiler_pic_GCJ=
24367 lt_prog_compiler_can_build_shared_GCJ=no
24368fi
24369
24370fi
24371case $host_os in
24372 # For platforms which do not support PIC, -DPIC is meaningless:
24373 *djgpp*)
24374 lt_prog_compiler_pic_GCJ=
24375 ;;
24376 *)
24377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24378 ;;
24379esac
24380
24381#
24382# Check to make sure the static flag actually works.
24383#
24384wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24385{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24386echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24387if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389else
24390 lt_prog_compiler_static_works_GCJ=no
24391 save_LDFLAGS="$LDFLAGS"
24392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24395 # The linker can only warn and ignore the option if not recognized
24396 # So say no if there are warnings
24397 if test -s conftest.err; then
24398 # Append any errors to the config.log.
24399 cat conftest.err 1>&5
24400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24402 if diff conftest.exp conftest.er2 >/dev/null; then
24403 lt_prog_compiler_static_works_GCJ=yes
24404 fi
24405 else
24406 lt_prog_compiler_static_works_GCJ=yes
24407 fi
24408 fi
24409 $rm conftest*
24410 LDFLAGS="$save_LDFLAGS"
24411
24412fi
24413{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24414echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24415
24416if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24417 :
24418else
24419 lt_prog_compiler_static_GCJ=
24420fi
24421
24422
24423{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24424echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24425if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427else
24428 lt_cv_prog_compiler_c_o_GCJ=no
24429 $rm -r conftest 2>/dev/null
24430 mkdir conftest
24431 cd conftest
24432 mkdir out
24433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24434
24435 lt_compiler_flag="-o out/conftest2.$ac_objext"
24436 # Insert the option either (1) after the last *FLAGS variable, or
24437 # (2) before a word containing "conftest.", or (3) at the end.
24438 # Note that $ac_compile itself does not contain backslashes and begins
24439 # with a dollar sign (not a hyphen), so the echo should work correctly.
24440 lt_compile=`echo "$ac_compile" | $SED \
24441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24443 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024444 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024445 (eval "$lt_compile" 2>out/conftest.err)
24446 ac_status=$?
24447 cat out/conftest.err >&5
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000024448 echo "$as_me:24448: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24450 then
24451 # The compiler can only warn and ignore the option if not recognized
24452 # So say no if there are warnings
24453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24456 lt_cv_prog_compiler_c_o_GCJ=yes
24457 fi
24458 fi
24459 chmod u+w . 2>&5
24460 $rm conftest*
24461 # SGI C++ compiler will create directory out/ii_files/ for
24462 # template instantiation
24463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24464 $rm out/* && rmdir out
24465 cd ..
24466 rmdir conftest
24467 $rm conftest*
24468
24469fi
24470{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24471echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24472
24473
24474hard_links="nottested"
24475if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24476 # do not overwrite the value of need_locks provided by the user
24477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24479 hard_links=yes
24480 $rm conftest*
24481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24482 touch conftest.a
24483 ln conftest.a conftest.b 2>&5 || hard_links=no
24484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24485 { echo "$as_me:$LINENO: result: $hard_links" >&5
24486echo "${ECHO_T}$hard_links" >&6; }
24487 if test "$hard_links" = no; then
24488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24490 need_locks=warn
24491 fi
24492else
24493 need_locks=no
24494fi
24495
24496{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24498
24499 runpath_var=
24500 allow_undefined_flag_GCJ=
24501 enable_shared_with_static_runtimes_GCJ=no
24502 archive_cmds_GCJ=
24503 archive_expsym_cmds_GCJ=
24504 old_archive_From_new_cmds_GCJ=
24505 old_archive_from_expsyms_cmds_GCJ=
24506 export_dynamic_flag_spec_GCJ=
24507 whole_archive_flag_spec_GCJ=
24508 thread_safe_flag_spec_GCJ=
24509 hardcode_libdir_flag_spec_GCJ=
24510 hardcode_libdir_flag_spec_ld_GCJ=
24511 hardcode_libdir_separator_GCJ=
24512 hardcode_direct_GCJ=no
24513 hardcode_minus_L_GCJ=no
24514 hardcode_shlibpath_var_GCJ=unsupported
24515 link_all_deplibs_GCJ=unknown
24516 hardcode_automatic_GCJ=no
24517 module_cmds_GCJ=
24518 module_expsym_cmds_GCJ=
24519 always_export_symbols_GCJ=no
24520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24521 # include_expsyms should be a list of space-separated symbols to be *always*
24522 # included in the symbol list
24523 include_expsyms_GCJ=
24524 # exclude_expsyms can be an extended regexp of symbols to exclude
24525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24527 # as well as any symbol that contains `d'.
24528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24530 # platforms (ab)use it in PIC code, but their linkers get confused if
24531 # the symbol is explicitly referenced. Since portable code cannot
24532 # rely on this symbol name, it's probably fine to never include it in
24533 # preloaded symbol tables.
24534 extract_expsyms_cmds=
24535 # Just being paranoid about ensuring that cc_basename is set.
24536 for cc_temp in $compiler""; do
24537 case $cc_temp in
24538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24540 \-*) ;;
24541 *) break;;
24542 esac
24543done
24544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24545
24546 case $host_os in
24547 cygwin* | mingw* | pw32*)
24548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24549 # When not using gcc, we currently assume that we are using
24550 # Microsoft Visual C++.
24551 if test "$GCC" != yes; then
24552 with_gnu_ld=no
24553 fi
24554 ;;
24555 interix*)
24556 # we just hope/assume this is gcc and not c89 (= MSVC++)
24557 with_gnu_ld=yes
24558 ;;
24559 openbsd*)
24560 with_gnu_ld=no
24561 ;;
24562 esac
24563
24564 ld_shlibs_GCJ=yes
24565 if test "$with_gnu_ld" = yes; then
24566 # If archive_cmds runs LD, not CC, wlarc should be empty
24567 wlarc='${wl}'
24568
24569 # Set some defaults for GNU ld with shared library support. These
24570 # are reset later if shared libraries are not supported. Putting them
24571 # here allows them to be overridden if necessary.
24572 runpath_var=LD_RUN_PATH
24573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24575 # ancient GNU ld didn't support --whole-archive et. al.
24576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24578 else
24579 whole_archive_flag_spec_GCJ=
24580 fi
24581 supports_anon_versioning=no
24582 case `$LD -v 2>/dev/null` in
24583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24586 *\ 2.11.*) ;; # other 2.11 versions
24587 *) supports_anon_versioning=yes ;;
24588 esac
24589
24590 # See if GNU ld supports shared libraries.
24591 case $host_os in
24592 aix3* | aix4* | aix5*)
24593 # On AIX/PPC, the GNU linker is very broken
24594 if test "$host_cpu" != ia64; then
24595 ld_shlibs_GCJ=no
24596 cat <<EOF 1>&2
24597
24598*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24599*** to be unable to reliably create shared libraries on AIX.
24600*** Therefore, libtool is disabling shared libraries support. If you
24601*** really care for shared libraries, you may want to modify your PATH
24602*** so that a non-GNU linker is found, and then restart.
24603
24604EOF
24605 fi
24606 ;;
24607
24608 amigaos*)
24609 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)'
24610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24611 hardcode_minus_L_GCJ=yes
24612
24613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24614 # that the semantics of dynamic libraries on AmigaOS, at least up
24615 # to version 4, is to share data among multiple programs linked
24616 # with the same dynamic library. Since this doesn't match the
24617 # behavior of shared libraries on other platforms, we can't use
24618 # them.
24619 ld_shlibs_GCJ=no
24620 ;;
24621
24622 beos*)
24623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24624 allow_undefined_flag_GCJ=unsupported
24625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24626 # support --undefined. This deserves some investigation. FIXME
24627 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24628 else
24629 ld_shlibs_GCJ=no
24630 fi
24631 ;;
24632
24633 cygwin* | mingw* | pw32*)
24634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24635 # as there is no search path for DLLs.
24636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24637 allow_undefined_flag_GCJ=unsupported
24638 always_export_symbols_GCJ=no
24639 enable_shared_with_static_runtimes_GCJ=yes
24640 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24641
24642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24644 # If the export-symbols file already is a .def file (1st line
24645 # is EXPORTS), use it as is; otherwise, prepend...
24646 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24647 cp $export_symbols $output_objdir/$soname.def;
24648 else
24649 echo EXPORTS > $output_objdir/$soname.def;
24650 cat $export_symbols >> $output_objdir/$soname.def;
24651 fi~
24652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24653 else
24654 ld_shlibs_GCJ=no
24655 fi
24656 ;;
24657
24658 interix3*)
24659 hardcode_direct_GCJ=no
24660 hardcode_shlibpath_var_GCJ=no
24661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24662 export_dynamic_flag_spec_GCJ='${wl}-E'
24663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24664 # Instead, shared libraries are loaded at an image base (0x10000000 by
24665 # default) and relocated if they conflict, which is a slow very memory
24666 # consuming and fragmenting process. To avoid this, we pick a random,
24667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24669 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'
24670 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'
24671 ;;
24672
24673 linux*)
24674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24675 tmp_addflag=
24676 case $cc_basename,$host_cpu in
24677 pgcc*) # Portland Group C compiler
24678 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'
24679 tmp_addflag=' $pic_flag'
24680 ;;
24681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24682 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'
24683 tmp_addflag=' $pic_flag -Mnomain' ;;
24684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24685 tmp_addflag=' -i_dynamic' ;;
24686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24687 tmp_addflag=' -i_dynamic -nofor_main' ;;
24688 ifc* | ifort*) # Intel Fortran compiler
24689 tmp_addflag=' -nofor_main' ;;
24690 esac
24691 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24692
24693 if test $supports_anon_versioning = yes; then
24694 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24696 $echo "local: *; };" >> $output_objdir/$libname.ver~
24697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24698 fi
24699 else
24700 ld_shlibs_GCJ=no
24701 fi
24702 ;;
24703
24704 netbsd*)
24705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24707 wlarc=
24708 else
24709 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24710 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24711 fi
24712 ;;
24713
24714 solaris*)
24715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24716 ld_shlibs_GCJ=no
24717 cat <<EOF 1>&2
24718
24719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24720*** create shared libraries on Solaris systems. Therefore, libtool
24721*** is disabling shared libraries support. We urge you to upgrade GNU
24722*** binutils to release 2.9.1 or newer. Another option is to modify
24723*** your PATH or compiler configuration so that the native linker is
24724*** used, and then restart.
24725
24726EOF
24727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24728 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24729 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24730 else
24731 ld_shlibs_GCJ=no
24732 fi
24733 ;;
24734
24735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24736 case `$LD -v 2>&1` in
24737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24738 ld_shlibs_GCJ=no
24739 cat <<_LT_EOF 1>&2
24740
24741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24742*** reliably create shared libraries on SCO systems. Therefore, libtool
24743*** is disabling shared libraries support. We urge you to upgrade GNU
24744*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24745*** your PATH or compiler configuration so that the native linker is
24746*** used, and then restart.
24747
24748_LT_EOF
24749 ;;
24750 *)
24751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24752 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24755 else
24756 ld_shlibs_GCJ=no
24757 fi
24758 ;;
24759 esac
24760 ;;
24761
24762 sunos4*)
24763 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24764 wlarc=
24765 hardcode_direct_GCJ=yes
24766 hardcode_shlibpath_var_GCJ=no
24767 ;;
24768
24769 *)
24770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24771 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24772 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24773 else
24774 ld_shlibs_GCJ=no
24775 fi
24776 ;;
24777 esac
24778
24779 if test "$ld_shlibs_GCJ" = no; then
24780 runpath_var=
24781 hardcode_libdir_flag_spec_GCJ=
24782 export_dynamic_flag_spec_GCJ=
24783 whole_archive_flag_spec_GCJ=
24784 fi
24785 else
24786 # PORTME fill in a description of your system's linker (not GNU ld)
24787 case $host_os in
24788 aix3*)
24789 allow_undefined_flag_GCJ=unsupported
24790 always_export_symbols_GCJ=yes
24791 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'
24792 # Note: this linker hardcodes the directories in LIBPATH if there
24793 # are no directories specified by -L.
24794 hardcode_minus_L_GCJ=yes
24795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24796 # Neither direct hardcoding nor static linking is supported with a
24797 # broken collect2.
24798 hardcode_direct_GCJ=unsupported
24799 fi
24800 ;;
24801
24802 aix4* | aix5*)
24803 if test "$host_cpu" = ia64; then
24804 # On IA64, the linker does run time linking by default, so we don't
24805 # have to do anything special.
24806 aix_use_runtimelinking=no
24807 exp_sym_flag='-Bexport'
24808 no_entry_flag=""
24809 else
24810 # If we're using GNU nm, then we don't want the "-C" option.
24811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24813 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'
24814 else
24815 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'
24816 fi
24817 aix_use_runtimelinking=no
24818
24819 # Test if we are trying to use run time linking or normal
24820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24821 # need to do runtime linking.
24822 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24823 for ld_flag in $LDFLAGS; do
24824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24825 aix_use_runtimelinking=yes
24826 break
24827 fi
24828 done
24829 ;;
24830 esac
24831
24832 exp_sym_flag='-bexport'
24833 no_entry_flag='-bnoentry'
24834 fi
24835
24836 # When large executables or shared objects are built, AIX ld can
24837 # have problems creating the table of contents. If linking a library
24838 # or program results in "error TOC overflow" add -mminimal-toc to
24839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24841
24842 archive_cmds_GCJ=''
24843 hardcode_direct_GCJ=yes
24844 hardcode_libdir_separator_GCJ=':'
24845 link_all_deplibs_GCJ=yes
24846
24847 if test "$GCC" = yes; then
24848 case $host_os in aix4.[012]|aix4.[012].*)
24849 # We only want to do this on AIX 4.2 and lower, the check
24850 # below for broken collect2 doesn't work under 4.3+
24851 collect2name=`${CC} -print-prog-name=collect2`
24852 if test -f "$collect2name" && \
24853 strings "$collect2name" | grep resolve_lib_name >/dev/null
24854 then
24855 # We have reworked collect2
24856 hardcode_direct_GCJ=yes
24857 else
24858 # We have old collect2
24859 hardcode_direct_GCJ=unsupported
24860 # It fails to find uninstalled libraries when the uninstalled
24861 # path is not listed in the libpath. Setting hardcode_minus_L
24862 # to unsupported forces relinking
24863 hardcode_minus_L_GCJ=yes
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_libdir_separator_GCJ=
24866 fi
24867 ;;
24868 esac
24869 shared_flag='-shared'
24870 if test "$aix_use_runtimelinking" = yes; then
24871 shared_flag="$shared_flag "'${wl}-G'
24872 fi
24873 else
24874 # not using gcc
24875 if test "$host_cpu" = ia64; then
24876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24877 # chokes on -Wl,-G. The following line is correct:
24878 shared_flag='-G'
24879 else
24880 if test "$aix_use_runtimelinking" = yes; then
24881 shared_flag='${wl}-G'
24882 else
24883 shared_flag='${wl}-bM:SRE'
24884 fi
24885 fi
24886 fi
24887
24888 # It seems that -bexpall does not export symbols beginning with
24889 # underscore (_), so it is better to generate a list of symbols to export.
24890 always_export_symbols_GCJ=yes
24891 if test "$aix_use_runtimelinking" = yes; then
24892 # Warning - without using the other runtime loading flags (-brtl),
24893 # -berok will link without error, but may produce a broken library.
24894 allow_undefined_flag_GCJ='-berok'
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
24902
24903int
24904main ()
24905{
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext conftest$ac_exeext
24912if { (ac_try="$ac_link"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24929esac
24930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939esac
24940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024945
24946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24947}'`
24948# Check for a 64-bit object if we didn't find anything.
24949if 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; }
24950}'`; fi
24951else
24952 echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955
24956fi
24957
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024958rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024959 conftest$ac_exeext conftest.$ac_ext
24960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963 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"
24964 else
24965 if test "$host_cpu" = ia64; then
24966 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24967 allow_undefined_flag_GCJ="-z nodefs"
24968 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"
24969 else
24970 # Determine the default libpath from the value encoded in an empty executable.
24971 cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
24977
24978int
24979main ()
24980{
24981
24982 ;
24983 return 0;
24984}
24985_ACEOF
24986rm -f conftest.$ac_objext conftest$ac_exeext
24987if { (ac_try="$ac_link"
24988case "(($ac_try" in
24989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24991esac
24992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>conftest.er1
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001 { (case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25004esac
25005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25014esac
25015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25017 ac_status=$?
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025020
25021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25022}'`
25023# Check for a 64-bit object if we didn't find anything.
25024if 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; }
25025}'`; fi
25026else
25027 echo "$as_me: failed program was:" >&5
25028sed 's/^/| /' conftest.$ac_ext >&5
25029
25030
25031fi
25032
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025033rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025034 conftest$ac_exeext conftest.$ac_ext
25035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25036
25037 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25038 # Warning - without using the other run time loading flags,
25039 # -berok will link without error, but may produce a broken library.
25040 no_undefined_flag_GCJ=' ${wl}-bernotok'
25041 allow_undefined_flag_GCJ=' ${wl}-berok'
25042 # Exported symbols can be pulled into shared objects from archives
25043 whole_archive_flag_spec_GCJ='$convenience'
25044 archive_cmds_need_lc_GCJ=yes
25045 # This is similar to how AIX traditionally builds its shared libraries.
25046 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'
25047 fi
25048 fi
25049 ;;
25050
25051 amigaos*)
25052 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)'
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_minus_L_GCJ=yes
25055 # see comment about different semantics on the GNU ld section
25056 ld_shlibs_GCJ=no
25057 ;;
25058
25059 bsdi[45]*)
25060 export_dynamic_flag_spec_GCJ=-rdynamic
25061 ;;
25062
25063 cygwin* | mingw* | pw32*)
25064 # When not using gcc, we currently assume that we are using
25065 # Microsoft Visual C++.
25066 # hardcode_libdir_flag_spec is actually meaningless, as there is
25067 # no search path for DLLs.
25068 hardcode_libdir_flag_spec_GCJ=' '
25069 allow_undefined_flag_GCJ=unsupported
25070 # Tell ltmain to make .lib files, not .a files.
25071 libext=lib
25072 # Tell ltmain to make .dll files, not .so files.
25073 shrext_cmds=".dll"
25074 # FIXME: Setting linknames here is a bad hack.
25075 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25076 # The linker will automatically build a .lib file if we build a DLL.
25077 old_archive_From_new_cmds_GCJ='true'
25078 # FIXME: Should let the user specify the lib program.
25079 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25080 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25081 enable_shared_with_static_runtimes_GCJ=yes
25082 ;;
25083
25084 darwin* | rhapsody*)
25085 case $host_os in
25086 rhapsody* | darwin1.[012])
25087 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25088 ;;
25089 *) # Darwin 1.3 on
25090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25091 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25092 else
25093 case ${MACOSX_DEPLOYMENT_TARGET} in
25094 10.[012])
25095 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25096 ;;
25097 10.*)
25098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25099 ;;
25100 esac
25101 fi
25102 ;;
25103 esac
25104 archive_cmds_need_lc_GCJ=no
25105 hardcode_direct_GCJ=no
25106 hardcode_automatic_GCJ=yes
25107 hardcode_shlibpath_var_GCJ=unsupported
25108 whole_archive_flag_spec_GCJ=''
25109 link_all_deplibs_GCJ=yes
25110 if test "$GCC" = yes ; then
25111 output_verbose_link_cmd='echo'
25112 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25113 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25115 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}'
25116 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}'
25117 else
25118 case $cc_basename in
25119 xlc*)
25120 output_verbose_link_cmd='echo'
25121 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25122 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25124 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}'
25125 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}'
25126 ;;
25127 *)
25128 ld_shlibs_GCJ=no
25129 ;;
25130 esac
25131 fi
25132 ;;
25133
25134 dgux*)
25135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25137 hardcode_shlibpath_var_GCJ=no
25138 ;;
25139
25140 freebsd1*)
25141 ld_shlibs_GCJ=no
25142 ;;
25143
25144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25145 # support. Future versions do this automatically, but an explicit c++rt0.o
25146 # does not break anything, and helps significantly (at the cost of a little
25147 # extra space).
25148 freebsd2.2*)
25149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25150 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25151 hardcode_direct_GCJ=yes
25152 hardcode_shlibpath_var_GCJ=no
25153 ;;
25154
25155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25156 freebsd2*)
25157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ=yes
25159 hardcode_minus_L_GCJ=yes
25160 hardcode_shlibpath_var_GCJ=no
25161 ;;
25162
25163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25164 freebsd* | kfreebsd*-gnu | dragonfly*)
25165 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25167 hardcode_direct_GCJ=yes
25168 hardcode_shlibpath_var_GCJ=no
25169 ;;
25170
25171 hpux9*)
25172 if test "$GCC" = yes; then
25173 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'
25174 else
25175 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'
25176 fi
25177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25178 hardcode_libdir_separator_GCJ=:
25179 hardcode_direct_GCJ=yes
25180
25181 # hardcode_minus_L: Not really in the search PATH,
25182 # but as the default location of the library.
25183 hardcode_minus_L_GCJ=yes
25184 export_dynamic_flag_spec_GCJ='${wl}-E'
25185 ;;
25186
25187 hpux10*)
25188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25189 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25190 else
25191 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25192 fi
25193 if test "$with_gnu_ld" = no; then
25194 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25195 hardcode_libdir_separator_GCJ=:
25196
25197 hardcode_direct_GCJ=yes
25198 export_dynamic_flag_spec_GCJ='${wl}-E'
25199
25200 # hardcode_minus_L: Not really in the search PATH,
25201 # but as the default location of the library.
25202 hardcode_minus_L_GCJ=yes
25203 fi
25204 ;;
25205
25206 hpux11*)
25207 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25208 case $host_cpu in
25209 hppa*64*)
25210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25211 ;;
25212 ia64*)
25213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25214 ;;
25215 *)
25216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25217 ;;
25218 esac
25219 else
25220 case $host_cpu in
25221 hppa*64*)
25222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25223 ;;
25224 ia64*)
25225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25226 ;;
25227 *)
25228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25229 ;;
25230 esac
25231 fi
25232 if test "$with_gnu_ld" = no; then
25233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25234 hardcode_libdir_separator_GCJ=:
25235
25236 case $host_cpu in
25237 hppa*64*|ia64*)
25238 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25239 hardcode_direct_GCJ=no
25240 hardcode_shlibpath_var_GCJ=no
25241 ;;
25242 *)
25243 hardcode_direct_GCJ=yes
25244 export_dynamic_flag_spec_GCJ='${wl}-E'
25245
25246 # hardcode_minus_L: Not really in the search PATH,
25247 # but as the default location of the library.
25248 hardcode_minus_L_GCJ=yes
25249 ;;
25250 esac
25251 fi
25252 ;;
25253
25254 irix5* | irix6* | nonstopux*)
25255 if test "$GCC" = yes; then
25256 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'
25257 else
25258 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'
25259 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25260 fi
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262 hardcode_libdir_separator_GCJ=:
25263 link_all_deplibs_GCJ=yes
25264 ;;
25265
25266 netbsd*)
25267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25269 else
25270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25271 fi
25272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273 hardcode_direct_GCJ=yes
25274 hardcode_shlibpath_var_GCJ=no
25275 ;;
25276
25277 newsos6)
25278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279 hardcode_direct_GCJ=yes
25280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ=:
25282 hardcode_shlibpath_var_GCJ=no
25283 ;;
25284
25285 openbsd*)
25286 hardcode_direct_GCJ=yes
25287 hardcode_shlibpath_var_GCJ=no
25288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25289 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25290 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25292 export_dynamic_flag_spec_GCJ='${wl}-E'
25293 else
25294 case $host_os in
25295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25298 ;;
25299 *)
25300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25302 ;;
25303 esac
25304 fi
25305 ;;
25306
25307 os2*)
25308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25309 hardcode_minus_L_GCJ=yes
25310 allow_undefined_flag_GCJ=unsupported
25311 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'
25312 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25313 ;;
25314
25315 osf3*)
25316 if test "$GCC" = yes; then
25317 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25318 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'
25319 else
25320 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25321 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'
25322 fi
25323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25324 hardcode_libdir_separator_GCJ=:
25325 ;;
25326
25327 osf4* | osf5*) # as osf3* with the addition of -msym flag
25328 if test "$GCC" = yes; then
25329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25330 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'
25331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25332 else
25333 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25334 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'
25335 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~
25336 $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'
25337
25338 # Both c and cxx compiler support -rpath directly
25339 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25340 fi
25341 hardcode_libdir_separator_GCJ=:
25342 ;;
25343
25344 solaris*)
25345 no_undefined_flag_GCJ=' -z text'
25346 if test "$GCC" = yes; then
25347 wlarc='${wl}'
25348 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25349 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25350 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25351 else
25352 wlarc=''
25353 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25356 fi
25357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25358 hardcode_shlibpath_var_GCJ=no
25359 case $host_os in
25360 solaris2.[0-5] | solaris2.[0-5].*) ;;
25361 *)
25362 # The compiler driver will combine linker options so we
25363 # cannot just pass the convience library names through
25364 # without $wl, iff we do not link with $LD.
25365 # Luckily, gcc supports the same syntax we need for Sun Studio.
25366 # Supported since Solaris 2.6 (maybe 2.5.1?)
25367 case $wlarc in
25368 '')
25369 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25370 *)
25371 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' ;;
25372 esac ;;
25373 esac
25374 link_all_deplibs_GCJ=yes
25375 ;;
25376
25377 sunos4*)
25378 if test "x$host_vendor" = xsequent; then
25379 # Use $CC to link under sequent, because it throws in some extra .o
25380 # files that make .init and .fini sections work.
25381 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25382 else
25383 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25384 fi
25385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25386 hardcode_direct_GCJ=yes
25387 hardcode_minus_L_GCJ=yes
25388 hardcode_shlibpath_var_GCJ=no
25389 ;;
25390
25391 sysv4)
25392 case $host_vendor in
25393 sni)
25394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25395 hardcode_direct_GCJ=yes # is this really true???
25396 ;;
25397 siemens)
25398 ## LD is ld it makes a PLAMLIB
25399 ## CC just makes a GrossModule.
25400 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25401 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25402 hardcode_direct_GCJ=no
25403 ;;
25404 motorola)
25405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25407 ;;
25408 esac
25409 runpath_var='LD_RUN_PATH'
25410 hardcode_shlibpath_var_GCJ=no
25411 ;;
25412
25413 sysv4.3*)
25414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415 hardcode_shlibpath_var_GCJ=no
25416 export_dynamic_flag_spec_GCJ='-Bexport'
25417 ;;
25418
25419 sysv4*MP*)
25420 if test -d /usr/nec; then
25421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_shlibpath_var_GCJ=no
25423 runpath_var=LD_RUN_PATH
25424 hardcode_runpath_var=yes
25425 ld_shlibs_GCJ=yes
25426 fi
25427 ;;
25428
25429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25430 no_undefined_flag_GCJ='${wl}-z,text'
25431 archive_cmds_need_lc_GCJ=no
25432 hardcode_shlibpath_var_GCJ=no
25433 runpath_var='LD_RUN_PATH'
25434
25435 if test "$GCC" = yes; then
25436 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25438 else
25439 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25441 fi
25442 ;;
25443
25444 sysv5* | sco3.2v5* | sco5v6*)
25445 # Note: We can NOT use -z defs as we might desire, because we do not
25446 # link with -lc, and that would cause any symbols used from libc to
25447 # always be unresolved, which means just about no library would
25448 # ever link correctly. If we're not using GNU ld we use -z text
25449 # though, which does catch some bad symbols but isn't as heavy-handed
25450 # as -z defs.
25451 no_undefined_flag_GCJ='${wl}-z,text'
25452 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25453 archive_cmds_need_lc_GCJ=no
25454 hardcode_shlibpath_var_GCJ=no
25455 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25456 hardcode_libdir_separator_GCJ=':'
25457 link_all_deplibs_GCJ=yes
25458 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25459 runpath_var='LD_RUN_PATH'
25460
25461 if test "$GCC" = yes; then
25462 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25464 else
25465 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25466 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25467 fi
25468 ;;
25469
25470 uts4*)
25471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25473 hardcode_shlibpath_var_GCJ=no
25474 ;;
25475
25476 *)
25477 ld_shlibs_GCJ=no
25478 ;;
25479 esac
25480 fi
25481
25482{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25483echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25484test "$ld_shlibs_GCJ" = no && can_build_shared=no
25485
25486#
25487# Do we need to explicitly link libc?
25488#
25489case "x$archive_cmds_need_lc_GCJ" in
25490x|xyes)
25491 # Assume -lc should be added
25492 archive_cmds_need_lc_GCJ=yes
25493
25494 if test "$enable_shared" = yes && test "$GCC" = yes; then
25495 case $archive_cmds_GCJ in
25496 *'~'*)
25497 # FIXME: we may have to deal with multi-command sequences.
25498 ;;
25499 '$CC '*)
25500 # Test whether the compiler implicitly links with -lc since on some
25501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25502 # to ld, don't add -lc before -lgcc.
25503 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25504echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25505 $rm conftest*
25506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25507
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25510 ac_status=$?
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } 2>conftest.err; then
25513 soname=conftest
25514 lib=conftest
25515 libobjs=conftest.$ac_objext
25516 deplibs=
25517 wl=$lt_prog_compiler_wl_GCJ
25518 pic_flag=$lt_prog_compiler_pic_GCJ
25519 compiler_flags=-v
25520 linker_flags=-v
25521 verstring=
25522 output_objdir=.
25523 libname=conftest
25524 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25525 allow_undefined_flag_GCJ=
25526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25527 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }
25531 then
25532 archive_cmds_need_lc_GCJ=no
25533 else
25534 archive_cmds_need_lc_GCJ=yes
25535 fi
25536 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25537 else
25538 cat conftest.err 1>&5
25539 fi
25540 $rm conftest*
25541 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25542echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25543 ;;
25544 esac
25545 fi
25546 ;;
25547esac
25548
25549{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25550echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25551library_names_spec=
25552libname_spec='lib$name'
25553soname_spec=
25554shrext_cmds=".so"
25555postinstall_cmds=
25556postuninstall_cmds=
25557finish_cmds=
25558finish_eval=
25559shlibpath_var=
25560shlibpath_overrides_runpath=unknown
25561version_type=none
25562dynamic_linker="$host_os ld.so"
25563sys_lib_dlsearch_path_spec="/lib /usr/lib"
25564if test "$GCC" = yes; then
25565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25567 # if the path contains ";" then we assume it to be the separator
25568 # otherwise default to the standard path separator (i.e. ":") - it is
25569 # assumed that no part of a normal pathname contains ";" but that should
25570 # okay in the real world where ";" in dirpaths is itself problematic.
25571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25572 else
25573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25574 fi
25575else
25576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25577fi
25578need_lib_prefix=unknown
25579hardcode_into_libs=no
25580
25581# when you set need_version to no, make sure it does not cause -set_version
25582# flags to be left without arguments
25583need_version=unknown
25584
25585case $host_os in
25586aix3*)
25587 version_type=linux
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25589 shlibpath_var=LIBPATH
25590
25591 # AIX 3 has no versioning support, so we append a major version to the name.
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 ;;
25594
25595aix4* | aix5*)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 hardcode_into_libs=yes
25600 if test "$host_cpu" = ia64; then
25601 # AIX 5 supports IA64
25602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25603 shlibpath_var=LD_LIBRARY_PATH
25604 else
25605 # With GCC up to 2.95.x, collect2 would create an import file
25606 # for dependence libraries. The import file would start with
25607 # the line `#! .'. This would cause the generated library to
25608 # depend on `.', always an invalid library. This was fixed in
25609 # development snapshots of GCC prior to 3.0.
25610 case $host_os in
25611 aix4 | aix4.[01] | aix4.[01].*)
25612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25613 echo ' yes '
25614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25615 :
25616 else
25617 can_build_shared=no
25618 fi
25619 ;;
25620 esac
25621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25622 # soname into executable. Probably we can add versioning support to
25623 # collect2, so additional links can be useful in future.
25624 if test "$aix_use_runtimelinking" = yes; then
25625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25626 # instead of lib<name>.a to let people know that these are not
25627 # typical AIX shared libraries.
25628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25629 else
25630 # We preserve .a as extension for shared libraries through AIX4.2
25631 # and later when we are not doing run time linking.
25632 library_names_spec='${libname}${release}.a $libname.a'
25633 soname_spec='${libname}${release}${shared_ext}$major'
25634 fi
25635 shlibpath_var=LIBPATH
25636 fi
25637 ;;
25638
25639amigaos*)
25640 library_names_spec='$libname.ixlibrary $libname.a'
25641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25642 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'
25643 ;;
25644
25645beos*)
25646 library_names_spec='${libname}${shared_ext}'
25647 dynamic_linker="$host_os ld.so"
25648 shlibpath_var=LIBRARY_PATH
25649 ;;
25650
25651bsdi[45]*)
25652 version_type=linux
25653 need_version=no
25654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec='${libname}${release}${shared_ext}$major'
25656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25660 # the default ld.so.conf also contains /usr/contrib/lib and
25661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25662 # libtool to hard-code these into programs
25663 ;;
25664
25665cygwin* | mingw* | pw32*)
25666 version_type=windows
25667 shrext_cmds=".dll"
25668 need_version=no
25669 need_lib_prefix=no
25670
25671 case $GCC,$host_os in
25672 yes,cygwin* | yes,mingw* | yes,pw32*)
25673 library_names_spec='$libname.dll.a'
25674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25675 postinstall_cmds='base_file=`basename \${file}`~
25676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25677 dldir=$destdir/`dirname \$dlpath`~
25678 test -d \$dldir || mkdir -p \$dldir~
25679 $install_prog $dir/$dlname \$dldir/$dlname~
25680 chmod a+x \$dldir/$dlname'
25681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25682 dlpath=$dir/\$dldll~
25683 $rm \$dlpath'
25684 shlibpath_overrides_runpath=yes
25685
25686 case $host_os in
25687 cygwin*)
25688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25691 ;;
25692 mingw*)
25693 # MinGW DLLs use traditional 'lib' prefix
25694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25697 # It is most probably a Windows format PATH printed by
25698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25699 # path with ; separators, and with drive letters. We can handle the
25700 # drive letters (cygwin fileutils understands them), so leave them,
25701 # especially as we might pass files found there to a mingw objdump,
25702 # which wouldn't understand a cygwinified path. Ahh.
25703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25704 else
25705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25706 fi
25707 ;;
25708 pw32*)
25709 # pw32 DLLs use 'pw' prefix rather than 'lib'
25710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25711 ;;
25712 esac
25713 ;;
25714
25715 *)
25716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25717 ;;
25718 esac
25719 dynamic_linker='Win32 ld.exe'
25720 # FIXME: first we should search . and the directory the executable is in
25721 shlibpath_var=PATH
25722 ;;
25723
25724darwin* | rhapsody*)
25725 dynamic_linker="$host_os dyld"
25726 version_type=darwin
25727 need_lib_prefix=no
25728 need_version=no
25729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25730 soname_spec='${libname}${release}${major}$shared_ext'
25731 shlibpath_overrides_runpath=yes
25732 shlibpath_var=DYLD_LIBRARY_PATH
25733 shrext_cmds='.dylib'
25734 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25735 if test "$GCC" = yes; then
25736 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"`
25737 else
25738 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25739 fi
25740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25741 ;;
25742
25743dgux*)
25744 version_type=linux
25745 need_lib_prefix=no
25746 need_version=no
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25748 soname_spec='${libname}${release}${shared_ext}$major'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 ;;
25751
25752freebsd1*)
25753 dynamic_linker=no
25754 ;;
25755
25756kfreebsd*-gnu)
25757 version_type=linux
25758 need_lib_prefix=no
25759 need_version=no
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 shlibpath_var=LD_LIBRARY_PATH
25763 shlibpath_overrides_runpath=no
25764 hardcode_into_libs=yes
25765 dynamic_linker='GNU ld.so'
25766 ;;
25767
25768freebsd* | dragonfly*)
25769 # DragonFly does not have aout. When/if they implement a new
25770 # versioning mechanism, adjust this.
25771 if test -x /usr/bin/objformat; then
25772 objformat=`/usr/bin/objformat`
25773 else
25774 case $host_os in
25775 freebsd[123]*) objformat=aout ;;
25776 *) objformat=elf ;;
25777 esac
25778 fi
25779 version_type=freebsd-$objformat
25780 case $version_type in
25781 freebsd-elf*)
25782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783 need_version=no
25784 need_lib_prefix=no
25785 ;;
25786 freebsd-*)
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25788 need_version=yes
25789 ;;
25790 esac
25791 shlibpath_var=LD_LIBRARY_PATH
25792 case $host_os in
25793 freebsd2*)
25794 shlibpath_overrides_runpath=yes
25795 ;;
25796 freebsd3.[01]* | freebsdelf3.[01]*)
25797 shlibpath_overrides_runpath=yes
25798 hardcode_into_libs=yes
25799 ;;
25800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25802 shlibpath_overrides_runpath=no
25803 hardcode_into_libs=yes
25804 ;;
25805 freebsd*) # from 4.6 on
25806 shlibpath_overrides_runpath=yes
25807 hardcode_into_libs=yes
25808 ;;
25809 esac
25810 ;;
25811
25812gnu*)
25813 version_type=linux
25814 need_lib_prefix=no
25815 need_version=no
25816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25817 soname_spec='${libname}${release}${shared_ext}$major'
25818 shlibpath_var=LD_LIBRARY_PATH
25819 hardcode_into_libs=yes
25820 ;;
25821
25822hpux9* | hpux10* | hpux11*)
25823 # Give a soname corresponding to the major version so that dld.sl refuses to
25824 # link against other versions.
25825 version_type=sunos
25826 need_lib_prefix=no
25827 need_version=no
25828 case $host_cpu in
25829 ia64*)
25830 shrext_cmds='.so'
25831 hardcode_into_libs=yes
25832 dynamic_linker="$host_os dld.so"
25833 shlibpath_var=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
25838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25839 else
25840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25841 fi
25842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25843 ;;
25844 hppa*64*)
25845 shrext_cmds='.sl'
25846 hardcode_into_libs=yes
25847 dynamic_linker="$host_os dld.sl"
25848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25854 ;;
25855 *)
25856 shrext_cmds='.sl'
25857 dynamic_linker="$host_os dld.sl"
25858 shlibpath_var=SHLIB_PATH
25859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25861 soname_spec='${libname}${release}${shared_ext}$major'
25862 ;;
25863 esac
25864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25865 postinstall_cmds='chmod 555 $lib'
25866 ;;
25867
25868interix3*)
25869 version_type=linux
25870 need_lib_prefix=no
25871 need_version=no
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 shlibpath_overrides_runpath=no
25877 hardcode_into_libs=yes
25878 ;;
25879
25880irix5* | irix6* | nonstopux*)
25881 case $host_os in
25882 nonstopux*) version_type=nonstopux ;;
25883 *)
25884 if test "$lt_cv_prog_gnu_ld" = yes; then
25885 version_type=linux
25886 else
25887 version_type=irix
25888 fi ;;
25889 esac
25890 need_lib_prefix=no
25891 need_version=no
25892 soname_spec='${libname}${release}${shared_ext}$major'
25893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25894 case $host_os in
25895 irix5* | nonstopux*)
25896 libsuff= shlibsuff=
25897 ;;
25898 *)
25899 case $LD in # libtool.m4 will add one of these switches to LD
25900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25901 libsuff= shlibsuff= libmagic=32-bit;;
25902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25903 libsuff=32 shlibsuff=N32 libmagic=N32;;
25904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25906 *) libsuff= shlibsuff= libmagic=never-match;;
25907 esac
25908 ;;
25909 esac
25910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25911 shlibpath_overrides_runpath=no
25912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25914 hardcode_into_libs=yes
25915 ;;
25916
25917# No shared lib support for Linux oldld, aout, or coff.
25918linux*oldld* | linux*aout* | linux*coff*)
25919 dynamic_linker=no
25920 ;;
25921
25922# This must be Linux ELF.
25923linux*)
25924 version_type=linux
25925 need_lib_prefix=no
25926 need_version=no
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath=no
25932 # This implies no fast_install, which is unacceptable.
25933 # Some rework will be needed to allow for fast_install
25934 # before this can be enabled.
25935 hardcode_into_libs=yes
25936
25937 # Append ld.so.conf contents to the search path
25938 if test -f /etc/ld.so.conf; then
25939 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' ' '`
25940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25941 fi
25942
25943 # We used to test for /lib/ld.so.1 and disable shared libraries on
25944 # powerpc, because MkLinux only supported shared libraries with the
25945 # GNU dynamic linker. Since this was broken with cross compilers,
25946 # most powerpc-linux boxes support dynamic linking these days and
25947 # people can always --disable-shared, the test was removed, and we
25948 # assume the GNU/Linux dynamic linker is in use.
25949 dynamic_linker='GNU/Linux ld.so'
25950 ;;
25951
25952knetbsd*-gnu)
25953 version_type=linux
25954 need_lib_prefix=no
25955 need_version=no
25956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25957 soname_spec='${libname}${release}${shared_ext}$major'
25958 shlibpath_var=LD_LIBRARY_PATH
25959 shlibpath_overrides_runpath=no
25960 hardcode_into_libs=yes
25961 dynamic_linker='GNU ld.so'
25962 ;;
25963
25964netbsd*)
25965 version_type=sunos
25966 need_lib_prefix=no
25967 need_version=no
25968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25971 dynamic_linker='NetBSD (a.out) ld.so'
25972 else
25973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25974 soname_spec='${libname}${release}${shared_ext}$major'
25975 dynamic_linker='NetBSD ld.elf_so'
25976 fi
25977 shlibpath_var=LD_LIBRARY_PATH
25978 shlibpath_overrides_runpath=yes
25979 hardcode_into_libs=yes
25980 ;;
25981
25982newsos6)
25983 version_type=linux
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 shlibpath_var=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath=yes
25987 ;;
25988
25989nto-qnx*)
25990 version_type=linux
25991 need_lib_prefix=no
25992 need_version=no
25993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994 soname_spec='${libname}${release}${shared_ext}$major'
25995 shlibpath_var=LD_LIBRARY_PATH
25996 shlibpath_overrides_runpath=yes
25997 ;;
25998
25999openbsd*)
26000 version_type=sunos
26001 sys_lib_dlsearch_path_spec="/usr/lib"
26002 need_lib_prefix=no
26003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26004 case $host_os in
26005 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26006 *) need_version=no ;;
26007 esac
26008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26010 shlibpath_var=LD_LIBRARY_PATH
26011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26012 case $host_os in
26013 openbsd2.[89] | openbsd2.[89].*)
26014 shlibpath_overrides_runpath=no
26015 ;;
26016 *)
26017 shlibpath_overrides_runpath=yes
26018 ;;
26019 esac
26020 else
26021 shlibpath_overrides_runpath=yes
26022 fi
26023 ;;
26024
26025os2*)
26026 libname_spec='$name'
26027 shrext_cmds=".dll"
26028 need_lib_prefix=no
26029 library_names_spec='$libname${shared_ext} $libname.a'
26030 dynamic_linker='OS/2 ld.exe'
26031 shlibpath_var=LIBPATH
26032 ;;
26033
26034osf3* | osf4* | osf5*)
26035 version_type=osf
26036 need_lib_prefix=no
26037 need_version=no
26038 soname_spec='${libname}${release}${shared_ext}$major'
26039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26040 shlibpath_var=LD_LIBRARY_PATH
26041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26043 ;;
26044
26045solaris*)
26046 version_type=linux
26047 need_lib_prefix=no
26048 need_version=no
26049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050 soname_spec='${libname}${release}${shared_ext}$major'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes
26053 hardcode_into_libs=yes
26054 # ldd complains unless libraries are executable
26055 postinstall_cmds='chmod +x $lib'
26056 ;;
26057
26058sunos4*)
26059 version_type=sunos
26060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26062 shlibpath_var=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath=yes
26064 if test "$with_gnu_ld" = yes; then
26065 need_lib_prefix=no
26066 fi
26067 need_version=yes
26068 ;;
26069
26070sysv4 | sysv4.3*)
26071 version_type=linux
26072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec='${libname}${release}${shared_ext}$major'
26074 shlibpath_var=LD_LIBRARY_PATH
26075 case $host_vendor in
26076 sni)
26077 shlibpath_overrides_runpath=no
26078 need_lib_prefix=no
26079 export_dynamic_flag_spec='${wl}-Blargedynsym'
26080 runpath_var=LD_RUN_PATH
26081 ;;
26082 siemens)
26083 need_lib_prefix=no
26084 ;;
26085 motorola)
26086 need_lib_prefix=no
26087 need_version=no
26088 shlibpath_overrides_runpath=no
26089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26090 ;;
26091 esac
26092 ;;
26093
26094sysv4*MP*)
26095 if test -d /usr/nec ;then
26096 version_type=linux
26097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26098 soname_spec='$libname${shared_ext}.$major'
26099 shlibpath_var=LD_LIBRARY_PATH
26100 fi
26101 ;;
26102
26103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26104 version_type=freebsd-elf
26105 need_lib_prefix=no
26106 need_version=no
26107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26108 soname_spec='${libname}${release}${shared_ext}$major'
26109 shlibpath_var=LD_LIBRARY_PATH
26110 hardcode_into_libs=yes
26111 if test "$with_gnu_ld" = yes; then
26112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26113 shlibpath_overrides_runpath=no
26114 else
26115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26116 shlibpath_overrides_runpath=yes
26117 case $host_os in
26118 sco3.2v5*)
26119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26120 ;;
26121 esac
26122 fi
26123 sys_lib_dlsearch_path_spec='/usr/lib'
26124 ;;
26125
26126uts4*)
26127 version_type=linux
26128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26129 soname_spec='${libname}${release}${shared_ext}$major'
26130 shlibpath_var=LD_LIBRARY_PATH
26131 ;;
26132
26133*)
26134 dynamic_linker=no
26135 ;;
26136esac
26137{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26138echo "${ECHO_T}$dynamic_linker" >&6; }
26139test "$dynamic_linker" = no && can_build_shared=no
26140
26141variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26142if test "$GCC" = yes; then
26143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26144fi
26145
26146{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26147echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26148hardcode_action_GCJ=
26149if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26150 test -n "$runpath_var_GCJ" || \
26151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26152
26153 # We can hardcode non-existant directories.
26154 if test "$hardcode_direct_GCJ" != no &&
26155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26156 # have to relink, otherwise we might link with an installed library
26157 # when we should be linking with a yet-to-be-installed one
26158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26159 test "$hardcode_minus_L_GCJ" != no; then
26160 # Linking always hardcodes the temporary library directory.
26161 hardcode_action_GCJ=relink
26162 else
26163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26164 hardcode_action_GCJ=immediate
26165 fi
26166else
26167 # We cannot hardcode anything, or else we can only hardcode existing
26168 # directories.
26169 hardcode_action_GCJ=unsupported
26170fi
26171{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26172echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26173
26174if test "$hardcode_action_GCJ" = relink; then
26175 # Fast installation is not supported
26176 enable_fast_install=no
26177elif test "$shlibpath_overrides_runpath" = yes ||
26178 test "$enable_shared" = no; then
26179 # Fast installation is not necessary
26180 enable_fast_install=needless
26181fi
26182
26183
26184# The else clause should only fire when bootstrapping the
26185# libtool distribution, otherwise you forgot to ship ltmain.sh
26186# with your package, and you will get complaints that there are
26187# no rules to generate ltmain.sh.
26188if test -f "$ltmain"; then
26189 # See if we are running on zsh, and set the options which allow our commands through
26190 # without removal of \ escapes.
26191 if test -n "${ZSH_VERSION+set}" ; then
26192 setopt NO_GLOB_SUBST
26193 fi
26194 # Now quote all the things that may contain metacharacters while being
26195 # careful not to overquote the AC_SUBSTed values. We take copies of the
26196 # variables and quote the copies for generation of the libtool script.
26197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26198 SED SHELL STRIP \
26199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26201 deplibs_check_method reload_flag reload_cmds need_locks \
26202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26203 lt_cv_sys_global_symbol_to_c_name_address \
26204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26205 old_postinstall_cmds old_postuninstall_cmds \
26206 compiler_GCJ \
26207 CC_GCJ \
26208 LD_GCJ \
26209 lt_prog_compiler_wl_GCJ \
26210 lt_prog_compiler_pic_GCJ \
26211 lt_prog_compiler_static_GCJ \
26212 lt_prog_compiler_no_builtin_flag_GCJ \
26213 export_dynamic_flag_spec_GCJ \
26214 thread_safe_flag_spec_GCJ \
26215 whole_archive_flag_spec_GCJ \
26216 enable_shared_with_static_runtimes_GCJ \
26217 old_archive_cmds_GCJ \
26218 old_archive_from_new_cmds_GCJ \
26219 predep_objects_GCJ \
26220 postdep_objects_GCJ \
26221 predeps_GCJ \
26222 postdeps_GCJ \
26223 compiler_lib_search_path_GCJ \
26224 archive_cmds_GCJ \
26225 archive_expsym_cmds_GCJ \
26226 postinstall_cmds_GCJ \
26227 postuninstall_cmds_GCJ \
26228 old_archive_from_expsyms_cmds_GCJ \
26229 allow_undefined_flag_GCJ \
26230 no_undefined_flag_GCJ \
26231 export_symbols_cmds_GCJ \
26232 hardcode_libdir_flag_spec_GCJ \
26233 hardcode_libdir_flag_spec_ld_GCJ \
26234 hardcode_libdir_separator_GCJ \
26235 hardcode_automatic_GCJ \
26236 module_cmds_GCJ \
26237 module_expsym_cmds_GCJ \
26238 lt_cv_prog_compiler_c_o_GCJ \
26239 exclude_expsyms_GCJ \
26240 include_expsyms_GCJ; do
26241
26242 case $var in
26243 old_archive_cmds_GCJ | \
26244 old_archive_from_new_cmds_GCJ | \
26245 archive_cmds_GCJ | \
26246 archive_expsym_cmds_GCJ | \
26247 module_cmds_GCJ | \
26248 module_expsym_cmds_GCJ | \
26249 old_archive_from_expsyms_cmds_GCJ | \
26250 export_symbols_cmds_GCJ | \
26251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26252 postinstall_cmds | postuninstall_cmds | \
26253 old_postinstall_cmds | old_postuninstall_cmds | \
26254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26255 # Double-quote double-evaled strings.
26256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26257 ;;
26258 *)
26259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26260 ;;
26261 esac
26262 done
26263
26264 case $lt_echo in
26265 *'\$0 --fallback-echo"')
26266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26267 ;;
26268 esac
26269
26270cfgfile="$ofile"
26271
26272 cat <<__EOF__ >> "$cfgfile"
26273# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26274
26275# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26276
26277# Shell to use when invoking shell scripts.
26278SHELL=$lt_SHELL
26279
26280# Whether or not to build shared libraries.
26281build_libtool_libs=$enable_shared
26282
26283# Whether or not to build static libraries.
26284build_old_libs=$enable_static
26285
26286# Whether or not to add -lc for building shared libraries.
26287build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26288
26289# Whether or not to disallow shared libs when runtime libs are static
26290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26291
26292# Whether or not to optimize for fast installation.
26293fast_install=$enable_fast_install
26294
26295# The host system.
26296host_alias=$host_alias
26297host=$host
26298host_os=$host_os
26299
26300# The build system.
26301build_alias=$build_alias
26302build=$build
26303build_os=$build_os
26304
26305# An echo program that does not interpret backslashes.
26306echo=$lt_echo
26307
26308# The archiver.
26309AR=$lt_AR
26310AR_FLAGS=$lt_AR_FLAGS
26311
26312# A C compiler.
26313LTCC=$lt_LTCC
26314
26315# LTCC compiler flags.
26316LTCFLAGS=$lt_LTCFLAGS
26317
26318# A language-specific compiler.
26319CC=$lt_compiler_GCJ
26320
26321# Is the compiler the GNU C compiler?
26322with_gcc=$GCC_GCJ
26323
26324# An ERE matcher.
26325EGREP=$lt_EGREP
26326
26327# The linker used to build libraries.
26328LD=$lt_LD_GCJ
26329
26330# Whether we need hard or soft links.
26331LN_S=$lt_LN_S
26332
26333# A BSD-compatible nm program.
26334NM=$lt_NM
26335
26336# A symbol stripping program
26337STRIP=$lt_STRIP
26338
26339# Used to examine libraries when file_magic_cmd begins "file"
26340MAGIC_CMD=$MAGIC_CMD
26341
26342# Used on cygwin: DLL creation program.
26343DLLTOOL="$DLLTOOL"
26344
26345# Used on cygwin: object dumper.
26346OBJDUMP="$OBJDUMP"
26347
26348# Used on cygwin: assembler.
26349AS="$AS"
26350
26351# The name of the directory that contains temporary libtool files.
26352objdir=$objdir
26353
26354# How to create reloadable object files.
26355reload_flag=$lt_reload_flag
26356reload_cmds=$lt_reload_cmds
26357
26358# How to pass a linker flag through the compiler.
26359wl=$lt_lt_prog_compiler_wl_GCJ
26360
26361# Object file suffix (normally "o").
26362objext="$ac_objext"
26363
26364# Old archive suffix (normally "a").
26365libext="$libext"
26366
26367# Shared library suffix (normally ".so").
26368shrext_cmds='$shrext_cmds'
26369
26370# Executable file suffix (normally "").
26371exeext="$exeext"
26372
26373# Additional compiler flags for building library objects.
26374pic_flag=$lt_lt_prog_compiler_pic_GCJ
26375pic_mode=$pic_mode
26376
26377# What is the maximum length of a command?
26378max_cmd_len=$lt_cv_sys_max_cmd_len
26379
26380# Does compiler simultaneously support -c and -o options?
26381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26382
26383# Must we lock files when doing compilation?
26384need_locks=$lt_need_locks
26385
26386# Do we need the lib prefix for modules?
26387need_lib_prefix=$need_lib_prefix
26388
26389# Do we need a version for libraries?
26390need_version=$need_version
26391
26392# Whether dlopen is supported.
26393dlopen_support=$enable_dlopen
26394
26395# Whether dlopen of programs is supported.
26396dlopen_self=$enable_dlopen_self
26397
26398# Whether dlopen of statically linked programs is supported.
26399dlopen_self_static=$enable_dlopen_self_static
26400
26401# Compiler flag to prevent dynamic linking.
26402link_static_flag=$lt_lt_prog_compiler_static_GCJ
26403
26404# Compiler flag to turn off builtin functions.
26405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26406
26407# Compiler flag to allow reflexive dlopens.
26408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26409
26410# Compiler flag to generate shared objects directly from archives.
26411whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26412
26413# Compiler flag to generate thread-safe objects.
26414thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26415
26416# Library versioning type.
26417version_type=$version_type
26418
26419# Format of library name prefix.
26420libname_spec=$lt_libname_spec
26421
26422# List of archive names. First name is the real one, the rest are links.
26423# The last name is the one that the linker finds with -lNAME.
26424library_names_spec=$lt_library_names_spec
26425
26426# The coded name of the library, if different from the real name.
26427soname_spec=$lt_soname_spec
26428
26429# Commands used to build and install an old-style archive.
26430RANLIB=$lt_RANLIB
26431old_archive_cmds=$lt_old_archive_cmds_GCJ
26432old_postinstall_cmds=$lt_old_postinstall_cmds
26433old_postuninstall_cmds=$lt_old_postuninstall_cmds
26434
26435# Create an old-style archive from a shared archive.
26436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26437
26438# Create a temporary old-style archive to link instead of a shared archive.
26439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26440
26441# Commands used to build and install a shared archive.
26442archive_cmds=$lt_archive_cmds_GCJ
26443archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26444postinstall_cmds=$lt_postinstall_cmds
26445postuninstall_cmds=$lt_postuninstall_cmds
26446
26447# Commands used to build a loadable module (assumed same as above if empty)
26448module_cmds=$lt_module_cmds_GCJ
26449module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26450
26451# Commands to strip libraries.
26452old_striplib=$lt_old_striplib
26453striplib=$lt_striplib
26454
26455# Dependencies to place before the objects being linked to create a
26456# shared library.
26457predep_objects=$lt_predep_objects_GCJ
26458
26459# Dependencies to place after the objects being linked to create a
26460# shared library.
26461postdep_objects=$lt_postdep_objects_GCJ
26462
26463# Dependencies to place before the objects being linked to create a
26464# shared library.
26465predeps=$lt_predeps_GCJ
26466
26467# Dependencies to place after the objects being linked to create a
26468# shared library.
26469postdeps=$lt_postdeps_GCJ
26470
26471# The library search path used internally by the compiler when linking
26472# a shared library.
26473compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26474
26475# Method to check whether dependent libraries are shared objects.
26476deplibs_check_method=$lt_deplibs_check_method
26477
26478# Command to use when deplibs_check_method == file_magic.
26479file_magic_cmd=$lt_file_magic_cmd
26480
26481# Flag that allows shared libraries with undefined symbols to be built.
26482allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26483
26484# Flag that forces no undefined symbols.
26485no_undefined_flag=$lt_no_undefined_flag_GCJ
26486
26487# Commands used to finish a libtool library installation in a directory.
26488finish_cmds=$lt_finish_cmds
26489
26490# Same as above, but a single script fragment to be evaled but not shown.
26491finish_eval=$lt_finish_eval
26492
26493# Take the output of nm and produce a listing of raw symbols and C names.
26494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26495
26496# Transform the output of nm in a proper C declaration
26497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26498
26499# Transform the output of nm in a C name address pair
26500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26501
26502# This is the shared library runtime path variable.
26503runpath_var=$runpath_var
26504
26505# This is the shared library path variable.
26506shlibpath_var=$shlibpath_var
26507
26508# Is shlibpath searched before the hard-coded library search path?
26509shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26510
26511# How to hardcode a shared library path into an executable.
26512hardcode_action=$hardcode_action_GCJ
26513
26514# Whether we should hardcode library paths into libraries.
26515hardcode_into_libs=$hardcode_into_libs
26516
26517# Flag to hardcode \$libdir into a binary during linking.
26518# This must work even if \$libdir does not exist.
26519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26520
26521# If ld is used when linking, flag to hardcode \$libdir into
26522# a binary during linking. This must work even if \$libdir does
26523# not exist.
26524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26525
26526# Whether we need a single -rpath flag with a separated argument.
26527hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26528
26529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26530# resulting binary.
26531hardcode_direct=$hardcode_direct_GCJ
26532
26533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26534# resulting binary.
26535hardcode_minus_L=$hardcode_minus_L_GCJ
26536
26537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26538# the resulting binary.
26539hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26540
26541# Set to yes if building a shared library automatically hardcodes DIR into the library
26542# and all subsequent libraries and executables linked against it.
26543hardcode_automatic=$hardcode_automatic_GCJ
26544
26545# Variables whose values should be saved in libtool wrapper scripts and
26546# restored at relink time.
26547variables_saved_for_relink="$variables_saved_for_relink"
26548
26549# Whether libtool must link a program against all its dependency libraries.
26550link_all_deplibs=$link_all_deplibs_GCJ
26551
26552# Compile-time system search path for libraries
26553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26554
26555# Run-time system search path for libraries
26556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26557
26558# Fix the shell variable \$srcfile for the compiler.
26559fix_srcfile_path="$fix_srcfile_path_GCJ"
26560
26561# Set to yes if exported symbols are required.
26562always_export_symbols=$always_export_symbols_GCJ
26563
26564# The commands to list exported symbols.
26565export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26566
26567# The commands to extract the exported symbol list from a shared archive.
26568extract_expsyms_cmds=$lt_extract_expsyms_cmds
26569
26570# Symbols that should not be listed in the preloaded symbols.
26571exclude_expsyms=$lt_exclude_expsyms_GCJ
26572
26573# Symbols that must always be exported.
26574include_expsyms=$lt_include_expsyms_GCJ
26575
26576# ### END LIBTOOL TAG CONFIG: $tagname
26577
26578__EOF__
26579
26580
26581else
26582 # If there is no Makefile yet, we rely on a make rule to execute
26583 # `config.status --recheck' to rerun these tests and create the
26584 # libtool script then.
26585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26586 if test -f "$ltmain_in"; then
26587 test -f Makefile && make "$ltmain"
26588 fi
26589fi
26590
26591
26592ac_ext=c
26593ac_cpp='$CPP $CPPFLAGS'
26594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26596ac_compiler_gnu=$ac_cv_c_compiler_gnu
26597
26598CC="$lt_save_CC"
26599
26600 else
26601 tagname=""
26602 fi
26603 ;;
26604
26605 RC)
26606 ac_ext=c
26607ac_cpp='$CPP $CPPFLAGS'
26608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26610ac_compiler_gnu=$ac_cv_c_compiler_gnu
26611
26612
26613# Source file extension for RC test sources.
26614ac_ext=rc
26615
26616# Object file extension for compiled RC test sources.
26617objext=o
26618objext_RC=$objext
26619
26620# Code to be used in simple compile tests
26621lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26622
26623# Code to be used in simple link tests
26624lt_simple_link_test_code="$lt_simple_compile_test_code"
26625
26626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26627
26628# If no C compiler was specified, use CC.
26629LTCC=${LTCC-"$CC"}
26630
26631# If no C compiler flags were specified, use CFLAGS.
26632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26633
26634# Allow CC to be a program name with arguments.
26635compiler=$CC
26636
26637
26638# save warnings/boilerplate of simple test code
26639ac_outfile=conftest.$ac_objext
26640printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26642_lt_compiler_boilerplate=`cat conftest.err`
26643$rm conftest*
26644
26645ac_outfile=conftest.$ac_objext
26646printf "$lt_simple_link_test_code" >conftest.$ac_ext
26647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648_lt_linker_boilerplate=`cat conftest.err`
26649$rm conftest*
26650
26651
26652# Allow CC to be a program name with arguments.
26653lt_save_CC="$CC"
26654CC=${RC-"windres"}
26655compiler=$CC
26656compiler_RC=$CC
26657for cc_temp in $compiler""; do
26658 case $cc_temp in
26659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26661 \-*) ;;
26662 *) break;;
26663 esac
26664done
26665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26666
26667lt_cv_prog_compiler_c_o_RC=yes
26668
26669# The else clause should only fire when bootstrapping the
26670# libtool distribution, otherwise you forgot to ship ltmain.sh
26671# with your package, and you will get complaints that there are
26672# no rules to generate ltmain.sh.
26673if test -f "$ltmain"; then
26674 # See if we are running on zsh, and set the options which allow our commands through
26675 # without removal of \ escapes.
26676 if test -n "${ZSH_VERSION+set}" ; then
26677 setopt NO_GLOB_SUBST
26678 fi
26679 # Now quote all the things that may contain metacharacters while being
26680 # careful not to overquote the AC_SUBSTed values. We take copies of the
26681 # variables and quote the copies for generation of the libtool script.
26682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26683 SED SHELL STRIP \
26684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26686 deplibs_check_method reload_flag reload_cmds need_locks \
26687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26688 lt_cv_sys_global_symbol_to_c_name_address \
26689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26690 old_postinstall_cmds old_postuninstall_cmds \
26691 compiler_RC \
26692 CC_RC \
26693 LD_RC \
26694 lt_prog_compiler_wl_RC \
26695 lt_prog_compiler_pic_RC \
26696 lt_prog_compiler_static_RC \
26697 lt_prog_compiler_no_builtin_flag_RC \
26698 export_dynamic_flag_spec_RC \
26699 thread_safe_flag_spec_RC \
26700 whole_archive_flag_spec_RC \
26701 enable_shared_with_static_runtimes_RC \
26702 old_archive_cmds_RC \
26703 old_archive_from_new_cmds_RC \
26704 predep_objects_RC \
26705 postdep_objects_RC \
26706 predeps_RC \
26707 postdeps_RC \
26708 compiler_lib_search_path_RC \
26709 archive_cmds_RC \
26710 archive_expsym_cmds_RC \
26711 postinstall_cmds_RC \
26712 postuninstall_cmds_RC \
26713 old_archive_from_expsyms_cmds_RC \
26714 allow_undefined_flag_RC \
26715 no_undefined_flag_RC \
26716 export_symbols_cmds_RC \
26717 hardcode_libdir_flag_spec_RC \
26718 hardcode_libdir_flag_spec_ld_RC \
26719 hardcode_libdir_separator_RC \
26720 hardcode_automatic_RC \
26721 module_cmds_RC \
26722 module_expsym_cmds_RC \
26723 lt_cv_prog_compiler_c_o_RC \
26724 exclude_expsyms_RC \
26725 include_expsyms_RC; do
26726
26727 case $var in
26728 old_archive_cmds_RC | \
26729 old_archive_from_new_cmds_RC | \
26730 archive_cmds_RC | \
26731 archive_expsym_cmds_RC | \
26732 module_cmds_RC | \
26733 module_expsym_cmds_RC | \
26734 old_archive_from_expsyms_cmds_RC | \
26735 export_symbols_cmds_RC | \
26736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26737 postinstall_cmds | postuninstall_cmds | \
26738 old_postinstall_cmds | old_postuninstall_cmds | \
26739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26740 # Double-quote double-evaled strings.
26741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26742 ;;
26743 *)
26744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26745 ;;
26746 esac
26747 done
26748
26749 case $lt_echo in
26750 *'\$0 --fallback-echo"')
26751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26752 ;;
26753 esac
26754
26755cfgfile="$ofile"
26756
26757 cat <<__EOF__ >> "$cfgfile"
26758# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26759
26760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26761
26762# Shell to use when invoking shell scripts.
26763SHELL=$lt_SHELL
26764
26765# Whether or not to build shared libraries.
26766build_libtool_libs=$enable_shared
26767
26768# Whether or not to build static libraries.
26769build_old_libs=$enable_static
26770
26771# Whether or not to add -lc for building shared libraries.
26772build_libtool_need_lc=$archive_cmds_need_lc_RC
26773
26774# Whether or not to disallow shared libs when runtime libs are static
26775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26776
26777# Whether or not to optimize for fast installation.
26778fast_install=$enable_fast_install
26779
26780# The host system.
26781host_alias=$host_alias
26782host=$host
26783host_os=$host_os
26784
26785# The build system.
26786build_alias=$build_alias
26787build=$build
26788build_os=$build_os
26789
26790# An echo program that does not interpret backslashes.
26791echo=$lt_echo
26792
26793# The archiver.
26794AR=$lt_AR
26795AR_FLAGS=$lt_AR_FLAGS
26796
26797# A C compiler.
26798LTCC=$lt_LTCC
26799
26800# LTCC compiler flags.
26801LTCFLAGS=$lt_LTCFLAGS
26802
26803# A language-specific compiler.
26804CC=$lt_compiler_RC
26805
26806# Is the compiler the GNU C compiler?
26807with_gcc=$GCC_RC
26808
26809# An ERE matcher.
26810EGREP=$lt_EGREP
26811
26812# The linker used to build libraries.
26813LD=$lt_LD_RC
26814
26815# Whether we need hard or soft links.
26816LN_S=$lt_LN_S
26817
26818# A BSD-compatible nm program.
26819NM=$lt_NM
26820
26821# A symbol stripping program
26822STRIP=$lt_STRIP
26823
26824# Used to examine libraries when file_magic_cmd begins "file"
26825MAGIC_CMD=$MAGIC_CMD
26826
26827# Used on cygwin: DLL creation program.
26828DLLTOOL="$DLLTOOL"
26829
26830# Used on cygwin: object dumper.
26831OBJDUMP="$OBJDUMP"
26832
26833# Used on cygwin: assembler.
26834AS="$AS"
26835
26836# The name of the directory that contains temporary libtool files.
26837objdir=$objdir
26838
26839# How to create reloadable object files.
26840reload_flag=$lt_reload_flag
26841reload_cmds=$lt_reload_cmds
26842
26843# How to pass a linker flag through the compiler.
26844wl=$lt_lt_prog_compiler_wl_RC
26845
26846# Object file suffix (normally "o").
26847objext="$ac_objext"
26848
26849# Old archive suffix (normally "a").
26850libext="$libext"
26851
26852# Shared library suffix (normally ".so").
26853shrext_cmds='$shrext_cmds'
26854
26855# Executable file suffix (normally "").
26856exeext="$exeext"
26857
26858# Additional compiler flags for building library objects.
26859pic_flag=$lt_lt_prog_compiler_pic_RC
26860pic_mode=$pic_mode
26861
26862# What is the maximum length of a command?
26863max_cmd_len=$lt_cv_sys_max_cmd_len
26864
26865# Does compiler simultaneously support -c and -o options?
26866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26867
26868# Must we lock files when doing compilation?
26869need_locks=$lt_need_locks
26870
26871# Do we need the lib prefix for modules?
26872need_lib_prefix=$need_lib_prefix
26873
26874# Do we need a version for libraries?
26875need_version=$need_version
26876
26877# Whether dlopen is supported.
26878dlopen_support=$enable_dlopen
26879
26880# Whether dlopen of programs is supported.
26881dlopen_self=$enable_dlopen_self
26882
26883# Whether dlopen of statically linked programs is supported.
26884dlopen_self_static=$enable_dlopen_self_static
26885
26886# Compiler flag to prevent dynamic linking.
26887link_static_flag=$lt_lt_prog_compiler_static_RC
26888
26889# Compiler flag to turn off builtin functions.
26890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26891
26892# Compiler flag to allow reflexive dlopens.
26893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26894
26895# Compiler flag to generate shared objects directly from archives.
26896whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26897
26898# Compiler flag to generate thread-safe objects.
26899thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26900
26901# Library versioning type.
26902version_type=$version_type
26903
26904# Format of library name prefix.
26905libname_spec=$lt_libname_spec
26906
26907# List of archive names. First name is the real one, the rest are links.
26908# The last name is the one that the linker finds with -lNAME.
26909library_names_spec=$lt_library_names_spec
26910
26911# The coded name of the library, if different from the real name.
26912soname_spec=$lt_soname_spec
26913
26914# Commands used to build and install an old-style archive.
26915RANLIB=$lt_RANLIB
26916old_archive_cmds=$lt_old_archive_cmds_RC
26917old_postinstall_cmds=$lt_old_postinstall_cmds
26918old_postuninstall_cmds=$lt_old_postuninstall_cmds
26919
26920# Create an old-style archive from a shared archive.
26921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26922
26923# Create a temporary old-style archive to link instead of a shared archive.
26924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26925
26926# Commands used to build and install a shared archive.
26927archive_cmds=$lt_archive_cmds_RC
26928archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26929postinstall_cmds=$lt_postinstall_cmds
26930postuninstall_cmds=$lt_postuninstall_cmds
26931
26932# Commands used to build a loadable module (assumed same as above if empty)
26933module_cmds=$lt_module_cmds_RC
26934module_expsym_cmds=$lt_module_expsym_cmds_RC
26935
26936# Commands to strip libraries.
26937old_striplib=$lt_old_striplib
26938striplib=$lt_striplib
26939
26940# Dependencies to place before the objects being linked to create a
26941# shared library.
26942predep_objects=$lt_predep_objects_RC
26943
26944# Dependencies to place after the objects being linked to create a
26945# shared library.
26946postdep_objects=$lt_postdep_objects_RC
26947
26948# Dependencies to place before the objects being linked to create a
26949# shared library.
26950predeps=$lt_predeps_RC
26951
26952# Dependencies to place after the objects being linked to create a
26953# shared library.
26954postdeps=$lt_postdeps_RC
26955
26956# The library search path used internally by the compiler when linking
26957# a shared library.
26958compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26959
26960# Method to check whether dependent libraries are shared objects.
26961deplibs_check_method=$lt_deplibs_check_method
26962
26963# Command to use when deplibs_check_method == file_magic.
26964file_magic_cmd=$lt_file_magic_cmd
26965
26966# Flag that allows shared libraries with undefined symbols to be built.
26967allow_undefined_flag=$lt_allow_undefined_flag_RC
26968
26969# Flag that forces no undefined symbols.
26970no_undefined_flag=$lt_no_undefined_flag_RC
26971
26972# Commands used to finish a libtool library installation in a directory.
26973finish_cmds=$lt_finish_cmds
26974
26975# Same as above, but a single script fragment to be evaled but not shown.
26976finish_eval=$lt_finish_eval
26977
26978# Take the output of nm and produce a listing of raw symbols and C names.
26979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26980
26981# Transform the output of nm in a proper C declaration
26982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26983
26984# Transform the output of nm in a C name address pair
26985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26986
26987# This is the shared library runtime path variable.
26988runpath_var=$runpath_var
26989
26990# This is the shared library path variable.
26991shlibpath_var=$shlibpath_var
26992
26993# Is shlibpath searched before the hard-coded library search path?
26994shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26995
26996# How to hardcode a shared library path into an executable.
26997hardcode_action=$hardcode_action_RC
26998
26999# Whether we should hardcode library paths into libraries.
27000hardcode_into_libs=$hardcode_into_libs
27001
27002# Flag to hardcode \$libdir into a binary during linking.
27003# This must work even if \$libdir does not exist.
27004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27005
27006# If ld is used when linking, flag to hardcode \$libdir into
27007# a binary during linking. This must work even if \$libdir does
27008# not exist.
27009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27010
27011# Whether we need a single -rpath flag with a separated argument.
27012hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27013
27014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27015# resulting binary.
27016hardcode_direct=$hardcode_direct_RC
27017
27018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27019# resulting binary.
27020hardcode_minus_L=$hardcode_minus_L_RC
27021
27022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27023# the resulting binary.
27024hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27025
27026# Set to yes if building a shared library automatically hardcodes DIR into the library
27027# and all subsequent libraries and executables linked against it.
27028hardcode_automatic=$hardcode_automatic_RC
27029
27030# Variables whose values should be saved in libtool wrapper scripts and
27031# restored at relink time.
27032variables_saved_for_relink="$variables_saved_for_relink"
27033
27034# Whether libtool must link a program against all its dependency libraries.
27035link_all_deplibs=$link_all_deplibs_RC
27036
27037# Compile-time system search path for libraries
27038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27039
27040# Run-time system search path for libraries
27041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27042
27043# Fix the shell variable \$srcfile for the compiler.
27044fix_srcfile_path="$fix_srcfile_path_RC"
27045
27046# Set to yes if exported symbols are required.
27047always_export_symbols=$always_export_symbols_RC
27048
27049# The commands to list exported symbols.
27050export_symbols_cmds=$lt_export_symbols_cmds_RC
27051
27052# The commands to extract the exported symbol list from a shared archive.
27053extract_expsyms_cmds=$lt_extract_expsyms_cmds
27054
27055# Symbols that should not be listed in the preloaded symbols.
27056exclude_expsyms=$lt_exclude_expsyms_RC
27057
27058# Symbols that must always be exported.
27059include_expsyms=$lt_include_expsyms_RC
27060
27061# ### END LIBTOOL TAG CONFIG: $tagname
27062
27063__EOF__
27064
27065
27066else
27067 # If there is no Makefile yet, we rely on a make rule to execute
27068 # `config.status --recheck' to rerun these tests and create the
27069 # libtool script then.
27070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27071 if test -f "$ltmain_in"; then
27072 test -f Makefile && make "$ltmain"
27073 fi
27074fi
27075
27076
27077ac_ext=c
27078ac_cpp='$CPP $CPPFLAGS'
27079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082
27083CC="$lt_save_CC"
27084
27085 ;;
27086
27087 *)
27088 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27089echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27090 { (exit 1); exit 1; }; }
27091 ;;
27092 esac
27093
27094 # Append the new tag name to the list of available tags.
27095 if test -n "$tagname" ; then
27096 available_tags="$available_tags $tagname"
27097 fi
27098 fi
27099 done
27100 IFS="$lt_save_ifs"
27101
27102 # Now substitute the updated list of available tags.
27103 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27104 mv "${ofile}T" "$ofile"
27105 chmod +x "$ofile"
27106 else
27107 rm -f "${ofile}T"
27108 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27109echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27110 { (exit 1); exit 1; }; }
27111 fi
27112fi
27113
27114
27115
27116# This can be used to rebuild libtool when needed
27117LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27118
27119# Always use our own libtool.
27120LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27121
27122# Prevent multiple expansion
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144if test "$lt_cv_dlopen_self" = "yes" ; then
27145
27146cat >>confdefs.h <<\_ACEOF
27147#define CAN_DLOPEN_SELF 1
27148_ACEOF
27149
27150fi
27151
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000027152
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027153if test "$WITH_LLVMGCCDIR" = "default" ; then
27154 LLVMGCC="llvm-gcc${EXEEXT}"
27155 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027156 LLVMGCCCOMMAND="$LLVMGCC"
27157 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027158 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27159
27160 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27161
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027162 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27163set dummy $LLVMGCC; ac_word=$2
27164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27166if test "${ac_cv_path_LLVMGCC+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27168else
27169 case $LLVMGCC in
27170 [\\/]* | ?:[\\/]*)
27171 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27172 ;;
27173 *)
27174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27175for as_dir in $PATH
27176do
27177 IFS=$as_save_IFS
27178 test -z "$as_dir" && as_dir=.
27179 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027180 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 +000027181 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27183 break 2
27184 fi
27185done
27186done
27187IFS=$as_save_IFS
27188
27189 ;;
27190esac
27191fi
27192LLVMGCC=$ac_cv_path_LLVMGCC
27193if test -n "$LLVMGCC"; then
27194 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27195echo "${ECHO_T}$LLVMGCC" >&6; }
27196else
27197 { echo "$as_me:$LINENO: result: no" >&5
27198echo "${ECHO_T}no" >&6; }
27199fi
27200
27201
27202 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27203set dummy $LLVMGXX; ac_word=$2
27204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27206if test "${ac_cv_path_LLVMGXX+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209 case $LLVMGXX in
27210 [\\/]* | ?:[\\/]*)
27211 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27212 ;;
27213 *)
27214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215for as_dir in $PATH
27216do
27217 IFS=$as_save_IFS
27218 test -z "$as_dir" && as_dir=.
27219 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027220 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 +000027221 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27223 break 2
27224 fi
27225done
27226done
27227IFS=$as_save_IFS
27228
27229 ;;
27230esac
27231fi
27232LLVMGXX=$ac_cv_path_LLVMGXX
27233if test -n "$LLVMGXX"; then
27234 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27235echo "${ECHO_T}$LLVMGXX" >&6; }
27236else
27237 { echo "$as_me:$LINENO: result: no" >&5
27238echo "${ECHO_T}no" >&6; }
27239fi
27240
27241
27242else
Devang Pateld84ba7b2007-12-04 22:54:47 +000027243 if test -z "$LLVMGCC"; then
27244 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027245 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027246 fi
27247 if test -z "$LLVMGXX"; then
27248 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027249 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027250 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027251
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027252 LLVMGCC=$LLVMGCC
27253
27254 LLVMGXX=$LLVMGXX
27255
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27257
27258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27259
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027260fi
27261
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027262
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027263{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27264echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27265
27266ICC=no
27267IXX=no
27268case $CC in
27269 icc*|icpc*)
27270 ICC=yes
27271 IXX=yes
27272 ;;
27273 *)
27274 ;;
27275esac
27276
27277if test "$GCC" != "yes" && test "$ICC" != "yes"
27278then
27279 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27280echo "$as_me: error: gcc|icc required but not found" >&2;}
27281 { (exit 1); exit 1; }; }
27282fi
27283
27284if test "$GXX" != "yes" && test "$IXX" != "yes"
27285then
27286 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27287echo "$as_me: error: g++|icc required but not found" >&2;}
27288 { (exit 1); exit 1; }; }
27289fi
27290
27291if test "$GCC" = "yes"
27292then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027293 cat >conftest.$ac_ext <<_ACEOF
27294#if !defined(__GNUC__) || __GNUC__ < 3
27295#error Unsupported GCC version
27296#endif
27297
27298_ACEOF
27299rm -f conftest.$ac_objext
27300if { (ac_try="$ac_compile"
27301case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304esac
27305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27307 ac_status=$?
27308 grep -v '^ *+' conftest.er1 >conftest.err
27309 rm -f conftest.er1
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27317esac
27318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; } &&
27323 { ac_try='test -s conftest.$ac_objext'
27324 { (case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327esac
27328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_try") 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027333 :
27334else
27335 echo "$as_me: failed program was:" >&5
27336sed 's/^/| /' conftest.$ac_ext >&5
27337
27338 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027339echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27340 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027341fi
27342
27343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027344fi
27345
27346if test -z "$llvm_cv_gnu_make_command"
27347then
27348 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27349echo "$as_me: error: GNU Make required but not found" >&2;}
27350 { (exit 1); exit 1; }; }
27351fi
27352
27353{ echo "$as_me:$LINENO: result: ok" >&5
27354echo "${ECHO_T}ok" >&6; }
27355
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027356{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27357echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27358if test "${ac_cv_lib_m_sin+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27360else
27361 ac_check_lib_save_LIBS=$LIBS
27362LIBS="-lm $LIBS"
27363cat >conftest.$ac_ext <<_ACEOF
27364/* confdefs.h. */
27365_ACEOF
27366cat confdefs.h >>conftest.$ac_ext
27367cat >>conftest.$ac_ext <<_ACEOF
27368/* end confdefs.h. */
27369
27370/* Override any GCC internal prototype to avoid an error.
27371 Use char because int might match the return type of a GCC
27372 builtin and then its argument prototype would still apply. */
27373#ifdef __cplusplus
27374extern "C"
27375#endif
27376char sin ();
27377int
27378main ()
27379{
27380return sin ();
27381 ;
27382 return 0;
27383}
27384_ACEOF
27385rm -f conftest.$ac_objext conftest$ac_exeext
27386if { (ac_try="$ac_link"
27387case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27390esac
27391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_link") 2>conftest.er1
27393 ac_status=$?
27394 grep -v '^ *+' conftest.er1 >conftest.err
27395 rm -f conftest.er1
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400 { (case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403esac
27404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_try") 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27413esac
27414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027419 ac_cv_lib_m_sin=yes
27420else
27421 echo "$as_me: failed program was:" >&5
27422sed 's/^/| /' conftest.$ac_ext >&5
27423
27424 ac_cv_lib_m_sin=no
27425fi
27426
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027427rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027428 conftest$ac_exeext conftest.$ac_ext
27429LIBS=$ac_check_lib_save_LIBS
27430fi
27431{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27432echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27433if test $ac_cv_lib_m_sin = yes; then
27434 cat >>confdefs.h <<_ACEOF
27435#define HAVE_LIBM 1
27436_ACEOF
27437
27438 LIBS="-lm $LIBS"
27439
27440fi
27441
27442if test "$llvm_cv_os_type" = "MingW" ; then
27443
27444{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27445echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27446if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448else
27449 ac_check_lib_save_LIBS=$LIBS
27450LIBS="-limagehlp $LIBS"
27451cat >conftest.$ac_ext <<_ACEOF
27452/* confdefs.h. */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h. */
27457
27458
27459int
27460main ()
27461{
27462return main ();
27463 ;
27464 return 0;
27465}
27466_ACEOF
27467rm -f conftest.$ac_objext conftest$ac_exeext
27468if { (ac_try="$ac_link"
27469case "(($ac_try" in
27470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27472esac
27473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_link") 2>conftest.er1
27475 ac_status=$?
27476 grep -v '^ *+' conftest.er1 >conftest.err
27477 rm -f conftest.er1
27478 cat conftest.err >&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027480 (exit $ac_status); } &&
27481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27482 { (case "(($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_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; } &&
27491 { ac_try='test -s conftest$ac_exeext'
27492 { (case "(($ac_try" in
27493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27495esac
27496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_try") 2>&5
27498 ac_status=$?
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027501 ac_cv_lib_imagehlp_main=yes
27502else
27503 echo "$as_me: failed program was:" >&5
27504sed 's/^/| /' conftest.$ac_ext >&5
27505
27506 ac_cv_lib_imagehlp_main=no
27507fi
27508
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027509rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027510 conftest$ac_exeext conftest.$ac_ext
27511LIBS=$ac_check_lib_save_LIBS
27512fi
27513{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27514echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27515if test $ac_cv_lib_imagehlp_main = yes; then
27516 cat >>confdefs.h <<_ACEOF
27517#define HAVE_LIBIMAGEHLP 1
27518_ACEOF
27519
27520 LIBS="-limagehlp $LIBS"
27521
27522fi
27523
27524
27525{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27526echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27527if test "${ac_cv_lib_psapi_main+set}" = set; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27529else
27530 ac_check_lib_save_LIBS=$LIBS
27531LIBS="-lpsapi $LIBS"
27532cat >conftest.$ac_ext <<_ACEOF
27533/* confdefs.h. */
27534_ACEOF
27535cat confdefs.h >>conftest.$ac_ext
27536cat >>conftest.$ac_ext <<_ACEOF
27537/* end confdefs.h. */
27538
27539
27540int
27541main ()
27542{
27543return main ();
27544 ;
27545 return 0;
27546}
27547_ACEOF
27548rm -f conftest.$ac_objext conftest$ac_exeext
27549if { (ac_try="$ac_link"
27550case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27553esac
27554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>conftest.er1
27556 ac_status=$?
27557 grep -v '^ *+' conftest.er1 >conftest.err
27558 rm -f conftest.er1
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563 { (case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_try") 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576esac
27577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027582 ac_cv_lib_psapi_main=yes
27583else
27584 echo "$as_me: failed program was:" >&5
27585sed 's/^/| /' conftest.$ac_ext >&5
27586
27587 ac_cv_lib_psapi_main=no
27588fi
27589
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027590rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027591 conftest$ac_exeext conftest.$ac_ext
27592LIBS=$ac_check_lib_save_LIBS
27593fi
27594{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27595echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27596if test $ac_cv_lib_psapi_main = yes; then
27597 cat >>confdefs.h <<_ACEOF
27598#define HAVE_LIBPSAPI 1
27599_ACEOF
27600
27601 LIBS="-lpsapi $LIBS"
27602
27603fi
27604
27605fi
27606
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027607{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27608echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27609if test "${ac_cv_search_dlopen+set}" = set; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27611else
27612 ac_func_search_save_LIBS=$LIBS
27613cat >conftest.$ac_ext <<_ACEOF
27614/* confdefs.h. */
27615_ACEOF
27616cat confdefs.h >>conftest.$ac_ext
27617cat >>conftest.$ac_ext <<_ACEOF
27618/* end confdefs.h. */
27619
27620/* Override any GCC internal prototype to avoid an error.
27621 Use char because int might match the return type of a GCC
27622 builtin and then its argument prototype would still apply. */
27623#ifdef __cplusplus
27624extern "C"
27625#endif
27626char dlopen ();
27627int
27628main ()
27629{
27630return dlopen ();
27631 ;
27632 return 0;
27633}
27634_ACEOF
27635for ac_lib in '' dl; do
27636 if test -z "$ac_lib"; then
27637 ac_res="none required"
27638 else
27639 ac_res=-l$ac_lib
27640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27641 fi
27642 rm -f conftest.$ac_objext conftest$ac_exeext
27643if { (ac_try="$ac_link"
27644case "(($ac_try" in
27645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27647esac
27648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
27650 ac_status=$?
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027676 ac_cv_search_dlopen=$ac_res
27677else
27678 echo "$as_me: failed program was:" >&5
27679sed 's/^/| /' conftest.$ac_ext >&5
27680
27681
27682fi
27683
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027684rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027685 conftest$ac_exeext
27686 if test "${ac_cv_search_dlopen+set}" = set; then
27687 break
27688fi
27689done
27690if test "${ac_cv_search_dlopen+set}" = set; then
27691 :
27692else
27693 ac_cv_search_dlopen=no
27694fi
27695rm conftest.$ac_ext
27696LIBS=$ac_func_search_save_LIBS
27697fi
27698{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27699echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27700ac_res=$ac_cv_search_dlopen
27701if test "$ac_res" != no; then
27702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27703
27704cat >>confdefs.h <<\_ACEOF
27705#define HAVE_DLOPEN 1
27706_ACEOF
27707
27708else
27709 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27710echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27711fi
27712
27713
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027714if test "$llvm_cv_enable_libffi" = "yes" ; then
27715 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000027716echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27717if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027720 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027721cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
27727
27728/* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27731#ifdef __cplusplus
27732extern "C"
27733#endif
27734char ffi_call ();
27735int
27736main ()
27737{
27738return ffi_call ();
27739 ;
27740 return 0;
27741}
27742_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027743for ac_lib in '' ffi; do
27744 if test -z "$ac_lib"; then
27745 ac_res="none required"
27746 else
27747 ac_res=-l$ac_lib
27748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27749 fi
27750 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027751if { (ac_try="$ac_link"
27752case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755esac
27756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027763 (exit $ac_status); } &&
27764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765 { (case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768esac
27769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest$ac_exeext'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778esac
27779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027784 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
Nick Lewycky6c58a402009-04-13 04:26:27 +000027789
Nick Lewycky0235b622009-02-04 06:27:44 +000027790fi
27791
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027792rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027793 conftest$ac_exeext
27794 if test "${ac_cv_search_ffi_call+set}" = set; then
27795 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027796fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027797done
27798if test "${ac_cv_search_ffi_call+set}" = set; then
27799 :
27800else
27801 ac_cv_search_ffi_call=no
27802fi
27803rm conftest.$ac_ext
27804LIBS=$ac_func_search_save_LIBS
27805fi
27806{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27807echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27808ac_res=$ac_cv_search_ffi_call
27809if test "$ac_res" != no; then
27810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27811
27812cat >>confdefs.h <<\_ACEOF
27813#define HAVE_FFI_CALL 1
27814_ACEOF
27815
Nick Lewycky0235b622009-02-04 06:27:44 +000027816else
27817 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27818echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27819fi
27820
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027821fi
Nick Lewycky0235b622009-02-04 06:27:44 +000027822
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027823{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27824echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27825if test "${ac_cv_search_mallinfo+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 ac_func_search_save_LIBS=$LIBS
27829cat >conftest.$ac_ext <<_ACEOF
27830/* confdefs.h. */
27831_ACEOF
27832cat confdefs.h >>conftest.$ac_ext
27833cat >>conftest.$ac_ext <<_ACEOF
27834/* end confdefs.h. */
27835
27836/* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27839#ifdef __cplusplus
27840extern "C"
27841#endif
27842char mallinfo ();
27843int
27844main ()
27845{
27846return mallinfo ();
27847 ;
27848 return 0;
27849}
27850_ACEOF
27851for ac_lib in '' malloc; do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27854 else
27855 ac_res=-l$ac_lib
27856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27857 fi
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859if { (ac_try="$ac_link"
27860case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27863esac
27864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027871 (exit $ac_status); } &&
27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886esac
27887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027892 ac_cv_search_mallinfo=$ac_res
27893else
27894 echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
27897
27898fi
27899
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027900rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027901 conftest$ac_exeext
27902 if test "${ac_cv_search_mallinfo+set}" = set; then
27903 break
27904fi
27905done
27906if test "${ac_cv_search_mallinfo+set}" = set; then
27907 :
27908else
27909 ac_cv_search_mallinfo=no
27910fi
27911rm conftest.$ac_ext
27912LIBS=$ac_func_search_save_LIBS
27913fi
27914{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27915echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27916ac_res=$ac_cv_search_mallinfo
27917if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27919
27920cat >>confdefs.h <<\_ACEOF
27921#define HAVE_MALLINFO 1
27922_ACEOF
27923
27924fi
27925
27926
27927if test "$ENABLE_THREADS" -eq 1 ; then
27928
27929{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27930echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27931if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27933else
27934 ac_check_lib_save_LIBS=$LIBS
27935LIBS="-lpthread $LIBS"
27936cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
27942
27943/* Override any GCC internal prototype to avoid an error.
27944 Use char because int might match the return type of a GCC
27945 builtin and then its argument prototype would still apply. */
27946#ifdef __cplusplus
27947extern "C"
27948#endif
27949char pthread_mutex_init ();
27950int
27951main ()
27952{
27953return pthread_mutex_init ();
27954 ;
27955 return 0;
27956}
27957_ACEOF
27958rm -f conftest.$ac_objext conftest$ac_exeext
27959if { (ac_try="$ac_link"
27960case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_link") 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027971 (exit $ac_status); } &&
27972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027992 ac_cv_lib_pthread_pthread_mutex_init=yes
27993else
27994 echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
27997 ac_cv_lib_pthread_pthread_mutex_init=no
27998fi
27999
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028000rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028001 conftest$ac_exeext conftest.$ac_ext
28002LIBS=$ac_check_lib_save_LIBS
28003fi
28004{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28005echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28006if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008#define HAVE_LIBPTHREAD 1
28009_ACEOF
28010
28011 LIBS="-lpthread $LIBS"
28012
28013fi
28014
28015 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28016echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28017if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020 ac_func_search_save_LIBS=$LIBS
28021cat >conftest.$ac_ext <<_ACEOF
28022/* confdefs.h. */
28023_ACEOF
28024cat confdefs.h >>conftest.$ac_ext
28025cat >>conftest.$ac_ext <<_ACEOF
28026/* end confdefs.h. */
28027
28028/* Override any GCC internal prototype to avoid an error.
28029 Use char because int might match the return type of a GCC
28030 builtin and then its argument prototype would still apply. */
28031#ifdef __cplusplus
28032extern "C"
28033#endif
28034char pthread_mutex_lock ();
28035int
28036main ()
28037{
28038return pthread_mutex_lock ();
28039 ;
28040 return 0;
28041}
28042_ACEOF
28043for ac_lib in '' pthread; do
28044 if test -z "$ac_lib"; then
28045 ac_res="none required"
28046 else
28047 ac_res=-l$ac_lib
28048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28049 fi
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (ac_try="$ac_link"
28052case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28055esac
28056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28058 ac_status=$?
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065 { (case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_try") 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try='test -s conftest$ac_exeext'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028084 ac_cv_search_pthread_mutex_lock=$ac_res
28085else
28086 echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089
28090fi
28091
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028092rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028093 conftest$ac_exeext
28094 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28095 break
28096fi
28097done
28098if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28099 :
28100else
28101 ac_cv_search_pthread_mutex_lock=no
28102fi
28103rm conftest.$ac_ext
28104LIBS=$ac_func_search_save_LIBS
28105fi
28106{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28107echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28108ac_res=$ac_cv_search_pthread_mutex_lock
28109if test "$ac_res" != no; then
28110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28111
28112cat >>confdefs.h <<\_ACEOF
28113#define HAVE_PTHREAD_MUTEX_LOCK 1
28114_ACEOF
28115
28116fi
28117
Owen Anderson23c36602009-06-16 18:20:20 +000028118 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28119echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28120if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28122else
28123 ac_func_search_save_LIBS=$LIBS
28124cat >conftest.$ac_ext <<_ACEOF
28125/* confdefs.h. */
28126_ACEOF
28127cat confdefs.h >>conftest.$ac_ext
28128cat >>conftest.$ac_ext <<_ACEOF
28129/* end confdefs.h. */
28130
28131/* Override any GCC internal prototype to avoid an error.
28132 Use char because int might match the return type of a GCC
28133 builtin and then its argument prototype would still apply. */
28134#ifdef __cplusplus
28135extern "C"
28136#endif
28137char pthread_rwlock_init ();
28138int
28139main ()
28140{
28141return pthread_rwlock_init ();
28142 ;
28143 return 0;
28144}
28145_ACEOF
28146for ac_lib in '' pthread; do
28147 if test -z "$ac_lib"; then
28148 ac_res="none required"
28149 else
28150 ac_res=-l$ac_lib
28151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28152 fi
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154if { (ac_try="$ac_link"
28155case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28158esac
28159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_link") 2>conftest.er1
28161 ac_status=$?
28162 grep -v '^ *+' conftest.er1 >conftest.err
28163 rm -f conftest.er1
28164 cat conftest.err >&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } &&
28167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168 { (case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_try") 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28181esac
28182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
28184 ac_status=$?
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; }; then
28187 ac_cv_search_pthread_rwlock_init=$ac_res
28188else
28189 echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193fi
28194
28195rm -f core conftest.err conftest.$ac_objext \
28196 conftest$ac_exeext
28197 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28198 break
28199fi
28200done
28201if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28202 :
28203else
28204 ac_cv_search_pthread_rwlock_init=no
28205fi
28206rm conftest.$ac_ext
28207LIBS=$ac_func_search_save_LIBS
28208fi
28209{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28210echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28211ac_res=$ac_cv_search_pthread_rwlock_init
28212if test "$ac_res" != no; then
28213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28214
28215cat >>confdefs.h <<\_ACEOF
28216#define HAVE_PTHREAD_RWLOCK_INIT 1
28217_ACEOF
28218
28219fi
28220
Owen Andersoncc135af2009-06-25 23:10:26 +000028221 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28222echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28223if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28225else
28226 ac_func_search_save_LIBS=$LIBS
28227cat >conftest.$ac_ext <<_ACEOF
28228/* confdefs.h. */
28229_ACEOF
28230cat confdefs.h >>conftest.$ac_ext
28231cat >>conftest.$ac_ext <<_ACEOF
28232/* end confdefs.h. */
28233
28234/* Override any GCC internal prototype to avoid an error.
28235 Use char because int might match the return type of a GCC
28236 builtin and then its argument prototype would still apply. */
28237#ifdef __cplusplus
28238extern "C"
28239#endif
28240char pthread_getspecific ();
28241int
28242main ()
28243{
28244return pthread_getspecific ();
28245 ;
28246 return 0;
28247}
28248_ACEOF
28249for ac_lib in '' pthread; do
28250 if test -z "$ac_lib"; then
28251 ac_res="none required"
28252 else
28253 ac_res=-l$ac_lib
28254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28255 fi
28256 rm -f conftest.$ac_objext conftest$ac_exeext
28257if { (ac_try="$ac_link"
28258case "(($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_link") 2>conftest.er1
28264 ac_status=$?
28265 grep -v '^ *+' conftest.er1 >conftest.err
28266 rm -f conftest.er1
28267 cat conftest.err >&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } &&
28270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28271 { (case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274esac
28275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_try") 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try='test -s conftest$ac_exeext'
28281 { (case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284esac
28285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_try") 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_search_pthread_getspecific=$ac_res
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295
28296fi
28297
28298rm -f core conftest.err conftest.$ac_objext \
28299 conftest$ac_exeext
28300 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28301 break
28302fi
28303done
28304if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28305 :
28306else
28307 ac_cv_search_pthread_getspecific=no
28308fi
28309rm conftest.$ac_ext
28310LIBS=$ac_func_search_save_LIBS
28311fi
28312{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28313echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28314ac_res=$ac_cv_search_pthread_getspecific
28315if test "$ac_res" != no; then
28316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28317
28318cat >>confdefs.h <<\_ACEOF
28319#define HAVE_PTHREAD_GETSPECIFIC 1
28320_ACEOF
28321
28322fi
28323
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028324fi
28325
28326
28327# Check whether --with-udis86 was given.
28328if test "${with_udis86+set}" = set; then
28329 withval=$with_udis86;
28330 USE_UDIS86=1
28331
28332 case "$withval" in
28333 /usr/lib|yes) ;;
28334 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28335 esac
28336
28337{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28338echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28339if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28341else
28342 ac_check_lib_save_LIBS=$LIBS
28343LIBS="-ludis86 $LIBS"
28344cat >conftest.$ac_ext <<_ACEOF
28345/* confdefs.h. */
28346_ACEOF
28347cat confdefs.h >>conftest.$ac_ext
28348cat >>conftest.$ac_ext <<_ACEOF
28349/* end confdefs.h. */
28350
28351/* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char ud_init ();
28358int
28359main ()
28360{
28361return ud_init ();
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext conftest$ac_exeext
28367if { (ac_try="$ac_link"
28368case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371esac
28372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_link") 2>conftest.er1
28374 ac_status=$?
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028379 (exit $ac_status); } &&
28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28384esac
28385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest$ac_exeext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394esac
28395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028400 ac_cv_lib_udis86_ud_init=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 ac_cv_lib_udis86_ud_init=no
28406fi
28407
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028408rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028409 conftest$ac_exeext conftest.$ac_ext
28410LIBS=$ac_check_lib_save_LIBS
28411fi
28412{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28413echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28414if test $ac_cv_lib_udis86_ud_init = yes; then
28415 cat >>confdefs.h <<_ACEOF
28416#define HAVE_LIBUDIS86 1
28417_ACEOF
28418
28419 LIBS="-ludis86 $LIBS"
28420
28421else
28422
28423 echo "Error! You need to have libudis86 around."
28424 exit -1
28425
28426fi
28427
28428
28429else
28430 USE_UDIS86=0
28431
28432fi
28433
28434
28435cat >>confdefs.h <<_ACEOF
28436#define USE_UDIS86 $USE_UDIS86
28437_ACEOF
28438
28439
28440
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000028441# Check whether --with-oprofile was given.
28442if test "${with_oprofile+set}" = set; then
28443 withval=$with_oprofile;
28444 USE_OPROFILE=1
28445
28446 case "$withval" in
28447 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28448 *) llvm_cv_oppath="${withval}/lib/oprofile"
28449 CPPFLAGS="-I${withval}/include";;
28450 esac
28451 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28452 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28453echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28454if test "${ac_cv_search_op_open_agent+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28456else
28457 ac_func_search_save_LIBS=$LIBS
28458cat >conftest.$ac_ext <<_ACEOF
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
28464
28465/* Override any GCC internal prototype to avoid an error.
28466 Use char because int might match the return type of a GCC
28467 builtin and then its argument prototype would still apply. */
28468#ifdef __cplusplus
28469extern "C"
28470#endif
28471char op_open_agent ();
28472int
28473main ()
28474{
28475return op_open_agent ();
28476 ;
28477 return 0;
28478}
28479_ACEOF
28480for ac_lib in '' opagent; do
28481 if test -z "$ac_lib"; then
28482 ac_res="none required"
28483 else
28484 ac_res=-l$ac_lib
28485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28486 fi
28487 rm -f conftest.$ac_objext conftest$ac_exeext
28488if { (ac_try="$ac_link"
28489case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28492esac
28493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_link") 2>conftest.er1
28495 ac_status=$?
28496 grep -v '^ *+' conftest.er1 >conftest.err
28497 rm -f conftest.er1
28498 cat conftest.err >&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
28501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest$ac_exeext'
28512 { (case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28515esac
28516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_try") 2>&5
28518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; }; then
28521 ac_cv_search_op_open_agent=$ac_res
28522else
28523 echo "$as_me: failed program was:" >&5
28524sed 's/^/| /' conftest.$ac_ext >&5
28525
28526
28527fi
28528
28529rm -f core conftest.err conftest.$ac_objext \
28530 conftest$ac_exeext
28531 if test "${ac_cv_search_op_open_agent+set}" = set; then
28532 break
28533fi
28534done
28535if test "${ac_cv_search_op_open_agent+set}" = set; then
28536 :
28537else
28538 ac_cv_search_op_open_agent=no
28539fi
28540rm conftest.$ac_ext
28541LIBS=$ac_func_search_save_LIBS
28542fi
28543{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28544echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28545ac_res=$ac_cv_search_op_open_agent
28546if test "$ac_res" != no; then
28547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28548
28549else
28550
28551 echo "Error! You need to have libopagent around."
28552 exit -1
28553
28554fi
28555
28556 if test "${ac_cv_header_opagent_h+set}" = set; then
28557 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28558echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28559if test "${ac_cv_header_opagent_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28561fi
28562{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28563echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28564else
28565 # Is the header compilable?
28566{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28567echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28568cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574$ac_includes_default
28575#include <opagent.h>
28576_ACEOF
28577rm -f conftest.$ac_objext
28578if { (ac_try="$ac_compile"
28579case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28582esac
28583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592 { (case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28595esac
28596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_try") 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28605esac
28606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_header_compiler=yes
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616 ac_header_compiler=no
28617fi
28618
28619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621echo "${ECHO_T}$ac_header_compiler" >&6; }
28622
28623# Is the header present?
28624{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28625echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28626cat >conftest.$ac_ext <<_ACEOF
28627/* confdefs.h. */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h. */
28632#include <opagent.h>
28633_ACEOF
28634if { (ac_try="$ac_cpp conftest.$ac_ext"
28635case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28638esac
28639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28641 ac_status=$?
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } >/dev/null; then
28647 if test -s conftest.err; then
28648 ac_cpp_err=$ac_c_preproc_warn_flag
28649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28650 else
28651 ac_cpp_err=
28652 fi
28653else
28654 ac_cpp_err=yes
28655fi
28656if test -z "$ac_cpp_err"; then
28657 ac_header_preproc=yes
28658else
28659 echo "$as_me: failed program was:" >&5
28660sed 's/^/| /' conftest.$ac_ext >&5
28661
28662 ac_header_preproc=no
28663fi
28664
28665rm -f conftest.err conftest.$ac_ext
28666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667echo "${ECHO_T}$ac_header_preproc" >&6; }
28668
28669# So? What about this header?
28670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28671 yes:no: )
28672 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28673echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28675echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28676 ac_header_preproc=yes
28677 ;;
28678 no:yes:* )
28679 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28680echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28682echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28684echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28686echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28688echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28690echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28691 ( cat <<\_ASBOX
28692## ----------------------------------- ##
28693## Report this to llvmbugs@cs.uiuc.edu ##
28694## ----------------------------------- ##
28695_ASBOX
28696 ) | sed "s/^/$as_me: WARNING: /" >&2
28697 ;;
28698esac
28699{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28700echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28701if test "${ac_cv_header_opagent_h+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28703else
28704 ac_cv_header_opagent_h=$ac_header_preproc
28705fi
28706{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28707echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28708
28709fi
28710if test $ac_cv_header_opagent_h = yes; then
28711 :
28712else
28713
28714 echo "Error! You need to have opagent.h around."
28715 exit -1
28716
28717fi
28718
28719
28720
28721else
28722
28723 llvm_cv_old_LIBS="$LIBS"
28724 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28725 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28726echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28727if test "${ac_cv_search_op_open_agent+set}" = set; then
28728 echo $ECHO_N "(cached) $ECHO_C" >&6
28729else
28730 ac_func_search_save_LIBS=$LIBS
28731cat >conftest.$ac_ext <<_ACEOF
28732/* confdefs.h. */
28733_ACEOF
28734cat confdefs.h >>conftest.$ac_ext
28735cat >>conftest.$ac_ext <<_ACEOF
28736/* end confdefs.h. */
28737
28738/* Override any GCC internal prototype to avoid an error.
28739 Use char because int might match the return type of a GCC
28740 builtin and then its argument prototype would still apply. */
28741#ifdef __cplusplus
28742extern "C"
28743#endif
28744char op_open_agent ();
28745int
28746main ()
28747{
28748return op_open_agent ();
28749 ;
28750 return 0;
28751}
28752_ACEOF
28753for ac_lib in '' opagent; do
28754 if test -z "$ac_lib"; then
28755 ac_res="none required"
28756 else
28757 ac_res=-l$ac_lib
28758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28759 fi
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_search_op_open_agent=$ac_res
28795else
28796 echo "$as_me: failed program was:" >&5
28797sed 's/^/| /' conftest.$ac_ext >&5
28798
28799
28800fi
28801
28802rm -f core conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext
28804 if test "${ac_cv_search_op_open_agent+set}" = set; then
28805 break
28806fi
28807done
28808if test "${ac_cv_search_op_open_agent+set}" = set; then
28809 :
28810else
28811 ac_cv_search_op_open_agent=no
28812fi
28813rm conftest.$ac_ext
28814LIBS=$ac_func_search_save_LIBS
28815fi
28816{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28817echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28818ac_res=$ac_cv_search_op_open_agent
28819if test "$ac_res" != no; then
28820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28821 USE_OPROFILE=1
28822
28823else
28824 LIBS="$llvm_cv_old_LIBS"
28825 USE_OPROFILE=0
28826
28827fi
28828
28829 if test "${ac_cv_header_opagent_h+set}" = set; then
28830 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28831echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28832if test "${ac_cv_header_opagent_h+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834fi
28835{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28836echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28837else
28838 # Is the header compilable?
28839{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28840echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847$ac_includes_default
28848#include <opagent.h>
28849_ACEOF
28850rm -f conftest.$ac_objext
28851if { (ac_try="$ac_compile"
28852case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28855esac
28856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_compile") 2>conftest.er1
28858 ac_status=$?
28859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
28864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28865 { (case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_try") 2>&5
28871 ac_status=$?
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; } &&
28874 { ac_try='test -s conftest.$ac_objext'
28875 { (case "(($ac_try" in
28876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877 *) ac_try_echo=$ac_try;;
28878esac
28879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_try") 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 ac_header_compiler=yes
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889 ac_header_compiler=no
28890fi
28891
28892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28894echo "${ECHO_T}$ac_header_compiler" >&6; }
28895
28896# Is the header present?
28897{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28898echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28899cat >conftest.$ac_ext <<_ACEOF
28900/* confdefs.h. */
28901_ACEOF
28902cat confdefs.h >>conftest.$ac_ext
28903cat >>conftest.$ac_ext <<_ACEOF
28904/* end confdefs.h. */
28905#include <opagent.h>
28906_ACEOF
28907if { (ac_try="$ac_cpp conftest.$ac_ext"
28908case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28911esac
28912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28914 ac_status=$?
28915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } >/dev/null; then
28920 if test -s conftest.err; then
28921 ac_cpp_err=$ac_c_preproc_warn_flag
28922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28923 else
28924 ac_cpp_err=
28925 fi
28926else
28927 ac_cpp_err=yes
28928fi
28929if test -z "$ac_cpp_err"; then
28930 ac_header_preproc=yes
28931else
28932 echo "$as_me: failed program was:" >&5
28933sed 's/^/| /' conftest.$ac_ext >&5
28934
28935 ac_header_preproc=no
28936fi
28937
28938rm -f conftest.err conftest.$ac_ext
28939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28940echo "${ECHO_T}$ac_header_preproc" >&6; }
28941
28942# So? What about this header?
28943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28944 yes:no: )
28945 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28946echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28948echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28949 ac_header_preproc=yes
28950 ;;
28951 no:yes:* )
28952 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28953echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28954 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28955echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28956 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28957echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28959echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28961echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28963echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28964 ( cat <<\_ASBOX
28965## ----------------------------------- ##
28966## Report this to llvmbugs@cs.uiuc.edu ##
28967## ----------------------------------- ##
28968_ASBOX
28969 ) | sed "s/^/$as_me: WARNING: /" >&2
28970 ;;
28971esac
28972{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28973echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28974if test "${ac_cv_header_opagent_h+set}" = set; then
28975 echo $ECHO_N "(cached) $ECHO_C" >&6
28976else
28977 ac_cv_header_opagent_h=$ac_header_preproc
28978fi
28979{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28980echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28981
28982fi
28983if test $ac_cv_header_opagent_h = yes; then
28984 :
28985else
28986
28987 LIBS="$llvm_cv_old_LIBS"
28988 USE_OPROFILE=0
28989
28990
28991fi
28992
28993
28994
28995fi
28996
28997
28998cat >>confdefs.h <<_ACEOF
28999#define USE_OPROFILE $USE_OPROFILE
29000_ACEOF
29001
29002
29003
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029004
29005
29006
29007
29008
29009ac_header_dirent=no
29010for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29011 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29012{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29013echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016else
29017 cat >conftest.$ac_ext <<_ACEOF
29018/* confdefs.h. */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h. */
29023#include <sys/types.h>
29024#include <$ac_hdr>
29025
29026int
29027main ()
29028{
29029if ((DIR *) 0)
29030return 0;
29031 ;
29032 return 0;
29033}
29034_ACEOF
29035rm -f conftest.$ac_objext
29036if { (ac_try="$ac_compile"
29037case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29040esac
29041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_compile") 2>conftest.er1
29043 ac_status=$?
29044 grep -v '^ *+' conftest.er1 >conftest.err
29045 rm -f conftest.er1
29046 cat conftest.err >&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029048 (exit $ac_status); } &&
29049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050 { (case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_try") 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try='test -s conftest.$ac_objext'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29063esac
29064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29066 ac_status=$?
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029069 eval "$as_ac_Header=yes"
29070else
29071 echo "$as_me: failed program was:" >&5
29072sed 's/^/| /' conftest.$ac_ext >&5
29073
29074 eval "$as_ac_Header=no"
29075fi
29076
29077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078fi
29079ac_res=`eval echo '${'$as_ac_Header'}'`
29080 { echo "$as_me:$LINENO: result: $ac_res" >&5
29081echo "${ECHO_T}$ac_res" >&6; }
29082if test `eval echo '${'$as_ac_Header'}'` = yes; then
29083 cat >>confdefs.h <<_ACEOF
29084#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29085_ACEOF
29086
29087ac_header_dirent=$ac_hdr; break
29088fi
29089
29090done
29091# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29092if test $ac_header_dirent = dirent.h; then
29093 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29094echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29095if test "${ac_cv_search_opendir+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29097else
29098 ac_func_search_save_LIBS=$LIBS
29099cat >conftest.$ac_ext <<_ACEOF
29100/* confdefs.h. */
29101_ACEOF
29102cat confdefs.h >>conftest.$ac_ext
29103cat >>conftest.$ac_ext <<_ACEOF
29104/* end confdefs.h. */
29105
29106/* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29109#ifdef __cplusplus
29110extern "C"
29111#endif
29112char opendir ();
29113int
29114main ()
29115{
29116return opendir ();
29117 ;
29118 return 0;
29119}
29120_ACEOF
29121for ac_lib in '' dir; do
29122 if test -z "$ac_lib"; then
29123 ac_res="none required"
29124 else
29125 ac_res=-l$ac_lib
29126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29127 fi
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129if { (ac_try="$ac_link"
29130case "(($ac_try" in
29131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132 *) ac_try_echo=$ac_try;;
29133esac
29134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_link") 2>conftest.er1
29136 ac_status=$?
29137 grep -v '^ *+' conftest.er1 >conftest.err
29138 rm -f conftest.er1
29139 cat conftest.err >&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029141 (exit $ac_status); } &&
29142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29143 { (case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29146esac
29147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_try") 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest$ac_exeext'
29153 { (case "(($ac_try" in
29154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29155 *) ac_try_echo=$ac_try;;
29156esac
29157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158 (eval "$ac_try") 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029162 ac_cv_search_opendir=$ac_res
29163else
29164 echo "$as_me: failed program was:" >&5
29165sed 's/^/| /' conftest.$ac_ext >&5
29166
29167
29168fi
29169
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029170rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029171 conftest$ac_exeext
29172 if test "${ac_cv_search_opendir+set}" = set; then
29173 break
29174fi
29175done
29176if test "${ac_cv_search_opendir+set}" = set; then
29177 :
29178else
29179 ac_cv_search_opendir=no
29180fi
29181rm conftest.$ac_ext
29182LIBS=$ac_func_search_save_LIBS
29183fi
29184{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29185echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29186ac_res=$ac_cv_search_opendir
29187if test "$ac_res" != no; then
29188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29189
29190fi
29191
29192else
29193 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29194echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29195if test "${ac_cv_search_opendir+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29197else
29198 ac_func_search_save_LIBS=$LIBS
29199cat >conftest.$ac_ext <<_ACEOF
29200/* confdefs.h. */
29201_ACEOF
29202cat confdefs.h >>conftest.$ac_ext
29203cat >>conftest.$ac_ext <<_ACEOF
29204/* end confdefs.h. */
29205
29206/* Override any GCC internal prototype to avoid an error.
29207 Use char because int might match the return type of a GCC
29208 builtin and then its argument prototype would still apply. */
29209#ifdef __cplusplus
29210extern "C"
29211#endif
29212char opendir ();
29213int
29214main ()
29215{
29216return opendir ();
29217 ;
29218 return 0;
29219}
29220_ACEOF
29221for ac_lib in '' x; do
29222 if test -z "$ac_lib"; then
29223 ac_res="none required"
29224 else
29225 ac_res=-l$ac_lib
29226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29227 fi
29228 rm -f conftest.$ac_objext conftest$ac_exeext
29229if { (ac_try="$ac_link"
29230case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29233esac
29234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_link") 2>conftest.er1
29236 ac_status=$?
29237 grep -v '^ *+' conftest.er1 >conftest.err
29238 rm -f conftest.er1
29239 cat conftest.err >&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029241 (exit $ac_status); } &&
29242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29252 { ac_try='test -s conftest$ac_exeext'
29253 { (case "(($ac_try" in
29254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29256esac
29257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_try") 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029262 ac_cv_search_opendir=$ac_res
29263else
29264 echo "$as_me: failed program was:" >&5
29265sed 's/^/| /' conftest.$ac_ext >&5
29266
29267
29268fi
29269
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029270rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029271 conftest$ac_exeext
29272 if test "${ac_cv_search_opendir+set}" = set; then
29273 break
29274fi
29275done
29276if test "${ac_cv_search_opendir+set}" = set; then
29277 :
29278else
29279 ac_cv_search_opendir=no
29280fi
29281rm conftest.$ac_ext
29282LIBS=$ac_func_search_save_LIBS
29283fi
29284{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29285echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29286ac_res=$ac_cv_search_opendir
29287if test "$ac_res" != no; then
29288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29289
29290fi
29291
29292fi
29293
29294{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29295echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29296if test "${ac_cv_header_mmap_anon+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29298else
29299 ac_ext=c
29300ac_cpp='$CPP $CPPFLAGS'
29301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303ac_compiler_gnu=$ac_cv_c_compiler_gnu
29304
29305 cat >conftest.$ac_ext <<_ACEOF
29306/* confdefs.h. */
29307_ACEOF
29308cat confdefs.h >>conftest.$ac_ext
29309cat >>conftest.$ac_ext <<_ACEOF
29310/* end confdefs.h. */
29311#include <sys/mman.h>
29312#include <unistd.h>
29313#include <fcntl.h>
29314int
29315main ()
29316{
29317mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext
29323if { (ac_try="$ac_compile"
29324case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29327esac
29328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_compile") 2>conftest.er1
29330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029335 (exit $ac_status); } &&
29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337 { (case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_try") 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest.$ac_objext'
29347 { (case "(($ac_try" in
29348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349 *) ac_try_echo=$ac_try;;
29350esac
29351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352 (eval "$ac_try") 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029356 ac_cv_header_mmap_anon=yes
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361 ac_cv_header_mmap_anon=no
29362fi
29363
29364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29365 ac_ext=c
29366ac_cpp='$CPP $CPPFLAGS'
29367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369ac_compiler_gnu=$ac_cv_c_compiler_gnu
29370
29371
29372fi
29373{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29374echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29375if test "$ac_cv_header_mmap_anon" = yes; then
29376
29377cat >>confdefs.h <<\_ACEOF
29378#define HAVE_MMAP_ANONYMOUS 1
29379_ACEOF
29380
29381fi
29382
29383{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29384echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29385if test "${ac_cv_header_stat_broken+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388 cat >conftest.$ac_ext <<_ACEOF
29389/* confdefs.h. */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h. */
29394#include <sys/types.h>
29395#include <sys/stat.h>
29396
29397#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029398# if S_ISBLK (S_IFDIR)
29399You lose.
29400# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029401#endif
29402
29403#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029404# if S_ISBLK (S_IFCHR)
29405You lose.
29406# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029407#endif
29408
29409#if defined S_ISLNK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029410# if S_ISLNK (S_IFREG)
29411You lose.
29412# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029413#endif
29414
29415#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029416# if S_ISSOCK (S_IFREG)
29417You lose.
29418# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029419#endif
29420
29421_ACEOF
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29423 $EGREP "You lose" >/dev/null 2>&1; then
29424 ac_cv_header_stat_broken=yes
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029425else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029426 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029427fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029428rm -f conftest*
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029429
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029430fi
29431{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29432echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29433if test $ac_cv_header_stat_broken = yes; then
29434
29435cat >>confdefs.h <<\_ACEOF
29436#define STAT_MACROS_BROKEN 1
29437_ACEOF
29438
29439fi
29440
29441{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29442echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29443if test "${ac_cv_header_stdc+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445else
29446 cat >conftest.$ac_ext <<_ACEOF
29447/* confdefs.h. */
29448_ACEOF
29449cat confdefs.h >>conftest.$ac_ext
29450cat >>conftest.$ac_ext <<_ACEOF
29451/* end confdefs.h. */
29452#include <stdlib.h>
29453#include <stdarg.h>
29454#include <string.h>
29455#include <float.h>
29456
29457int
29458main ()
29459{
29460
29461 ;
29462 return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext
29466if { (ac_try="$ac_compile"
29467case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470esac
29471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_compile") 2>conftest.er1
29473 ac_status=$?
29474 grep -v '^ *+' conftest.er1 >conftest.err
29475 rm -f conftest.er1
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29483esac
29484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_try") 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try='test -s conftest.$ac_objext'
29490 { (case "(($ac_try" in
29491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492 *) ac_try_echo=$ac_try;;
29493esac
29494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495 (eval "$ac_try") 2>&5
29496 ac_status=$?
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029499 ac_cv_header_stdc=yes
29500else
29501 echo "$as_me: failed program was:" >&5
29502sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 ac_cv_header_stdc=no
29505fi
29506
29507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508
29509if test $ac_cv_header_stdc = yes; then
29510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29511 cat >conftest.$ac_ext <<_ACEOF
29512/* confdefs.h. */
29513_ACEOF
29514cat confdefs.h >>conftest.$ac_ext
29515cat >>conftest.$ac_ext <<_ACEOF
29516/* end confdefs.h. */
29517#include <string.h>
29518
29519_ACEOF
29520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29521 $EGREP "memchr" >/dev/null 2>&1; then
29522 :
29523else
29524 ac_cv_header_stdc=no
29525fi
29526rm -f conftest*
29527
29528fi
29529
29530if test $ac_cv_header_stdc = yes; then
29531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29532 cat >conftest.$ac_ext <<_ACEOF
29533/* confdefs.h. */
29534_ACEOF
29535cat confdefs.h >>conftest.$ac_ext
29536cat >>conftest.$ac_ext <<_ACEOF
29537/* end confdefs.h. */
29538#include <stdlib.h>
29539
29540_ACEOF
29541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29542 $EGREP "free" >/dev/null 2>&1; then
29543 :
29544else
29545 ac_cv_header_stdc=no
29546fi
29547rm -f conftest*
29548
29549fi
29550
29551if test $ac_cv_header_stdc = yes; then
29552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29553 if test "$cross_compiling" = yes; then
29554 :
29555else
29556 cat >conftest.$ac_ext <<_ACEOF
29557/* confdefs.h. */
29558_ACEOF
29559cat confdefs.h >>conftest.$ac_ext
29560cat >>conftest.$ac_ext <<_ACEOF
29561/* end confdefs.h. */
29562#include <ctype.h>
29563#include <stdlib.h>
29564#if ((' ' & 0x0FF) == 0x020)
29565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29567#else
29568# define ISLOWER(c) \
29569 (('a' <= (c) && (c) <= 'i') \
29570 || ('j' <= (c) && (c) <= 'r') \
29571 || ('s' <= (c) && (c) <= 'z'))
29572# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29573#endif
29574
29575#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29576int
29577main ()
29578{
29579 int i;
29580 for (i = 0; i < 256; i++)
29581 if (XOR (islower (i), ISLOWER (i))
29582 || toupper (i) != TOUPPER (i))
29583 return 2;
29584 return 0;
29585}
29586_ACEOF
29587rm -f conftest$ac_exeext
29588if { (ac_try="$ac_link"
29589case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29592esac
29593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594 (eval "$ac_link") 2>&5
29595 ac_status=$?
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29598 { (case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29601esac
29602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; }; then
29607 :
29608else
29609 echo "$as_me: program exited with status $ac_status" >&5
29610echo "$as_me: failed program was:" >&5
29611sed 's/^/| /' conftest.$ac_ext >&5
29612
29613( exit $ac_status )
29614ac_cv_header_stdc=no
29615fi
29616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29617fi
29618
29619
29620fi
29621fi
29622{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29623echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29624if test $ac_cv_header_stdc = yes; then
29625
29626cat >>confdefs.h <<\_ACEOF
29627#define STDC_HEADERS 1
29628_ACEOF
29629
29630fi
29631
29632{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29633echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29634if test "${ac_cv_header_sys_wait_h+set}" = set; then
29635 echo $ECHO_N "(cached) $ECHO_C" >&6
29636else
29637 cat >conftest.$ac_ext <<_ACEOF
29638/* confdefs.h. */
29639_ACEOF
29640cat confdefs.h >>conftest.$ac_ext
29641cat >>conftest.$ac_ext <<_ACEOF
29642/* end confdefs.h. */
29643#include <sys/types.h>
29644#include <sys/wait.h>
29645#ifndef WEXITSTATUS
29646# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29647#endif
29648#ifndef WIFEXITED
29649# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29650#endif
29651
29652int
29653main ()
29654{
29655 int s;
29656 wait (&s);
29657 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29658 ;
29659 return 0;
29660}
29661_ACEOF
29662rm -f conftest.$ac_objext
29663if { (ac_try="$ac_compile"
29664case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667esac
29668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29670 ac_status=$?
29671 grep -v '^ *+' conftest.er1 >conftest.err
29672 rm -f conftest.er1
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029675 (exit $ac_status); } &&
29676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29677 { (case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680esac
29681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_try") 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest.$ac_objext'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690esac
29691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029696 ac_cv_header_sys_wait_h=yes
29697else
29698 echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701 ac_cv_header_sys_wait_h=no
29702fi
29703
29704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29705fi
29706{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29707echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29708if test $ac_cv_header_sys_wait_h = yes; then
29709
29710cat >>confdefs.h <<\_ACEOF
29711#define HAVE_SYS_WAIT_H 1
29712_ACEOF
29713
29714fi
29715
29716{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29717echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29718if test "${ac_cv_header_time+set}" = set; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29720else
29721 cat >conftest.$ac_ext <<_ACEOF
29722/* confdefs.h. */
29723_ACEOF
29724cat confdefs.h >>conftest.$ac_ext
29725cat >>conftest.$ac_ext <<_ACEOF
29726/* end confdefs.h. */
29727#include <sys/types.h>
29728#include <sys/time.h>
29729#include <time.h>
29730
29731int
29732main ()
29733{
29734if ((struct tm *) 0)
29735return 0;
29736 ;
29737 return 0;
29738}
29739_ACEOF
29740rm -f conftest.$ac_objext
29741if { (ac_try="$ac_compile"
29742case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29745esac
29746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_compile") 2>conftest.er1
29748 ac_status=$?
29749 grep -v '^ *+' conftest.er1 >conftest.err
29750 rm -f conftest.er1
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29755 { (case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29758esac
29759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_try") 2>&5
29761 ac_status=$?
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try='test -s conftest.$ac_objext'
29765 { (case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29768esac
29769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029774 ac_cv_header_time=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_cv_header_time=no
29780fi
29781
29782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783fi
29784{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29785echo "${ECHO_T}$ac_cv_header_time" >&6; }
29786if test $ac_cv_header_time = yes; then
29787
29788cat >>confdefs.h <<\_ACEOF
29789#define TIME_WITH_SYS_TIME 1
29790_ACEOF
29791
29792fi
29793
29794
29795
29796
29797
29798
29799
29800
29801for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29802do
29803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29808 echo $ECHO_N "(cached) $ECHO_C" >&6
29809fi
29810ac_res=`eval echo '${'$as_ac_Header'}'`
29811 { echo "$as_me:$LINENO: result: $ac_res" >&5
29812echo "${ECHO_T}$ac_res" >&6; }
29813else
29814 # Is the header compilable?
29815{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29817cat >conftest.$ac_ext <<_ACEOF
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823$ac_includes_default
29824#include <$ac_header>
29825_ACEOF
29826rm -f conftest.$ac_objext
29827if { (ac_try="$ac_compile"
29828case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29831esac
29832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_compile") 2>conftest.er1
29834 ac_status=$?
29835 grep -v '^ *+' conftest.er1 >conftest.err
29836 rm -f conftest.er1
29837 cat conftest.err >&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029839 (exit $ac_status); } &&
29840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29841 { (case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29844esac
29845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_try") 2>&5
29847 ac_status=$?
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854esac
29855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029860 ac_header_compiler=yes
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_header_compiler=no
29866fi
29867
29868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29870echo "${ECHO_T}$ac_header_compiler" >&6; }
29871
29872# Is the header present?
29873{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29875cat >conftest.$ac_ext <<_ACEOF
29876/* confdefs.h. */
29877_ACEOF
29878cat confdefs.h >>conftest.$ac_ext
29879cat >>conftest.$ac_ext <<_ACEOF
29880/* end confdefs.h. */
29881#include <$ac_header>
29882_ACEOF
29883if { (ac_try="$ac_cpp conftest.$ac_ext"
29884case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887esac
29888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29890 ac_status=$?
29891 grep -v '^ *+' conftest.er1 >conftest.err
29892 rm -f conftest.er1
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029895 (exit $ac_status); } >/dev/null; then
29896 if test -s conftest.err; then
29897 ac_cpp_err=$ac_c_preproc_warn_flag
29898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29899 else
29900 ac_cpp_err=
29901 fi
29902else
29903 ac_cpp_err=yes
29904fi
29905if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029906 ac_header_preproc=yes
29907else
29908 echo "$as_me: failed program was:" >&5
29909sed 's/^/| /' conftest.$ac_ext >&5
29910
29911 ac_header_preproc=no
29912fi
29913
29914rm -f conftest.err conftest.$ac_ext
29915{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29916echo "${ECHO_T}$ac_header_preproc" >&6; }
29917
29918# So? What about this header?
29919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29920 yes:no: )
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29925 ac_header_preproc=yes
29926 ;;
29927 no:yes:* )
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29940 ( cat <<\_ASBOX
29941## ----------------------------------- ##
29942## Report this to llvmbugs@cs.uiuc.edu ##
29943## ----------------------------------- ##
29944_ASBOX
29945 ) | sed "s/^/$as_me: WARNING: /" >&2
29946 ;;
29947esac
29948{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953 eval "$as_ac_Header=\$ac_header_preproc"
29954fi
29955ac_res=`eval echo '${'$as_ac_Header'}'`
29956 { echo "$as_me:$LINENO: result: $ac_res" >&5
29957echo "${ECHO_T}$ac_res" >&6; }
29958
29959fi
29960if test `eval echo '${'$as_ac_Header'}'` = yes; then
29961 cat >>confdefs.h <<_ACEOF
29962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29963_ACEOF
29964
29965fi
29966
29967done
29968
29969
29970
29971
29972
29973
29974
Douglas Gregor6230bee2009-05-18 17:21:34 +000029975for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029976do
29977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29983fi
29984ac_res=`eval echo '${'$as_ac_Header'}'`
29985 { echo "$as_me:$LINENO: result: $ac_res" >&5
29986echo "${ECHO_T}$ac_res" >&6; }
29987else
29988 # Is the header compilable?
29989{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29991cat >conftest.$ac_ext <<_ACEOF
29992/* confdefs.h. */
29993_ACEOF
29994cat confdefs.h >>conftest.$ac_ext
29995cat >>conftest.$ac_ext <<_ACEOF
29996/* end confdefs.h. */
29997$ac_includes_default
29998#include <$ac_header>
29999_ACEOF
30000rm -f conftest.$ac_objext
30001if { (ac_try="$ac_compile"
30002case "(($ac_try" in
30003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004 *) ac_try_echo=$ac_try;;
30005esac
30006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_compile") 2>conftest.er1
30008 ac_status=$?
30009 grep -v '^ *+' conftest.er1 >conftest.err
30010 rm -f conftest.er1
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030013 (exit $ac_status); } &&
30014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30015 { (case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30021 ac_status=$?
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest.$ac_objext'
30025 { (case "(($ac_try" in
30026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30027 *) ac_try_echo=$ac_try;;
30028esac
30029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_try") 2>&5
30031 ac_status=$?
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030034 ac_header_compiler=yes
30035else
30036 echo "$as_me: failed program was:" >&5
30037sed 's/^/| /' conftest.$ac_ext >&5
30038
30039 ac_header_compiler=no
30040fi
30041
30042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30044echo "${ECHO_T}$ac_header_compiler" >&6; }
30045
30046# Is the header present?
30047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30049cat >conftest.$ac_ext <<_ACEOF
30050/* confdefs.h. */
30051_ACEOF
30052cat confdefs.h >>conftest.$ac_ext
30053cat >>conftest.$ac_ext <<_ACEOF
30054/* end confdefs.h. */
30055#include <$ac_header>
30056_ACEOF
30057if { (ac_try="$ac_cpp conftest.$ac_ext"
30058case "(($ac_try" in
30059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30061esac
30062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30064 ac_status=$?
30065 grep -v '^ *+' conftest.er1 >conftest.err
30066 rm -f conftest.er1
30067 cat conftest.err >&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030069 (exit $ac_status); } >/dev/null; then
30070 if test -s conftest.err; then
30071 ac_cpp_err=$ac_c_preproc_warn_flag
30072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30073 else
30074 ac_cpp_err=
30075 fi
30076else
30077 ac_cpp_err=yes
30078fi
30079if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030080 ac_header_preproc=yes
30081else
30082 echo "$as_me: failed program was:" >&5
30083sed 's/^/| /' conftest.$ac_ext >&5
30084
30085 ac_header_preproc=no
30086fi
30087
30088rm -f conftest.err conftest.$ac_ext
30089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30090echo "${ECHO_T}$ac_header_preproc" >&6; }
30091
30092# So? What about this header?
30093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30094 yes:no: )
30095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30099 ac_header_preproc=yes
30100 ;;
30101 no:yes:* )
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30114 ( cat <<\_ASBOX
30115## ----------------------------------- ##
30116## Report this to llvmbugs@cs.uiuc.edu ##
30117## ----------------------------------- ##
30118_ASBOX
30119 ) | sed "s/^/$as_me: WARNING: /" >&2
30120 ;;
30121esac
30122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30126else
30127 eval "$as_ac_Header=\$ac_header_preproc"
30128fi
30129ac_res=`eval echo '${'$as_ac_Header'}'`
30130 { echo "$as_me:$LINENO: result: $ac_res" >&5
30131echo "${ECHO_T}$ac_res" >&6; }
30132
30133fi
30134if test `eval echo '${'$as_ac_Header'}'` = yes; then
30135 cat >>confdefs.h <<_ACEOF
30136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30137_ACEOF
30138
30139fi
30140
30141done
30142
30143
Douglas Gregor6230bee2009-05-18 17:21:34 +000030144
30145for ac_header in utime.h windows.h
Reid Spencer096a8142007-08-17 05:45:26 +000030146do
30147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30153fi
30154ac_res=`eval echo '${'$as_ac_Header'}'`
30155 { echo "$as_me:$LINENO: result: $ac_res" >&5
30156echo "${ECHO_T}$ac_res" >&6; }
30157else
30158 # Is the header compilable?
30159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30161cat >conftest.$ac_ext <<_ACEOF
30162/* confdefs.h. */
30163_ACEOF
30164cat confdefs.h >>conftest.$ac_ext
30165cat >>conftest.$ac_ext <<_ACEOF
30166/* end confdefs.h. */
30167$ac_includes_default
30168#include <$ac_header>
30169_ACEOF
30170rm -f conftest.$ac_objext
30171if { (ac_try="$ac_compile"
30172case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175esac
30176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_compile") 2>conftest.er1
30178 ac_status=$?
30179 grep -v '^ *+' conftest.er1 >conftest.err
30180 rm -f conftest.er1
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($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_try") 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest.$ac_objext'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198esac
30199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30201 ac_status=$?
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000030204 ac_header_compiler=yes
30205else
30206 echo "$as_me: failed program was:" >&5
30207sed 's/^/| /' conftest.$ac_ext >&5
30208
30209 ac_header_compiler=no
30210fi
30211
30212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30213{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30214echo "${ECHO_T}$ac_header_compiler" >&6; }
30215
30216# Is the header present?
30217{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30219cat >conftest.$ac_ext <<_ACEOF
30220/* confdefs.h. */
30221_ACEOF
30222cat confdefs.h >>conftest.$ac_ext
30223cat >>conftest.$ac_ext <<_ACEOF
30224/* end confdefs.h. */
30225#include <$ac_header>
30226_ACEOF
30227if { (ac_try="$ac_cpp conftest.$ac_ext"
30228case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231esac
30232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30234 ac_status=$?
30235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030239 (exit $ac_status); } >/dev/null; then
30240 if test -s conftest.err; then
30241 ac_cpp_err=$ac_c_preproc_warn_flag
30242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30243 else
30244 ac_cpp_err=
30245 fi
30246else
30247 ac_cpp_err=yes
30248fi
30249if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000030250 ac_header_preproc=yes
30251else
30252 echo "$as_me: failed program was:" >&5
30253sed 's/^/| /' conftest.$ac_ext >&5
30254
30255 ac_header_preproc=no
30256fi
30257
30258rm -f conftest.err conftest.$ac_ext
30259{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30260echo "${ECHO_T}$ac_header_preproc" >&6; }
30261
30262# So? What about this header?
30263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30264 yes:no: )
30265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30269 ac_header_preproc=yes
30270 ;;
30271 no:yes:* )
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30284 ( cat <<\_ASBOX
30285## ----------------------------------- ##
30286## Report this to llvmbugs@cs.uiuc.edu ##
30287## ----------------------------------- ##
30288_ASBOX
30289 ) | sed "s/^/$as_me: WARNING: /" >&2
30290 ;;
30291esac
30292{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30296else
30297 eval "$as_ac_Header=\$ac_header_preproc"
30298fi
30299ac_res=`eval echo '${'$as_ac_Header'}'`
30300 { echo "$as_me:$LINENO: result: $ac_res" >&5
30301echo "${ECHO_T}$ac_res" >&6; }
30302
30303fi
30304if test `eval echo '${'$as_ac_Header'}'` = yes; then
30305 cat >>confdefs.h <<_ACEOF
30306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30307_ACEOF
30308
30309fi
30310
30311done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030312
30313
30314
30315
Reid Spencer096a8142007-08-17 05:45:26 +000030316
30317for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030318do
30319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30325fi
30326ac_res=`eval echo '${'$as_ac_Header'}'`
30327 { echo "$as_me:$LINENO: result: $ac_res" >&5
30328echo "${ECHO_T}$ac_res" >&6; }
30329else
30330 # Is the header compilable?
30331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30333cat >conftest.$ac_ext <<_ACEOF
30334/* confdefs.h. */
30335_ACEOF
30336cat confdefs.h >>conftest.$ac_ext
30337cat >>conftest.$ac_ext <<_ACEOF
30338/* end confdefs.h. */
30339$ac_includes_default
30340#include <$ac_header>
30341_ACEOF
30342rm -f conftest.$ac_objext
30343if { (ac_try="$ac_compile"
30344case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30347esac
30348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_compile") 2>conftest.er1
30350 ac_status=$?
30351 grep -v '^ *+' conftest.er1 >conftest.err
30352 rm -f conftest.er1
30353 cat conftest.err >&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030355 (exit $ac_status); } &&
30356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30357 { (case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360esac
30361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_try") 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; } &&
30366 { ac_try='test -s conftest.$ac_objext'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30370esac
30371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030376 ac_header_compiler=yes
30377else
30378 echo "$as_me: failed program was:" >&5
30379sed 's/^/| /' conftest.$ac_ext >&5
30380
30381 ac_header_compiler=no
30382fi
30383
30384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30386echo "${ECHO_T}$ac_header_compiler" >&6; }
30387
30388# Is the header present?
30389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30391cat >conftest.$ac_ext <<_ACEOF
30392/* confdefs.h. */
30393_ACEOF
30394cat confdefs.h >>conftest.$ac_ext
30395cat >>conftest.$ac_ext <<_ACEOF
30396/* end confdefs.h. */
30397#include <$ac_header>
30398_ACEOF
30399if { (ac_try="$ac_cpp conftest.$ac_ext"
30400case "(($ac_try" in
30401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30403esac
30404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30406 ac_status=$?
30407 grep -v '^ *+' conftest.er1 >conftest.err
30408 rm -f conftest.er1
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030411 (exit $ac_status); } >/dev/null; then
30412 if test -s conftest.err; then
30413 ac_cpp_err=$ac_c_preproc_warn_flag
30414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30415 else
30416 ac_cpp_err=
30417 fi
30418else
30419 ac_cpp_err=yes
30420fi
30421if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030422 ac_header_preproc=yes
30423else
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
30427 ac_header_preproc=no
30428fi
30429
30430rm -f conftest.err conftest.$ac_ext
30431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30432echo "${ECHO_T}$ac_header_preproc" >&6; }
30433
30434# So? What about this header?
30435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30436 yes:no: )
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30441 ac_header_preproc=yes
30442 ;;
30443 no:yes:* )
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30456 ( cat <<\_ASBOX
30457## ----------------------------------- ##
30458## Report this to llvmbugs@cs.uiuc.edu ##
30459## ----------------------------------- ##
30460_ASBOX
30461 ) | sed "s/^/$as_me: WARNING: /" >&2
30462 ;;
30463esac
30464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30468else
30469 eval "$as_ac_Header=\$ac_header_preproc"
30470fi
30471ac_res=`eval echo '${'$as_ac_Header'}'`
30472 { echo "$as_me:$LINENO: result: $ac_res" >&5
30473echo "${ECHO_T}$ac_res" >&6; }
30474
30475fi
30476if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477 cat >>confdefs.h <<_ACEOF
30478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30479_ACEOF
30480
30481fi
30482
30483done
30484
30485
30486
30487
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000030488
30489for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030490do
30491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30497fi
30498ac_res=`eval echo '${'$as_ac_Header'}'`
30499 { echo "$as_me:$LINENO: result: $ac_res" >&5
30500echo "${ECHO_T}$ac_res" >&6; }
30501else
30502 # Is the header compilable?
30503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30505cat >conftest.$ac_ext <<_ACEOF
30506/* confdefs.h. */
30507_ACEOF
30508cat confdefs.h >>conftest.$ac_ext
30509cat >>conftest.$ac_ext <<_ACEOF
30510/* end confdefs.h. */
30511$ac_includes_default
30512#include <$ac_header>
30513_ACEOF
30514rm -f conftest.$ac_objext
30515if { (ac_try="$ac_compile"
30516case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30519esac
30520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
30522 ac_status=$?
30523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030527 (exit $ac_status); } &&
30528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30529 { (case "(($ac_try" in
30530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30532esac
30533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30534 (eval "$ac_try") 2>&5
30535 ac_status=$?
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; } &&
30538 { ac_try='test -s conftest.$ac_objext'
30539 { (case "(($ac_try" in
30540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541 *) ac_try_echo=$ac_try;;
30542esac
30543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544 (eval "$ac_try") 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030548 ac_header_compiler=yes
30549else
30550 echo "$as_me: failed program was:" >&5
30551sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 ac_header_compiler=no
30554fi
30555
30556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30558echo "${ECHO_T}$ac_header_compiler" >&6; }
30559
30560# Is the header present?
30561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30563cat >conftest.$ac_ext <<_ACEOF
30564/* confdefs.h. */
30565_ACEOF
30566cat confdefs.h >>conftest.$ac_ext
30567cat >>conftest.$ac_ext <<_ACEOF
30568/* end confdefs.h. */
30569#include <$ac_header>
30570_ACEOF
30571if { (ac_try="$ac_cpp conftest.$ac_ext"
30572case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30575esac
30576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030583 (exit $ac_status); } >/dev/null; then
30584 if test -s conftest.err; then
30585 ac_cpp_err=$ac_c_preproc_warn_flag
30586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30587 else
30588 ac_cpp_err=
30589 fi
30590else
30591 ac_cpp_err=yes
30592fi
30593if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030594 ac_header_preproc=yes
30595else
30596 echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 ac_header_preproc=no
30600fi
30601
30602rm -f conftest.err conftest.$ac_ext
30603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30604echo "${ECHO_T}$ac_header_preproc" >&6; }
30605
30606# So? What about this header?
30607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30608 yes:no: )
30609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30613 ac_header_preproc=yes
30614 ;;
30615 no:yes:* )
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30628 ( cat <<\_ASBOX
30629## ----------------------------------- ##
30630## Report this to llvmbugs@cs.uiuc.edu ##
30631## ----------------------------------- ##
30632_ASBOX
30633 ) | sed "s/^/$as_me: WARNING: /" >&2
30634 ;;
30635esac
30636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30640else
30641 eval "$as_ac_Header=\$ac_header_preproc"
30642fi
30643ac_res=`eval echo '${'$as_ac_Header'}'`
30644 { echo "$as_me:$LINENO: result: $ac_res" >&5
30645echo "${ECHO_T}$ac_res" >&6; }
30646
30647fi
30648if test `eval echo '${'$as_ac_Header'}'` = yes; then
30649 cat >>confdefs.h <<_ACEOF
30650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30651_ACEOF
30652
30653fi
30654
30655done
30656
30657if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000030658
30659for ac_header in pthread.h
30660do
30661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667fi
Reid Spencer096a8142007-08-17 05:45:26 +000030668ac_res=`eval echo '${'$as_ac_Header'}'`
30669 { echo "$as_me:$LINENO: result: $ac_res" >&5
30670echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030671else
30672 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000030673{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030675cat >conftest.$ac_ext <<_ACEOF
30676/* confdefs.h. */
30677_ACEOF
30678cat confdefs.h >>conftest.$ac_ext
30679cat >>conftest.$ac_ext <<_ACEOF
30680/* end confdefs.h. */
30681$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000030682#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030683_ACEOF
30684rm -f conftest.$ac_objext
30685if { (ac_try="$ac_compile"
30686case "(($ac_try" in
30687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30688 *) ac_try_echo=$ac_try;;
30689esac
30690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30691 (eval "$ac_compile") 2>conftest.er1
30692 ac_status=$?
30693 grep -v '^ *+' conftest.er1 >conftest.err
30694 rm -f conftest.er1
30695 cat conftest.err >&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030697 (exit $ac_status); } &&
30698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30699 { (case "(($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_try") 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; } &&
30708 { ac_try='test -s conftest.$ac_objext'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711 *) ac_try_echo=$ac_try;;
30712esac
30713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030718 ac_header_compiler=yes
30719else
30720 echo "$as_me: failed program was:" >&5
30721sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ac_header_compiler=no
30724fi
30725
30726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30728echo "${ECHO_T}$ac_header_compiler" >&6; }
30729
30730# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000030731{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030733cat >conftest.$ac_ext <<_ACEOF
30734/* confdefs.h. */
30735_ACEOF
30736cat confdefs.h >>conftest.$ac_ext
30737cat >>conftest.$ac_ext <<_ACEOF
30738/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000030739#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030740_ACEOF
30741if { (ac_try="$ac_cpp conftest.$ac_ext"
30742case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30745esac
30746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30748 ac_status=$?
30749 grep -v '^ *+' conftest.er1 >conftest.err
30750 rm -f conftest.er1
30751 cat conftest.err >&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030753 (exit $ac_status); } >/dev/null; then
30754 if test -s conftest.err; then
30755 ac_cpp_err=$ac_c_preproc_warn_flag
30756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30757 else
30758 ac_cpp_err=
30759 fi
30760else
30761 ac_cpp_err=yes
30762fi
30763if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030764 ac_header_preproc=yes
30765else
30766 echo "$as_me: failed program was:" >&5
30767sed 's/^/| /' conftest.$ac_ext >&5
30768
30769 ac_header_preproc=no
30770fi
30771
30772rm -f conftest.err conftest.$ac_ext
30773{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30774echo "${ECHO_T}$ac_header_preproc" >&6; }
30775
30776# So? What about this header?
30777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30778 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000030779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030783 ac_header_preproc=yes
30784 ;;
30785 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000030786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030798 ( cat <<\_ASBOX
30799## ----------------------------------- ##
30800## Report this to llvmbugs@cs.uiuc.edu ##
30801## ----------------------------------- ##
30802_ASBOX
30803 ) | sed "s/^/$as_me: WARNING: /" >&2
30804 ;;
30805esac
Reid Spencer096a8142007-08-17 05:45:26 +000030806{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030809 echo $ECHO_N "(cached) $ECHO_C" >&6
30810else
Reid Spencer096a8142007-08-17 05:45:26 +000030811 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030812fi
Reid Spencer096a8142007-08-17 05:45:26 +000030813ac_res=`eval echo '${'$as_ac_Header'}'`
30814 { echo "$as_me:$LINENO: result: $ac_res" >&5
30815echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030816
30817fi
Reid Spencer096a8142007-08-17 05:45:26 +000030818if test `eval echo '${'$as_ac_Header'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30821_ACEOF
30822 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030823
30824else
30825 HAVE_PTHREAD=0
30826
30827fi
30828
Reid Spencer096a8142007-08-17 05:45:26 +000030829done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030830
30831else
30832 HAVE_PTHREAD=0
30833
30834fi
30835
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000030836if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030837
30838
30839for ac_header in ffi.h ffi/ffi.h
30840do
30841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30847fi
30848ac_res=`eval echo '${'$as_ac_Header'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850echo "${ECHO_T}$ac_res" >&6; }
30851else
30852 # Is the header compilable?
30853{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30855cat >conftest.$ac_ext <<_ACEOF
30856/* confdefs.h. */
30857_ACEOF
30858cat confdefs.h >>conftest.$ac_ext
30859cat >>conftest.$ac_ext <<_ACEOF
30860/* end confdefs.h. */
30861$ac_includes_default
30862#include <$ac_header>
30863_ACEOF
30864rm -f conftest.$ac_objext
30865if { (ac_try="$ac_compile"
30866case "(($ac_try" in
30867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30869esac
30870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_compile") 2>conftest.er1
30872 ac_status=$?
30873 grep -v '^ *+' conftest.er1 >conftest.err
30874 rm -f conftest.er1
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030877 (exit $ac_status); } &&
30878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879 { (case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30882esac
30883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_try") 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest.$ac_objext'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30892esac
30893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030898 ac_header_compiler=yes
30899else
30900 echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903 ac_header_compiler=no
30904fi
30905
30906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30908echo "${ECHO_T}$ac_header_compiler" >&6; }
30909
30910# Is the header present?
30911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30913cat >conftest.$ac_ext <<_ACEOF
30914/* confdefs.h. */
30915_ACEOF
30916cat confdefs.h >>conftest.$ac_ext
30917cat >>conftest.$ac_ext <<_ACEOF
30918/* end confdefs.h. */
30919#include <$ac_header>
30920_ACEOF
30921if { (ac_try="$ac_cpp conftest.$ac_ext"
30922case "(($ac_try" in
30923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924 *) ac_try_echo=$ac_try;;
30925esac
30926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30928 ac_status=$?
30929 grep -v '^ *+' conftest.er1 >conftest.err
30930 rm -f conftest.er1
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030933 (exit $ac_status); } >/dev/null; then
30934 if test -s conftest.err; then
30935 ac_cpp_err=$ac_c_preproc_warn_flag
30936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30937 else
30938 ac_cpp_err=
30939 fi
30940else
30941 ac_cpp_err=yes
30942fi
30943if test -z "$ac_cpp_err"; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030944 ac_header_preproc=yes
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
30949 ac_header_preproc=no
30950fi
30951
30952rm -f conftest.err conftest.$ac_ext
30953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30954echo "${ECHO_T}$ac_header_preproc" >&6; }
30955
30956# So? What about this header?
30957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30958 yes:no: )
30959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30963 ac_header_preproc=yes
30964 ;;
30965 no:yes:* )
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30978 ( cat <<\_ASBOX
30979## ----------------------------------- ##
30980## Report this to llvmbugs@cs.uiuc.edu ##
30981## ----------------------------------- ##
30982_ASBOX
30983 ) | sed "s/^/$as_me: WARNING: /" >&2
30984 ;;
30985esac
30986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30990else
30991 eval "$as_ac_Header=\$ac_header_preproc"
30992fi
30993ac_res=`eval echo '${'$as_ac_Header'}'`
30994 { echo "$as_me:$LINENO: result: $ac_res" >&5
30995echo "${ECHO_T}$ac_res" >&6; }
30996
30997fi
30998if test `eval echo '${'$as_ac_Header'}'` = yes; then
30999 cat >>confdefs.h <<_ACEOF
31000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31001_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000031002
31003fi
31004
31005done
31006
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000031007fi
Nick Lewycky0235b622009-02-04 06:27:44 +000031008
Nick Lewycky5d713ec2009-01-20 00:52:24 +000031009
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031010
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031011 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31012echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31013if test "${ac_cv_huge_val_sanity+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31015else
31016
31017 ac_ext=cpp
31018ac_cpp='$CXXCPP $CPPFLAGS'
31019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31022
31023 CXXFLAGS=-pedantic
31024 if test "$cross_compiling" = yes; then
31025 ac_cv_huge_val_sanity=yes
31026else
31027 cat >conftest.$ac_ext <<_ACEOF
31028/* confdefs.h. */
31029_ACEOF
31030cat confdefs.h >>conftest.$ac_ext
31031cat >>conftest.$ac_ext <<_ACEOF
31032/* end confdefs.h. */
31033#include <math.h>
31034int
31035main ()
31036{
31037double x = HUGE_VAL; return x != x;
31038 ;
31039 return 0;
31040}
31041_ACEOF
31042rm -f conftest$ac_exeext
31043if { (ac_try="$ac_link"
31044case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31047esac
31048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_link") 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31053 { (case "(($ac_try" in
31054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31056esac
31057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_try") 2>&5
31059 ac_status=$?
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; }; then
31062 ac_cv_huge_val_sanity=yes
31063else
31064 echo "$as_me: program exited with status $ac_status" >&5
31065echo "$as_me: failed program was:" >&5
31066sed 's/^/| /' conftest.$ac_ext >&5
31067
31068( exit $ac_status )
31069ac_cv_huge_val_sanity=no
31070fi
31071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31072fi
31073
31074
31075 ac_ext=c
31076ac_cpp='$CPP $CPPFLAGS'
31077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079ac_compiler_gnu=$ac_cv_c_compiler_gnu
31080
31081
31082fi
31083{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31084echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31085 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31086
31087
31088{ echo "$as_me:$LINENO: checking for pid_t" >&5
31089echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31090if test "${ac_cv_type_pid_t+set}" = set; then
31091 echo $ECHO_N "(cached) $ECHO_C" >&6
31092else
31093 cat >conftest.$ac_ext <<_ACEOF
31094/* confdefs.h. */
31095_ACEOF
31096cat confdefs.h >>conftest.$ac_ext
31097cat >>conftest.$ac_ext <<_ACEOF
31098/* end confdefs.h. */
31099$ac_includes_default
31100typedef pid_t ac__type_new_;
31101int
31102main ()
31103{
31104if ((ac__type_new_ *) 0)
31105 return 0;
31106if (sizeof (ac__type_new_))
31107 return 0;
31108 ;
31109 return 0;
31110}
31111_ACEOF
31112rm -f conftest.$ac_objext
31113if { (ac_try="$ac_compile"
31114case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117esac
31118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_compile") 2>conftest.er1
31120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest.$ac_objext'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031146 ac_cv_type_pid_t=yes
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
31151 ac_cv_type_pid_t=no
31152fi
31153
31154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31155fi
31156{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31157echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31158if test $ac_cv_type_pid_t = yes; then
31159 :
31160else
31161
31162cat >>confdefs.h <<_ACEOF
31163#define pid_t int
31164_ACEOF
31165
31166fi
31167
31168{ echo "$as_me:$LINENO: checking for size_t" >&5
31169echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31170if test "${ac_cv_type_size_t+set}" = set; then
31171 echo $ECHO_N "(cached) $ECHO_C" >&6
31172else
31173 cat >conftest.$ac_ext <<_ACEOF
31174/* confdefs.h. */
31175_ACEOF
31176cat confdefs.h >>conftest.$ac_ext
31177cat >>conftest.$ac_ext <<_ACEOF
31178/* end confdefs.h. */
31179$ac_includes_default
31180typedef size_t ac__type_new_;
31181int
31182main ()
31183{
31184if ((ac__type_new_ *) 0)
31185 return 0;
31186if (sizeof (ac__type_new_))
31187 return 0;
31188 ;
31189 return 0;
31190}
31191_ACEOF
31192rm -f conftest.$ac_objext
31193if { (ac_try="$ac_compile"
31194case "(($ac_try" in
31195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31197esac
31198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_compile") 2>conftest.er1
31200 ac_status=$?
31201 grep -v '^ *+' conftest.er1 >conftest.err
31202 rm -f conftest.er1
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031205 (exit $ac_status); } &&
31206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31207 { (case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31210esac
31211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_try") 2>&5
31213 ac_status=$?
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; } &&
31216 { ac_try='test -s conftest.$ac_objext'
31217 { (case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31220esac
31221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_try") 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031226 ac_cv_type_size_t=yes
31227else
31228 echo "$as_me: failed program was:" >&5
31229sed 's/^/| /' conftest.$ac_ext >&5
31230
31231 ac_cv_type_size_t=no
31232fi
31233
31234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235fi
31236{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31237echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31238if test $ac_cv_type_size_t = yes; then
31239 :
31240else
31241
31242cat >>confdefs.h <<_ACEOF
31243#define size_t unsigned int
31244_ACEOF
31245
31246fi
31247
31248{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31249echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31250if test "${ac_cv_type_signal+set}" = set; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31252else
31253 cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
31259#include <sys/types.h>
31260#include <signal.h>
31261
31262int
31263main ()
31264{
31265return *(signal (0, 0)) (0) == 1;
31266 ;
31267 return 0;
31268}
31269_ACEOF
31270rm -f conftest.$ac_objext
31271if { (ac_try="$ac_compile"
31272case "(($ac_try" in
31273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274 *) ac_try_echo=$ac_try;;
31275esac
31276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277 (eval "$ac_compile") 2>conftest.er1
31278 ac_status=$?
31279 grep -v '^ *+' conftest.er1 >conftest.err
31280 rm -f conftest.er1
31281 cat conftest.err >&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031283 (exit $ac_status); } &&
31284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31285 { (case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31288esac
31289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_try") 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
31294 { ac_try='test -s conftest.$ac_objext'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298esac
31299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031304 ac_cv_type_signal=int
31305else
31306 echo "$as_me: failed program was:" >&5
31307sed 's/^/| /' conftest.$ac_ext >&5
31308
31309 ac_cv_type_signal=void
31310fi
31311
31312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31313fi
31314{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31315echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31316
31317cat >>confdefs.h <<_ACEOF
31318#define RETSIGTYPE $ac_cv_type_signal
31319_ACEOF
31320
31321
31322{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31323echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31324if test "${ac_cv_struct_tm+set}" = set; then
31325 echo $ECHO_N "(cached) $ECHO_C" >&6
31326else
31327 cat >conftest.$ac_ext <<_ACEOF
31328/* confdefs.h. */
31329_ACEOF
31330cat confdefs.h >>conftest.$ac_ext
31331cat >>conftest.$ac_ext <<_ACEOF
31332/* end confdefs.h. */
31333#include <sys/types.h>
31334#include <time.h>
31335
31336int
31337main ()
31338{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031339struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031340 ;
31341 return 0;
31342}
31343_ACEOF
31344rm -f conftest.$ac_objext
31345if { (ac_try="$ac_compile"
31346case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31349esac
31350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_compile") 2>conftest.er1
31352 ac_status=$?
31353 grep -v '^ *+' conftest.er1 >conftest.err
31354 rm -f conftest.er1
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest.$ac_objext'
31369 { (case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31372esac
31373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_try") 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031378 ac_cv_struct_tm=time.h
31379else
31380 echo "$as_me: failed program was:" >&5
31381sed 's/^/| /' conftest.$ac_ext >&5
31382
31383 ac_cv_struct_tm=sys/time.h
31384fi
31385
31386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31387fi
31388{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31389echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31390if test $ac_cv_struct_tm = sys/time.h; then
31391
31392cat >>confdefs.h <<\_ACEOF
31393#define TM_IN_SYS_TIME 1
31394_ACEOF
31395
31396fi
31397
31398{ echo "$as_me:$LINENO: checking for int64_t" >&5
31399echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31400if test "${ac_cv_type_int64_t+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31402else
31403 cat >conftest.$ac_ext <<_ACEOF
31404/* confdefs.h. */
31405_ACEOF
31406cat confdefs.h >>conftest.$ac_ext
31407cat >>conftest.$ac_ext <<_ACEOF
31408/* end confdefs.h. */
31409$ac_includes_default
31410typedef int64_t ac__type_new_;
31411int
31412main ()
31413{
31414if ((ac__type_new_ *) 0)
31415 return 0;
31416if (sizeof (ac__type_new_))
31417 return 0;
31418 ;
31419 return 0;
31420}
31421_ACEOF
31422rm -f conftest.$ac_objext
31423if { (ac_try="$ac_compile"
31424case "(($ac_try" in
31425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426 *) ac_try_echo=$ac_try;;
31427esac
31428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_compile") 2>conftest.er1
31430 ac_status=$?
31431 grep -v '^ *+' conftest.er1 >conftest.err
31432 rm -f conftest.er1
31433 cat conftest.err >&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031435 (exit $ac_status); } &&
31436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437 { (case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440esac
31441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; } &&
31446 { ac_try='test -s conftest.$ac_objext'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31450esac
31451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031456 ac_cv_type_int64_t=yes
31457else
31458 echo "$as_me: failed program was:" >&5
31459sed 's/^/| /' conftest.$ac_ext >&5
31460
31461 ac_cv_type_int64_t=no
31462fi
31463
31464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31465fi
31466{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31467echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31468if test $ac_cv_type_int64_t = yes; then
31469
31470cat >>confdefs.h <<_ACEOF
31471#define HAVE_INT64_T 1
31472_ACEOF
31473
31474
31475else
31476 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31477echo "$as_me: error: Type int64_t required but not found" >&2;}
31478 { (exit 1); exit 1; }; }
31479fi
31480
31481{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31482echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31483if test "${ac_cv_type_uint64_t+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486 cat >conftest.$ac_ext <<_ACEOF
31487/* confdefs.h. */
31488_ACEOF
31489cat confdefs.h >>conftest.$ac_ext
31490cat >>conftest.$ac_ext <<_ACEOF
31491/* end confdefs.h. */
31492$ac_includes_default
31493typedef uint64_t ac__type_new_;
31494int
31495main ()
31496{
31497if ((ac__type_new_ *) 0)
31498 return 0;
31499if (sizeof (ac__type_new_))
31500 return 0;
31501 ;
31502 return 0;
31503}
31504_ACEOF
31505rm -f conftest.$ac_objext
31506if { (ac_try="$ac_compile"
31507case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_compile") 2>conftest.er1
31513 ac_status=$?
31514 grep -v '^ *+' conftest.er1 >conftest.err
31515 rm -f conftest.er1
31516 cat conftest.err >&5
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031518 (exit $ac_status); } &&
31519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31520 { (case "(($ac_try" in
31521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522 *) ac_try_echo=$ac_try;;
31523esac
31524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525 (eval "$ac_try") 2>&5
31526 ac_status=$?
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; } &&
31529 { ac_try='test -s conftest.$ac_objext'
31530 { (case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31533esac
31534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535 (eval "$ac_try") 2>&5
31536 ac_status=$?
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031539 ac_cv_type_uint64_t=yes
31540else
31541 echo "$as_me: failed program was:" >&5
31542sed 's/^/| /' conftest.$ac_ext >&5
31543
31544 ac_cv_type_uint64_t=no
31545fi
31546
31547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31548fi
31549{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31550echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31551if test $ac_cv_type_uint64_t = yes; then
31552
31553cat >>confdefs.h <<_ACEOF
31554#define HAVE_UINT64_T 1
31555_ACEOF
31556
31557
31558else
31559 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31560echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31561if test "${ac_cv_type_u_int64_t+set}" = set; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31563else
31564 cat >conftest.$ac_ext <<_ACEOF
31565/* confdefs.h. */
31566_ACEOF
31567cat confdefs.h >>conftest.$ac_ext
31568cat >>conftest.$ac_ext <<_ACEOF
31569/* end confdefs.h. */
31570$ac_includes_default
31571typedef u_int64_t ac__type_new_;
31572int
31573main ()
31574{
31575if ((ac__type_new_ *) 0)
31576 return 0;
31577if (sizeof (ac__type_new_))
31578 return 0;
31579 ;
31580 return 0;
31581}
31582_ACEOF
31583rm -f conftest.$ac_objext
31584if { (ac_try="$ac_compile"
31585case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31588esac
31589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_compile") 2>conftest.er1
31591 ac_status=$?
31592 grep -v '^ *+' conftest.er1 >conftest.err
31593 rm -f conftest.er1
31594 cat conftest.err >&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031596 (exit $ac_status); } &&
31597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31598 { (case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31601esac
31602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_try") 2>&5
31604 ac_status=$?
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; } &&
31607 { ac_try='test -s conftest.$ac_objext'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31611esac
31612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031617 ac_cv_type_u_int64_t=yes
31618else
31619 echo "$as_me: failed program was:" >&5
31620sed 's/^/| /' conftest.$ac_ext >&5
31621
31622 ac_cv_type_u_int64_t=no
31623fi
31624
31625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31626fi
31627{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31628echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31629if test $ac_cv_type_u_int64_t = yes; then
31630
31631cat >>confdefs.h <<_ACEOF
31632#define HAVE_U_INT64_T 1
31633_ACEOF
31634
31635
31636else
31637 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31638echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31639 { (exit 1); exit 1; }; }
31640fi
31641
31642fi
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31654do
31655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660else
31661 cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
31667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31669#define $ac_func innocuous_$ac_func
31670
31671/* System header to define __stub macros and hopefully few prototypes,
31672 which can conflict with char $ac_func (); below.
31673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674 <limits.h> exists even on freestanding compilers. */
31675
31676#ifdef __STDC__
31677# include <limits.h>
31678#else
31679# include <assert.h>
31680#endif
31681
31682#undef $ac_func
31683
31684/* Override any GCC internal prototype to avoid an error.
31685 Use char because int might match the return type of a GCC
31686 builtin and then its argument prototype would still apply. */
31687#ifdef __cplusplus
31688extern "C"
31689#endif
31690char $ac_func ();
31691/* The GNU C library defines this for functions which it implements
31692 to always fail with ENOSYS. Some functions are actually named
31693 something starting with __ and the normal name is an alias. */
31694#if defined __stub_$ac_func || defined __stub___$ac_func
31695choke me
31696#endif
31697
31698int
31699main ()
31700{
31701return $ac_func ();
31702 ;
31703 return 0;
31704}
31705_ACEOF
31706rm -f conftest.$ac_objext conftest$ac_exeext
31707if { (ac_try="$ac_link"
31708case "(($ac_try" in
31709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710 *) ac_try_echo=$ac_try;;
31711esac
31712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713 (eval "$ac_link") 2>conftest.er1
31714 ac_status=$?
31715 grep -v '^ *+' conftest.er1 >conftest.err
31716 rm -f conftest.er1
31717 cat conftest.err >&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031719 (exit $ac_status); } &&
31720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
31730 { ac_try='test -s conftest$ac_exeext'
31731 { (case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31734esac
31735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_try") 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031740 eval "$as_ac_var=yes"
31741else
31742 echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
31745 eval "$as_ac_var=no"
31746fi
31747
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031748rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031749 conftest$ac_exeext conftest.$ac_ext
31750fi
31751ac_res=`eval echo '${'$as_ac_var'}'`
31752 { echo "$as_me:$LINENO: result: $ac_res" >&5
31753echo "${ECHO_T}$ac_res" >&6; }
31754if test `eval echo '${'$as_ac_var'}'` = yes; then
31755 cat >>confdefs.h <<_ACEOF
31756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31757_ACEOF
31758
31759fi
31760done
31761
31762
31763
31764
31765
31766for ac_func in powf fmodf strtof round
31767do
31768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773else
31774 cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h. */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h. */
31780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31782#define $ac_func innocuous_$ac_func
31783
31784/* System header to define __stub macros and hopefully few prototypes,
31785 which can conflict with char $ac_func (); below.
31786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787 <limits.h> exists even on freestanding compilers. */
31788
31789#ifdef __STDC__
31790# include <limits.h>
31791#else
31792# include <assert.h>
31793#endif
31794
31795#undef $ac_func
31796
31797/* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31800#ifdef __cplusplus
31801extern "C"
31802#endif
31803char $ac_func ();
31804/* The GNU C library defines this for functions which it implements
31805 to always fail with ENOSYS. Some functions are actually named
31806 something starting with __ and the normal name is an alias. */
31807#if defined __stub_$ac_func || defined __stub___$ac_func
31808choke me
31809#endif
31810
31811int
31812main ()
31813{
31814return $ac_func ();
31815 ;
31816 return 0;
31817}
31818_ACEOF
31819rm -f conftest.$ac_objext conftest$ac_exeext
31820if { (ac_try="$ac_link"
31821case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31824esac
31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_link") 2>conftest.er1
31827 ac_status=$?
31828 grep -v '^ *+' conftest.er1 >conftest.err
31829 rm -f conftest.er1
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31837esac
31838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31840 ac_status=$?
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest$ac_exeext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31847esac
31848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31850 ac_status=$?
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031853 eval "$as_ac_var=yes"
31854else
31855 echo "$as_me: failed program was:" >&5
31856sed 's/^/| /' conftest.$ac_ext >&5
31857
31858 eval "$as_ac_var=no"
31859fi
31860
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031861rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031862 conftest$ac_exeext conftest.$ac_ext
31863fi
31864ac_res=`eval echo '${'$as_ac_var'}'`
31865 { echo "$as_me:$LINENO: result: $ac_res" >&5
31866echo "${ECHO_T}$ac_res" >&6; }
31867if test `eval echo '${'$as_ac_var'}'` = yes; then
31868 cat >>confdefs.h <<_ACEOF
31869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31870_ACEOF
31871
31872fi
31873done
31874
31875
31876
31877
31878
31879
31880for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31881do
31882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31883{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31885if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31886 echo $ECHO_N "(cached) $ECHO_C" >&6
31887else
31888 cat >conftest.$ac_ext <<_ACEOF
31889/* confdefs.h. */
31890_ACEOF
31891cat confdefs.h >>conftest.$ac_ext
31892cat >>conftest.$ac_ext <<_ACEOF
31893/* end confdefs.h. */
31894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31896#define $ac_func innocuous_$ac_func
31897
31898/* System header to define __stub macros and hopefully few prototypes,
31899 which can conflict with char $ac_func (); below.
31900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31901 <limits.h> exists even on freestanding compilers. */
31902
31903#ifdef __STDC__
31904# include <limits.h>
31905#else
31906# include <assert.h>
31907#endif
31908
31909#undef $ac_func
31910
31911/* Override any GCC internal prototype to avoid an error.
31912 Use char because int might match the return type of a GCC
31913 builtin and then its argument prototype would still apply. */
31914#ifdef __cplusplus
31915extern "C"
31916#endif
31917char $ac_func ();
31918/* The GNU C library defines this for functions which it implements
31919 to always fail with ENOSYS. Some functions are actually named
31920 something starting with __ and the normal name is an alias. */
31921#if defined __stub_$ac_func || defined __stub___$ac_func
31922choke me
31923#endif
31924
31925int
31926main ()
31927{
31928return $ac_func ();
31929 ;
31930 return 0;
31931}
31932_ACEOF
31933rm -f conftest.$ac_objext conftest$ac_exeext
31934if { (ac_try="$ac_link"
31935case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31938esac
31939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_link") 2>conftest.er1
31941 ac_status=$?
31942 grep -v '^ *+' conftest.er1 >conftest.err
31943 rm -f conftest.er1
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031946 (exit $ac_status); } &&
31947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31948 { (case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31951esac
31952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_try") 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try='test -s conftest$ac_exeext'
31958 { (case "(($ac_try" in
31959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31960 *) ac_try_echo=$ac_try;;
31961esac
31962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31963 (eval "$ac_try") 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031967 eval "$as_ac_var=yes"
31968else
31969 echo "$as_me: failed program was:" >&5
31970sed 's/^/| /' conftest.$ac_ext >&5
31971
31972 eval "$as_ac_var=no"
31973fi
31974
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031975rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031976 conftest$ac_exeext conftest.$ac_ext
31977fi
31978ac_res=`eval echo '${'$as_ac_var'}'`
31979 { echo "$as_me:$LINENO: result: $ac_res" >&5
31980echo "${ECHO_T}$ac_res" >&6; }
31981if test `eval echo '${'$as_ac_var'}'` = yes; then
31982 cat >>confdefs.h <<_ACEOF
31983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31984_ACEOF
31985
31986fi
31987done
31988
31989
31990
31991
31992for ac_func in isatty mkdtemp mkstemp
31993do
31994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000 cat >conftest.$ac_ext <<_ACEOF
32001/* confdefs.h. */
32002_ACEOF
32003cat confdefs.h >>conftest.$ac_ext
32004cat >>conftest.$ac_ext <<_ACEOF
32005/* end confdefs.h. */
32006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008#define $ac_func innocuous_$ac_func
32009
32010/* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32014
32015#ifdef __STDC__
32016# include <limits.h>
32017#else
32018# include <assert.h>
32019#endif
32020
32021#undef $ac_func
32022
32023/* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
32026#ifdef __cplusplus
32027extern "C"
32028#endif
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033#if defined __stub_$ac_func || defined __stub___$ac_func
32034choke me
32035#endif
32036
32037int
32038main ()
32039{
32040return $ac_func ();
32041 ;
32042 return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
32046if { (ac_try="$ac_link"
32047case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_link") 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32073esac
32074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_try") 2>&5
32076 ac_status=$?
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032079 eval "$as_ac_var=yes"
32080else
32081 echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
32084 eval "$as_ac_var=no"
32085fi
32086
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032087rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032088 conftest$ac_exeext conftest.$ac_ext
32089fi
32090ac_res=`eval echo '${'$as_ac_var'}'`
32091 { echo "$as_me:$LINENO: result: $ac_res" >&5
32092echo "${ECHO_T}$ac_res" >&6; }
32093if test `eval echo '${'$as_ac_var'}'` = yes; then
32094 cat >>confdefs.h <<_ACEOF
32095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32096_ACEOF
32097
32098fi
32099done
32100
32101
32102
32103
32104
32105
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032106for ac_func in mktemp realpath sbrk setrlimit strdup
32107do
32108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32109{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32111if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32112 echo $ECHO_N "(cached) $ECHO_C" >&6
32113else
32114 cat >conftest.$ac_ext <<_ACEOF
32115/* confdefs.h. */
32116_ACEOF
32117cat confdefs.h >>conftest.$ac_ext
32118cat >>conftest.$ac_ext <<_ACEOF
32119/* end confdefs.h. */
32120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32122#define $ac_func innocuous_$ac_func
32123
32124/* System header to define __stub macros and hopefully few prototypes,
32125 which can conflict with char $ac_func (); below.
32126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32127 <limits.h> exists even on freestanding compilers. */
32128
32129#ifdef __STDC__
32130# include <limits.h>
32131#else
32132# include <assert.h>
32133#endif
32134
32135#undef $ac_func
32136
32137/* Override any GCC internal prototype to avoid an error.
32138 Use char because int might match the return type of a GCC
32139 builtin and then its argument prototype would still apply. */
32140#ifdef __cplusplus
32141extern "C"
32142#endif
32143char $ac_func ();
32144/* The GNU C library defines this for functions which it implements
32145 to always fail with ENOSYS. Some functions are actually named
32146 something starting with __ and the normal name is an alias. */
32147#if defined __stub_$ac_func || defined __stub___$ac_func
32148choke me
32149#endif
32150
32151int
32152main ()
32153{
32154return $ac_func ();
32155 ;
32156 return 0;
32157}
32158_ACEOF
32159rm -f conftest.$ac_objext conftest$ac_exeext
32160if { (ac_try="$ac_link"
32161case "(($ac_try" in
32162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32164esac
32165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_link") 2>conftest.er1
32167 ac_status=$?
32168 grep -v '^ *+' conftest.er1 >conftest.err
32169 rm -f conftest.er1
32170 cat conftest.err >&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } &&
32173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32174 { (case "(($ac_try" in
32175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176 *) ac_try_echo=$ac_try;;
32177esac
32178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_try") 2>&5
32180 ac_status=$?
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; } &&
32183 { ac_try='test -s conftest$ac_exeext'
32184 { (case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32187esac
32188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
32190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; }; then
32193 eval "$as_ac_var=yes"
32194else
32195 echo "$as_me: failed program was:" >&5
32196sed 's/^/| /' conftest.$ac_ext >&5
32197
32198 eval "$as_ac_var=no"
32199fi
32200
32201rm -f core conftest.err conftest.$ac_objext \
32202 conftest$ac_exeext conftest.$ac_ext
32203fi
32204ac_res=`eval echo '${'$as_ac_var'}'`
32205 { echo "$as_me:$LINENO: result: $ac_res" >&5
32206echo "${ECHO_T}$ac_res" >&6; }
32207if test `eval echo '${'$as_ac_var'}'` = yes; then
32208 cat >>confdefs.h <<_ACEOF
32209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32210_ACEOF
32211
32212fi
32213done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032214
32215
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032216
32217
32218for ac_func in strerror strerror_r strerror_s
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032219do
32220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32225else
32226 cat >conftest.$ac_ext <<_ACEOF
32227/* confdefs.h. */
32228_ACEOF
32229cat confdefs.h >>conftest.$ac_ext
32230cat >>conftest.$ac_ext <<_ACEOF
32231/* end confdefs.h. */
32232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32234#define $ac_func innocuous_$ac_func
32235
32236/* System header to define __stub macros and hopefully few prototypes,
32237 which can conflict with char $ac_func (); below.
32238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32239 <limits.h> exists even on freestanding compilers. */
32240
32241#ifdef __STDC__
32242# include <limits.h>
32243#else
32244# include <assert.h>
32245#endif
32246
32247#undef $ac_func
32248
32249/* Override any GCC internal prototype to avoid an error.
32250 Use char because int might match the return type of a GCC
32251 builtin and then its argument prototype would still apply. */
32252#ifdef __cplusplus
32253extern "C"
32254#endif
32255char $ac_func ();
32256/* The GNU C library defines this for functions which it implements
32257 to always fail with ENOSYS. Some functions are actually named
32258 something starting with __ and the normal name is an alias. */
32259#if defined __stub_$ac_func || defined __stub___$ac_func
32260choke me
32261#endif
32262
32263int
32264main ()
32265{
32266return $ac_func ();
32267 ;
32268 return 0;
32269}
32270_ACEOF
32271rm -f conftest.$ac_objext conftest$ac_exeext
32272if { (ac_try="$ac_link"
32273case "(($ac_try" in
32274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275 *) ac_try_echo=$ac_try;;
32276esac
32277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_link") 2>conftest.er1
32279 ac_status=$?
32280 grep -v '^ *+' conftest.er1 >conftest.err
32281 rm -f conftest.er1
32282 cat conftest.err >&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032284 (exit $ac_status); } &&
32285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32286 { (case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32289esac
32290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_try") 2>&5
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest$ac_exeext'
32296 { (case "(($ac_try" in
32297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298 *) ac_try_echo=$ac_try;;
32299esac
32300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301 (eval "$ac_try") 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032305 eval "$as_ac_var=yes"
32306else
32307 echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
32310 eval "$as_ac_var=no"
32311fi
32312
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032313rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032314 conftest$ac_exeext conftest.$ac_ext
32315fi
32316ac_res=`eval echo '${'$as_ac_var'}'`
32317 { echo "$as_me:$LINENO: result: $ac_res" >&5
32318echo "${ECHO_T}$ac_res" >&6; }
32319if test `eval echo '${'$as_ac_var'}'` = yes; then
32320 cat >>confdefs.h <<_ACEOF
32321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32322_ACEOF
32323
32324fi
32325done
32326
32327
32328
32329
32330
32331for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32332do
32333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32338else
32339 cat >conftest.$ac_ext <<_ACEOF
32340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
32345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32347#define $ac_func innocuous_$ac_func
32348
32349/* System header to define __stub macros and hopefully few prototypes,
32350 which can conflict with char $ac_func (); below.
32351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32352 <limits.h> exists even on freestanding compilers. */
32353
32354#ifdef __STDC__
32355# include <limits.h>
32356#else
32357# include <assert.h>
32358#endif
32359
32360#undef $ac_func
32361
32362/* Override any GCC internal prototype to avoid an error.
32363 Use char because int might match the return type of a GCC
32364 builtin and then its argument prototype would still apply. */
32365#ifdef __cplusplus
32366extern "C"
32367#endif
32368char $ac_func ();
32369/* The GNU C library defines this for functions which it implements
32370 to always fail with ENOSYS. Some functions are actually named
32371 something starting with __ and the normal name is an alias. */
32372#if defined __stub_$ac_func || defined __stub___$ac_func
32373choke me
32374#endif
32375
32376int
32377main ()
32378{
32379return $ac_func ();
32380 ;
32381 return 0;
32382}
32383_ACEOF
32384rm -f conftest.$ac_objext conftest$ac_exeext
32385if { (ac_try="$ac_link"
32386case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32389esac
32390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_link") 2>conftest.er1
32392 ac_status=$?
32393 grep -v '^ *+' conftest.er1 >conftest.err
32394 rm -f conftest.er1
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest$ac_exeext'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32412esac
32413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32415 ac_status=$?
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032418 eval "$as_ac_var=yes"
32419else
32420 echo "$as_me: failed program was:" >&5
32421sed 's/^/| /' conftest.$ac_ext >&5
32422
32423 eval "$as_ac_var=no"
32424fi
32425
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032426rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032427 conftest$ac_exeext conftest.$ac_ext
32428fi
32429ac_res=`eval echo '${'$as_ac_var'}'`
32430 { echo "$as_me:$LINENO: result: $ac_res" >&5
32431echo "${ECHO_T}$ac_res" >&6; }
32432if test `eval echo '${'$as_ac_var'}'` = yes; then
32433 cat >>confdefs.h <<_ACEOF
32434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32435_ACEOF
32436
32437fi
32438done
32439
32440
32441
32442
32443
32444for ac_func in setjmp longjmp sigsetjmp siglongjmp
32445do
32446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32447{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32449if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32451else
32452 cat >conftest.$ac_ext <<_ACEOF
32453/* confdefs.h. */
32454_ACEOF
32455cat confdefs.h >>conftest.$ac_ext
32456cat >>conftest.$ac_ext <<_ACEOF
32457/* end confdefs.h. */
32458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32460#define $ac_func innocuous_$ac_func
32461
32462/* System header to define __stub macros and hopefully few prototypes,
32463 which can conflict with char $ac_func (); below.
32464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465 <limits.h> exists even on freestanding compilers. */
32466
32467#ifdef __STDC__
32468# include <limits.h>
32469#else
32470# include <assert.h>
32471#endif
32472
32473#undef $ac_func
32474
32475/* Override any GCC internal prototype to avoid an error.
32476 Use char because int might match the return type of a GCC
32477 builtin and then its argument prototype would still apply. */
32478#ifdef __cplusplus
32479extern "C"
32480#endif
32481char $ac_func ();
32482/* The GNU C library defines this for functions which it implements
32483 to always fail with ENOSYS. Some functions are actually named
32484 something starting with __ and the normal name is an alias. */
32485#if defined __stub_$ac_func || defined __stub___$ac_func
32486choke me
32487#endif
32488
32489int
32490main ()
32491{
32492return $ac_func ();
32493 ;
32494 return 0;
32495}
32496_ACEOF
32497rm -f conftest.$ac_objext conftest$ac_exeext
32498if { (ac_try="$ac_link"
32499case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32502esac
32503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_link") 2>conftest.er1
32505 ac_status=$?
32506 grep -v '^ *+' conftest.er1 >conftest.err
32507 rm -f conftest.er1
32508 cat conftest.err >&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032510 (exit $ac_status); } &&
32511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32512 { (case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32515esac
32516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; } &&
32521 { ac_try='test -s conftest$ac_exeext'
32522 { (case "(($ac_try" in
32523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32524 *) ac_try_echo=$ac_try;;
32525esac
32526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32527 (eval "$ac_try") 2>&5
32528 ac_status=$?
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032531 eval "$as_ac_var=yes"
32532else
32533 echo "$as_me: failed program was:" >&5
32534sed 's/^/| /' conftest.$ac_ext >&5
32535
32536 eval "$as_ac_var=no"
32537fi
32538
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032539rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032540 conftest$ac_exeext conftest.$ac_ext
32541fi
32542ac_res=`eval echo '${'$as_ac_var'}'`
32543 { echo "$as_me:$LINENO: result: $ac_res" >&5
32544echo "${ECHO_T}$ac_res" >&6; }
32545if test `eval echo '${'$as_ac_var'}'` = yes; then
32546 cat >>confdefs.h <<_ACEOF
32547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32548_ACEOF
32549
32550fi
32551done
32552
32553{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32554echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32555if test "${llvm_cv_c_printf_a+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32557else
32558 ac_ext=c
32559ac_cpp='$CPP $CPPFLAGS'
32560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563
32564 if test "$cross_compiling" = yes; then
32565 llvmac_cv_c_printf_a=no
32566else
32567 cat >conftest.$ac_ext <<_ACEOF
32568
32569 /* confdefs.h. */
32570_ACEOF
32571cat confdefs.h >>conftest.$ac_ext
32572cat >>conftest.$ac_ext <<_ACEOF
32573/* end confdefs.h. */
32574
32575#include <stdio.h>
32576#include <stdlib.h>
32577
32578int
32579main ()
32580{
32581
32582volatile double A, B;
32583char Buffer[100];
32584A = 1;
32585A /= 10.0;
32586sprintf(Buffer, "%a", A);
32587B = atof(Buffer);
32588if (A != B)
32589 return (1);
32590if (A != 0x1.999999999999ap-4)
32591 return (1);
32592return (0);
32593 ;
32594 return 0;
32595}
32596_ACEOF
32597rm -f conftest$ac_exeext
32598if { (ac_try="$ac_link"
32599case "(($ac_try" in
32600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601 *) ac_try_echo=$ac_try;;
32602esac
32603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 (eval "$ac_link") 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32608 { (case "(($ac_try" in
32609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610 *) ac_try_echo=$ac_try;;
32611esac
32612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 (eval "$ac_try") 2>&5
32614 ac_status=$?
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); }; }; then
32617 llvm_cv_c_printf_a=yes
32618else
32619 echo "$as_me: program exited with status $ac_status" >&5
32620echo "$as_me: failed program was:" >&5
32621sed 's/^/| /' conftest.$ac_ext >&5
32622
32623( exit $ac_status )
32624llvmac_cv_c_printf_a=no
32625fi
32626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32627fi
32628
32629
32630 ac_ext=c
32631ac_cpp='$CPP $CPPFLAGS'
32632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634ac_compiler_gnu=$ac_cv_c_compiler_gnu
32635
32636fi
32637{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32638echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32639 if test "$llvm_cv_c_printf_a" = "yes"; then
32640
32641cat >>confdefs.h <<\_ACEOF
32642#define HAVE_PRINTF_A 1
32643_ACEOF
32644
32645 fi
32646
32647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32648# for constant arguments. Useless!
32649{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32650echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32651if test "${ac_cv_working_alloca_h+set}" = set; then
32652 echo $ECHO_N "(cached) $ECHO_C" >&6
32653else
32654 cat >conftest.$ac_ext <<_ACEOF
32655/* confdefs.h. */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h. */
32660#include <alloca.h>
32661int
32662main ()
32663{
32664char *p = (char *) alloca (2 * sizeof (int));
32665 if (p) return 0;
32666 ;
32667 return 0;
32668}
32669_ACEOF
32670rm -f conftest.$ac_objext conftest$ac_exeext
32671if { (ac_try="$ac_link"
32672case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32675esac
32676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_link") 2>conftest.er1
32678 ac_status=$?
32679 grep -v '^ *+' conftest.er1 >conftest.err
32680 rm -f conftest.er1
32681 cat conftest.err >&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032683 (exit $ac_status); } &&
32684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32685 { (case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688esac
32689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_try") 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; } &&
32694 { ac_try='test -s conftest$ac_exeext'
32695 { (case "(($ac_try" in
32696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32698esac
32699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_try") 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032704 ac_cv_working_alloca_h=yes
32705else
32706 echo "$as_me: failed program was:" >&5
32707sed 's/^/| /' conftest.$ac_ext >&5
32708
32709 ac_cv_working_alloca_h=no
32710fi
32711
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032712rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032713 conftest$ac_exeext conftest.$ac_ext
32714fi
32715{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32716echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32717if test $ac_cv_working_alloca_h = yes; then
32718
32719cat >>confdefs.h <<\_ACEOF
32720#define HAVE_ALLOCA_H 1
32721_ACEOF
32722
32723fi
32724
32725{ echo "$as_me:$LINENO: checking for alloca" >&5
32726echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32727if test "${ac_cv_func_alloca_works+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729else
32730 cat >conftest.$ac_ext <<_ACEOF
32731/* confdefs.h. */
32732_ACEOF
32733cat confdefs.h >>conftest.$ac_ext
32734cat >>conftest.$ac_ext <<_ACEOF
32735/* end confdefs.h. */
32736#ifdef __GNUC__
32737# define alloca __builtin_alloca
32738#else
32739# ifdef _MSC_VER
32740# include <malloc.h>
32741# define alloca _alloca
32742# else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032743# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032744# include <alloca.h>
32745# else
32746# ifdef _AIX
32747 #pragma alloca
32748# else
32749# ifndef alloca /* predefined by HP cc +Olibcalls */
32750char *alloca ();
32751# endif
32752# endif
32753# endif
32754# endif
32755#endif
32756
32757int
32758main ()
32759{
32760char *p = (char *) alloca (1);
32761 if (p) return 0;
32762 ;
32763 return 0;
32764}
32765_ACEOF
32766rm -f conftest.$ac_objext conftest$ac_exeext
32767if { (ac_try="$ac_link"
32768case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32771esac
32772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_link") 2>conftest.er1
32774 ac_status=$?
32775 grep -v '^ *+' conftest.er1 >conftest.err
32776 rm -f conftest.er1
32777 cat conftest.err >&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032779 (exit $ac_status); } &&
32780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32781 { (case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784esac
32785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_try") 2>&5
32787 ac_status=$?
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; } &&
32790 { ac_try='test -s conftest$ac_exeext'
32791 { (case "(($ac_try" in
32792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793 *) ac_try_echo=$ac_try;;
32794esac
32795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_try") 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032800 ac_cv_func_alloca_works=yes
32801else
32802 echo "$as_me: failed program was:" >&5
32803sed 's/^/| /' conftest.$ac_ext >&5
32804
32805 ac_cv_func_alloca_works=no
32806fi
32807
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032808rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032809 conftest$ac_exeext conftest.$ac_ext
32810fi
32811{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32812echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32813
32814if test $ac_cv_func_alloca_works = yes; then
32815
32816cat >>confdefs.h <<\_ACEOF
32817#define HAVE_ALLOCA 1
32818_ACEOF
32819
32820else
32821 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32822# that cause trouble. Some versions do not even contain alloca or
32823# contain a buggy version. If you still want to use their alloca,
32824# use ar to extract alloca.o from them instead of compiling alloca.c.
32825
32826ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32827
32828cat >>confdefs.h <<\_ACEOF
32829#define C_ALLOCA 1
32830_ACEOF
32831
32832
32833{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32834echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32835if test "${ac_cv_os_cray+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#if defined CRAY && ! defined CRAY2
32845webecray
32846#else
32847wenotbecray
32848#endif
32849
32850_ACEOF
32851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32852 $EGREP "webecray" >/dev/null 2>&1; then
32853 ac_cv_os_cray=yes
32854else
32855 ac_cv_os_cray=no
32856fi
32857rm -f conftest*
32858
32859fi
32860{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32861echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32862if test $ac_cv_os_cray = yes; then
32863 for ac_func in _getb67 GETB67 getb67; do
32864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32865{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32867if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32868 echo $ECHO_N "(cached) $ECHO_C" >&6
32869else
32870 cat >conftest.$ac_ext <<_ACEOF
32871/* confdefs.h. */
32872_ACEOF
32873cat confdefs.h >>conftest.$ac_ext
32874cat >>conftest.$ac_ext <<_ACEOF
32875/* end confdefs.h. */
32876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32878#define $ac_func innocuous_$ac_func
32879
32880/* System header to define __stub macros and hopefully few prototypes,
32881 which can conflict with char $ac_func (); below.
32882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32883 <limits.h> exists even on freestanding compilers. */
32884
32885#ifdef __STDC__
32886# include <limits.h>
32887#else
32888# include <assert.h>
32889#endif
32890
32891#undef $ac_func
32892
32893/* Override any GCC internal prototype to avoid an error.
32894 Use char because int might match the return type of a GCC
32895 builtin and then its argument prototype would still apply. */
32896#ifdef __cplusplus
32897extern "C"
32898#endif
32899char $ac_func ();
32900/* The GNU C library defines this for functions which it implements
32901 to always fail with ENOSYS. Some functions are actually named
32902 something starting with __ and the normal name is an alias. */
32903#if defined __stub_$ac_func || defined __stub___$ac_func
32904choke me
32905#endif
32906
32907int
32908main ()
32909{
32910return $ac_func ();
32911 ;
32912 return 0;
32913}
32914_ACEOF
32915rm -f conftest.$ac_objext conftest$ac_exeext
32916if { (ac_try="$ac_link"
32917case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32920esac
32921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_link") 2>conftest.er1
32923 ac_status=$?
32924 grep -v '^ *+' conftest.er1 >conftest.err
32925 rm -f conftest.er1
32926 cat conftest.err >&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032928 (exit $ac_status); } &&
32929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32930 { (case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933esac
32934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_try") 2>&5
32936 ac_status=$?
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; } &&
32939 { ac_try='test -s conftest$ac_exeext'
32940 { (case "(($ac_try" in
32941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32942 *) ac_try_echo=$ac_try;;
32943esac
32944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945 (eval "$ac_try") 2>&5
32946 ac_status=$?
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032949 eval "$as_ac_var=yes"
32950else
32951 echo "$as_me: failed program was:" >&5
32952sed 's/^/| /' conftest.$ac_ext >&5
32953
32954 eval "$as_ac_var=no"
32955fi
32956
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032957rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032958 conftest$ac_exeext conftest.$ac_ext
32959fi
32960ac_res=`eval echo '${'$as_ac_var'}'`
32961 { echo "$as_me:$LINENO: result: $ac_res" >&5
32962echo "${ECHO_T}$ac_res" >&6; }
32963if test `eval echo '${'$as_ac_var'}'` = yes; then
32964
32965cat >>confdefs.h <<_ACEOF
32966#define CRAY_STACKSEG_END $ac_func
32967_ACEOF
32968
32969 break
32970fi
32971
32972 done
32973fi
32974
32975{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32976echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32977if test "${ac_cv_c_stack_direction+set}" = set; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32979else
32980 if test "$cross_compiling" = yes; then
32981 ac_cv_c_stack_direction=0
32982else
32983 cat >conftest.$ac_ext <<_ACEOF
32984/* confdefs.h. */
32985_ACEOF
32986cat confdefs.h >>conftest.$ac_ext
32987cat >>conftest.$ac_ext <<_ACEOF
32988/* end confdefs.h. */
32989$ac_includes_default
32990int
32991find_stack_direction ()
32992{
32993 static char *addr = 0;
32994 auto char dummy;
32995 if (addr == 0)
32996 {
32997 addr = &dummy;
32998 return find_stack_direction ();
32999 }
33000 else
33001 return (&dummy > addr) ? 1 : -1;
33002}
33003
33004int
33005main ()
33006{
33007 return find_stack_direction () < 0;
33008}
33009_ACEOF
33010rm -f conftest$ac_exeext
33011if { (ac_try="$ac_link"
33012case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_link") 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33021 { (case "(($ac_try" in
33022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33024esac
33025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_try") 2>&5
33027 ac_status=$?
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
33030 ac_cv_c_stack_direction=1
33031else
33032 echo "$as_me: program exited with status $ac_status" >&5
33033echo "$as_me: failed program was:" >&5
33034sed 's/^/| /' conftest.$ac_ext >&5
33035
33036( exit $ac_status )
33037ac_cv_c_stack_direction=-1
33038fi
33039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33040fi
33041
33042
33043fi
33044{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33045echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33046
33047cat >>confdefs.h <<_ACEOF
33048#define STACK_DIRECTION $ac_cv_c_stack_direction
33049_ACEOF
33050
33051
33052fi
33053
33054
33055{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33056echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33057if test "${ac_cv_func_rand48+set}" = set; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33059else
33060 ac_ext=cpp
33061ac_cpp='$CXXCPP $CPPFLAGS'
33062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33065
33066 cat >conftest.$ac_ext <<_ACEOF
33067/* confdefs.h. */
33068_ACEOF
33069cat confdefs.h >>conftest.$ac_ext
33070cat >>conftest.$ac_ext <<_ACEOF
33071/* end confdefs.h. */
33072#include <stdlib.h>
33073int
33074main ()
33075{
33076srand48(0);lrand48();drand48();
33077 ;
33078 return 0;
33079}
33080_ACEOF
33081rm -f conftest.$ac_objext
33082if { (ac_try="$ac_compile"
33083case "(($ac_try" in
33084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085 *) ac_try_echo=$ac_try;;
33086esac
33087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_compile") 2>conftest.er1
33089 ac_status=$?
33090 grep -v '^ *+' conftest.er1 >conftest.err
33091 rm -f conftest.er1
33092 cat conftest.err >&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033094 (exit $ac_status); } &&
33095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33096 { (case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33099esac
33100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_try") 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; } &&
33105 { ac_try='test -s conftest.$ac_objext'
33106 { (case "(($ac_try" in
33107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108 *) ac_try_echo=$ac_try;;
33109esac
33110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111 (eval "$ac_try") 2>&5
33112 ac_status=$?
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033115 ac_cv_func_rand48=yes
33116else
33117 echo "$as_me: failed program was:" >&5
33118sed 's/^/| /' conftest.$ac_ext >&5
33119
33120 ac_cv_func_rand48=no
33121fi
33122
33123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124 ac_ext=c
33125ac_cpp='$CPP $CPPFLAGS'
33126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33128ac_compiler_gnu=$ac_cv_c_compiler_gnu
33129
33130fi
33131{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33132echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33133
33134if test "$ac_cv_func_rand48" = "yes" ; then
33135
33136cat >>confdefs.h <<\_ACEOF
33137#define HAVE_RAND48 1
33138_ACEOF
33139
33140fi
33141
33142
33143{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33144echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33145if test "${ac_cv_cxx_namespaces+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147else
33148 ac_ext=cpp
33149ac_cpp='$CXXCPP $CPPFLAGS'
33150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33153
33154 cat >conftest.$ac_ext <<_ACEOF
33155/* confdefs.h. */
33156_ACEOF
33157cat confdefs.h >>conftest.$ac_ext
33158cat >>conftest.$ac_ext <<_ACEOF
33159/* end confdefs.h. */
33160namespace Outer { namespace Inner { int i = 0; }}
33161int
33162main ()
33163{
33164using namespace Outer::Inner; return i;
33165 ;
33166 return 0;
33167}
33168_ACEOF
33169rm -f conftest.$ac_objext
33170if { (ac_try="$ac_compile"
33171case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174esac
33175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33177 ac_status=$?
33178 grep -v '^ *+' conftest.er1 >conftest.err
33179 rm -f conftest.er1
33180 cat conftest.err >&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033182 (exit $ac_status); } &&
33183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184 { (case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33187esac
33188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_try") 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; } &&
33193 { ac_try='test -s conftest.$ac_objext'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197esac
33198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033203 ac_cv_cxx_namespaces=yes
33204else
33205 echo "$as_me: failed program was:" >&5
33206sed 's/^/| /' conftest.$ac_ext >&5
33207
33208 ac_cv_cxx_namespaces=no
33209fi
33210
33211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33212 ac_ext=c
33213ac_cpp='$CPP $CPPFLAGS'
33214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216ac_compiler_gnu=$ac_cv_c_compiler_gnu
33217
33218
33219fi
33220{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33221echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33222if test "$ac_cv_cxx_namespaces" = yes; then
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_NAMESPACES
33226_ACEOF
33227
33228fi
33229
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033230{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33231echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33232if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33233 echo $ECHO_N "(cached) $ECHO_C" >&6
33234else
33235
33236 ac_ext=cpp
33237ac_cpp='$CXXCPP $CPPFLAGS'
33238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
33242 cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
33248#include <iterator>
33249#ifdef HAVE_NAMESPACES
33250using namespace std;
33251#endif
33252int
33253main ()
33254{
33255iterator<int,int,int> t; return 0;
33256 ;
33257 return 0;
33258}
33259_ACEOF
33260rm -f conftest.$ac_objext
33261if { (ac_try="$ac_compile"
33262case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265esac
33266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
33268 ac_status=$?
33269 grep -v '^ *+' conftest.er1 >conftest.err
33270 rm -f conftest.er1
33271 cat conftest.err >&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033273 (exit $ac_status); } &&
33274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278esac
33279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33288esac
33289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033294 ac_cv_cxx_have_std_iterator=yes
33295else
33296 echo "$as_me: failed program was:" >&5
33297sed 's/^/| /' conftest.$ac_ext >&5
33298
33299 ac_cv_cxx_have_std_iterator=no
33300fi
33301
33302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 ac_ext=c
33304ac_cpp='$CPP $CPPFLAGS'
33305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308
33309
33310fi
33311{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33312echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33313if test "$ac_cv_cxx_have_std_iterator" = yes
33314then
33315
33316cat >>confdefs.h <<\_ACEOF
33317#define HAVE_STD_ITERATOR 1
33318_ACEOF
33319
33320else
33321
33322cat >>confdefs.h <<\_ACEOF
33323#define HAVE_STD_ITERATOR 0
33324_ACEOF
33325
33326fi
33327
33328{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33329echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33330if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33331 echo $ECHO_N "(cached) $ECHO_C" >&6
33332else
33333
33334 ac_ext=cpp
33335ac_cpp='$CXXCPP $CPPFLAGS'
33336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33339
33340 cat >conftest.$ac_ext <<_ACEOF
33341/* confdefs.h. */
33342_ACEOF
33343cat confdefs.h >>conftest.$ac_ext
33344cat >>conftest.$ac_ext <<_ACEOF
33345/* end confdefs.h. */
33346#include <iterator>
33347#ifdef HAVE_NAMESPACES
33348using namespace std;
33349#endif
33350int
33351main ()
33352{
33353bidirectional_iterator<int,int> t; return 0;
33354 ;
33355 return 0;
33356}
33357_ACEOF
33358rm -f conftest.$ac_objext
33359if { (ac_try="$ac_compile"
33360case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33363esac
33364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_compile") 2>conftest.er1
33366 ac_status=$?
33367 grep -v '^ *+' conftest.er1 >conftest.err
33368 rm -f conftest.er1
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033371 (exit $ac_status); } &&
33372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33373 { (case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376esac
33377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_try") 2>&5
33379 ac_status=$?
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; } &&
33382 { ac_try='test -s conftest.$ac_objext'
33383 { (case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33386esac
33387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033392 ac_cv_cxx_have_bi_iterator=yes
33393else
33394 echo "$as_me: failed program was:" >&5
33395sed 's/^/| /' conftest.$ac_ext >&5
33396
33397 ac_cv_cxx_have_bi_iterator=no
33398fi
33399
33400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33401 ac_ext=c
33402ac_cpp='$CPP $CPPFLAGS'
33403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33405ac_compiler_gnu=$ac_cv_c_compiler_gnu
33406
33407
33408fi
33409{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33410echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33411if test "$ac_cv_cxx_have_bi_iterator" = yes
33412then
33413
33414cat >>confdefs.h <<\_ACEOF
33415#define HAVE_BI_ITERATOR 1
33416_ACEOF
33417
33418else
33419
33420cat >>confdefs.h <<\_ACEOF
33421#define HAVE_BI_ITERATOR 0
33422_ACEOF
33423
33424fi
33425
33426{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33427echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33428if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33429 echo $ECHO_N "(cached) $ECHO_C" >&6
33430else
33431
33432 ac_ext=cpp
33433ac_cpp='$CXXCPP $CPPFLAGS'
33434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33437
33438 cat >conftest.$ac_ext <<_ACEOF
33439/* confdefs.h. */
33440_ACEOF
33441cat confdefs.h >>conftest.$ac_ext
33442cat >>conftest.$ac_ext <<_ACEOF
33443/* end confdefs.h. */
33444#include <iterator>
33445#ifdef HAVE_NAMESPACES
33446using namespace std;
33447#endif
33448int
33449main ()
33450{
33451forward_iterator<int,int> t; return 0;
33452 ;
33453 return 0;
33454}
33455_ACEOF
33456rm -f conftest.$ac_objext
33457if { (ac_try="$ac_compile"
33458case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33461esac
33462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_compile") 2>conftest.er1
33464 ac_status=$?
33465 grep -v '^ *+' conftest.er1 >conftest.err
33466 rm -f conftest.er1
33467 cat conftest.err >&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033469 (exit $ac_status); } &&
33470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33471 { (case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33474esac
33475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_try") 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; } &&
33480 { ac_try='test -s conftest.$ac_objext'
33481 { (case "(($ac_try" in
33482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483 *) ac_try_echo=$ac_try;;
33484esac
33485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486 (eval "$ac_try") 2>&5
33487 ac_status=$?
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033490 ac_cv_cxx_have_fwd_iterator=yes
33491else
33492 echo "$as_me: failed program was:" >&5
33493sed 's/^/| /' conftest.$ac_ext >&5
33494
33495 ac_cv_cxx_have_fwd_iterator=no
33496fi
33497
33498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33499 ac_ext=c
33500ac_cpp='$CPP $CPPFLAGS'
33501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503ac_compiler_gnu=$ac_cv_c_compiler_gnu
33504
33505
33506fi
33507{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33508echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33509if test "$ac_cv_cxx_have_fwd_iterator" = yes
33510then
33511
33512cat >>confdefs.h <<\_ACEOF
33513#define HAVE_FWD_ITERATOR 1
33514_ACEOF
33515
33516else
33517
33518cat >>confdefs.h <<\_ACEOF
33519#define HAVE_FWD_ITERATOR 0
33520_ACEOF
33521
33522fi
33523
33524
33525{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33526echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33527if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33529else
33530 ac_ext=cpp
33531ac_cpp='$CXXCPP $CPPFLAGS'
33532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33535
33536 cat >conftest.$ac_ext <<_ACEOF
33537/* confdefs.h. */
33538_ACEOF
33539cat confdefs.h >>conftest.$ac_ext
33540cat >>conftest.$ac_ext <<_ACEOF
33541/* end confdefs.h. */
33542#include <math.h>
33543int
33544main ()
33545{
33546float f; isnan(f);
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033564 (exit $ac_status); } &&
33565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566 { (case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33569esac
33570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_try") 2>&5
33572 ac_status=$?
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try='test -s conftest.$ac_objext'
33576 { (case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33579esac
33580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033585 ac_cv_func_isnan_in_math_h=yes
33586else
33587 echo "$as_me: failed program was:" >&5
33588sed 's/^/| /' conftest.$ac_ext >&5
33589
33590 ac_cv_func_isnan_in_math_h=no
33591fi
33592
33593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33594 ac_ext=c
33595ac_cpp='$CPP $CPPFLAGS'
33596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598ac_compiler_gnu=$ac_cv_c_compiler_gnu
33599
33600fi
33601{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33602echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33603
33604
33605if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33606
33607cat >>confdefs.h <<\_ACEOF
33608#define HAVE_ISNAN_IN_MATH_H 1
33609_ACEOF
33610
33611fi
33612
33613{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33614echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33615if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617else
33618 ac_ext=cpp
33619ac_cpp='$CXXCPP $CPPFLAGS'
33620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33623
33624 cat >conftest.$ac_ext <<_ACEOF
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
33630#include <cmath>
33631int
33632main ()
33633{
33634float f; isnan(f);
33635 ;
33636 return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext
33640if { (ac_try="$ac_compile"
33641case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_compile") 2>conftest.er1
33647 ac_status=$?
33648 grep -v '^ *+' conftest.er1 >conftest.err
33649 rm -f conftest.er1
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654 { (case "(($ac_try" in
33655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33657esac
33658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_try") 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest.$ac_objext'
33664 { (case "(($ac_try" in
33665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33667esac
33668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_try") 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033673 ac_cv_func_isnan_in_cmath=yes
33674else
33675 echo "$as_me: failed program was:" >&5
33676sed 's/^/| /' conftest.$ac_ext >&5
33677
33678 ac_cv_func_isnan_in_cmath=no
33679fi
33680
33681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682 ac_ext=c
33683ac_cpp='$CPP $CPPFLAGS'
33684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687
33688fi
33689{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33690echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33691
33692if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33693
33694cat >>confdefs.h <<\_ACEOF
33695#define HAVE_ISNAN_IN_CMATH 1
33696_ACEOF
33697
33698fi
33699
33700{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33701echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33702if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33703 echo $ECHO_N "(cached) $ECHO_C" >&6
33704else
33705 ac_ext=cpp
33706ac_cpp='$CXXCPP $CPPFLAGS'
33707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33710
33711 cat >conftest.$ac_ext <<_ACEOF
33712/* confdefs.h. */
33713_ACEOF
33714cat confdefs.h >>conftest.$ac_ext
33715cat >>conftest.$ac_ext <<_ACEOF
33716/* end confdefs.h. */
33717#include <cmath>
33718int
33719main ()
33720{
33721float f; std::isnan(f);
33722 ;
33723 return 0;
33724}
33725_ACEOF
33726rm -f conftest.$ac_objext
33727if { (ac_try="$ac_compile"
33728case "(($ac_try" in
33729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33730 *) ac_try_echo=$ac_try;;
33731esac
33732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33733 (eval "$ac_compile") 2>conftest.er1
33734 ac_status=$?
33735 grep -v '^ *+' conftest.er1 >conftest.err
33736 rm -f conftest.er1
33737 cat conftest.err >&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033739 (exit $ac_status); } &&
33740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33741 { (case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33744esac
33745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746 (eval "$ac_try") 2>&5
33747 ac_status=$?
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; } &&
33750 { ac_try='test -s conftest.$ac_objext'
33751 { (case "(($ac_try" in
33752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753 *) ac_try_echo=$ac_try;;
33754esac
33755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756 (eval "$ac_try") 2>&5
33757 ac_status=$?
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033760 ac_cv_func_std_isnan_in_cmath=yes
33761else
33762 echo "$as_me: failed program was:" >&5
33763sed 's/^/| /' conftest.$ac_ext >&5
33764
33765 ac_cv_func_std_isnan_in_cmath=no
33766fi
33767
33768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33769 ac_ext=c
33770ac_cpp='$CPP $CPPFLAGS'
33771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33773ac_compiler_gnu=$ac_cv_c_compiler_gnu
33774
33775fi
33776{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33777echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33778
33779if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33780
33781cat >>confdefs.h <<\_ACEOF
33782#define HAVE_STD_ISNAN_IN_CMATH 1
33783_ACEOF
33784
33785fi
33786
33787
33788{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33789echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33790if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33792else
33793 ac_ext=cpp
33794ac_cpp='$CXXCPP $CPPFLAGS'
33795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33798
33799 cat >conftest.$ac_ext <<_ACEOF
33800/* confdefs.h. */
33801_ACEOF
33802cat confdefs.h >>conftest.$ac_ext
33803cat >>conftest.$ac_ext <<_ACEOF
33804/* end confdefs.h. */
33805#include <math.h>
33806int
33807main ()
33808{
33809float f; isinf(f);
33810 ;
33811 return 0;
33812}
33813_ACEOF
33814rm -f conftest.$ac_objext
33815if { (ac_try="$ac_compile"
33816case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819esac
33820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33822 ac_status=$?
33823 grep -v '^ *+' conftest.er1 >conftest.err
33824 rm -f conftest.er1
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033827 (exit $ac_status); } &&
33828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829 { (case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33832esac
33833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_try") 2>&5
33835 ac_status=$?
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; } &&
33838 { ac_try='test -s conftest.$ac_objext'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33842esac
33843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033848 ac_cv_func_isinf_in_math_h=yes
33849else
33850 echo "$as_me: failed program was:" >&5
33851sed 's/^/| /' conftest.$ac_ext >&5
33852
33853 ac_cv_func_isinf_in_math_h=no
33854fi
33855
33856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33857 ac_ext=c
33858ac_cpp='$CPP $CPPFLAGS'
33859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861ac_compiler_gnu=$ac_cv_c_compiler_gnu
33862
33863fi
33864{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33865echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33866
33867if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33868
33869cat >>confdefs.h <<\_ACEOF
33870#define HAVE_ISINF_IN_MATH_H 1
33871_ACEOF
33872
33873fi
33874
33875{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33876echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33877if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33878 echo $ECHO_N "(cached) $ECHO_C" >&6
33879else
33880 ac_ext=cpp
33881ac_cpp='$CXXCPP $CPPFLAGS'
33882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33885
33886 cat >conftest.$ac_ext <<_ACEOF
33887/* confdefs.h. */
33888_ACEOF
33889cat confdefs.h >>conftest.$ac_ext
33890cat >>conftest.$ac_ext <<_ACEOF
33891/* end confdefs.h. */
33892#include <cmath>
33893int
33894main ()
33895{
33896float f; isinf(f);
33897 ;
33898 return 0;
33899}
33900_ACEOF
33901rm -f conftest.$ac_objext
33902if { (ac_try="$ac_compile"
33903case "(($ac_try" in
33904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33905 *) ac_try_echo=$ac_try;;
33906esac
33907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33908 (eval "$ac_compile") 2>conftest.er1
33909 ac_status=$?
33910 grep -v '^ *+' conftest.er1 >conftest.err
33911 rm -f conftest.er1
33912 cat conftest.err >&5
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033914 (exit $ac_status); } &&
33915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33916 { (case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33919esac
33920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_try") 2>&5
33922 ac_status=$?
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); }; } &&
33925 { ac_try='test -s conftest.$ac_objext'
33926 { (case "(($ac_try" in
33927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928 *) ac_try_echo=$ac_try;;
33929esac
33930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931 (eval "$ac_try") 2>&5
33932 ac_status=$?
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033935 ac_cv_func_isinf_in_cmath=yes
33936else
33937 echo "$as_me: failed program was:" >&5
33938sed 's/^/| /' conftest.$ac_ext >&5
33939
33940 ac_cv_func_isinf_in_cmath=no
33941fi
33942
33943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944 ac_ext=c
33945ac_cpp='$CPP $CPPFLAGS'
33946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33948ac_compiler_gnu=$ac_cv_c_compiler_gnu
33949
33950fi
33951{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33952echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33953
33954if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33955
33956cat >>confdefs.h <<\_ACEOF
33957#define HAVE_ISINF_IN_CMATH 1
33958_ACEOF
33959
33960fi
33961
33962{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33963echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33964if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33965 echo $ECHO_N "(cached) $ECHO_C" >&6
33966else
33967 ac_ext=cpp
33968ac_cpp='$CXXCPP $CPPFLAGS'
33969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33972
33973 cat >conftest.$ac_ext <<_ACEOF
33974/* confdefs.h. */
33975_ACEOF
33976cat confdefs.h >>conftest.$ac_ext
33977cat >>conftest.$ac_ext <<_ACEOF
33978/* end confdefs.h. */
33979#include <cmath>
33980int
33981main ()
33982{
33983float f; std::isinf(f)}
33984 ;
33985 return 0;
33986}
33987_ACEOF
33988rm -f conftest.$ac_objext
33989if { (ac_try="$ac_compile"
33990case "(($ac_try" in
33991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33992 *) ac_try_echo=$ac_try;;
33993esac
33994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33995 (eval "$ac_compile") 2>conftest.er1
33996 ac_status=$?
33997 grep -v '^ *+' conftest.er1 >conftest.err
33998 rm -f conftest.er1
33999 cat conftest.err >&5
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034001 (exit $ac_status); } &&
34002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34003 { (case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34006esac
34007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_try") 2>&5
34009 ac_status=$?
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; } &&
34012 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034022 ac_cv_func_std_isinf_in_cmath=yes
34023else
34024 echo "$as_me: failed program was:" >&5
34025sed 's/^/| /' conftest.$ac_ext >&5
34026
34027 ac_cv_func_std_isinf_in_cmath=no
34028fi
34029
34030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34031 ac_ext=c
34032ac_cpp='$CPP $CPPFLAGS'
34033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34035ac_compiler_gnu=$ac_cv_c_compiler_gnu
34036
34037fi
34038{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34039echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34040
34041if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34042
34043cat >>confdefs.h <<\_ACEOF
34044#define HAVE_STD_ISINF_IN_CMATH 1
34045_ACEOF
34046
34047fi
34048
34049{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34050echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34051if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34052 echo $ECHO_N "(cached) $ECHO_C" >&6
34053else
34054 ac_ext=cpp
34055ac_cpp='$CXXCPP $CPPFLAGS'
34056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34059
34060 cat >conftest.$ac_ext <<_ACEOF
34061/* confdefs.h. */
34062_ACEOF
34063cat confdefs.h >>conftest.$ac_ext
34064cat >>conftest.$ac_ext <<_ACEOF
34065/* end confdefs.h. */
34066#include <ieeefp.h>
34067int
34068main ()
34069{
34070float f; finite(f);
34071 ;
34072 return 0;
34073}
34074_ACEOF
34075rm -f conftest.$ac_objext
34076if { (ac_try="$ac_compile"
34077case "(($ac_try" in
34078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079 *) ac_try_echo=$ac_try;;
34080esac
34081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082 (eval "$ac_compile") 2>conftest.er1
34083 ac_status=$?
34084 grep -v '^ *+' conftest.er1 >conftest.err
34085 rm -f conftest.er1
34086 cat conftest.err >&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034088 (exit $ac_status); } &&
34089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34090 { (case "(($ac_try" in
34091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092 *) ac_try_echo=$ac_try;;
34093esac
34094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_try") 2>&5
34096 ac_status=$?
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; } &&
34099 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034109 ac_cv_func_finite_in_ieeefp_h=yes
34110else
34111 echo "$as_me: failed program was:" >&5
34112sed 's/^/| /' conftest.$ac_ext >&5
34113
34114 ac_cv_func_finite_in_ieeefp_h=no
34115fi
34116
34117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34118 ac_ext=c
34119ac_cpp='$CPP $CPPFLAGS'
34120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34122ac_compiler_gnu=$ac_cv_c_compiler_gnu
34123
34124fi
34125{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34126echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34127
34128if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34129
34130cat >>confdefs.h <<\_ACEOF
34131#define HAVE_FINITE_IN_IEEEFP_H 1
34132_ACEOF
34133
34134fi
34135
34136
34137
34138if test "$llvm_cv_platform_type" = "Unix" ; then
34139
34140
34141for ac_header in stdlib.h unistd.h
34142do
34143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
34149fi
34150ac_res=`eval echo '${'$as_ac_Header'}'`
34151 { echo "$as_me:$LINENO: result: $ac_res" >&5
34152echo "${ECHO_T}$ac_res" >&6; }
34153else
34154 # Is the header compilable?
34155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34157cat >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$ac_includes_default
34164#include <$ac_header>
34165_ACEOF
34166rm -f conftest.$ac_objext
34167if { (ac_try="$ac_compile"
34168case "(($ac_try" in
34169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170 *) ac_try_echo=$ac_try;;
34171esac
34172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173 (eval "$ac_compile") 2>conftest.er1
34174 ac_status=$?
34175 grep -v '^ *+' conftest.er1 >conftest.err
34176 rm -f conftest.er1
34177 cat conftest.err >&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034179 (exit $ac_status); } &&
34180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34181 { (case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34184esac
34185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_try") 2>&5
34187 ac_status=$?
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
34190 { ac_try='test -s conftest.$ac_objext'
34191 { (case "(($ac_try" in
34192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34193 *) ac_try_echo=$ac_try;;
34194esac
34195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34196 (eval "$ac_try") 2>&5
34197 ac_status=$?
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034200 ac_header_compiler=yes
34201else
34202 echo "$as_me: failed program was:" >&5
34203sed 's/^/| /' conftest.$ac_ext >&5
34204
34205 ac_header_compiler=no
34206fi
34207
34208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34210echo "${ECHO_T}$ac_header_compiler" >&6; }
34211
34212# Is the header present?
34213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34215cat >conftest.$ac_ext <<_ACEOF
34216/* confdefs.h. */
34217_ACEOF
34218cat confdefs.h >>conftest.$ac_ext
34219cat >>conftest.$ac_ext <<_ACEOF
34220/* end confdefs.h. */
34221#include <$ac_header>
34222_ACEOF
34223if { (ac_try="$ac_cpp conftest.$ac_ext"
34224case "(($ac_try" in
34225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34226 *) ac_try_echo=$ac_try;;
34227esac
34228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34230 ac_status=$?
34231 grep -v '^ *+' conftest.er1 >conftest.err
34232 rm -f conftest.er1
34233 cat conftest.err >&5
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034235 (exit $ac_status); } >/dev/null; then
34236 if test -s conftest.err; then
34237 ac_cpp_err=$ac_c_preproc_warn_flag
34238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34239 else
34240 ac_cpp_err=
34241 fi
34242else
34243 ac_cpp_err=yes
34244fi
34245if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034246 ac_header_preproc=yes
34247else
34248 echo "$as_me: failed program was:" >&5
34249sed 's/^/| /' conftest.$ac_ext >&5
34250
34251 ac_header_preproc=no
34252fi
34253
34254rm -f conftest.err conftest.$ac_ext
34255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34256echo "${ECHO_T}$ac_header_preproc" >&6; }
34257
34258# So? What about this header?
34259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34260 yes:no: )
34261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34265 ac_header_preproc=yes
34266 ;;
34267 no:yes:* )
34268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34275echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34280 ( cat <<\_ASBOX
34281## ----------------------------------- ##
34282## Report this to llvmbugs@cs.uiuc.edu ##
34283## ----------------------------------- ##
34284_ASBOX
34285 ) | sed "s/^/$as_me: WARNING: /" >&2
34286 ;;
34287esac
34288{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34291 echo $ECHO_N "(cached) $ECHO_C" >&6
34292else
34293 eval "$as_ac_Header=\$ac_header_preproc"
34294fi
34295ac_res=`eval echo '${'$as_ac_Header'}'`
34296 { echo "$as_me:$LINENO: result: $ac_res" >&5
34297echo "${ECHO_T}$ac_res" >&6; }
34298
34299fi
34300if test `eval echo '${'$as_ac_Header'}'` = yes; then
34301 cat >>confdefs.h <<_ACEOF
34302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34303_ACEOF
34304
34305fi
34306
34307done
34308
34309
34310for ac_func in getpagesize
34311do
34312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34313{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34316 echo $ECHO_N "(cached) $ECHO_C" >&6
34317else
34318 cat >conftest.$ac_ext <<_ACEOF
34319/* confdefs.h. */
34320_ACEOF
34321cat confdefs.h >>conftest.$ac_ext
34322cat >>conftest.$ac_ext <<_ACEOF
34323/* end confdefs.h. */
34324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34326#define $ac_func innocuous_$ac_func
34327
34328/* System header to define __stub macros and hopefully few prototypes,
34329 which can conflict with char $ac_func (); below.
34330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34331 <limits.h> exists even on freestanding compilers. */
34332
34333#ifdef __STDC__
34334# include <limits.h>
34335#else
34336# include <assert.h>
34337#endif
34338
34339#undef $ac_func
34340
34341/* Override any GCC internal prototype to avoid an error.
34342 Use char because int might match the return type of a GCC
34343 builtin and then its argument prototype would still apply. */
34344#ifdef __cplusplus
34345extern "C"
34346#endif
34347char $ac_func ();
34348/* The GNU C library defines this for functions which it implements
34349 to always fail with ENOSYS. Some functions are actually named
34350 something starting with __ and the normal name is an alias. */
34351#if defined __stub_$ac_func || defined __stub___$ac_func
34352choke me
34353#endif
34354
34355int
34356main ()
34357{
34358return $ac_func ();
34359 ;
34360 return 0;
34361}
34362_ACEOF
34363rm -f conftest.$ac_objext conftest$ac_exeext
34364if { (ac_try="$ac_link"
34365case "(($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_link") 2>conftest.er1
34371 ac_status=$?
34372 grep -v '^ *+' conftest.er1 >conftest.err
34373 rm -f conftest.er1
34374 cat conftest.err >&5
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034376 (exit $ac_status); } &&
34377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34378 { (case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34381esac
34382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_try") 2>&5
34384 ac_status=$?
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); }; } &&
34387 { ac_try='test -s conftest$ac_exeext'
34388 { (case "(($ac_try" in
34389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390 *) ac_try_echo=$ac_try;;
34391esac
34392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_try") 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034397 eval "$as_ac_var=yes"
34398else
34399 echo "$as_me: failed program was:" >&5
34400sed 's/^/| /' conftest.$ac_ext >&5
34401
34402 eval "$as_ac_var=no"
34403fi
34404
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034405rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034406 conftest$ac_exeext conftest.$ac_ext
34407fi
34408ac_res=`eval echo '${'$as_ac_var'}'`
34409 { echo "$as_me:$LINENO: result: $ac_res" >&5
34410echo "${ECHO_T}$ac_res" >&6; }
34411if test `eval echo '${'$as_ac_var'}'` = yes; then
34412 cat >>confdefs.h <<_ACEOF
34413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34414_ACEOF
34415
34416fi
34417done
34418
34419{ echo "$as_me:$LINENO: checking for working mmap" >&5
34420echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34421if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34422 echo $ECHO_N "(cached) $ECHO_C" >&6
34423else
34424 if test "$cross_compiling" = yes; then
34425 ac_cv_func_mmap_fixed_mapped=no
34426else
34427 cat >conftest.$ac_ext <<_ACEOF
34428/* confdefs.h. */
34429_ACEOF
34430cat confdefs.h >>conftest.$ac_ext
34431cat >>conftest.$ac_ext <<_ACEOF
34432/* end confdefs.h. */
34433$ac_includes_default
34434/* malloc might have been renamed as rpl_malloc. */
34435#undef malloc
34436
34437/* Thanks to Mike Haertel and Jim Avera for this test.
34438 Here is a matrix of mmap possibilities:
34439 mmap private not fixed
34440 mmap private fixed at somewhere currently unmapped
34441 mmap private fixed at somewhere already mapped
34442 mmap shared not fixed
34443 mmap shared fixed at somewhere currently unmapped
34444 mmap shared fixed at somewhere already mapped
34445 For private mappings, we should verify that changes cannot be read()
34446 back from the file, nor mmap's back from the file at a different
34447 address. (There have been systems where private was not correctly
34448 implemented like the infamous i386 svr4.0, and systems where the
34449 VM page cache was not coherent with the file system buffer cache
34450 like early versions of FreeBSD and possibly contemporary NetBSD.)
34451 For shared mappings, we should conversely verify that changes get
34452 propagated back to all the places they're supposed to be.
34453
34454 Grep wants private fixed already mapped.
34455 The main things grep needs to know about mmap are:
34456 * does it exist and is it safe to write into the mmap'd area
34457 * how to use it (BSD variants) */
34458
34459#include <fcntl.h>
34460#include <sys/mman.h>
34461
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034462#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034463char *malloc ();
34464#endif
34465
34466/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034467#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034468/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034469# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034470# define HAVE_SYS_PARAM_H 1
34471# endif
34472
34473# ifdef _SC_PAGESIZE
34474# define getpagesize() sysconf(_SC_PAGESIZE)
34475# else /* no _SC_PAGESIZE */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034476# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034477# include <sys/param.h>
34478# ifdef EXEC_PAGESIZE
34479# define getpagesize() EXEC_PAGESIZE
34480# else /* no EXEC_PAGESIZE */
34481# ifdef NBPG
34482# define getpagesize() NBPG * CLSIZE
34483# ifndef CLSIZE
34484# define CLSIZE 1
34485# endif /* no CLSIZE */
34486# else /* no NBPG */
34487# ifdef NBPC
34488# define getpagesize() NBPC
34489# else /* no NBPC */
34490# ifdef PAGESIZE
34491# define getpagesize() PAGESIZE
34492# endif /* PAGESIZE */
34493# endif /* no NBPC */
34494# endif /* no NBPG */
34495# endif /* no EXEC_PAGESIZE */
34496# else /* no HAVE_SYS_PARAM_H */
34497# define getpagesize() 8192 /* punt totally */
34498# endif /* no HAVE_SYS_PARAM_H */
34499# endif /* no _SC_PAGESIZE */
34500
34501#endif /* no HAVE_GETPAGESIZE */
34502
34503int
34504main ()
34505{
34506 char *data, *data2, *data3;
34507 int i, pagesize;
34508 int fd;
34509
34510 pagesize = getpagesize ();
34511
34512 /* First, make a file with some known garbage in it. */
34513 data = (char *) malloc (pagesize);
34514 if (!data)
34515 return 1;
34516 for (i = 0; i < pagesize; ++i)
34517 *(data + i) = rand ();
34518 umask (0);
34519 fd = creat ("conftest.mmap", 0600);
34520 if (fd < 0)
34521 return 1;
34522 if (write (fd, data, pagesize) != pagesize)
34523 return 1;
34524 close (fd);
34525
34526 /* Next, try to mmap the file at a fixed address which already has
34527 something else allocated at it. If we can, also make sure that
34528 we see the same garbage. */
34529 fd = open ("conftest.mmap", O_RDWR);
34530 if (fd < 0)
34531 return 1;
34532 data2 = (char *) malloc (2 * pagesize);
34533 if (!data2)
34534 return 1;
34535 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34536 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34537 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34538 return 1;
34539 for (i = 0; i < pagesize; ++i)
34540 if (*(data + i) != *(data2 + i))
34541 return 1;
34542
34543 /* Finally, make sure that changes to the mapped area do not
34544 percolate back to the file as seen by read(). (This is a bug on
34545 some variants of i386 svr4.0.) */
34546 for (i = 0; i < pagesize; ++i)
34547 *(data2 + i) = *(data2 + i) + 1;
34548 data3 = (char *) malloc (pagesize);
34549 if (!data3)
34550 return 1;
34551 if (read (fd, data3, pagesize) != pagesize)
34552 return 1;
34553 for (i = 0; i < pagesize; ++i)
34554 if (*(data + i) != *(data3 + i))
34555 return 1;
34556 close (fd);
34557 return 0;
34558}
34559_ACEOF
34560rm -f conftest$ac_exeext
34561if { (ac_try="$ac_link"
34562case "(($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_link") 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34571 { (case "(($ac_try" in
34572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34573 *) ac_try_echo=$ac_try;;
34574esac
34575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576 (eval "$ac_try") 2>&5
34577 ac_status=$?
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; }; then
34580 ac_cv_func_mmap_fixed_mapped=yes
34581else
34582 echo "$as_me: program exited with status $ac_status" >&5
34583echo "$as_me: failed program was:" >&5
34584sed 's/^/| /' conftest.$ac_ext >&5
34585
34586( exit $ac_status )
34587ac_cv_func_mmap_fixed_mapped=no
34588fi
34589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34590fi
34591
34592
34593fi
34594{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34595echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34596if test $ac_cv_func_mmap_fixed_mapped = yes; then
34597
34598cat >>confdefs.h <<\_ACEOF
34599#define HAVE_MMAP 1
34600_ACEOF
34601
34602fi
34603rm -f conftest.mmap
34604
34605 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34606echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34607if test "${ac_cv_func_mmap_file+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34609else
34610 ac_ext=c
34611ac_cpp='$CPP $CPPFLAGS'
34612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34614ac_compiler_gnu=$ac_cv_c_compiler_gnu
34615
34616 if test "$cross_compiling" = yes; then
34617 ac_cv_func_mmap_file=no
34618else
34619 cat >conftest.$ac_ext <<_ACEOF
34620
34621 /* confdefs.h. */
34622_ACEOF
34623cat confdefs.h >>conftest.$ac_ext
34624cat >>conftest.$ac_ext <<_ACEOF
34625/* end confdefs.h. */
34626
34627#include <sys/types.h>
34628#include <sys/mman.h>
34629#include <fcntl.h>
34630
34631int
34632main ()
34633{
34634
34635 int fd;
34636 fd = creat ("foo",0777);
34637 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34638 unlink ("foo");
34639 return (fd != (int) MAP_FAILED);
34640 ;
34641 return 0;
34642}
34643_ACEOF
34644rm -f conftest$ac_exeext
34645if { (ac_try="$ac_link"
34646case "(($ac_try" in
34647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648 *) ac_try_echo=$ac_try;;
34649esac
34650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651 (eval "$ac_link") 2>&5
34652 ac_status=$?
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34655 { (case "(($ac_try" in
34656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34657 *) ac_try_echo=$ac_try;;
34658esac
34659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660 (eval "$ac_try") 2>&5
34661 ac_status=$?
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; }; then
34664 ac_cv_func_mmap_file=yes
34665else
34666 echo "$as_me: program exited with status $ac_status" >&5
34667echo "$as_me: failed program was:" >&5
34668sed 's/^/| /' conftest.$ac_ext >&5
34669
34670( exit $ac_status )
34671ac_cv_func_mmap_file=no
34672fi
34673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34674fi
34675
34676
34677 ac_ext=c
34678ac_cpp='$CPP $CPPFLAGS'
34679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34681ac_compiler_gnu=$ac_cv_c_compiler_gnu
34682
34683
34684fi
34685{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34686echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34687if test "$ac_cv_func_mmap_file" = yes; then
34688
34689cat >>confdefs.h <<\_ACEOF
34690#define HAVE_MMAP_FILE
34691_ACEOF
34692
34693 MMAP_FILE=yes
34694
34695fi
34696
34697 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34698echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34699if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34700 echo $ECHO_N "(cached) $ECHO_C" >&6
34701else
34702 if test "$llvm_cv_os_type" = "Interix" ; then
34703 ac_cv_need_dev_zero_for_mmap=yes
34704 else
34705 ac_cv_need_dev_zero_for_mmap=no
34706 fi
34707
34708fi
34709{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34710echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34711if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34712
34713cat >>confdefs.h <<\_ACEOF
34714#define NEED_DEV_ZERO_FOR_MMAP 1
34715_ACEOF
34716
34717fi
34718
34719 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34720 then
34721 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34722echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34723 fi
34724 if test "$ac_cv_func_mmap_file" = "no"
34725 then
34726 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34727echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34728 fi
34729fi
34730
Owen Anderson96237ec2009-05-19 22:18:56 +000034731{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000034732echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034733cat >conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000034734/* confdefs.h. */
34735_ACEOF
34736cat confdefs.h >>conftest.$ac_ext
34737cat >>conftest.$ac_ext <<_ACEOF
34738/* end confdefs.h. */
34739int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000034740 volatile unsigned long val = 1;
34741 __sync_synchronize();
34742 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000034743 __sync_add_and_fetch(&val, 1);
34744 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000034745 return 0;
34746 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034747
34748_ACEOF
34749rm -f conftest.$ac_objext conftest$ac_exeext
34750if { (ac_try="$ac_link"
34751case "(($ac_try" in
34752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753 *) ac_try_echo=$ac_try;;
34754esac
34755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756 (eval "$ac_link") 2>conftest.er1
34757 ac_status=$?
34758 grep -v '^ *+' conftest.er1 >conftest.err
34759 rm -f conftest.er1
34760 cat conftest.err >&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } &&
34763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34764 { (case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34767esac
34768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769 (eval "$ac_try") 2>&5
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; } &&
34773 { ac_try='test -s conftest$ac_exeext'
34774 { (case "(($ac_try" in
34775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776 *) ac_try_echo=$ac_try;;
34777esac
34778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779 (eval "$ac_try") 2>&5
34780 ac_status=$?
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 { echo "$as_me:$LINENO: result: yes" >&5
34784echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034785
34786cat >>confdefs.h <<\_ACEOF
34787#define LLVM_MULTITHREADED 1
34788_ACEOF
34789
Owen Andersonff0f88e2009-05-18 23:58:51 +000034790else
34791 echo "$as_me: failed program was:" >&5
34792sed 's/^/| /' conftest.$ac_ext >&5
34793
34794 { echo "$as_me:$LINENO: result: no" >&5
34795echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034796
Owen Anderson96237ec2009-05-19 22:18:56 +000034797cat >>confdefs.h <<\_ACEOF
34798#define LLVM_MULTITHREADED 0
34799_ACEOF
34800
34801 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34802echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000034803fi
34804
34805rm -f core conftest.err conftest.$ac_objext \
34806 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000034807
34808
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034809
Reid Spencer59c09b32007-07-30 20:13:24 +000034810
34811for ac_func in __dso_handle
34812do
34813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34814{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34818else
34819 cat >conftest.$ac_ext <<_ACEOF
34820/* confdefs.h. */
34821_ACEOF
34822cat confdefs.h >>conftest.$ac_ext
34823cat >>conftest.$ac_ext <<_ACEOF
34824/* end confdefs.h. */
34825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34827#define $ac_func innocuous_$ac_func
34828
34829/* System header to define __stub macros and hopefully few prototypes,
34830 which can conflict with char $ac_func (); below.
34831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34832 <limits.h> exists even on freestanding compilers. */
34833
34834#ifdef __STDC__
34835# include <limits.h>
34836#else
34837# include <assert.h>
34838#endif
34839
34840#undef $ac_func
34841
34842/* Override any GCC internal prototype to avoid an error.
34843 Use char because int might match the return type of a GCC
34844 builtin and then its argument prototype would still apply. */
34845#ifdef __cplusplus
34846extern "C"
34847#endif
34848char $ac_func ();
34849/* The GNU C library defines this for functions which it implements
34850 to always fail with ENOSYS. Some functions are actually named
34851 something starting with __ and the normal name is an alias. */
34852#if defined __stub_$ac_func || defined __stub___$ac_func
34853choke me
34854#endif
34855
34856int
34857main ()
34858{
34859return $ac_func ();
34860 ;
34861 return 0;
34862}
34863_ACEOF
34864rm -f conftest.$ac_objext conftest$ac_exeext
34865if { (ac_try="$ac_link"
34866case "(($ac_try" in
34867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34868 *) ac_try_echo=$ac_try;;
34869esac
34870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34871 (eval "$ac_link") 2>conftest.er1
34872 ac_status=$?
34873 grep -v '^ *+' conftest.er1 >conftest.err
34874 rm -f conftest.er1
34875 cat conftest.err >&5
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034877 (exit $ac_status); } &&
34878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34879 { (case "(($ac_try" in
34880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34881 *) ac_try_echo=$ac_try;;
34882esac
34883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884 (eval "$ac_try") 2>&5
34885 ac_status=$?
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); }; } &&
34888 { ac_try='test -s conftest$ac_exeext'
34889 { (case "(($ac_try" in
34890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34891 *) ac_try_echo=$ac_try;;
34892esac
34893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34894 (eval "$ac_try") 2>&5
34895 ac_status=$?
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000034898 eval "$as_ac_var=yes"
34899else
34900 echo "$as_me: failed program was:" >&5
34901sed 's/^/| /' conftest.$ac_ext >&5
34902
34903 eval "$as_ac_var=no"
34904fi
34905
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034906rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000034907 conftest$ac_exeext conftest.$ac_ext
34908fi
34909ac_res=`eval echo '${'$as_ac_var'}'`
34910 { echo "$as_me:$LINENO: result: $ac_res" >&5
34911echo "${ECHO_T}$ac_res" >&6; }
34912if test `eval echo '${'$as_ac_var'}'` = yes; then
34913 cat >>confdefs.h <<_ACEOF
34914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34915_ACEOF
34916
34917fi
34918done
34919
34920
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034921{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34922echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34923if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34925else
34926 llvm_cv_llvmgcc_sanity="no"
34927if test -x "$LLVMGCC" ; then
34928 cp /dev/null conftest.c
34929 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34930 grep 'target datalayout =' > /dev/null 2>&1
34931 if test $? -eq 0 ; then
34932 llvm_cv_llvmgcc_sanity="yes"
34933 fi
34934 rm conftest.c
34935fi
34936fi
34937{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34938echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34939
34940if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34941 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34942echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34943 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34944 LLVMCC1=$llvmcc1path
34945
34946 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34947 LLVMCC1PLUS=$llvmcc1pluspath
34948
34949 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34950 LLVMGCCDIR=$llvmgccdir
34951
34952 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34953 LLVMGCCLIBEXEC=$llvmgcclibexec
34954
34955 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34956 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34957 LLVMGCC_VERSION=$llvmgccversion
34958
34959 LLVMGCC_MAJVERS=$llvmgccmajvers
34960
Tanya Lattner9894c2c2008-10-07 22:21:03 +000034961 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034962 LLVMGCC_LANGS=$llvmgcclangs
34963
34964 { echo "$as_me:$LINENO: result: ok" >&5
34965echo "${ECHO_T}ok" >&6; }
34966fi
34967
34968SHLIBEXT=$libltdl_cv_shlibext
34969
34970
34971# Translate the various configuration directories and other basic
34972# information into substitutions that will end up in Makefile.config.in
34973# that these configured values can be used by the makefiles
34974if test "${prefix}" = "NONE" ; then
34975 prefix="/usr/local"
34976fi
34977eval LLVM_PREFIX="${prefix}";
34978eval LLVM_BINDIR="${prefix}/bin";
34979eval LLVM_LIBDIR="${prefix}/lib";
34980eval LLVM_DATADIR="${prefix}/share/llvm";
34981eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34982eval LLVM_ETCDIR="${prefix}/etc/llvm";
34983eval LLVM_INCLUDEDIR="${prefix}/include";
34984eval LLVM_INFODIR="${prefix}/info";
34985eval LLVM_MANDIR="${prefix}/man";
34986LLVM_CONFIGTIME=`date`
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998# Place the various directores into the config.h file as #defines so that we
34999# can know about the installation paths within LLVM.
35000
35001cat >>confdefs.h <<_ACEOF
35002#define LLVM_PREFIX "$LLVM_PREFIX"
35003_ACEOF
35004
35005
35006cat >>confdefs.h <<_ACEOF
35007#define LLVM_BINDIR "$LLVM_BINDIR"
35008_ACEOF
35009
35010
35011cat >>confdefs.h <<_ACEOF
35012#define LLVM_LIBDIR "$LLVM_LIBDIR"
35013_ACEOF
35014
35015
35016cat >>confdefs.h <<_ACEOF
35017#define LLVM_DATADIR "$LLVM_DATADIR"
35018_ACEOF
35019
35020
35021cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000035022#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035023_ACEOF
35024
35025
35026cat >>confdefs.h <<_ACEOF
35027#define LLVM_ETCDIR "$LLVM_ETCDIR"
35028_ACEOF
35029
35030
35031cat >>confdefs.h <<_ACEOF
35032#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35033_ACEOF
35034
35035
35036cat >>confdefs.h <<_ACEOF
35037#define LLVM_INFODIR "$LLVM_INFODIR"
35038_ACEOF
35039
35040
35041cat >>confdefs.h <<_ACEOF
35042#define LLVM_MANDIR "$LLVM_MANDIR"
35043_ACEOF
35044
35045
35046cat >>confdefs.h <<_ACEOF
35047#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35048_ACEOF
35049
35050
Eric Christopher8b274472007-12-01 00:34:39 +000035051cat >>confdefs.h <<_ACEOF
35052#define LLVM_HOSTTRIPLE "$host"
35053_ACEOF
35054
35055
Gordon Henriksen016ec472007-10-02 09:50:32 +000035056# Determine which bindings to build.
35057if test "$BINDINGS_TO_BUILD" = auto ; then
35058 BINDINGS_TO_BUILD=""
35059 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35060 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35061 fi
35062fi
35063BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35064
35065
35066# This isn't really configurey, but it avoids having to repeat the list in
35067# other files.
35068ALL_BINDINGS=ocaml
35069
35070
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035071# Do any work necessary to ensure that bindings have what they need.
35072binding_prereqs_failed=0
35073for a_binding in $BINDINGS_TO_BUILD ; do
35074 case "$a_binding" in
35075 ocaml)
35076 if test "x$OCAMLC" = x ; then
35077 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35078echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35079 binding_prereqs_failed=1
35080 fi
35081 if test "x$OCAMLDEP" = x ; then
35082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35083echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35084 binding_prereqs_failed=1
35085 fi
35086 if test "x$OCAMLOPT" = x ; then
35087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35088echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35089 fi
35090 if test "x$with_ocaml_libdir" != xauto ; then
35091 OCAML_LIBDIR=$with_ocaml_libdir
35092
35093 else
35094 ocaml_stdlib="`"$OCAMLC" -where`"
35095 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35096 then
35097 # ocaml stdlib is beneath our prefix; use stdlib
35098 OCAML_LIBDIR=$ocaml_stdlib
35099
35100 else
35101 # ocaml stdlib is outside our prefix; use libdir/ocaml
35102 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35103
35104 fi
35105 fi
35106 ;;
35107 esac
35108done
35109if test "$binding_prereqs_failed" = 1 ; then
35110 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35111echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35112 { (exit 1); exit 1; }; }
35113fi
35114
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035115{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35116echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35117if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35118 echo $ECHO_N "(cached) $ECHO_C" >&6
35119else
35120 ac_ext=cpp
35121ac_cpp='$CXXCPP $CPPFLAGS'
35122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35125
35126 oldcxxflags="$CXXFLAGS"
35127 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35128 cat >conftest.$ac_ext <<_ACEOF
35129/* confdefs.h. */
35130_ACEOF
35131cat confdefs.h >>conftest.$ac_ext
35132cat >>conftest.$ac_ext <<_ACEOF
35133/* end confdefs.h. */
35134
35135int
35136main ()
35137{
35138
35139 ;
35140 return 0;
35141}
35142_ACEOF
35143rm -f conftest.$ac_objext
35144if { (ac_try="$ac_compile"
35145case "(($ac_try" in
35146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35147 *) ac_try_echo=$ac_try;;
35148esac
35149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35150 (eval "$ac_compile") 2>conftest.er1
35151 ac_status=$?
35152 grep -v '^ *+' conftest.er1 >conftest.err
35153 rm -f conftest.er1
35154 cat conftest.err >&5
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035156 (exit $ac_status); } &&
35157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35158 { (case "(($ac_try" in
35159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160 *) ac_try_echo=$ac_try;;
35161esac
35162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163 (eval "$ac_try") 2>&5
35164 ac_status=$?
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); }; } &&
35167 { ac_try='test -s conftest.$ac_objext'
35168 { (case "(($ac_try" in
35169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35170 *) ac_try_echo=$ac_try;;
35171esac
35172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173 (eval "$ac_try") 2>&5
35174 ac_status=$?
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035177 llvm_cv_cxx_visibility_inlines_hidden=yes
35178else
35179 echo "$as_me: failed program was:" >&5
35180sed 's/^/| /' conftest.$ac_ext >&5
35181
35182 llvm_cv_cxx_visibility_inlines_hidden=no
35183fi
35184
35185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35186 CXXFLAGS="$oldcxxflags"
35187 ac_ext=c
35188ac_cpp='$CPP $CPPFLAGS'
35189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35191ac_compiler_gnu=$ac_cv_c_compiler_gnu
35192
35193
35194fi
35195{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35196echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35197if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35198 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35199
35200else
35201 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35202
35203fi
35204
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035205
Nick Lewycky6eab6652009-03-05 08:20:44 +000035206if test "$llvm_cv_link_use_r" = "yes" ; then
35207 RPATH="-Wl,-R"
35208else
35209 RPATH="-Wl,-rpath"
35210fi
35211
35212
35213if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35214 RDYNAMIC="-Wl,-export-dynamic"
35215else
35216 RDYNAMIC=""
35217fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000035218
35219
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035220
35221ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35222
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035223ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35224
35225ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35226
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035227ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35228
Anton Korobeynikov5124f282008-05-29 17:41:34 +000035229ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035230
35231
35232ac_config_files="$ac_config_files Makefile.config"
35233
35234
35235ac_config_files="$ac_config_files llvm.spec"
35236
35237
35238ac_config_files="$ac_config_files docs/doxygen.cfg"
35239
35240
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035241ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35242
35243
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035244ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35245
35246
35247ac_config_commands="$ac_config_commands setup"
35248
35249ac_config_commands="$ac_config_commands Makefile"
35250
35251
35252ac_config_commands="$ac_config_commands Makefile.common"
35253
35254
35255ac_config_commands="$ac_config_commands examples/Makefile"
35256
35257
35258ac_config_commands="$ac_config_commands lib/Makefile"
35259
35260
35261ac_config_commands="$ac_config_commands runtime/Makefile"
35262
35263
35264ac_config_commands="$ac_config_commands test/Makefile"
35265
35266
35267ac_config_commands="$ac_config_commands test/Makefile.tests"
35268
35269
Bill Wendling9b9833f2009-01-04 23:12:30 +000035270ac_config_commands="$ac_config_commands unittests/Makefile"
35271
35272
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035273ac_config_commands="$ac_config_commands tools/Makefile"
35274
35275
35276ac_config_commands="$ac_config_commands utils/Makefile"
35277
35278
35279ac_config_commands="$ac_config_commands projects/Makefile"
35280
35281
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035282ac_config_commands="$ac_config_commands bindings/Makefile"
35283
35284
35285ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35286
35287
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035288
35289cat >confcache <<\_ACEOF
35290# This file is a shell script that caches the results of configure
35291# tests run on this system so they can be shared between configure
35292# scripts and configure runs, see configure's option --config-cache.
35293# It is not useful on other systems. If it contains results you don't
35294# want to keep, you may remove or edit it.
35295#
35296# config.status only pays attention to the cache file if you give it
35297# the --recheck option to rerun configure.
35298#
35299# `ac_cv_env_foo' variables (set or unset) will be overridden when
35300# loading this file, other *unset* `ac_cv_foo' will be assigned the
35301# following values.
35302
35303_ACEOF
35304
35305# The following way of writing the cache mishandles newlines in values,
35306# but we know of no workaround that is simple, portable, and efficient.
35307# So, we kill variables containing newlines.
35308# Ultrix sh set writes to stderr and can't be redirected directly,
35309# and sets the high bit in the cache file unless we assign to the vars.
35310(
35311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35312 eval ac_val=\$$ac_var
35313 case $ac_val in #(
35314 *${as_nl}*)
35315 case $ac_var in #(
35316 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35317echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35318 esac
35319 case $ac_var in #(
35320 _ | IFS | as_nl) ;; #(
35321 *) $as_unset $ac_var ;;
35322 esac ;;
35323 esac
35324 done
35325
35326 (set) 2>&1 |
35327 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35328 *${as_nl}ac_space=\ *)
35329 # `set' does not quote correctly, so add quotes (double-quote
35330 # substitution turns \\\\ into \\, and sed turns \\ into \).
35331 sed -n \
35332 "s/'/'\\\\''/g;
35333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35334 ;; #(
35335 *)
35336 # `set' quotes correctly as required by POSIX, so do not add quotes.
35337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35338 ;;
35339 esac |
35340 sort
35341) |
35342 sed '
35343 /^ac_cv_env_/b end
35344 t clear
35345 :clear
35346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35347 t end
35348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35349 :end' >>confcache
35350if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35351 if test -w "$cache_file"; then
35352 test "x$cache_file" != "x/dev/null" &&
35353 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35354echo "$as_me: updating cache $cache_file" >&6;}
35355 cat confcache >$cache_file
35356 else
35357 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35358echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35359 fi
35360fi
35361rm -f confcache
35362
35363test "x$prefix" = xNONE && prefix=$ac_default_prefix
35364# Let make expand exec_prefix.
35365test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35366
35367DEFS=-DHAVE_CONFIG_H
35368
35369ac_libobjs=
35370ac_ltlibobjs=
35371for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35372 # 1. Remove the extension, and $U if already installed.
35373 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35374 ac_i=`echo "$ac_i" | sed "$ac_script"`
35375 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35376 # will be set to the directory where LIBOBJS objects are built.
35377 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35378 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35379done
35380LIBOBJS=$ac_libobjs
35381
35382LTLIBOBJS=$ac_ltlibobjs
35383
35384
35385if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35386 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35387Usually this means the macro was only invoked conditionally." >&5
35388echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35389Usually this means the macro was only invoked conditionally." >&2;}
35390 { (exit 1); exit 1; }; }
35391fi
35392if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35393 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35394Usually this means the macro was only invoked conditionally." >&5
35395echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35396Usually this means the macro was only invoked conditionally." >&2;}
35397 { (exit 1); exit 1; }; }
35398fi
35399
35400: ${CONFIG_STATUS=./config.status}
35401ac_clean_files_save=$ac_clean_files
35402ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35403{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35404echo "$as_me: creating $CONFIG_STATUS" >&6;}
35405cat >$CONFIG_STATUS <<_ACEOF
35406#! $SHELL
35407# Generated by $as_me.
35408# Run this file to recreate the current configuration.
35409# Compiler output produced by configure, useful for debugging
35410# configure, is in config.log if it exists.
35411
35412debug=false
35413ac_cs_recheck=false
35414ac_cs_silent=false
35415SHELL=\${CONFIG_SHELL-$SHELL}
35416_ACEOF
35417
35418cat >>$CONFIG_STATUS <<\_ACEOF
35419## --------------------- ##
35420## M4sh Initialization. ##
35421## --------------------- ##
35422
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035423# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035424if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35425 emulate sh
35426 NULLCMD=:
35427 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35428 # is contrary to our usage. Disable this feature.
35429 alias -g '${1+"$@"}'='"$@"'
35430 setopt NO_GLOB_SUBST
35431else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035432 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035433fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035434BIN_SH=xpg4; export BIN_SH # for Tru64
35435DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035436
35437
35438# PATH needs CR
35439# Avoid depending upon Character Ranges.
35440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35443as_cr_digits='0123456789'
35444as_cr_alnum=$as_cr_Letters$as_cr_digits
35445
35446# The user is always right.
35447if test "${PATH_SEPARATOR+set}" != set; then
35448 echo "#! /bin/sh" >conf$$.sh
35449 echo "exit 0" >>conf$$.sh
35450 chmod +x conf$$.sh
35451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35452 PATH_SEPARATOR=';'
35453 else
35454 PATH_SEPARATOR=:
35455 fi
35456 rm -f conf$$.sh
35457fi
35458
35459# Support unset when possible.
35460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35461 as_unset=unset
35462else
35463 as_unset=false
35464fi
35465
35466
35467# IFS
35468# We need space, tab and new line, in precisely that order. Quoting is
35469# there to prevent editors from complaining about space-tab.
35470# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35471# splitting by setting IFS to empty value.)
35472as_nl='
35473'
35474IFS=" "" $as_nl"
35475
35476# Find who we are. Look in the path if we contain no directory separator.
35477case $0 in
35478 *[\\/]* ) as_myself=$0 ;;
35479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35480for as_dir in $PATH
35481do
35482 IFS=$as_save_IFS
35483 test -z "$as_dir" && as_dir=.
35484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35485done
35486IFS=$as_save_IFS
35487
35488 ;;
35489esac
35490# We did not find ourselves, most probably we were run as `sh COMMAND'
35491# in which case we are not to be found in the path.
35492if test "x$as_myself" = x; then
35493 as_myself=$0
35494fi
35495if test ! -f "$as_myself"; then
35496 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35497 { (exit 1); exit 1; }
35498fi
35499
35500# Work around bugs in pre-3.0 UWIN ksh.
35501for as_var in ENV MAIL MAILPATH
35502do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35503done
35504PS1='$ '
35505PS2='> '
35506PS4='+ '
35507
35508# NLS nuisances.
35509for as_var in \
35510 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35511 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35512 LC_TELEPHONE LC_TIME
35513do
35514 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35515 eval $as_var=C; export $as_var
35516 else
35517 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35518 fi
35519done
35520
35521# Required to use basename.
35522if expr a : '\(a\)' >/dev/null 2>&1 &&
35523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35524 as_expr=expr
35525else
35526 as_expr=false
35527fi
35528
35529if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35530 as_basename=basename
35531else
35532 as_basename=false
35533fi
35534
35535
35536# Name of the executable.
35537as_me=`$as_basename -- "$0" ||
35538$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35539 X"$0" : 'X\(//\)$' \| \
35540 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35541echo X/"$0" |
35542 sed '/^.*\/\([^/][^/]*\)\/*$/{
35543 s//\1/
35544 q
35545 }
35546 /^X\/\(\/\/\)$/{
35547 s//\1/
35548 q
35549 }
35550 /^X\/\(\/\).*/{
35551 s//\1/
35552 q
35553 }
35554 s/.*/./; q'`
35555
35556# CDPATH.
35557$as_unset CDPATH
35558
35559
35560
35561 as_lineno_1=$LINENO
35562 as_lineno_2=$LINENO
35563 test "x$as_lineno_1" != "x$as_lineno_2" &&
35564 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35565
35566 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35567 # uniformly replaced by the line number. The first 'sed' inserts a
35568 # line-number line after each line using $LINENO; the second 'sed'
35569 # does the real work. The second script uses 'N' to pair each
35570 # line-number line with the line containing $LINENO, and appends
35571 # trailing '-' during substitution so that $LINENO is not a special
35572 # case at line end.
35573 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35574 # scripts with optimization help from Paolo Bonzini. Blame Lee
35575 # E. McMahon (1931-1989) for sed's syntax. :-)
35576 sed -n '
35577 p
35578 /[$]LINENO/=
35579 ' <$as_myself |
35580 sed '
35581 s/[$]LINENO.*/&-/
35582 t lineno
35583 b
35584 :lineno
35585 N
35586 :loop
35587 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35588 t loop
35589 s/-\n.*//
35590 ' >$as_me.lineno &&
35591 chmod +x "$as_me.lineno" ||
35592 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35593 { (exit 1); exit 1; }; }
35594
35595 # Don't try to exec as it changes $[0], causing all sort of problems
35596 # (the dirname of $[0] is not the place where we might find the
35597 # original and so on. Autoconf is especially sensitive to this).
35598 . "./$as_me.lineno"
35599 # Exit status is that of the last command.
35600 exit
35601}
35602
35603
35604if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35605 as_dirname=dirname
35606else
35607 as_dirname=false
35608fi
35609
35610ECHO_C= ECHO_N= ECHO_T=
35611case `echo -n x` in
35612-n*)
35613 case `echo 'x\c'` in
35614 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35615 *) ECHO_C='\c';;
35616 esac;;
35617*)
35618 ECHO_N='-n';;
35619esac
35620
35621if expr a : '\(a\)' >/dev/null 2>&1 &&
35622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35623 as_expr=expr
35624else
35625 as_expr=false
35626fi
35627
35628rm -f conf$$ conf$$.exe conf$$.file
35629if test -d conf$$.dir; then
35630 rm -f conf$$.dir/conf$$.file
35631else
35632 rm -f conf$$.dir
35633 mkdir conf$$.dir
35634fi
35635echo >conf$$.file
35636if ln -s conf$$.file conf$$ 2>/dev/null; then
35637 as_ln_s='ln -s'
35638 # ... but there are two gotchas:
35639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35641 # In both cases, we have to default to `cp -p'.
35642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35643 as_ln_s='cp -p'
35644elif ln conf$$.file conf$$ 2>/dev/null; then
35645 as_ln_s=ln
35646else
35647 as_ln_s='cp -p'
35648fi
35649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35650rmdir conf$$.dir 2>/dev/null
35651
35652if mkdir -p . 2>/dev/null; then
35653 as_mkdir_p=:
35654else
35655 test -d ./-p && rmdir ./-p
35656 as_mkdir_p=false
35657fi
35658
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035659# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35660# systems may use methods other than mode bits to determine executability.
35661cat >conf$$.file <<_ASEOF
35662#! /bin/sh
35663exit 0
35664_ASEOF
35665chmod +x conf$$.file
35666if test -x conf$$.file >/dev/null 2>&1; then
35667 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035668else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035669 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035670fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035671rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035672
35673# Sed expression to map a string onto a valid CPP name.
35674as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35675
35676# Sed expression to map a string onto a valid variable name.
35677as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35678
35679
35680exec 6>&1
35681
35682# Save the log message, to keep $[0] and so on meaningful, and to
35683# report actual input values of CONFIG_FILES etc. instead of their
35684# values after options handling.
35685ac_log="
Tanya Lattner3fa4a442009-01-22 05:17:59 +000035686This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035687generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035688
35689 CONFIG_FILES = $CONFIG_FILES
35690 CONFIG_HEADERS = $CONFIG_HEADERS
35691 CONFIG_LINKS = $CONFIG_LINKS
35692 CONFIG_COMMANDS = $CONFIG_COMMANDS
35693 $ $0 $@
35694
35695on `(hostname || uname -n) 2>/dev/null | sed 1q`
35696"
35697
35698_ACEOF
35699
35700cat >>$CONFIG_STATUS <<_ACEOF
35701# Files that config.status was made for.
35702config_files="$ac_config_files"
35703config_headers="$ac_config_headers"
35704config_commands="$ac_config_commands"
35705
35706_ACEOF
35707
35708cat >>$CONFIG_STATUS <<\_ACEOF
35709ac_cs_usage="\
35710\`$as_me' instantiates files from templates according to the
35711current configuration.
35712
35713Usage: $0 [OPTIONS] [FILE]...
35714
35715 -h, --help print this help, then exit
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035716 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035717 -q, --quiet do not print progress messages
35718 -d, --debug don't remove temporary files
35719 --recheck update $as_me by reconfiguring in the same conditions
35720 --file=FILE[:TEMPLATE]
35721 instantiate the configuration file FILE
35722 --header=FILE[:TEMPLATE]
35723 instantiate the configuration header FILE
35724
35725Configuration files:
35726$config_files
35727
35728Configuration headers:
35729$config_headers
35730
35731Configuration commands:
35732$config_commands
35733
35734Report bugs to <bug-autoconf@gnu.org>."
35735
35736_ACEOF
35737cat >>$CONFIG_STATUS <<_ACEOF
35738ac_cs_version="\\
Tanya Lattner3fa4a442009-01-22 05:17:59 +000035739llvm config.status 2.6svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035740configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035741 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35742
35743Copyright (C) 2006 Free Software Foundation, Inc.
35744This config.status script is free software; the Free Software Foundation
35745gives unlimited permission to copy, distribute and modify it."
35746
35747ac_pwd='$ac_pwd'
35748srcdir='$srcdir'
35749INSTALL='$INSTALL'
35750_ACEOF
35751
35752cat >>$CONFIG_STATUS <<\_ACEOF
35753# If no file are specified by the user, then we need to provide default
35754# value. By we need to know if files were specified by the user.
35755ac_need_defaults=:
35756while test $# != 0
35757do
35758 case $1 in
35759 --*=*)
35760 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35761 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35762 ac_shift=:
35763 ;;
35764 *)
35765 ac_option=$1
35766 ac_optarg=$2
35767 ac_shift=shift
35768 ;;
35769 esac
35770
35771 case $ac_option in
35772 # Handling of the options.
35773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35774 ac_cs_recheck=: ;;
35775 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35776 echo "$ac_cs_version"; exit ;;
35777 --debug | --debu | --deb | --de | --d | -d )
35778 debug=: ;;
35779 --file | --fil | --fi | --f )
35780 $ac_shift
35781 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35782 ac_need_defaults=false;;
35783 --header | --heade | --head | --hea )
35784 $ac_shift
35785 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35786 ac_need_defaults=false;;
35787 --he | --h)
35788 # Conflict between --help and --header
35789 { echo "$as_me: error: ambiguous option: $1
35790Try \`$0 --help' for more information." >&2
35791 { (exit 1); exit 1; }; };;
35792 --help | --hel | -h )
35793 echo "$ac_cs_usage"; exit ;;
35794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35796 ac_cs_silent=: ;;
35797
35798 # This is an error.
35799 -*) { echo "$as_me: error: unrecognized option: $1
35800Try \`$0 --help' for more information." >&2
35801 { (exit 1); exit 1; }; } ;;
35802
35803 *) ac_config_targets="$ac_config_targets $1"
35804 ac_need_defaults=false ;;
35805
35806 esac
35807 shift
35808done
35809
35810ac_configure_extra_args=
35811
35812if $ac_cs_silent; then
35813 exec 6>/dev/null
35814 ac_configure_extra_args="$ac_configure_extra_args --silent"
35815fi
35816
35817_ACEOF
35818cat >>$CONFIG_STATUS <<_ACEOF
35819if \$ac_cs_recheck; then
35820 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35821 CONFIG_SHELL=$SHELL
35822 export CONFIG_SHELL
35823 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35824fi
35825
35826_ACEOF
35827cat >>$CONFIG_STATUS <<\_ACEOF
35828exec 5>>config.log
35829{
35830 echo
35831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35832## Running $as_me. ##
35833_ASBOX
35834 echo "$ac_log"
35835} >&5
35836
35837_ACEOF
35838cat >>$CONFIG_STATUS <<_ACEOF
35839#
35840# INIT-COMMANDS
35841#
35842llvm_src="${srcdir}"
35843
35844_ACEOF
35845
35846cat >>$CONFIG_STATUS <<\_ACEOF
35847
35848# Handling of arguments.
35849for ac_config_target in $ac_config_targets
35850do
35851 case $ac_config_target in
35852 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035853 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35854 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035855 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000035856 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035857 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35858 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35859 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035860 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035861 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35862 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35863 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35864 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35865 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35866 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35867 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35868 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35869 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000035870 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035871 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35872 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35873 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035874 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35875 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035876
35877 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35878echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35879 { (exit 1); exit 1; }; };;
35880 esac
35881done
35882
35883
35884# If the user did not use the arguments to specify the items to instantiate,
35885# then the envvar interface is used. Set only those that are not.
35886# We use the long form for the default assignment because of an extremely
35887# bizarre bug on SunOS 4.1.3.
35888if $ac_need_defaults; then
35889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35892fi
35893
35894# Have a temporary directory for convenience. Make it in the build tree
35895# simply because there is no reason against having it here, and in addition,
35896# creating and moving files from /tmp can sometimes cause problems.
35897# Hook for its removal unless debugging.
35898# Note that there is a small window in which the directory will not be cleaned:
35899# after its creation but before its name has been assigned to `$tmp'.
35900$debug ||
35901{
35902 tmp=
35903 trap 'exit_status=$?
35904 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35905' 0
35906 trap '{ (exit 1); exit 1; }' 1 2 13 15
35907}
35908# Create a (secure) tmp directory for tmp files.
35909
35910{
35911 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35912 test -n "$tmp" && test -d "$tmp"
35913} ||
35914{
35915 tmp=./conf$$-$RANDOM
35916 (umask 077 && mkdir "$tmp")
35917} ||
35918{
35919 echo "$me: cannot create a temporary directory in ." >&2
35920 { (exit 1); exit 1; }
35921}
35922
35923#
35924# Set up the sed scripts for CONFIG_FILES section.
35925#
35926
35927# No need to generate the scripts if there are no CONFIG_FILES.
35928# This happens for instance when ./config.status config.h
35929if test -n "$CONFIG_FILES"; then
35930
35931_ACEOF
35932
35933
35934
35935ac_delim='%!_!# '
35936for ac_last_try in false false false false false :; do
35937 cat >conf$$subs.sed <<_ACEOF
35938SHELL!$SHELL$ac_delim
35939PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35940PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35941PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35942PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35943PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35944PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35945exec_prefix!$exec_prefix$ac_delim
35946prefix!$prefix$ac_delim
35947program_transform_name!$program_transform_name$ac_delim
35948bindir!$bindir$ac_delim
35949sbindir!$sbindir$ac_delim
35950libexecdir!$libexecdir$ac_delim
35951datarootdir!$datarootdir$ac_delim
35952datadir!$datadir$ac_delim
35953sysconfdir!$sysconfdir$ac_delim
35954sharedstatedir!$sharedstatedir$ac_delim
35955localstatedir!$localstatedir$ac_delim
35956includedir!$includedir$ac_delim
35957oldincludedir!$oldincludedir$ac_delim
35958docdir!$docdir$ac_delim
35959infodir!$infodir$ac_delim
35960htmldir!$htmldir$ac_delim
35961dvidir!$dvidir$ac_delim
35962pdfdir!$pdfdir$ac_delim
35963psdir!$psdir$ac_delim
35964libdir!$libdir$ac_delim
35965localedir!$localedir$ac_delim
35966mandir!$mandir$ac_delim
35967DEFS!$DEFS$ac_delim
35968ECHO_C!$ECHO_C$ac_delim
35969ECHO_N!$ECHO_N$ac_delim
35970ECHO_T!$ECHO_T$ac_delim
35971LIBS!$LIBS$ac_delim
35972build_alias!$build_alias$ac_delim
35973host_alias!$host_alias$ac_delim
35974target_alias!$target_alias$ac_delim
35975LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35976subdirs!$subdirs$ac_delim
35977build!$build$ac_delim
35978build_cpu!$build_cpu$ac_delim
35979build_vendor!$build_vendor$ac_delim
35980build_os!$build_os$ac_delim
35981host!$host$ac_delim
35982host_cpu!$host_cpu$ac_delim
35983host_vendor!$host_vendor$ac_delim
35984host_os!$host_os$ac_delim
35985target!$target$ac_delim
35986target_cpu!$target_cpu$ac_delim
35987target_vendor!$target_vendor$ac_delim
35988target_os!$target_os$ac_delim
35989OS!$OS$ac_delim
35990LINKALL!$LINKALL$ac_delim
35991NOLINKALL!$NOLINKALL$ac_delim
35992LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35993LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendling025cce52009-03-12 04:10:09 +000035994ARCH!$ARCH$ac_delim
35995ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035996CC!$CC$ac_delim
35997CFLAGS!$CFLAGS$ac_delim
35998LDFLAGS!$LDFLAGS$ac_delim
35999CPPFLAGS!$CPPFLAGS$ac_delim
36000ac_ct_CC!$ac_ct_CC$ac_delim
36001EXEEXT!$EXEEXT$ac_delim
36002OBJEXT!$OBJEXT$ac_delim
36003CPP!$CPP$ac_delim
36004GREP!$GREP$ac_delim
36005EGREP!$EGREP$ac_delim
36006LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36007BUILD_CC!$BUILD_CC$ac_delim
36008BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000036009BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036010CVSBUILD!$CVSBUILD$ac_delim
36011ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036012ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036013DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36014ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36015EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36016DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36017JIT!$JIT$ac_delim
36018TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36019ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36020ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36021ENABLE_PIC!$ENABLE_PIC$ac_delim
36022TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036023LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36024LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036025ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36026EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000036027BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036028ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36029ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036030CXX!$CXX$ac_delim
36031CXXFLAGS!$CXXFLAGS$ac_delim
36032ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewycky912c4622009-02-21 22:38:49 +000036033NM!$NM$ac_delim
36034ifGNUmake!$ifGNUmake$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036035_ACEOF
36036
36037 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36038 break
36039 elif $ac_last_try; then
36040 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36041echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36042 { (exit 1); exit 1; }; }
36043 else
36044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36045 fi
36046done
36047
36048ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36049if test -n "$ac_eof"; then
36050 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36051 ac_eof=`expr $ac_eof + 1`
36052fi
36053
36054cat >>$CONFIG_STATUS <<_ACEOF
36055cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36057_ACEOF
36058sed '
36059s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36060s/^/s,@/; s/!/@,|#_!!_#|/
36061:n
36062t n
36063s/'"$ac_delim"'$/,g/; t
36064s/$/\\/; p
36065N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36066' >>$CONFIG_STATUS <conf$$subs.sed
36067rm -f conf$$subs.sed
36068cat >>$CONFIG_STATUS <<_ACEOF
36069CEOF$ac_eof
36070_ACEOF
36071
36072
36073ac_delim='%!_!# '
36074for ac_last_try in false false false false false :; do
36075 cat >conf$$subs.sed <<_ACEOF
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036076LN_S!$LN_S$ac_delim
36077CMP!$CMP$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036078CP!$CP$ac_delim
36079DATE!$DATE$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036080FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036081MKDIR!$MKDIR$ac_delim
36082MV!$MV$ac_delim
36083RANLIB!$RANLIB$ac_delim
36084RM!$RM$ac_delim
36085SED!$SED$ac_delim
36086TAR!$TAR$ac_delim
36087BINPWD!$BINPWD$ac_delim
36088GRAPHVIZ!$GRAPHVIZ$ac_delim
36089DOT!$DOT$ac_delim
David Greenedb740ef2009-07-09 17:16:26 +000036090FDP!$FDP$ac_delim
36091NEATO!$NEATO$ac_delim
36092TWOPI!$TWOPI$ac_delim
36093CIRCO!$CIRCO$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036094GV!$GV$ac_delim
36095DOTTY!$DOTTY$ac_delim
36096PERL!$PERL$ac_delim
36097HAVE_PERL!$HAVE_PERL$ac_delim
36098INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36099INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36100INSTALL_DATA!$INSTALL_DATA$ac_delim
36101BZIP2!$BZIP2$ac_delim
36102DOXYGEN!$DOXYGEN$ac_delim
36103GROFF!$GROFF$ac_delim
36104GZIP!$GZIP$ac_delim
36105POD2HTML!$POD2HTML$ac_delim
36106POD2MAN!$POD2MAN$ac_delim
36107RUNTEST!$RUNTEST$ac_delim
36108TCLSH!$TCLSH$ac_delim
36109ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000036110OCAMLC!$OCAMLC$ac_delim
36111OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000036112OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000036113OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000036114GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036115INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36116INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36117CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36118CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36119LIBADD_DL!$LIBADD_DL$ac_delim
36120ECHO!$ECHO$ac_delim
36121AR!$AR$ac_delim
36122STRIP!$STRIP$ac_delim
36123CXXCPP!$CXXCPP$ac_delim
36124F77!$F77$ac_delim
36125FFLAGS!$FFLAGS$ac_delim
36126ac_ct_F77!$ac_ct_F77$ac_delim
36127LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036128LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36129LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000036130LLVMGCC!$LLVMGCC$ac_delim
36131LLVMGXX!$LLVMGXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036132USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000036133USE_OPROFILE!$USE_OPROFILE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036134HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36135HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36136ALLOCA!$ALLOCA$ac_delim
36137MMAP_FILE!$MMAP_FILE$ac_delim
36138LLVMCC1!$LLVMCC1$ac_delim
36139LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36140LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36141LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36142LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36143LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36144LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36145SHLIBEXT!$SHLIBEXT$ac_delim
36146LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36147LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36148LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36149LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36150LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36151LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36152LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36153LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36154LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36155LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000036156BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36157ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000036158OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000036159ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000036160RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000036161RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036162LIBOBJS!$LIBOBJS$ac_delim
36163LTLIBOBJS!$LTLIBOBJS$ac_delim
36164_ACEOF
36165
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000036166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036167 break
36168 elif $ac_last_try; then
36169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36170echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36171 { (exit 1); exit 1; }; }
36172 else
36173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36174 fi
36175done
36176
36177ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36178if test -n "$ac_eof"; then
36179 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36180 ac_eof=`expr $ac_eof + 1`
36181fi
36182
36183cat >>$CONFIG_STATUS <<_ACEOF
36184cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36186_ACEOF
36187sed '
36188s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36189s/^/s,@/; s/!/@,|#_!!_#|/
36190:n
36191t n
36192s/'"$ac_delim"'$/,g/; t
36193s/$/\\/; p
36194N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36195' >>$CONFIG_STATUS <conf$$subs.sed
36196rm -f conf$$subs.sed
36197cat >>$CONFIG_STATUS <<_ACEOF
36198:end
36199s/|#_!!_#|//g
36200CEOF$ac_eof
36201_ACEOF
36202
36203
36204# VPATH may cause trouble with some makes, so we remove $(srcdir),
36205# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36206# trailing colons and then remove the whole line if VPATH becomes empty
36207# (actually we leave an empty line to preserve line numbers).
36208if test "x$srcdir" = x.; then
36209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36210s/:*\$(srcdir):*/:/
36211s/:*\${srcdir}:*/:/
36212s/:*@srcdir@:*/:/
36213s/^\([^=]*=[ ]*\):*/\1/
36214s/:*$//
36215s/^[^=]*=[ ]*$//
36216}'
36217fi
36218
36219cat >>$CONFIG_STATUS <<\_ACEOF
36220fi # test -n "$CONFIG_FILES"
36221
36222
36223for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36224do
36225 case $ac_tag in
36226 :[FHLC]) ac_mode=$ac_tag; continue;;
36227 esac
36228 case $ac_mode$ac_tag in
36229 :[FHL]*:*);;
36230 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36231echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36232 { (exit 1); exit 1; }; };;
36233 :[FH]-) ac_tag=-:-;;
36234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36235 esac
36236 ac_save_IFS=$IFS
36237 IFS=:
36238 set x $ac_tag
36239 IFS=$ac_save_IFS
36240 shift
36241 ac_file=$1
36242 shift
36243
36244 case $ac_mode in
36245 :L) ac_source=$1;;
36246 :[FH])
36247 ac_file_inputs=
36248 for ac_f
36249 do
36250 case $ac_f in
36251 -) ac_f="$tmp/stdin";;
36252 *) # Look for the file first in the build tree, then in the source tree
36253 # (if the path is not absolute). The absolute path cannot be DOS-style,
36254 # because $ac_f cannot contain `:'.
36255 test -f "$ac_f" ||
36256 case $ac_f in
36257 [\\/$]*) false;;
36258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36259 esac ||
36260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36261echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36262 { (exit 1); exit 1; }; };;
36263 esac
36264 ac_file_inputs="$ac_file_inputs $ac_f"
36265 done
36266
36267 # Let's still pretend it is `configure' which instantiates (i.e., don't
36268 # use $as_me), people would be surprised to read:
36269 # /* config.h. Generated by config.status. */
36270 configure_input="Generated from "`IFS=:
36271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36272 if test x"$ac_file" != x-; then
36273 configure_input="$ac_file. $configure_input"
36274 { echo "$as_me:$LINENO: creating $ac_file" >&5
36275echo "$as_me: creating $ac_file" >&6;}
36276 fi
36277
36278 case $ac_tag in
36279 *:-:* | *:-) cat >"$tmp/stdin";;
36280 esac
36281 ;;
36282 esac
36283
36284 ac_dir=`$as_dirname -- "$ac_file" ||
36285$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36286 X"$ac_file" : 'X\(//\)[^/]' \| \
36287 X"$ac_file" : 'X\(//\)$' \| \
36288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36289echo X"$ac_file" |
36290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36291 s//\1/
36292 q
36293 }
36294 /^X\(\/\/\)[^/].*/{
36295 s//\1/
36296 q
36297 }
36298 /^X\(\/\/\)$/{
36299 s//\1/
36300 q
36301 }
36302 /^X\(\/\).*/{
36303 s//\1/
36304 q
36305 }
36306 s/.*/./; q'`
36307 { as_dir="$ac_dir"
36308 case $as_dir in #(
36309 -*) as_dir=./$as_dir;;
36310 esac
36311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36312 as_dirs=
36313 while :; do
36314 case $as_dir in #(
36315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36316 *) as_qdir=$as_dir;;
36317 esac
36318 as_dirs="'$as_qdir' $as_dirs"
36319 as_dir=`$as_dirname -- "$as_dir" ||
36320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36321 X"$as_dir" : 'X\(//\)[^/]' \| \
36322 X"$as_dir" : 'X\(//\)$' \| \
36323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36324echo X"$as_dir" |
36325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36326 s//\1/
36327 q
36328 }
36329 /^X\(\/\/\)[^/].*/{
36330 s//\1/
36331 q
36332 }
36333 /^X\(\/\/\)$/{
36334 s//\1/
36335 q
36336 }
36337 /^X\(\/\).*/{
36338 s//\1/
36339 q
36340 }
36341 s/.*/./; q'`
36342 test -d "$as_dir" && break
36343 done
36344 test -z "$as_dirs" || eval "mkdir $as_dirs"
36345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36346echo "$as_me: error: cannot create directory $as_dir" >&2;}
36347 { (exit 1); exit 1; }; }; }
36348 ac_builddir=.
36349
36350case "$ac_dir" in
36351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36352*)
36353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36354 # A ".." for each directory in $ac_dir_suffix.
36355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36356 case $ac_top_builddir_sub in
36357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36359 esac ;;
36360esac
36361ac_abs_top_builddir=$ac_pwd
36362ac_abs_builddir=$ac_pwd$ac_dir_suffix
36363# for backward compatibility:
36364ac_top_builddir=$ac_top_build_prefix
36365
36366case $srcdir in
36367 .) # We are building in place.
36368 ac_srcdir=.
36369 ac_top_srcdir=$ac_top_builddir_sub
36370 ac_abs_top_srcdir=$ac_pwd ;;
36371 [\\/]* | ?:[\\/]* ) # Absolute name.
36372 ac_srcdir=$srcdir$ac_dir_suffix;
36373 ac_top_srcdir=$srcdir
36374 ac_abs_top_srcdir=$srcdir ;;
36375 *) # Relative name.
36376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36377 ac_top_srcdir=$ac_top_build_prefix$srcdir
36378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36379esac
36380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36381
36382
36383 case $ac_mode in
36384 :F)
36385 #
36386 # CONFIG_FILE
36387 #
36388
36389 case $INSTALL in
36390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36392 esac
36393_ACEOF
36394
36395cat >>$CONFIG_STATUS <<\_ACEOF
36396# If the template does not know about datarootdir, expand it.
36397# FIXME: This hack should be removed a few years after 2.60.
36398ac_datarootdir_hack=; ac_datarootdir_seen=
36399
36400case `sed -n '/datarootdir/ {
36401 p
36402 q
36403}
36404/@datadir@/p
36405/@docdir@/p
36406/@infodir@/p
36407/@localedir@/p
36408/@mandir@/p
36409' $ac_file_inputs` in
36410*datarootdir*) ac_datarootdir_seen=yes;;
36411*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36413echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36414_ACEOF
36415cat >>$CONFIG_STATUS <<_ACEOF
36416 ac_datarootdir_hack='
36417 s&@datadir@&$datadir&g
36418 s&@docdir@&$docdir&g
36419 s&@infodir@&$infodir&g
36420 s&@localedir@&$localedir&g
36421 s&@mandir@&$mandir&g
36422 s&\\\${datarootdir}&$datarootdir&g' ;;
36423esac
36424_ACEOF
36425
36426# Neutralize VPATH when `$srcdir' = `.'.
36427# Shell code in configure.ac might set extrasub.
36428# FIXME: do we really want to maintain this feature?
36429cat >>$CONFIG_STATUS <<_ACEOF
36430 sed "$ac_vpsub
36431$extrasub
36432_ACEOF
36433cat >>$CONFIG_STATUS <<\_ACEOF
36434:t
36435/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36436s&@configure_input@&$configure_input&;t t
36437s&@top_builddir@&$ac_top_builddir_sub&;t t
36438s&@srcdir@&$ac_srcdir&;t t
36439s&@abs_srcdir@&$ac_abs_srcdir&;t t
36440s&@top_srcdir@&$ac_top_srcdir&;t t
36441s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36442s&@builddir@&$ac_builddir&;t t
36443s&@abs_builddir@&$ac_abs_builddir&;t t
36444s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36445s&@INSTALL@&$ac_INSTALL&;t t
36446$ac_datarootdir_hack
36447" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36448
36449test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36452 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36453which seems to be undefined. Please make sure it is defined." >&5
36454echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36455which seems to be undefined. Please make sure it is defined." >&2;}
36456
36457 rm -f "$tmp/stdin"
36458 case $ac_file in
36459 -) cat "$tmp/out"; rm -f "$tmp/out";;
36460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36461 esac
36462 ;;
36463 :H)
36464 #
36465 # CONFIG_HEADER
36466 #
36467_ACEOF
36468
36469# Transform confdefs.h into a sed script `conftest.defines', that
36470# substitutes the proper values into config.h.in to produce config.h.
36471rm -f conftest.defines conftest.tail
36472# First, append a space to every undef/define line, to ease matching.
36473echo 's/$/ /' >conftest.defines
36474# Then, protect against being on the right side of a sed subst, or in
36475# an unquoted here document, in config.status. If some macros were
36476# called several times there might be several #defines for the same
36477# symbol, which is useless. But do not sort them, since the last
36478# AC_DEFINE must be honored.
36479ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36480# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36481# NAME is the cpp macro being defined, VALUE is the value it is being given.
36482# PARAMS is the parameter list in the macro definition--in most cases, it's
36483# just an empty string.
36484ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36485ac_dB='\\)[ (].*,\\1define\\2'
36486ac_dC=' '
36487ac_dD=' ,'
36488
36489uniq confdefs.h |
36490 sed -n '
36491 t rset
36492 :rset
36493 s/^[ ]*#[ ]*define[ ][ ]*//
36494 t ok
36495 d
36496 :ok
36497 s/[\\&,]/\\&/g
36498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36500 ' >>conftest.defines
36501
36502# Remove the space that was appended to ease matching.
36503# Then replace #undef with comments. This is necessary, for
36504# example, in the case of _POSIX_SOURCE, which is predefined and required
36505# on some systems where configure will not decide to define it.
36506# (The regexp can be short, since the line contains either #define or #undef.)
36507echo 's/ $//
36508s,^[ #]*u.*,/* & */,' >>conftest.defines
36509
36510# Break up conftest.defines:
36511ac_max_sed_lines=50
36512
36513# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36514# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36515# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36516# et cetera.
36517ac_in='$ac_file_inputs'
36518ac_out='"$tmp/out1"'
36519ac_nxt='"$tmp/out2"'
36520
36521while :
36522do
36523 # Write a here document:
36524 cat >>$CONFIG_STATUS <<_ACEOF
36525 # First, check the format of the line:
36526 cat >"\$tmp/defines.sed" <<\\CEOF
36527/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36528/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36529b
36530:def
36531_ACEOF
36532 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36533 echo 'CEOF
36534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36535 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36536 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36537 grep . conftest.tail >/dev/null || break
36538 rm -f conftest.defines
36539 mv conftest.tail conftest.defines
36540done
36541rm -f conftest.defines conftest.tail
36542
36543echo "ac_result=$ac_in" >>$CONFIG_STATUS
36544cat >>$CONFIG_STATUS <<\_ACEOF
36545 if test x"$ac_file" != x-; then
36546 echo "/* $configure_input */" >"$tmp/config.h"
36547 cat "$ac_result" >>"$tmp/config.h"
36548 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36550echo "$as_me: $ac_file is unchanged" >&6;}
36551 else
36552 rm -f $ac_file
36553 mv "$tmp/config.h" $ac_file
36554 fi
36555 else
36556 echo "/* $configure_input */"
36557 cat "$ac_result"
36558 fi
36559 rm -f "$tmp/out12"
36560 ;;
36561
36562 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36563echo "$as_me: executing $ac_file commands" >&6;}
36564 ;;
36565 esac
36566
36567
36568 case $ac_file$ac_mode in
36569 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36571 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36573 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36575 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36577 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36578 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36579 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36580 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36581 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036583 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036585 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36587 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36589 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036591 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36593 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036595
36596 esac
36597done # for ac_tag
36598
36599
36600{ (exit 0); exit 0; }
36601_ACEOF
36602chmod +x $CONFIG_STATUS
36603ac_clean_files=$ac_clean_files_save
36604
36605
36606# configure is writing to config.log, and then calls config.status.
36607# config.status does its own redirection, appending to config.log.
36608# Unfortunately, on DOS this fails, as config.log is still kept open
36609# by configure, so config.status won't be able to write to it; its
36610# output is simply discarded. So we exec the FD to /dev/null,
36611# effectively closing config.log, so it can be properly (re)opened and
36612# appended to by config.status. When coming back to configure, we
36613# need to make the FD available again.
36614if test "$no_create" != yes; then
36615 ac_cs_success=:
36616 ac_config_status_args=
36617 test "$silent" = yes &&
36618 ac_config_status_args="$ac_config_status_args --quiet"
36619 exec 5>/dev/null
36620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36621 exec 5>>config.log
36622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36623 # would make configure fail if this is the last instruction.
36624 $ac_cs_success || { (exit 1); exit 1; }
36625fi
36626
36627#
36628# CONFIG_SUBDIRS section.
36629#
36630if test "$no_recursion" != yes; then
36631
36632 # Remove --cache-file and --srcdir arguments so they do not pile up.
36633 ac_sub_configure_args=
36634 ac_prev=
36635 eval "set x $ac_configure_args"
36636 shift
36637 for ac_arg
36638 do
36639 if test -n "$ac_prev"; then
36640 ac_prev=
36641 continue
36642 fi
36643 case $ac_arg in
36644 -cache-file | --cache-file | --cache-fil | --cache-fi \
36645 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36646 ac_prev=cache_file ;;
36647 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36648 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36649 | --c=*)
36650 ;;
36651 --config-cache | -C)
36652 ;;
36653 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36654 ac_prev=srcdir ;;
36655 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36656 ;;
36657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36658 ac_prev=prefix ;;
36659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36660 ;;
36661 *)
36662 case $ac_arg in
36663 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36664 esac
36665 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36666 esac
36667 done
36668
36669 # Always prepend --prefix to ensure using the same prefix
36670 # in subdir configurations.
36671 ac_arg="--prefix=$prefix"
36672 case $ac_arg in
36673 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36674 esac
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000036675 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036676
36677 ac_popdir=`pwd`
36678 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36679
36680 # Do not complain, so a configure script can configure whichever
36681 # parts of a large source tree are present.
36682 test -d "$srcdir/$ac_dir" || continue
36683
36684 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36685 echo "$as_me:$LINENO: $ac_msg" >&5
36686 echo "$ac_msg" >&6
36687 { as_dir="$ac_dir"
36688 case $as_dir in #(
36689 -*) as_dir=./$as_dir;;
36690 esac
36691 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36692 as_dirs=
36693 while :; do
36694 case $as_dir in #(
36695 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36696 *) as_qdir=$as_dir;;
36697 esac
36698 as_dirs="'$as_qdir' $as_dirs"
36699 as_dir=`$as_dirname -- "$as_dir" ||
36700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36701 X"$as_dir" : 'X\(//\)[^/]' \| \
36702 X"$as_dir" : 'X\(//\)$' \| \
36703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36704echo X"$as_dir" |
36705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36706 s//\1/
36707 q
36708 }
36709 /^X\(\/\/\)[^/].*/{
36710 s//\1/
36711 q
36712 }
36713 /^X\(\/\/\)$/{
36714 s//\1/
36715 q
36716 }
36717 /^X\(\/\).*/{
36718 s//\1/
36719 q
36720 }
36721 s/.*/./; q'`
36722 test -d "$as_dir" && break
36723 done
36724 test -z "$as_dirs" || eval "mkdir $as_dirs"
36725 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36726echo "$as_me: error: cannot create directory $as_dir" >&2;}
36727 { (exit 1); exit 1; }; }; }
36728 ac_builddir=.
36729
36730case "$ac_dir" in
36731.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36732*)
36733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36734 # A ".." for each directory in $ac_dir_suffix.
36735 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36736 case $ac_top_builddir_sub in
36737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36739 esac ;;
36740esac
36741ac_abs_top_builddir=$ac_pwd
36742ac_abs_builddir=$ac_pwd$ac_dir_suffix
36743# for backward compatibility:
36744ac_top_builddir=$ac_top_build_prefix
36745
36746case $srcdir in
36747 .) # We are building in place.
36748 ac_srcdir=.
36749 ac_top_srcdir=$ac_top_builddir_sub
36750 ac_abs_top_srcdir=$ac_pwd ;;
36751 [\\/]* | ?:[\\/]* ) # Absolute name.
36752 ac_srcdir=$srcdir$ac_dir_suffix;
36753 ac_top_srcdir=$srcdir
36754 ac_abs_top_srcdir=$srcdir ;;
36755 *) # Relative name.
36756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36757 ac_top_srcdir=$ac_top_build_prefix$srcdir
36758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36759esac
36760ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36761
36762
36763 cd "$ac_dir"
36764
36765 # Check for guested configure; otherwise get Cygnus style configure.
36766 if test -f "$ac_srcdir/configure.gnu"; then
36767 ac_sub_configure=$ac_srcdir/configure.gnu
36768 elif test -f "$ac_srcdir/configure"; then
36769 ac_sub_configure=$ac_srcdir/configure
36770 elif test -f "$ac_srcdir/configure.in"; then
36771 # This should be Cygnus configure.
36772 ac_sub_configure=$ac_aux_dir/configure
36773 else
36774 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36775echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36776 ac_sub_configure=
36777 fi
36778
36779 # The recursion is here.
36780 if test -n "$ac_sub_configure"; then
36781 # Make the cache file name correct relative to the subdirectory.
36782 case $cache_file in
36783 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36784 *) # Relative name.
36785 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36786 esac
36787
36788 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36789echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36790 # The eval makes quoting arguments work.
36791 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36792 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36793 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36794echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36795 { (exit 1); exit 1; }; }
36796 fi
36797
36798 cd "$ac_popdir"
36799 done
36800fi
36801