blob: b777c9cd98fb9bc79a988cd0d050d325e3803578 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003# Generated by GNU Autoconf 2.61 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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032
33
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
53 fi
54 rm -f conf$$.sh
55fi
56
57# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60else
61 as_unset=false
62fi
63
64
65# IFS
66# We need space, tab and new line, in precisely that order. Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" "" $as_nl"
73
74# Find who we are. Look in the path if we contain no directory separator.
75case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78for as_dir in $PATH
79do
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
84IFS=$as_save_IFS
85
86 ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91 as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
111do
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 fi
117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123else
124 as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129else
130 as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\/\)$/{
145 s//\1/
146 q
147 }
148 /^X\/\(\/\).*/{
149 s//\1/
150 q
151 }
152 s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161else
162 as_have_required=no
163fi
164
165 if test $as_have_required = yes && (eval ":
166(as_func_return () {
167 (exit \$1)
168}
169as_func_success () {
170 as_func_return 0
171}
172as_func_failure () {
173 as_func_return 1
174}
175as_func_ret_success () {
176 return 0
177}
178as_func_ret_failure () {
179 return 1
180}
181
182exitcode=0
183if as_func_success; then
184 :
185else
186 exitcode=1
187 echo as_func_success failed.
188fi
189
190if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196 :
197else
198 exitcode=1
199 echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 :
209else
210 exitcode=1
211 echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222 :
223else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000227do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
231 /*)
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236done
237IFS=$as_save_IFS
238
239
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000256fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000257
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000277fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000278
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000279
280:
281(as_func_return () {
282 (exit $1)
283}
284as_func_success () {
285 as_func_return 0
286}
287as_func_failure () {
288 as_func_return 1
289}
290as_func_ret_success () {
291 return 0
292}
293as_func_ret_failure () {
294 return 1
295}
296
297exitcode=0
298if as_func_success; then
299 :
300else
301 exitcode=1
302 echo as_func_success failed.
303fi
304
305if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311 :
312else
313 exitcode=1
314 echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323 :
324else
325 exitcode=1
326 echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339 break
340fi
341
342fi
343
344 done
345
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371 (exit \$1)
372}
373as_func_success () {
374 as_func_return 0
375}
376as_func_failure () {
377 as_func_return 1
378}
379as_func_ret_success () {
380 return 0
381}
382as_func_ret_failure () {
383 return 1
384}
385
386exitcode=0
387if as_func_success; then
388 :
389else
390 exitcode=1
391 echo as_func_success failed.
392fi
393
394if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400 :
401else
402 exitcode=1
403 echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 :
413else
414 exitcode=1
415 echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
423}
424
425
426
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
460
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
467}
468
469
470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472else
473 as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
483*)
484 ECHO_N='-n';;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490else
491 as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
495if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
500fi
501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512else
513 as_ln_s='cp -p'
514fi
515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
517
518if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
523fi
524
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000527else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
532 fi
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
544 '
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000545fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000546as_executable_p=$as_test_x
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000547
548# Sed expression to map a string onto a valid CPP name.
549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551# Sed expression to map a string onto a valid variable name.
552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557# Check that we are running under the correct shell.
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560case X$ECHO in
561X*--fallback-echo)
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 ;;
565esac
566
567echo=${ECHO-echo}
568if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
570 shift
571elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
573 :
574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
576 :
577else
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
580fi
581
582if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
584 shift
585 cat <<EOF
586$*
587EOF
588 exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595if test -z "$ECHO"; then
596if test "X${echo_test_string+set}" != Xset; then
597# find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603 then
604 break
605 fi
606 done
607fi
608
609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 echo="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 echo='print -r'
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 echo='printf %s\n'
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 echo=echo
689 fi
690 fi
691 fi
692 fi
693fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698ECHO=$echo
699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706tagnames=${tagnames+${tagnames},}CXX
707
708tagnames=${tagnames+${tagnames},}F77
709
710exec 7<&0 </dev/null 6>&1
711
712# Name of the host.
713# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714# so uname gets run too.
715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
721ac_clean_files=
722ac_config_libobj_dir=.
723LIBOBJS=
724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
728SHELL=${CONFIG_SHELL-/bin/sh}
729
730# Identity of this package.
731PACKAGE_NAME='llvm'
732PACKAGE_TARNAME='-llvm-'
Tanya Lattner3fa4a442009-01-22 05:17:59 +0000733PACKAGE_VERSION='2.6svn'
734PACKAGE_STRING='llvm 2.6svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000735PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
737ac_unique_file="lib/VMCore/Module.cpp"
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000741#ifdef HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000742# include <sys/types.h>
743#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000744#ifdef HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000745# include <sys/stat.h>
746#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000747#ifdef STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000751# ifdef HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000752# include <stdlib.h>
753# endif
754#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000757# include <memory.h>
758# endif
759# include <string.h>
760#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000761#ifdef HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000762# include <strings.h>
763#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000764#ifdef HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000765# include <inttypes.h>
766#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000767#ifdef HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000768# include <stdint.h>
769#endif
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000770#ifdef HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000771# include <unistd.h>
772#endif"
773
774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811LLVM_COPYRIGHT
812subdirs
813build
814build_cpu
815build_vendor
816build_os
817host
818host_cpu
819host_vendor
820host_os
821target
822target_cpu
823target_vendor
824target_os
825OS
826LINKALL
827NOLINKALL
828LLVM_ON_UNIX
829LLVM_ON_WIN32
Bill Wendling025cce52009-03-12 04:10:09 +0000830ARCH
831ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839CPP
840GREP
841EGREP
842LLVM_CROSS_COMPILING
843BUILD_CC
844BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000845BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000846CVSBUILD
847ENABLE_OPTIMIZED
David Greene19b1cbd2009-04-17 14:50:39 +0000848ENABLE_PROFILING
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000849DISABLE_ASSERTIONS
850ENABLE_EXPENSIVE_CHECKS
851EXPENSIVE_CHECKS
852DEBUG_RUNTIME
853JIT
854TARGET_HAS_JIT
855ENABLE_DOXYGEN
856ENABLE_THREADS
857ENABLE_PIC
858TARGETS_TO_BUILD
859ENABLE_CBE_PRINTF_A
860EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000861BINUTILS_INCDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000862CXX
863CXXFLAGS
864ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000865NM
866ifGNUmake
867LN_S
868CMP
869CP
870DATE
871FIND
872MKDIR
873MV
874RANLIB
875RM
876SED
877TAR
878BINPWD
879GRAPHVIZ
880DOT
881GV
882DOTTY
883PERL
884HAVE_PERL
885INSTALL_PROGRAM
886INSTALL_SCRIPT
887INSTALL_DATA
888BZIP2
889DOXYGEN
890GROFF
891GZIP
892POD2HTML
893POD2MAN
894RUNTEST
895TCLSH
896ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000897OCAMLC
898OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000899OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000900OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000901GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000902INSTALL_LTDL_TRUE
903INSTALL_LTDL_FALSE
904CONVENIENCE_LTDL_TRUE
905CONVENIENCE_LTDL_FALSE
906LIBADD_DL
907ECHO
908AR
909STRIP
910CXXCPP
911F77
912FFLAGS
913ac_ct_F77
914LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000915LLVMGCC
916LLVMGXX
917USE_UDIS86
918HAVE_PTHREAD
919HUGE_VAL_SANITY
920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
925LLVMGCCLIBEXEC
926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
928LLVMGCC_LANGS
929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000945RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000946LIBOBJS
947LTLIBOBJS'
948ac_subst_files=''
949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
Mikhail Glushenkovc805f902009-04-18 09:59:26 +0000955LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000956CPPFLAGS
957CPP
958CXX
959CXXFLAGS
960CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000961CXXCPP
962F77
963FFLAGS'
964ac_subdirs_all='projects/sample
965projects/privbracket
966projects/llvm-stacker
967projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000968projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000969projects/llvm-reopt
970projects/llvm-gcc
971projects/llvm-java
972projects/llvm-tv
973projects/llvm-poolalloc
974projects/poolalloc
975projects/llvm-kernel'
976
977# Initialize some variables set by options.
978ac_init_help=
979ac_init_version=false
980# The variables have the same names as the options, with
981# dashes changed to underlines.
982cache_file=/dev/null
983exec_prefix=NONE
984no_create=
985no_recursion=
986prefix=NONE
987program_prefix=NONE
988program_suffix=NONE
989program_transform_name=s,x,x,
990silent=
991site=
992srcdir=
993verbose=
994x_includes=NONE
995x_libraries=NONE
996
997# Installation directory options.
998# These are left unexpanded so users can "make install exec_prefix=/foo"
999# and all the variables that are supposed to be based on exec_prefix
1000# by default will actually change.
1001# Use braces instead of parens because sh, perl, etc. also accept them.
1002# (The list follows the same order as the GNU Coding Standards.)
1003bindir='${exec_prefix}/bin'
1004sbindir='${exec_prefix}/sbin'
1005libexecdir='${exec_prefix}/libexec'
1006datarootdir='${prefix}/share'
1007datadir='${datarootdir}'
1008sysconfdir='${prefix}/etc'
1009sharedstatedir='${prefix}/com'
1010localstatedir='${prefix}/var'
1011includedir='${prefix}/include'
1012oldincludedir='/usr/include'
1013docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014infodir='${datarootdir}/info'
1015htmldir='${docdir}'
1016dvidir='${docdir}'
1017pdfdir='${docdir}'
1018psdir='${docdir}'
1019libdir='${exec_prefix}/lib'
1020localedir='${datarootdir}/locale'
1021mandir='${datarootdir}/man'
1022
1023ac_prev=
1024ac_dashdash=
1025for ac_option
1026do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1030 ac_prev=
1031 continue
1032 fi
1033
1034 case $ac_option in
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *) ac_optarg=yes ;;
1037 esac
1038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001080 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001083 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001084 eval enable_$ac_feature=no ;;
1085
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1090
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1095
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001103 eval enable_$ac_feature=\$ac_optarg ;;
1104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001296 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001299 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001300 eval with_$ac_package=\$ac_optarg ;;
1301
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001305 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001308 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001309 eval with_$ac_package=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352done
1353
1354if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1358fi
1359
1360# Be sure to have absolute directory names.
1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1365do
1366 eval ac_val=\$$ac_var
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1390 fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
1399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1407
1408
1409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
1414$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
1417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418echo X"$0" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
1443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
1447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
1452 pwd)`
1453# When building in place, set srcdir=.
1454if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1456fi
1457# Remove unnecessary trailing slashes from srcdir.
1458# Double slashes in file names in object file debugging info
1459# mess up M-x gdb in Emacs.
1460case $srcdir in
1461*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462esac
1463for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468done
1469
1470#
1471# Report the --help message.
1472#
1473if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001477\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001478
1479Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482VAR=VALUE. See below for descriptions of some of the useful variables.
1483
1484Defaults for the options are specified in brackets.
1485
1486Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496
1497Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 [PREFIX]
1502
1503By default, \`make install' will install all the files in
1504\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506for instance \`--prefix=\$HOME'.
1507
1508For better control, use the options below.
1509
1510Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1530_ACEOF
1531
1532 cat <<\_ACEOF
1533
1534System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542 case $ac_init_help in
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001543 short | recursive ) echo "Configuration of llvm 2.6svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001544 esac
1545 cat <<\_ACEOF
1546
1547Optional Features:
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --enable-optimized
David Greene19b1cbd2009-04-17 14:50:39 +00001551 --enable-profiling
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001552 --enable-assertions
1553 --enable-expensive-checks
1554
1555 --enable-debug-runtime
1556 --enable-jit Enable Just In Time Compiling (default is YES)
1557 --enable-doxygen Build doxygen documentation (default is NO)
1558 --enable-threads Use threads if available (default is YES)
1559 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001560 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001561 --enable-targets Build specific host targets:
1562 all,host-only,{target-name} (default=all)
1563 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001565 --enable-bindings Build specific language bindings:
1566 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001567 --enable-ltdl-install install libltdl
1568 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001569 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001570 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001571 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001572 --enable-fast-install[=PKGS]
1573 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001574 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001575 --disable-libtool-lock avoid locking (might break parallel builds)
1576
1577Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1581 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001582 --with-llvmgcc Specify location of llvm-gcc driver (default
1583 searches PATH)
1584 --with-llvmgxx Specify location of llvm-g++ driver (default
1585 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001586 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001587 --with-ocaml-libdir Specify install location for ocaml bindings (default
1588 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001589 --with-binutils-include Specify path to binutils/include/ containing
1590 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001591 --with-tclinclude directory where tcl headers are
1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1593 --with-pic try to use only PIC/non-PIC objects [default=use
1594 both]
1595 --with-tags[=TAGS] include additional configurations [automatic]
1596 --with-udis86=<path> Use udis86 external x86 disassembler library
1597
1598Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001603 LIBS libraries to pass to the linker, e.g. -l<library>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001604 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1606 CPP C preprocessor
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001609 CXXCPP C++ preprocessor
1610 F77 Fortran 77 compiler command
1611 FFLAGS Fortran 77 compiler flags
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616Report bugs to <llvmbugs@cs.uiuc.edu>.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" || continue
1625 ac_builddir=.
1626
1627case "$ac_dir" in
1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629*)
1630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637esac
1638ac_abs_top_builddir=$ac_pwd
1639ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640# for backward compatibility:
1641ac_top_builddir=$ac_top_build_prefix
1642
1643case $srcdir in
1644 .) # We are building in place.
1645 ac_srcdir=.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656esac
1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1667 else
1668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1671 done
1672fi
1673
1674test -n "$ac_init_help" && exit $ac_status
1675if $ac_init_version; then
1676 cat <<\_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001677llvm configure 2.6svn
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001678generated by GNU Autoconf 2.61
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001679
1680Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684
Tanya Lattnerf4644302008-01-17 05:57:22 +00001685Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001686_ACEOF
1687 exit
1688fi
1689cat >config.log <<_ACEOF
1690This file contains any messages produced by compilers while
1691running configure, to aid debugging if configure makes a mistake.
1692
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001693It was created by llvm $as_me 2.6svn, which was
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00001694generated by GNU Autoconf 2.61. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001695
1696 $ $0 $@
1697
1698_ACEOF
1699exec 5>>config.log
1700{
1701cat <<_ASUNAME
1702## --------- ##
1703## Platform. ##
1704## --------- ##
1705
1706hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1707uname -m = `(uname -m) 2>/dev/null || echo unknown`
1708uname -r = `(uname -r) 2>/dev/null || echo unknown`
1709uname -s = `(uname -s) 2>/dev/null || echo unknown`
1710uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711
1712/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1713/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1714
1715/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1716/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1717/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1718/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1719/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1720/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1721/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1722
1723_ASUNAME
1724
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 echo "PATH: $as_dir"
1731done
1732IFS=$as_save_IFS
1733
1734} >&5
1735
1736cat >&5 <<_ACEOF
1737
1738
1739## ----------- ##
1740## Core tests. ##
1741## ----------- ##
1742
1743_ACEOF
1744
1745
1746# Keep a trace of the command line.
1747# Strip out --no-create and --no-recursion so they do not pile up.
1748# Strip out --silent because we don't want to record it for future runs.
1749# Also quote any args containing shell meta-characters.
1750# Make two passes to allow for proper duplicate-argument suppression.
1751ac_configure_args=
1752ac_configure_args0=
1753ac_configure_args1=
1754ac_must_keep_next=false
1755for ac_pass in 1 2
1756do
1757 for ac_arg
1758 do
1759 case $ac_arg in
1760 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1762 | -silent | --silent | --silen | --sile | --sil)
1763 continue ;;
1764 *\'*)
1765 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 esac
1767 case $ac_pass in
1768 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769 2)
1770 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1771 if test $ac_must_keep_next = true; then
1772 ac_must_keep_next=false # Got value, back to normal.
1773 else
1774 case $ac_arg in
1775 *=* | --config-cache | -C | -disable-* | --disable-* \
1776 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1777 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1778 | -with-* | --with-* | -without-* | --without-* | --x)
1779 case "$ac_configure_args0 " in
1780 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 esac
1782 ;;
1783 -* ) ac_must_keep_next=true ;;
1784 esac
1785 fi
1786 ac_configure_args="$ac_configure_args '$ac_arg'"
1787 ;;
1788 esac
1789 done
1790done
1791$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1792$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793
1794# When interrupted or exit'd, cleanup temporary files, and complete
1795# config.log. We remove comments because anyway the quotes in there
1796# would cause problems or look ugly.
1797# WARNING: Use '\'' to represent an apostrophe within the trap.
1798# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1799trap 'exit_status=$?
1800 # Save into config.log some information that might help in debugging.
1801 {
1802 echo
1803
1804 cat <<\_ASBOX
1805## ---------------- ##
1806## Cache variables. ##
1807## ---------------- ##
1808_ASBOX
1809 echo
1810 # The following way of writing the cache mishandles newlines in values,
1811(
1812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in #(
1815 *${as_nl}*)
1816 case $ac_var in #(
1817 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1818echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1819 esac
1820 case $ac_var in #(
1821 _ | IFS | as_nl) ;; #(
1822 *) $as_unset $ac_var ;;
1823 esac ;;
1824 esac
1825 done
1826 (set) 2>&1 |
1827 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1828 *${as_nl}ac_space=\ *)
1829 sed -n \
1830 "s/'\''/'\''\\\\'\'''\''/g;
1831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1832 ;; #(
1833 *)
1834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835 ;;
1836 esac |
1837 sort
1838)
1839 echo
1840
1841 cat <<\_ASBOX
1842## ----------------- ##
1843## Output variables. ##
1844## ----------------- ##
1845_ASBOX
1846 echo
1847 for ac_var in $ac_subst_vars
1848 do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 echo "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1856
1857 if test -n "$ac_subst_files"; then
1858 cat <<\_ASBOX
1859## ------------------- ##
1860## File substitutions. ##
1861## ------------------- ##
1862_ASBOX
1863 echo
1864 for ac_var in $ac_subst_files
1865 do
1866 eval ac_val=\$$ac_var
1867 case $ac_val in
1868 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 esac
1870 echo "$ac_var='\''$ac_val'\''"
1871 done | sort
1872 echo
1873 fi
1874
1875 if test -s confdefs.h; then
1876 cat <<\_ASBOX
1877## ----------- ##
1878## confdefs.h. ##
1879## ----------- ##
1880_ASBOX
1881 echo
1882 cat confdefs.h
1883 echo
1884 fi
1885 test "$ac_signal" != 0 &&
1886 echo "$as_me: caught signal $ac_signal"
1887 echo "$as_me: exit $exit_status"
1888 } >&5
1889 rm -f core *.core core.conftest.* &&
1890 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1891 exit $exit_status
1892' 0
1893for ac_signal in 1 2 13 15; do
1894 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1895done
1896ac_signal=0
1897
1898# confdefs.h avoids OS command line length limits that DEFS can exceed.
1899rm -f -r conftest* confdefs.h
1900
1901# Predefined preprocessor variables.
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_NAME "$PACKAGE_NAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_VERSION "$PACKAGE_VERSION"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_STRING "$PACKAGE_STRING"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1925_ACEOF
1926
1927
1928# Let the site file select an alternate cache file if it wants to.
1929# Prefer explicitly selected file to automatically selected ones.
1930if test -n "$CONFIG_SITE"; then
1931 set x "$CONFIG_SITE"
1932elif test "x$prefix" != xNONE; then
1933 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1934else
1935 set x "$ac_default_prefix/share/config.site" \
1936 "$ac_default_prefix/etc/config.site"
1937fi
1938shift
1939for ac_site_file
1940do
1941 if test -r "$ac_site_file"; then
1942 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1943echo "$as_me: loading site script $ac_site_file" >&6;}
1944 sed 's/^/| /' "$ac_site_file" >&5
1945 . "$ac_site_file"
1946 fi
1947done
1948
1949if test -r "$cache_file"; then
1950 # Some versions of bash will fail to source /dev/null (special
1951 # files actually), so we avoid doing that.
1952 if test -f "$cache_file"; then
1953 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1954echo "$as_me: loading cache $cache_file" >&6;}
1955 case $cache_file in
1956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1957 *) . "./$cache_file";;
1958 esac
1959 fi
1960else
1961 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1962echo "$as_me: creating cache $cache_file" >&6;}
1963 >$cache_file
1964fi
1965
1966# Check that the precious variables saved in the cache have kept the same
1967# value.
1968ac_cache_corrupted=false
1969for ac_var in $ac_precious_vars; do
1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
1974 case $ac_old_set,$ac_new_set in
1975 set,)
1976 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1979 ,set)
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,);;
1984 *)
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
1986 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1989echo "$as_me: former value: $ac_old_val" >&2;}
1990 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1991echo "$as_me: current value: $ac_new_val" >&2;}
1992 ac_cache_corrupted=:
1993 fi;;
1994 esac
1995 # Pass precious variables to config.status.
1996 if test "$ac_new_set" = set; then
1997 case $ac_new_val in
1998 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 *) ac_arg=$ac_var=$ac_new_val ;;
2000 esac
2001 case " $ac_configure_args " in
2002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2003 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2004 esac
2005 fi
2006done
2007if $ac_cache_corrupted; then
2008 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2009echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2011echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2012 { (exit 1); exit 1; }; }
2013fi
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
2045
2046
Tanya Lattnerf4644302008-01-17 05:57:22 +00002047LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002048
2049
2050
2051
2052
2053
2054
2055ac_aux_dir=
2056for ac_dir in autoconf "$srcdir"/autoconf; do
2057 if test -f "$ac_dir/install-sh"; then
2058 ac_aux_dir=$ac_dir
2059 ac_install_sh="$ac_aux_dir/install-sh -c"
2060 break
2061 elif 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/shtool"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/shtool install -c"
2068 break
2069 fi
2070done
2071if test -z "$ac_aux_dir"; then
2072 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2073echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2074 { (exit 1); exit 1; }; }
2075fi
2076
2077# These three variables are undocumented and unsupported,
2078# and are intended to be withdrawn in a future Autoconf release.
2079# They can cause serious problems if a builder's source tree is in a directory
2080# whose full name contains unusual characters.
2081ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2082ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2083ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2084
2085
2086
2087if test ${srcdir} != "." ; then
2088 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2089 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2090echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093fi
2094
2095for i in `ls ${srcdir}/projects`
2096do
2097 if test -d ${srcdir}/projects/${i} ; then
2098 case ${i} in
2099 CVS) ;;
2100 sample) subdirs="$subdirs projects/sample"
2101 ;;
2102 privbracket) subdirs="$subdirs projects/privbracket"
2103 ;;
2104 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2105 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002106 # llvm-test is the old name of the test-suite, kept here for backwards
2107 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002108 llvm-test) subdirs="$subdirs projects/llvm-test"
2109 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002110 test-suite) subdirs="$subdirs projects/test-suite"
2111 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002112 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2113;;
2114 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2115 ;;
2116 llvm-java) subdirs="$subdirs projects/llvm-java"
2117 ;;
2118 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2119 ;;
2120 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2121 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002122 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002123 ;;
2124 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2125 ;;
2126 *)
2127 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2128echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2129 ;;
2130 esac
2131 fi
2132done
2133
2134
2135# Make sure we can run config.sub.
2136$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2139 { (exit 1); exit 1; }; }
2140
2141{ echo "$as_me:$LINENO: checking build system type" >&5
2142echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2143if test "${ac_cv_build+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 ac_build_alias=$build_alias
2147test "x$ac_build_alias" = x &&
2148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149test "x$ac_build_alias" = x &&
2150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152 { (exit 1); exit 1; }; }
2153ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2157
2158fi
2159{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160echo "${ECHO_T}$ac_cv_build" >&6; }
2161case $ac_cv_build in
2162*-*-*) ;;
2163*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164echo "$as_me: error: invalid value of canonical build" >&2;}
2165 { (exit 1); exit 1; }; };;
2166esac
2167build=$ac_cv_build
2168ac_save_IFS=$IFS; IFS='-'
2169set x $ac_cv_build
2170shift
2171build_cpu=$1
2172build_vendor=$2
2173shift; shift
2174# Remember, the first character of IFS is used to create $*,
2175# except with old shells:
2176build_os=$*
2177IFS=$ac_save_IFS
2178case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179
2180
2181{ echo "$as_me:$LINENO: checking host system type" >&5
2182echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2183if test "${ac_cv_host+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 if test "x$host_alias" = x; then
2187 ac_cv_host=$ac_cv_build
2188else
2189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2192 { (exit 1); exit 1; }; }
2193fi
2194
2195fi
2196{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197echo "${ECHO_T}$ac_cv_host" >&6; }
2198case $ac_cv_host in
2199*-*-*) ;;
2200*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201echo "$as_me: error: invalid value of canonical host" >&2;}
2202 { (exit 1); exit 1; }; };;
2203esac
2204host=$ac_cv_host
2205ac_save_IFS=$IFS; IFS='-'
2206set x $ac_cv_host
2207shift
2208host_cpu=$1
2209host_vendor=$2
2210shift; shift
2211# Remember, the first character of IFS is used to create $*,
2212# except with old shells:
2213host_os=$*
2214IFS=$ac_save_IFS
2215case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216
2217
2218{ echo "$as_me:$LINENO: checking target system type" >&5
2219echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2220if test "${ac_cv_target+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 if test "x$target_alias" = x; then
2224 ac_cv_target=$ac_cv_host
2225else
2226 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2227 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2229 { (exit 1); exit 1; }; }
2230fi
2231
2232fi
2233{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234echo "${ECHO_T}$ac_cv_target" >&6; }
2235case $ac_cv_target in
2236*-*-*) ;;
2237*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238echo "$as_me: error: invalid value of canonical target" >&2;}
2239 { (exit 1); exit 1; }; };;
2240esac
2241target=$ac_cv_target
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_target
2244shift
2245target_cpu=$1
2246target_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250target_os=$*
2251IFS=$ac_save_IFS
2252case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253
2254
2255# The aliases save the names the user supplied, while $host etc.
2256# will get canonicalized.
2257test -n "$target_alias" &&
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2259 NONENONEs,x,x, &&
2260 program_prefix=${target_alias}-
2261
2262{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2263echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2264if test "${llvm_cv_os_type+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267 case $host in
2268 *-*-aix*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="AIX"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-irix*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="IRIX"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-cygwin*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Cygwin"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-darwin*)
2284 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002285 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002286 llvm_cv_os_type="Darwin"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-freebsd*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="FreeBSD"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-openbsd*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="OpenBSD"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-netbsd*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="NetBSD"
2302 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002303 *-*-dragonfly*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="DragonFly"
2307 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002308 *-*-hpux*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="HP-UX"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-interix*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="Interix"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-linux*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Linux"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-solaris*)
2324 llvm_cv_link_all_option="-Wl,-z,allextract"
2325 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2326 llvm_cv_os_type="SunOS"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-win32*)
2329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331 llvm_cv_os_type="Win32"
2332 llvm_cv_platform_type="Win32" ;;
2333 *-*-mingw*)
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="MingW"
2337 llvm_cv_platform_type="Win32" ;;
2338 *)
2339 llvm_cv_link_all_option=""
2340 llvm_cv_no_link_all_option=""
2341 llvm_cv_os_type="Unknown"
2342 llvm_cv_platform_type="Unknown" ;;
2343esac
2344fi
2345{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2346echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2347
2348if test "$llvm_cv_os_type" = "Unknown" ; then
2349 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2350echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2351 { (exit 1); exit 1; }; }
2352fi
2353
2354OS=$llvm_cv_os_type
2355
2356
2357LINKALL=$llvm_cv_link_all_option
2358
2359NOLINKALL=$llvm_cv_no_link_all_option
2360
2361
2362case $llvm_cv_platform_type in
2363 Unix)
2364
2365cat >>confdefs.h <<\_ACEOF
2366#define LLVM_ON_UNIX 1
2367_ACEOF
2368
2369 LLVM_ON_UNIX=1
2370
2371 LLVM_ON_WIN32=0
2372
2373 ;;
2374 Win32)
2375
2376cat >>confdefs.h <<\_ACEOF
2377#define LLVM_ON_WIN32 1
2378_ACEOF
2379
2380 LLVM_ON_UNIX=0
2381
2382 LLVM_ON_WIN32=1
2383
2384 ;;
2385esac
2386
2387{ echo "$as_me:$LINENO: checking target architecture" >&5
2388echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389if test "${llvm_cv_target_arch+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392 case $target in
2393 i?86-*) llvm_cv_target_arch="x86" ;;
2394 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2395 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2396 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2397 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2398 ia64-*) llvm_cv_target_arch="IA64" ;;
2399 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002400 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002401 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002402 xcore-*) llvm_cv_target_arch="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002403 *) llvm_cv_target_arch="Unknown" ;;
2404esac
2405fi
2406{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2407echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2408
2409if test "$llvm_cv_target_arch" = "Unknown" ; then
2410 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2411echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2412fi
2413
Bill Wendling025cce52009-03-12 04:10:09 +00002414ARCH=$llvm_cv_target_arch
2415
2416
2417ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444done
2445done
2446IFS=$as_save_IFS
2447
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453echo "${ECHO_T}$CC" >&6; }
2454else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
2457fi
2458
2459
2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464set dummy gcc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493echo "${ECHO_T}$ac_ct_CC" >&6; }
2494else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
2504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505whose name does not start with the host triplet. If you think this
2506configuration is useful to you, please write to autoconf@gnu.org." >&5
2507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508whose name does not start with the host triplet. If you think this
2509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510ac_tool_warned=yes ;;
2511esac
2512 CC=$ac_ct_CC
2513 fi
2514else
2515 CC="$ac_cv_prog_CC"
2516fi
2517
2518if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521set dummy ${ac_tool_prefix}cc; ac_word=$2
2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
2551else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
2554fi
2555
2556
2557 fi
2558fi
2559if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561set dummy cc; ac_word=$2
2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570 ac_prog_rejected=no
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
2588IFS=$as_save_IFS
2589
2590if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601fi
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
2608else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
2611fi
2612
2613
2614fi
2615if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649echo "${ECHO_T}$CC" >&6; }
2650else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6; }
2653fi
2654
2655
2656 test -n "$CC" && break
2657 done
2658fi
2659if test -z "$CC"; then
2660 ac_ct_CC=$CC
2661 for ac_prog in cl.exe
2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693echo "${ECHO_T}$ac_ct_CC" >&6; }
2694else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
2697fi
2698
2699
2700 test -n "$ac_ct_CC" && break
2701done
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709whose name does not start with the host triplet. If you think this
2710configuration is useful to you, please write to autoconf@gnu.org." >&5
2711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet. If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
2718fi
2719
2720fi
2721
2722
2723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724See \`config.log' for more details." >&5
2725echo "$as_me: error: no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729# Provide some information about the compiler.
2730echo "$as_me:$LINENO: checking for C compiler version" >&5
2731ac_compiler=`set X $ac_compile; echo $2`
2732{ (ac_try="$ac_compiler --version >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742{ (ac_try="$ac_compiler -v >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752{ (ac_try="$ac_compiler -V >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778ac_clean_files_save=$ac_clean_files
2779ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780# Try to create an executable without -o first, disregard a.out.
2781# It will help us diagnose broken compilers, and finding out an intuition
2782# of exeext.
2783{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786#
2787# List of possible output files, starting from the most likely.
2788# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789# only as a last resort. b.out is created by i960 compilers.
2790ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791#
2792# The IRIX 6 linker writes into existing files which may not be
2793# executable, retaining their permissions. Remove them first so a
2794# subsequent execution test works.
2795ac_rmfiles=
2796for ac_file in $ac_files
2797do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802done
2803rm -f $ac_rmfiles
2804
2805if { (ac_try="$ac_link_default"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817# in a Makefile. We should not override ac_cv_exeext if it was cached,
2818# so that the user can short-circuit this test for compilers unknown to
2819# Autoconf.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002820for ac_file in $ac_files ''
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002821do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
2840 break;;
2841 * )
2842 break;;
2843 esac
2844done
2845test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00002848 ac_file=''
2849fi
2850
2851{ echo "$as_me:$LINENO: result: $ac_file" >&5
2852echo "${ECHO_T}$ac_file" >&6; }
2853if test -z "$ac_file"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862fi
2863
2864ac_exeext=$ac_cv_exeext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002865
2866# Check that the compiler produces executables we can run. If not, either
2867# the compiler is broken, or we cross compile.
2868{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871# If not cross compiling, check that we can run a simple program.
2872if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889If you meant to cross compile, use \`--host'.
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897fi
2898{ echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6; }
2900
2901rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902ac_clean_files=$ac_clean_files_save
2903# Check that the compiler produces executables we can run. If not, either
2904# the compiler is broken, or we cross compile.
2905{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912if { (ac_try="$ac_link"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 break;;
2932 * ) break;;
2933 esac
2934done
2935else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941fi
2942
2943rm -f conftest$ac_cv_exeext
2944{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947rm -f conftest.$ac_ext
2948EXEEXT=$ac_cv_exeext
2949ac_exeext=$EXEEXT
2950{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.o conftest.obj
2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988done
2989else
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
3002{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003echo "${ECHO_T}$ac_cv_objext" >&6; }
3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
3006{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022 choke me
3023#endif
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 ac_compiler_gnu=no
3052fi
3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057fi
3058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060GCC=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
3063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003104 ac_cv_prog_cc_g=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($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_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003181 ac_cv_prog_cc_g=yes
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190fi
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197fi
3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214fi
3215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_cv_prog_cc_c89=no
3221ac_save_CC=$CC
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <stdarg.h>
3229#include <stdio.h>
3230#include <sys/types.h>
3231#include <sys/stat.h>
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003300 ac_cv_prog_cc_c89=$ac_arg
3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306fi
3307
3308rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3310done
3311rm -f conftest.$ac_ext
3312CC=$ac_save_CC
3313
3314fi
3315# AC_CACHE_VAL
3316case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322echo "${ECHO_T}unsupported" >&6; } ;;
3323 *)
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327esac
3328
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3344# On Suns, sometimes $CPP names a directory.
3345if test -n "$CPP" && test -d "$CPP"; then
3346 CPP=
3347fi
3348if test -z "$CPP"; then
3349 if test "${ac_cv_prog_CPP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352 # Double quotes because CPP needs to be expanded
3353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354 do
3355 ac_preproc_ok=false
3356for ac_c_preproc_warn_flag in '' yes
3357do
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#ifdef __STDC__
3371# include <limits.h>
3372#else
3373# include <assert.h>
3374#endif
3375 Syntax error
3376_ACEOF
3377if { (ac_try="$ac_cpp conftest.$ac_ext"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003393 :
3394else
3395 echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 # Broken: fails on valid input.
3399continue
3400fi
3401
3402rm -f conftest.err conftest.$ac_ext
3403
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412#include <ac_nonexistent.h>
3413_ACEOF
3414if { (ac_try="$ac_cpp conftest.$ac_ext"
3415case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418esac
3419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003430 # Broken: success on invalid input.
3431continue
3432else
3433 echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 # Passes both tests.
3437ac_preproc_ok=:
3438break
3439fi
3440
3441rm -f conftest.err conftest.$ac_ext
3442
3443done
3444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445rm -f conftest.err conftest.$ac_ext
3446if $ac_preproc_ok; then
3447 break
3448fi
3449
3450 done
3451 ac_cv_prog_CPP=$CPP
3452
3453fi
3454 CPP=$ac_cv_prog_CPP
3455else
3456 ac_cv_prog_CPP=$CPP
3457fi
3458{ echo "$as_me:$LINENO: result: $CPP" >&5
3459echo "${ECHO_T}$CPP" >&6; }
3460ac_preproc_ok=false
3461for ac_c_preproc_warn_flag in '' yes
3462do
3463 # Use a header file that comes with gcc, so configuring glibc
3464 # with a fresh cross-compiler works.
3465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466 # <limits.h> exists even on freestanding compilers.
3467 # On the NeXT, cc -E runs the code through the compiler's parser,
3468 # not just through cpp. "Syntax error" is here to catch this case.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#ifdef __STDC__
3476# include <limits.h>
3477#else
3478# include <assert.h>
3479#endif
3480 Syntax error
3481_ACEOF
3482if { (ac_try="$ac_cpp conftest.$ac_ext"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003498 :
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Broken: fails on valid input.
3504continue
3505fi
3506
3507rm -f conftest.err conftest.$ac_ext
3508
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517#include <ac_nonexistent.h>
3518_ACEOF
3519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003535 # Broken: success on invalid input.
3536continue
3537else
3538 echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 # Passes both tests.
3542ac_preproc_ok=:
3543break
3544fi
3545
3546rm -f conftest.err conftest.$ac_ext
3547
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.err conftest.$ac_ext
3551if $ac_preproc_ok; then
3552 :
3553else
3554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3555See \`config.log' for more details." >&5
3556echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3557See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }
3559fi
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567
3568{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3569echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3570if test "${ac_cv_path_GREP+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 # Extract the first word of "grep ggrep" to use in msg output
3574if test -z "$GREP"; then
3575set dummy grep ggrep; ac_prog_name=$2
3576if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 ac_path_GREP_found=false
3580# Loop through the user's path and test for each of PROGNAME-LIST
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_prog in grep ggrep; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003590 # Check for GNU ac_path_GREP and select it if it is found.
3591 # Check for GNU $ac_path_GREP
3592case `"$ac_path_GREP" --version 2>&1` in
3593*GNU*)
3594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3595*)
3596 ac_count=0
3597 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3598 while :
3599 do
3600 cat "conftest.in" "conftest.in" >"conftest.tmp"
3601 mv "conftest.tmp" "conftest.in"
3602 cp "conftest.in" "conftest.nl"
3603 echo 'GREP' >> "conftest.nl"
3604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606 ac_count=`expr $ac_count + 1`
3607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3608 # Best one so far, save it but keep looking for a better one
3609 ac_cv_path_GREP="$ac_path_GREP"
3610 ac_path_GREP_max=$ac_count
3611 fi
3612 # 10*(2^10) chars as input seems more than enough
3613 test $ac_count -gt 10 && break
3614 done
3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616esac
3617
3618
3619 $ac_path_GREP_found && break 3
3620 done
3621done
3622
3623done
3624IFS=$as_save_IFS
3625
3626
3627fi
3628
3629GREP="$ac_cv_path_GREP"
3630if test -z "$GREP"; then
3631 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3633 { (exit 1); exit 1; }; }
3634fi
3635
3636else
3637 ac_cv_path_GREP=$GREP
3638fi
3639
3640
3641fi
3642{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3643echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3644 GREP="$ac_cv_path_GREP"
3645
3646
3647{ echo "$as_me:$LINENO: checking for egrep" >&5
3648echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3649if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3653 then ac_cv_path_EGREP="$GREP -E"
3654 else
3655 # Extract the first word of "egrep" to use in msg output
3656if test -z "$EGREP"; then
3657set dummy egrep; ac_prog_name=$2
3658if test "${ac_cv_path_EGREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 ac_path_EGREP_found=false
3662# Loop through the user's path and test for each of PROGNAME-LIST
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3665do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_prog in egrep; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003672 # Check for GNU ac_path_EGREP and select it if it is found.
3673 # Check for GNU $ac_path_EGREP
3674case `"$ac_path_EGREP" --version 2>&1` in
3675*GNU*)
3676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3677*)
3678 ac_count=0
3679 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3680 while :
3681 do
3682 cat "conftest.in" "conftest.in" >"conftest.tmp"
3683 mv "conftest.tmp" "conftest.in"
3684 cp "conftest.in" "conftest.nl"
3685 echo 'EGREP' >> "conftest.nl"
3686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3688 ac_count=`expr $ac_count + 1`
3689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3690 # Best one so far, save it but keep looking for a better one
3691 ac_cv_path_EGREP="$ac_path_EGREP"
3692 ac_path_EGREP_max=$ac_count
3693 fi
3694 # 10*(2^10) chars as input seems more than enough
3695 test $ac_count -gt 10 && break
3696 done
3697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3698esac
3699
3700
3701 $ac_path_EGREP_found && break 3
3702 done
3703done
3704
3705done
3706IFS=$as_save_IFS
3707
3708
3709fi
3710
3711EGREP="$ac_cv_path_EGREP"
3712if test -z "$EGREP"; then
3713 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3714echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3715 { (exit 1); exit 1; }; }
3716fi
3717
3718else
3719 ac_cv_path_EGREP=$EGREP
3720fi
3721
3722
3723 fi
3724fi
3725{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3726echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3728
3729
3730{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3731echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3732if test "${ac_cv_header_stdc+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
3741#include <stdlib.h>
3742#include <stdarg.h>
3743#include <string.h>
3744#include <float.h>
3745
3746int
3747main ()
3748{
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754rm -f conftest.$ac_objext
3755if { (ac_try="$ac_compile"
3756case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003767 (exit $ac_status); } && {
3768 test -z "$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003771 ac_cv_header_stdc=yes
3772else
3773 echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 ac_cv_header_stdc=no
3777fi
3778
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780
3781if test $ac_cv_header_stdc = yes; then
3782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3783 cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
3789#include <string.h>
3790
3791_ACEOF
3792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 $EGREP "memchr" >/dev/null 2>&1; then
3794 :
3795else
3796 ac_cv_header_stdc=no
3797fi
3798rm -f conftest*
3799
3800fi
3801
3802if test $ac_cv_header_stdc = yes; then
3803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804 cat >conftest.$ac_ext <<_ACEOF
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#include <stdlib.h>
3811
3812_ACEOF
3813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "free" >/dev/null 2>&1; then
3815 :
3816else
3817 ac_cv_header_stdc=no
3818fi
3819rm -f conftest*
3820
3821fi
3822
3823if test $ac_cv_header_stdc = yes; then
3824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825 if test "$cross_compiling" = yes; then
3826 :
3827else
3828 cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834#include <ctype.h>
3835#include <stdlib.h>
3836#if ((' ' & 0x0FF) == 0x020)
3837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3839#else
3840# define ISLOWER(c) \
3841 (('a' <= (c) && (c) <= 'i') \
3842 || ('j' <= (c) && (c) <= 'r') \
3843 || ('s' <= (c) && (c) <= 'z'))
3844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3845#endif
3846
3847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3848int
3849main ()
3850{
3851 int i;
3852 for (i = 0; i < 256; i++)
3853 if (XOR (islower (i), ISLOWER (i))
3854 || toupper (i) != TOUPPER (i))
3855 return 2;
3856 return 0;
3857}
3858_ACEOF
3859rm -f conftest$ac_exeext
3860if { (ac_try="$ac_link"
3861case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
3865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 :
3880else
3881 echo "$as_me: program exited with status $ac_status" >&5
3882echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885( exit $ac_status )
3886ac_cv_header_stdc=no
3887fi
3888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3889fi
3890
3891
3892fi
3893fi
3894{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3895echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3896if test $ac_cv_header_stdc = yes; then
3897
3898cat >>confdefs.h <<\_ACEOF
3899#define STDC_HEADERS 1
3900_ACEOF
3901
3902fi
3903
3904# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915 inttypes.h stdint.h unistd.h
3916do
3917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
3929$ac_includes_default
3930
3931#include <$ac_header>
3932_ACEOF
3933rm -f conftest.$ac_objext
3934if { (ac_try="$ac_compile"
3935case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003950 eval "$as_ac_Header=yes"
3951else
3952 echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 eval "$as_ac_Header=no"
3956fi
3957
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959fi
3960ac_res=`eval echo '${'$as_ac_Header'}'`
3961 { echo "$as_me:$LINENO: result: $ac_res" >&5
3962echo "${ECHO_T}$ac_res" >&6; }
3963if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964 cat >>confdefs.h <<_ACEOF
3965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966_ACEOF
3967
3968fi
3969
3970done
3971
3972
3973{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3974echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3975if test "${ac_cv_c_bigendian+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 # See if sys/param.h defines the BYTE_ORDER macro.
3979cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h. */
3985#include <sys/types.h>
3986#include <sys/param.h>
3987
3988int
3989main ()
3990{
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00003991#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3992 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003993 bogus endian macros
3994#endif
3995
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000rm -f conftest.$ac_objext
4001if { (ac_try="$ac_compile"
4002case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004017 # It does; now see whether it defined to BIG_ENDIAN or not.
4018cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024#include <sys/types.h>
4025#include <sys/param.h>
4026
4027int
4028main ()
4029{
4030#if BYTE_ORDER != BIG_ENDIAN
4031 not big endian
4032#endif
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (ac_try="$ac_compile"
4040case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043esac
4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004055 ac_cv_c_bigendian=yes
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 ac_cv_c_bigendian=no
4061fi
4062
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 # It does not; compile a test program.
4069if test "$cross_compiling" = yes; then
4070 # try to guess the endianness by grepping values into an object file
4071 ac_cv_c_bigendian=unknown
4072 cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h. */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */
4078short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4079short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4080void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4081short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4082short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4083void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4084int
4085main ()
4086{
4087 _ascii (); _ebcdic ();
4088 ;
4089 return 0;
4090}
4091_ACEOF
4092rm -f conftest.$ac_objext
4093if { (ac_try="$ac_compile"
4094case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004109 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4110 ac_cv_c_bigendian=yes
4111fi
4112if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4113 if test "$ac_cv_c_bigendian" = unknown; then
4114 ac_cv_c_bigendian=no
4115 else
4116 # finding both strings is unlikely to happen, but who knows?
4117 ac_cv_c_bigendian=unknown
4118 fi
4119fi
4120else
4121 echo "$as_me: failed program was:" >&5
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124
4125fi
4126
4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128else
4129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
4135$ac_includes_default
4136int
4137main ()
4138{
4139
4140 /* Are we little or big endian? From Harbison&Steele. */
4141 union
4142 {
4143 long int l;
4144 char c[sizeof (long int)];
4145 } u;
4146 u.l = 1;
4147 return u.c[sizeof (long int) - 1] == 1;
4148
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153rm -f conftest$ac_exeext
4154if { (ac_try="$ac_link"
4155case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_link") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 ac_cv_c_bigendian=no
4174else
4175 echo "$as_me: program exited with status $ac_status" >&5
4176echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179( exit $ac_status )
4180ac_cv_c_bigendian=yes
4181fi
4182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183fi
4184
4185
4186fi
4187
4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189fi
4190{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4191echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4192case $ac_cv_c_bigendian in
4193 yes)
4194 ENDIAN=big
4195 ;;
4196 no)
4197 ENDIAN=little
4198 ;;
4199 *)
4200 { { echo "$as_me:$LINENO: error: unknown endianness
4201presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4202echo "$as_me: error: unknown endianness
4203presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4204 { (exit 1); exit 1; }; } ;;
4205esac
4206
4207
4208if test "$cross_compiling" = yes; then
4209 LLVM_CROSS_COMPILING=1
4210
4211
4212{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4213echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4214if test "${ac_cv_build_exeext+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4218 ac_cv_build_exeext=.exe
4219else
4220 ac_build_prefix=${build_alias}-
4221
4222 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4223set dummy ${ac_build_prefix}gcc; ac_word=$2
4224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4226if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 if test -n "$BUILD_CC"; then
4230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004239 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243done
4244done
4245IFS=$as_save_IFS
4246
4247fi
4248fi
4249BUILD_CC=$ac_cv_prog_BUILD_CC
4250if test -n "$BUILD_CC"; then
4251 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4252echo "${ECHO_T}$BUILD_CC" >&6; }
4253else
4254 { echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6; }
4256fi
4257
4258
4259 if test -z "$BUILD_CC"; then
4260 # Extract the first word of "gcc", so it can be a program name with args.
4261set dummy gcc; ac_word=$2
4262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 if test -n "$BUILD_CC"; then
4268 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004277 ac_cv_prog_BUILD_CC="gcc"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287BUILD_CC=$ac_cv_prog_BUILD_CC
4288if test -n "$BUILD_CC"; then
4289 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4290echo "${ECHO_T}$BUILD_CC" >&6; }
4291else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
4294fi
4295
4296
4297 if test -z "$BUILD_CC"; then
4298 # Extract the first word of "cc", so it can be a program name with args.
4299set dummy cc; ac_word=$2
4300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4302if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305 if test -n "$BUILD_CC"; then
4306 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4307else
4308 ac_prog_rejected=no
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317 ac_prog_rejected=yes
4318 continue
4319 fi
4320 ac_cv_prog_BUILD_CC="cc"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325done
4326IFS=$as_save_IFS
4327
4328if test $ac_prog_rejected = yes; then
4329 # We found a bogon in the path, so make sure we never use it.
4330 set dummy $ac_cv_prog_BUILD_CC
4331 shift
4332 if test $# != 0; then
4333 # We chose a different compiler from the bogus one.
4334 # However, it has the same basename, so the bogon will be chosen
4335 # first if we set BUILD_CC to just the basename; use the full file name.
4336 shift
4337 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4338 fi
4339fi
4340fi
4341fi
4342BUILD_CC=$ac_cv_prog_BUILD_CC
4343if test -n "$BUILD_CC"; then
4344 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4345echo "${ECHO_T}$BUILD_CC" >&6; }
4346else
4347 { echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6; }
4349fi
4350
4351
4352 fi
4353 fi
4354 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4355echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4356 { (exit 1); exit 1; }; }
4357 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4358 rm -f conftest*
4359 echo 'int main () { return 0; }' > conftest.$ac_ext
4360 ac_cv_build_exeext=
4361 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4362 (eval $ac_build_link) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; then
4366 for file in conftest.*; do
4367 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004368 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004369 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4370 esac
4371 done
4372 else
4373 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4374echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4375 { (exit 1); exit 1; }; }
4376 fi
4377 rm -f conftest*
4378 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4379fi
4380fi
4381
4382BUILD_EXEEXT=""
4383test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4384{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4385echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4386ac_build_exeext=$BUILD_EXEEXT
4387
Jim Grosbache4c032e2008-10-02 22:56:44 +00004388 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4390set dummy ${ac_build_prefix}g++; ac_word=$2
4391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test -n "$BUILD_CXX"; then
4397 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004406 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410done
4411done
4412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CXX=$ac_cv_prog_BUILD_CXX
4417if test -n "$BUILD_CXX"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4419echo "${ECHO_T}$BUILD_CXX" >&6; }
4420else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423fi
4424
4425
4426 if test -z "$BUILD_CXX"; then
4427 # Extract the first word of "g++", so it can be a program name with args.
4428set dummy g++; 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_CXX+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CXX"; then
4435 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # 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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004444 ac_cv_prog_BUILD_CXX="g++"
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_CXX=$ac_cv_prog_BUILD_CXX
4455if test -n "$BUILD_CXX"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4457echo "${ECHO_T}$BUILD_CXX" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CXX"; then
4465 # Extract the first word of "c++", so it can be a program name with args.
4466set dummy c++; 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_CXX+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CXX"; then
4473 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CXX="c++"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CXX
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CXX to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CXX=$ac_cv_prog_BUILD_CXX
4510if test -n "$BUILD_CXX"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4512echo "${ECHO_T}$BUILD_CXX" >&6; }
4513else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
4516fi
4517
4518
4519 fi
4520 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004521else
4522 LLVM_CROSS_COMPILING=0
4523
4524fi
4525
Nick Lewycky45f0f822009-04-10 05:18:27 +00004526if 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 +00004527 cvsbuild="yes"
4528 optimize="no"
4529 CVSBUILD=CVSBUILD=1
4530
4531else
4532 cvsbuild="no"
4533 optimize="yes"
4534fi
4535
4536
4537# Check whether --enable-optimized was given.
4538if test "${enable_optimized+set}" = set; then
4539 enableval=$enable_optimized;
4540else
4541 enableval=$optimize
4542fi
4543
4544if test ${enableval} = "no" ; then
4545 ENABLE_OPTIMIZED=
4546
4547else
4548 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4549
4550fi
4551
David Greene19b1cbd2009-04-17 14:50:39 +00004552# Check whether --enable-profiling was given.
4553if test "${enable_profiling+set}" = set; then
4554 enableval=$enable_profiling;
4555else
4556 enableval="no"
4557fi
4558
4559if test ${enableval} = "no" ; then
4560 ENABLE_PROFILING=
4561
4562else
4563 ENABLE_PROFILING=ENABLE_PROFILING=1
4564
4565fi
4566
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004567# Check whether --enable-assertions was given.
4568if test "${enable_assertions+set}" = set; then
4569 enableval=$enable_assertions;
4570else
4571 enableval="yes"
4572fi
4573
4574if test ${enableval} = "yes" ; then
4575 DISABLE_ASSERTIONS=
4576
4577else
4578 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4579
4580fi
4581
4582# Check whether --enable-expensive-checks was given.
4583if test "${enable_expensive_checks+set}" = set; then
4584 enableval=$enable_expensive_checks;
4585else
4586 enableval="no"
4587fi
4588
4589if test ${enableval} = "yes" ; then
4590 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4591
4592 EXPENSIVE_CHECKS=yes
4593
4594else
4595 ENABLE_EXPENSIVE_CHECKS=
4596
4597 EXPENSIVE_CHECKS=no
4598
4599fi
4600
4601# Check whether --enable-debug-runtime was given.
4602if test "${enable_debug_runtime+set}" = set; then
4603 enableval=$enable_debug_runtime;
4604else
4605 enableval=no
4606fi
4607
4608if test ${enableval} = "no" ; then
4609 DEBUG_RUNTIME=
4610
4611else
4612 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4613
4614fi
4615
4616# Check whether --enable-jit was given.
4617if test "${enable_jit+set}" = set; then
4618 enableval=$enable_jit;
4619else
4620 enableval=default
4621fi
4622
4623if test ${enableval} = "no"
4624then
4625 JIT=
4626
4627else
4628 case "$llvm_cv_target_arch" in
4629 x86) TARGET_HAS_JIT=1
4630 ;;
4631 Sparc) TARGET_HAS_JIT=0
4632 ;;
4633 PowerPC) TARGET_HAS_JIT=1
4634 ;;
4635 x86_64) TARGET_HAS_JIT=1
4636 ;;
4637 Alpha) TARGET_HAS_JIT=1
4638 ;;
4639 IA64) TARGET_HAS_JIT=0
4640 ;;
4641 ARM) TARGET_HAS_JIT=0
4642 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004643 Mips) TARGET_HAS_JIT=0
4644 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004645 PIC16) TARGET_HAS_JIT=0
4646 ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004647 XCore) TARGET_HAS_JIT=0
4648 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004649 *) TARGET_HAS_JIT=0
4650 ;;
4651 esac
4652fi
4653
4654# Check whether --enable-doxygen was given.
4655if test "${enable_doxygen+set}" = set; then
4656 enableval=$enable_doxygen;
4657else
4658 enableval=default
4659fi
4660
4661case "$enableval" in
4662 yes) ENABLE_DOXYGEN=1
4663 ;;
4664 no) ENABLE_DOXYGEN=0
4665 ;;
4666 default) ENABLE_DOXYGEN=0
4667 ;;
4668 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4669echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4671esac
4672
4673# Check whether --enable-threads was given.
4674if test "${enable_threads+set}" = set; then
4675 enableval=$enable_threads;
4676else
4677 enableval=default
4678fi
4679
4680case "$enableval" in
4681 yes) ENABLE_THREADS=1
4682 ;;
4683 no) ENABLE_THREADS=0
4684 ;;
4685 default) ENABLE_THREADS=1
4686 ;;
4687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4688echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4689 { (exit 1); exit 1; }; } ;;
4690esac
4691
4692cat >>confdefs.h <<_ACEOF
4693#define ENABLE_THREADS $ENABLE_THREADS
4694_ACEOF
4695
4696
4697# Check whether --enable-pic was given.
4698if test "${enable_pic+set}" = set; then
4699 enableval=$enable_pic;
4700else
4701 enableval=default
4702fi
4703
4704case "$enableval" in
4705 yes) ENABLE_PIC=1
4706 ;;
4707 no) ENABLE_PIC=0
4708 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004709 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004710 ;;
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4712echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4714esac
4715
4716cat >>confdefs.h <<_ACEOF
4717#define ENABLE_PIC $ENABLE_PIC
4718_ACEOF
4719
4720
4721TARGETS_TO_BUILD=""
4722# Check whether --enable-targets was given.
4723if test "${enable_targets+set}" = set; then
4724 enableval=$enable_targets;
4725else
4726 enableval=all
4727fi
4728
4729case "$enableval" in
Richard Osborneab8167a2008-11-07 10:59:00 +00004730 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004731 host-only)
4732 case "$llvm_cv_target_arch" in
4733 x86) TARGETS_TO_BUILD="X86" ;;
4734 x86_64) TARGETS_TO_BUILD="X86" ;;
4735 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4736 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4737 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4738 IA64) TARGETS_TO_BUILD="IA64" ;;
4739 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004740 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004741 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004742 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004743 XCore) TARGETS_TO_BUILD="XCore" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004744 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4745echo "$as_me: error: Can not set target to build" >&2;}
4746 { (exit 1); exit 1; }; } ;;
4747 esac
4748 ;;
4749 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4750 case "$a_target" in
4751 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4752 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4753 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4754 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4755 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4756 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4757 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004758 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004759 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004760 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004761 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004762 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4763 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004764 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004765 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4766echo "$as_me: error: Unrecognized target $a_target" >&2;}
4767 { (exit 1); exit 1; }; } ;;
4768 esac
4769 done
4770 ;;
4771esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004772TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4773
4774
4775# Check whether --enable-cbe-printf-a was given.
4776if test "${enable_cbe_printf_a+set}" = set; then
4777 enableval=$enable_cbe_printf_a;
4778else
4779 enableval=default
4780fi
4781
4782case "$enableval" in
4783 yes) ENABLE_CBE_PRINTF_A=1
4784 ;;
4785 no) ENABLE_CBE_PRINTF_A=0
4786 ;;
4787 default) ENABLE_CBE_PRINTF_A=1
4788 ;;
4789 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791 { (exit 1); exit 1; }; } ;;
4792esac
4793
4794cat >>confdefs.h <<_ACEOF
4795#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4796_ACEOF
4797
4798
4799
4800# Check whether --with-llvmgccdir was given.
4801if test "${with_llvmgccdir+set}" = set; then
4802 withval=$with_llvmgccdir;
4803else
4804 withval=default
4805fi
4806
4807case "$withval" in
4808 default) WITH_LLVMGCCDIR=default ;;
4809 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4810 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4813esac
4814
4815
Devang Pateld84ba7b2007-12-04 22:54:47 +00004816# Check whether --with-llvmgcc was given.
4817if test "${with_llvmgcc+set}" = set; then
4818 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4819 WITH_LLVMGCCDIR=""
4820fi
4821
4822
4823
4824# Check whether --with-llvmgxx was given.
4825if test "${with_llvmgxx+set}" = set; then
4826 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4827 WITH_LLVMGCCDIR=""
4828fi
4829
4830
4831if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4832 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4833echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4834 { (exit 1); exit 1; }; };
4835fi
4836
4837if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4838 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4839echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4840 { (exit 1); exit 1; }; };
4841fi
4842
4843
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004844# Check whether --with-extra-options was given.
4845if test "${with_extra_options+set}" = set; then
4846 withval=$with_extra_options;
4847else
4848 withval=default
4849fi
4850
4851case "$withval" in
4852 default) EXTRA_OPTIONS= ;;
4853 *) EXTRA_OPTIONS=$withval ;;
4854esac
4855EXTRA_OPTIONS=$EXTRA_OPTIONS
4856
4857
Gordon Henriksen016ec472007-10-02 09:50:32 +00004858# Check whether --enable-bindings was given.
4859if test "${enable_bindings+set}" = set; then
4860 enableval=$enable_bindings;
4861else
4862 enableval=default
4863fi
4864
4865BINDINGS_TO_BUILD=""
4866case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00004867 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00004868 all ) BINDINGS_TO_BUILD="ocaml" ;;
4869 none | no) BINDINGS_TO_BUILD="" ;;
4870 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4871 case "$a_binding" in
4872 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4873 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4874echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4876 esac
4877 done
4878 ;;
4879esac
4880
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004881
Gordon Henriksen058a4c62007-10-02 16:42:22 +00004882# Check whether --with-ocaml-libdir was given.
4883if test "${with_ocaml_libdir+set}" = set; then
4884 withval=$with_ocaml_libdir;
4885else
4886 withval=auto
4887fi
4888
4889case "$withval" in
4890 auto) with_ocaml_libdir="$withval" ;;
4891 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4893echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895esac
4896
4897
Nick Lewyckyf9c14662009-02-03 07:10:30 +00004898# Check whether --with-binutils-include was given.
4899if test "${with_binutils_include+set}" = set; then
4900 withval=$with_binutils_include;
4901else
4902 withval=default
4903fi
4904
4905case "$withval" in
4906 default) WITH_BINUTILS_INCDIR=default ;;
4907 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
4908 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
4909echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4911esac
4912if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
4913 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
4914
4915 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
4916 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
4917 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
4918echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
4919 { (exit 1); exit 1; }; };
4920 fi
4921fi
4922
4923
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004924ac_ext=c
4925ac_cpp='$CPP $CPPFLAGS'
4926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4930echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4931# On Suns, sometimes $CPP names a directory.
4932if test -n "$CPP" && test -d "$CPP"; then
4933 CPP=
4934fi
4935if test -z "$CPP"; then
4936 if test "${ac_cv_prog_CPP+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939 # Double quotes because CPP needs to be expanded
4940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4941 do
4942 ac_preproc_ok=false
4943for ac_c_preproc_warn_flag in '' yes
4944do
4945 # Use a header file that comes with gcc, so configuring glibc
4946 # with a fresh cross-compiler works.
4947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4948 # <limits.h> exists even on freestanding compilers.
4949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957#ifdef __STDC__
4958# include <limits.h>
4959#else
4960# include <assert.h>
4961#endif
4962 Syntax error
4963_ACEOF
4964if { (ac_try="$ac_cpp conftest.$ac_ext"
4965case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968esac
4969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00004976 (exit $ac_status); } >/dev/null && {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004980 :
4981else
4982 echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 # Broken: fails on valid input.
4986continue
4987fi
4988
4989rm -f conftest.err conftest.$ac_ext
4990
4991 # OK, works on sane cases. Now check whether nonexistent headers
4992 # can be detected and how.
4993 cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999#include <ac_nonexistent.h>
5000_ACEOF
5001if { (ac_try="$ac_cpp conftest.$ac_ext"
5002case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005esac
5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005013 (exit $ac_status); } >/dev/null && {
5014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005017 # Broken: success on invalid input.
5018continue
5019else
5020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 # Passes both tests.
5024ac_preproc_ok=:
5025break
5026fi
5027
5028rm -f conftest.err conftest.$ac_ext
5029
5030done
5031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032rm -f conftest.err conftest.$ac_ext
5033if $ac_preproc_ok; then
5034 break
5035fi
5036
5037 done
5038 ac_cv_prog_CPP=$CPP
5039
5040fi
5041 CPP=$ac_cv_prog_CPP
5042else
5043 ac_cv_prog_CPP=$CPP
5044fi
5045{ echo "$as_me:$LINENO: result: $CPP" >&5
5046echo "${ECHO_T}$CPP" >&6; }
5047ac_preproc_ok=false
5048for ac_c_preproc_warn_flag in '' yes
5049do
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#ifdef __STDC__
5063# include <limits.h>
5064#else
5065# include <assert.h>
5066#endif
5067 Syntax error
5068_ACEOF
5069if { (ac_try="$ac_cpp conftest.$ac_ext"
5070case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073esac
5074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005081 (exit $ac_status); } >/dev/null && {
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5084 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 # Broken: fails on valid input.
5091continue
5092fi
5093
5094rm -f conftest.err conftest.$ac_ext
5095
5096 # OK, works on sane cases. Now check whether nonexistent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h. */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h. */
5104#include <ac_nonexistent.h>
5105_ACEOF
5106if { (ac_try="$ac_cpp conftest.$ac_ext"
5107case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005122 # Broken: success on invalid input.
5123continue
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 # Passes both tests.
5129ac_preproc_ok=:
5130break
5131fi
5132
5133rm -f conftest.err conftest.$ac_ext
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137rm -f conftest.err conftest.$ac_ext
5138if $ac_preproc_ok; then
5139 :
5140else
5141 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5142See \`config.log' for more details." >&5
5143echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5144See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146fi
5147
5148ac_ext=c
5149ac_cpp='$CPP $CPPFLAGS'
5150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154ac_ext=c
5155ac_cpp='$CPP $CPPFLAGS'
5156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159if test -n "$ac_tool_prefix"; then
5160 for ac_prog in gcc
5161 do
5162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166if test "${ac_cv_prog_CC+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 if test -n "$CC"; then
5170 ac_cv_prog_CC="$CC" # Let the user override the test.
5171else
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
5185IFS=$as_save_IFS
5186
5187fi
5188fi
5189CC=$ac_cv_prog_CC
5190if test -n "$CC"; then
5191 { echo "$as_me:$LINENO: result: $CC" >&5
5192echo "${ECHO_T}$CC" >&6; }
5193else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6; }
5196fi
5197
5198
5199 test -n "$CC" && break
5200 done
5201fi
5202if test -z "$CC"; then
5203 ac_ct_CC=$CC
5204 for ac_prog in gcc
5205do
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207set dummy $ac_prog; ac_word=$2
5208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 if test -n "$ac_ct_CC"; then
5214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005223 ac_cv_prog_ac_ct_CC="$ac_prog"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227done
5228done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233ac_ct_CC=$ac_cv_prog_ac_ct_CC
5234if test -n "$ac_ct_CC"; then
5235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5236echo "${ECHO_T}$ac_ct_CC" >&6; }
5237else
5238 { echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6; }
5240fi
5241
5242
5243 test -n "$ac_ct_CC" && break
5244done
5245
5246 if test "x$ac_ct_CC" = x; then
5247 CC=""
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250yes:)
5251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252whose name does not start with the host triplet. If you think this
5253configuration is useful to you, please write to autoconf@gnu.org." >&5
5254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255whose name does not start with the host triplet. If you think this
5256configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257ac_tool_warned=yes ;;
5258esac
5259 CC=$ac_ct_CC
5260 fi
5261fi
5262
5263
5264test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5265See \`config.log' for more details." >&5
5266echo "$as_me: error: no acceptable C compiler found in \$PATH
5267See \`config.log' for more details." >&2;}
5268 { (exit 1); exit 1; }; }
5269
5270# Provide some information about the compiler.
5271echo "$as_me:$LINENO: checking for C compiler version" >&5
5272ac_compiler=`set X $ac_compile; echo $2`
5273{ (ac_try="$ac_compiler --version >&5"
5274case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compiler --version >&5") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283{ (ac_try="$ac_compiler -v >&5"
5284case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compiler -v >&5") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293{ (ac_try="$ac_compiler -V >&5"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compiler -V >&5") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303
5304{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5305echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5306if test "${ac_cv_c_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315
5316int
5317main ()
5318{
5319#ifndef __GNUC__
5320 choke me
5321#endif
5322
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext
5328if { (ac_try="$ac_compile"
5329case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005340 (exit $ac_status); } && {
5341 test -z "$ac_c_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005344 ac_compiler_gnu=yes
5345else
5346 echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_compiler_gnu=no
5350fi
5351
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353ac_cv_c_compiler_gnu=$ac_compiler_gnu
5354
5355fi
5356{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5357echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5358GCC=`test $ac_compiler_gnu = yes && echo yes`
5359ac_test_CFLAGS=${CFLAGS+set}
5360ac_save_CFLAGS=$CFLAGS
5361{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5363if test "${ac_cv_prog_cc_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 ac_save_c_werror_flag=$ac_c_werror_flag
5367 ac_c_werror_flag=yes
5368 ac_cv_prog_cc_g=no
5369 CFLAGS="-g"
5370 cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376
5377int
5378main ()
5379{
5380
5381 ;
5382 return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext
5386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005402 ac_cv_prog_cc_g=yes
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 CFLAGS=""
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (ac_try="$ac_compile"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005440 :
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 ac_c_werror_flag=$ac_save_c_werror_flag
5446 CFLAGS="-g"
5447 cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
5453
5454int
5455main ()
5456{
5457
5458 ;
5459 return 0;
5460}
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (ac_try="$ac_compile"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005479 ac_cv_prog_cc_g=yes
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485fi
5486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_c_werror_flag=$ac_save_c_werror_flag
5495fi
5496{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5497echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5498if test "$ac_test_CFLAGS" = set; then
5499 CFLAGS=$ac_save_CFLAGS
5500elif test $ac_cv_prog_cc_g = yes; then
5501 if test "$GCC" = yes; then
5502 CFLAGS="-g -O2"
5503 else
5504 CFLAGS="-g"
5505 fi
5506else
5507 if test "$GCC" = yes; then
5508 CFLAGS="-O2"
5509 else
5510 CFLAGS=
5511 fi
5512fi
5513{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5514echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5515if test "${ac_cv_prog_cc_c89+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 ac_cv_prog_cc_c89=no
5519ac_save_CC=$CC
5520cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526#include <stdarg.h>
5527#include <stdio.h>
5528#include <sys/types.h>
5529#include <sys/stat.h>
5530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5531struct buf { int x; };
5532FILE * (*rcsopen) (struct buf *, struct stat *, int);
5533static char *e (p, i)
5534 char **p;
5535 int i;
5536{
5537 return p[i];
5538}
5539static char *f (char * (*g) (char **, int), char **p, ...)
5540{
5541 char *s;
5542 va_list v;
5543 va_start (v,p);
5544 s = g (p, va_arg (v,int));
5545 va_end (v);
5546 return s;
5547}
5548
5549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5550 function prototypes and stuff, but not '\xHH' hex character constants.
5551 These don't provoke an error unfortunately, instead are silently treated
5552 as 'x'. The following induces an error, until -std is added to get
5553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5554 array size at least. It's necessary to write '\x00'==0 to get something
5555 that's true only with -std. */
5556int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5557
5558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5559 inside strings and character constants. */
5560#define FOO(x) 'x'
5561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5562
5563int test (int i, double x);
5564struct s1 {int (*f) (int a);};
5565struct s2 {int (*f) (double a);};
5566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5567int argc;
5568char **argv;
5569int
5570main ()
5571{
5572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5579do
5580 CC="$ac_save_CC $ac_arg"
5581 rm -f conftest.$ac_objext
5582if { (ac_try="$ac_compile"
5583case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586esac
5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005598 ac_cv_prog_cc_c89=$ac_arg
5599else
5600 echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603
5604fi
5605
5606rm -f core conftest.err conftest.$ac_objext
5607 test "x$ac_cv_prog_cc_c89" != "xno" && break
5608done
5609rm -f conftest.$ac_ext
5610CC=$ac_save_CC
5611
5612fi
5613# AC_CACHE_VAL
5614case "x$ac_cv_prog_cc_c89" in
5615 x)
5616 { echo "$as_me:$LINENO: result: none needed" >&5
5617echo "${ECHO_T}none needed" >&6; } ;;
5618 xno)
5619 { echo "$as_me:$LINENO: result: unsupported" >&5
5620echo "${ECHO_T}unsupported" >&6; } ;;
5621 *)
5622 CC="$CC $ac_cv_prog_cc_c89"
5623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5624echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5625esac
5626
5627
5628ac_ext=c
5629ac_cpp='$CPP $CPPFLAGS'
5630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634ac_ext=cpp
5635ac_cpp='$CXXCPP $CPPFLAGS'
5636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5639if test -z "$CXX"; then
5640 if test -n "$CCC"; then
5641 CXX=$CCC
5642 else
5643 if test -n "$ac_tool_prefix"; then
5644 for ac_prog in g++
5645 do
5646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5650if test "${ac_cv_prog_CXX+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 if test -n "$CXX"; then
5654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5655else
5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH
5658do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667done
5668done
5669IFS=$as_save_IFS
5670
5671fi
5672fi
5673CXX=$ac_cv_prog_CXX
5674if test -n "$CXX"; then
5675 { echo "$as_me:$LINENO: result: $CXX" >&5
5676echo "${ECHO_T}$CXX" >&6; }
5677else
5678 { echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6; }
5680fi
5681
5682
5683 test -n "$CXX" && break
5684 done
5685fi
5686if test -z "$CXX"; then
5687 ac_ct_CXX=$CXX
5688 for ac_prog in g++
5689do
5690 # Extract the first word of "$ac_prog", so it can be a program name with args.
5691set dummy $ac_prog; ac_word=$2
5692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 if test -n "$ac_ct_CXX"; then
5698 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005707 ac_cv_prog_ac_ct_CXX="$ac_prog"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5718if test -n "$ac_ct_CXX"; then
5719 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5720echo "${ECHO_T}$ac_ct_CXX" >&6; }
5721else
5722 { echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6; }
5724fi
5725
5726
5727 test -n "$ac_ct_CXX" && break
5728done
5729
5730 if test "x$ac_ct_CXX" = x; then
5731 CXX="g++"
5732 else
5733 case $cross_compiling:$ac_tool_warned in
5734yes:)
5735{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5736whose name does not start with the host triplet. If you think this
5737configuration is useful to you, please write to autoconf@gnu.org." >&5
5738echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5739whose name does not start with the host triplet. If you think this
5740configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5741ac_tool_warned=yes ;;
5742esac
5743 CXX=$ac_ct_CXX
5744 fi
5745fi
5746
5747 fi
5748fi
5749# Provide some information about the compiler.
5750echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5751ac_compiler=`set X $ac_compile; echo $2`
5752{ (ac_try="$ac_compiler --version >&5"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compiler --version >&5") 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }
5762{ (ac_try="$ac_compiler -v >&5"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler -v >&5") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772{ (ac_try="$ac_compiler -V >&5"
5773case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -V >&5") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
5782
5783{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5784echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5785if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
5794
5795int
5796main ()
5797{
5798#ifndef __GNUC__
5799 choke me
5800#endif
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806rm -f conftest.$ac_objext
5807if { (ac_try="$ac_compile"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005819 (exit $ac_status); } && {
5820 test -z "$ac_cxx_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005823 ac_compiler_gnu=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_compiler_gnu=no
5829fi
5830
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5833
5834fi
5835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837GXX=`test $ac_compiler_gnu = yes && echo yes`
5838ac_test_CXXFLAGS=${CXXFLAGS+set}
5839ac_save_CXXFLAGS=$CXXFLAGS
5840{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5847 ac_cv_prog_cxx_g=no
5848 CXXFLAGS="-g"
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005877 (exit $ac_status); } && {
5878 test -z "$ac_cxx_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005881 ac_cv_prog_cxx_g=yes
5882else
5883 echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 CXXFLAGS=""
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893
5894int
5895main ()
5896{
5897
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (ac_try="$ac_compile"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005915 (exit $ac_status); } && {
5916 test -z "$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005919 :
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5925 CXXFLAGS="-g"
5926 cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (ac_try="$ac_compile"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00005954 (exit $ac_status); } && {
5955 test -z "$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005958 ac_cv_prog_cxx_g=yes
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963
5964fi
5965
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5974fi
5975{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5976echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5977if test "$ac_test_CXXFLAGS" = set; then
5978 CXXFLAGS=$ac_save_CXXFLAGS
5979elif test $ac_cv_prog_cxx_g = yes; then
5980 if test "$GXX" = yes; then
5981 CXXFLAGS="-g -O2"
5982 else
5983 CXXFLAGS="-g"
5984 fi
5985else
5986 if test "$GXX" = yes; then
5987 CXXFLAGS="-O2"
5988 else
5989 CXXFLAGS=
5990 fi
5991fi
5992ac_ext=c
5993ac_cpp='$CPP $CPPFLAGS'
5994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005998
5999{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6000echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6001if test "${lt_cv_path_NM+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004 if test -n "$NM"; then
6005 # Let the user override the test.
6006 lt_cv_path_NM="$NM"
6007else
6008 lt_nm_to_check="${ac_tool_prefix}nm"
6009 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6010 lt_nm_to_check="$lt_nm_to_check nm"
6011 fi
6012 for lt_tmp_nm in $lt_nm_to_check; do
6013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6014 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6015 IFS="$lt_save_ifs"
6016 test -z "$ac_dir" && ac_dir=.
6017 tmp_nm="$ac_dir/$lt_tmp_nm"
6018 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6019 # Check to see if the nm accepts a BSD-compat flag.
6020 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6021 # nm: unknown option "B" ignored
6022 # Tru64's nm complains that /dev/null is an invalid object file
6023 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6024 */dev/null* | *'Invalid file or object type'*)
6025 lt_cv_path_NM="$tmp_nm -B"
6026 break
6027 ;;
6028 *)
6029 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6030 */dev/null*)
6031 lt_cv_path_NM="$tmp_nm -p"
6032 break
6033 ;;
6034 *)
6035 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6036 continue # so that we can try to find one that supports BSD flags
6037 ;;
6038 esac
6039 ;;
6040 esac
6041 fi
6042 done
6043 IFS="$lt_save_ifs"
6044 done
6045 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6046fi
6047fi
6048{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6049echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6050NM="$lt_cv_path_NM"
6051
6052
6053
6054{ echo "$as_me:$LINENO: checking for GNU make" >&5
6055echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6056if test "${llvm_cv_gnu_make_command+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059 llvm_cv_gnu_make_command=''
6060 for a in "$MAKE" make gmake gnumake ; do
6061 if test -z "$a" ; then continue ; fi ;
6062 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6063 then
6064 llvm_cv_gnu_make_command=$a ;
6065 break;
6066 fi
6067 done
6068fi
6069{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6070echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6071 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6072 ifGNUmake='' ;
6073 else
6074 ifGNUmake='#' ;
6075 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6076echo "${ECHO_T}\"Not found\"" >&6; };
6077 fi
6078
6079
6080{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6081echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6082LN_S=$as_ln_s
6083if test "$LN_S" = "ln -s"; then
6084 { echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6; }
6086else
6087 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6088echo "${ECHO_T}no, using $LN_S" >&6; }
6089fi
6090
6091# Extract the first word of "cmp", so it can be a program name with args.
6092set dummy cmp; ac_word=$2
6093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095if test "${ac_cv_path_CMP+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 case $CMP in
6099 [\\/]* | ?:[\\/]*)
6100 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6101 ;;
6102 *)
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006110 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114done
6115done
6116IFS=$as_save_IFS
6117
6118 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6119 ;;
6120esac
6121fi
6122CMP=$ac_cv_path_CMP
6123if test -n "$CMP"; then
6124 { echo "$as_me:$LINENO: result: $CMP" >&5
6125echo "${ECHO_T}$CMP" >&6; }
6126else
6127 { echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6; }
6129fi
6130
6131
6132# Extract the first word of "cp", so it can be a program name with args.
6133set dummy cp; ac_word=$2
6134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136if test "${ac_cv_path_CP+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139 case $CP in
6140 [\\/]* | ?:[\\/]*)
6141 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6142 ;;
6143 *)
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006151 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156done
6157IFS=$as_save_IFS
6158
6159 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6160 ;;
6161esac
6162fi
6163CP=$ac_cv_path_CP
6164if test -n "$CP"; then
6165 { echo "$as_me:$LINENO: result: $CP" >&5
6166echo "${ECHO_T}$CP" >&6; }
6167else
6168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
6170fi
6171
6172
6173# Extract the first word of "date", so it can be a program name with args.
6174set dummy date; ac_word=$2
6175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177if test "${ac_cv_path_DATE+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 case $DATE in
6181 [\\/]* | ?:[\\/]*)
6182 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6183 ;;
6184 *)
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006192 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197done
6198IFS=$as_save_IFS
6199
6200 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6201 ;;
6202esac
6203fi
6204DATE=$ac_cv_path_DATE
6205if test -n "$DATE"; then
6206 { echo "$as_me:$LINENO: result: $DATE" >&5
6207echo "${ECHO_T}$DATE" >&6; }
6208else
6209 { echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6; }
6211fi
6212
6213
6214# Extract the first word of "find", so it can be a program name with args.
6215set dummy find; ac_word=$2
6216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218if test "${ac_cv_path_FIND+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 case $FIND in
6222 [\\/]* | ?:[\\/]*)
6223 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6224 ;;
6225 *)
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006233 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237done
6238done
6239IFS=$as_save_IFS
6240
6241 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6242 ;;
6243esac
6244fi
6245FIND=$ac_cv_path_FIND
6246if test -n "$FIND"; then
6247 { echo "$as_me:$LINENO: result: $FIND" >&5
6248echo "${ECHO_T}$FIND" >&6; }
6249else
6250 { echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6; }
6252fi
6253
6254
6255# Extract the first word of "grep", so it can be a program name with args.
6256set dummy grep; ac_word=$2
6257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259if test "${ac_cv_path_GREP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262 case $GREP in
6263 [\\/]* | ?:[\\/]*)
6264 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006274 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279done
6280IFS=$as_save_IFS
6281
6282 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6283 ;;
6284esac
6285fi
6286GREP=$ac_cv_path_GREP
6287if test -n "$GREP"; then
6288 { echo "$as_me:$LINENO: result: $GREP" >&5
6289echo "${ECHO_T}$GREP" >&6; }
6290else
6291 { echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6; }
6293fi
6294
6295
6296# Extract the first word of "mkdir", so it can be a program name with args.
6297set dummy mkdir; ac_word=$2
6298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300if test "${ac_cv_path_MKDIR+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 case $MKDIR in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006315 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319done
6320done
6321IFS=$as_save_IFS
6322
6323 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6324 ;;
6325esac
6326fi
6327MKDIR=$ac_cv_path_MKDIR
6328if test -n "$MKDIR"; then
6329 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6330echo "${ECHO_T}$MKDIR" >&6; }
6331else
6332 { echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6; }
6334fi
6335
6336
6337# Extract the first word of "mv", so it can be a program name with args.
6338set dummy mv; ac_word=$2
6339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341if test "${ac_cv_path_MV+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 case $MV in
6345 [\\/]* | ?:[\\/]*)
6346 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6347 ;;
6348 *)
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006356 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361done
6362IFS=$as_save_IFS
6363
6364 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6365 ;;
6366esac
6367fi
6368MV=$ac_cv_path_MV
6369if test -n "$MV"; then
6370 { echo "$as_me:$LINENO: result: $MV" >&5
6371echo "${ECHO_T}$MV" >&6; }
6372else
6373 { echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6; }
6375fi
6376
6377
6378if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_prog_RANLIB+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 if test -n "$RANLIB"; then
6387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400done
6401done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406RANLIB=$ac_cv_prog_RANLIB
6407if test -n "$RANLIB"; then
6408 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6409echo "${ECHO_T}$RANLIB" >&6; }
6410else
6411 { echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_RANLIB"; then
6418 ac_ct_RANLIB=$RANLIB
6419 # Extract the first word of "ranlib", so it can be a program name with args.
6420set dummy ranlib; ac_word=$2
6421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426 if test -n "$ac_ct_RANLIB"; then
6427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006436 ac_cv_prog_ac_ct_RANLIB="ranlib"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447if test -n "$ac_ct_RANLIB"; then
6448 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6449echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6450else
6451 { echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6; }
6453fi
6454
6455 if test "x$ac_ct_RANLIB" = x; then
6456 RANLIB=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6461whose name does not start with the host triplet. If you think this
6462configuration is useful to you, please write to autoconf@gnu.org." >&5
6463echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6464whose name does not start with the host triplet. If you think this
6465configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468 RANLIB=$ac_ct_RANLIB
6469 fi
6470else
6471 RANLIB="$ac_cv_prog_RANLIB"
6472fi
6473
6474# Extract the first word of "rm", so it can be a program name with args.
6475set dummy rm; ac_word=$2
6476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478if test "${ac_cv_path_RM+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 case $RM in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006493 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497done
6498done
6499IFS=$as_save_IFS
6500
6501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6502 ;;
6503esac
6504fi
6505RM=$ac_cv_path_RM
6506if test -n "$RM"; then
6507 { echo "$as_me:$LINENO: result: $RM" >&5
6508echo "${ECHO_T}$RM" >&6; }
6509else
6510 { echo "$as_me:$LINENO: result: no" >&5
6511echo "${ECHO_T}no" >&6; }
6512fi
6513
6514
6515# Extract the first word of "sed", so it can be a program name with args.
6516set dummy sed; ac_word=$2
6517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519if test "${ac_cv_path_SED+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522 case $SED in
6523 [\\/]* | ?:[\\/]*)
6524 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6525 ;;
6526 *)
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006534 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540IFS=$as_save_IFS
6541
6542 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6543 ;;
6544esac
6545fi
6546SED=$ac_cv_path_SED
6547if test -n "$SED"; then
6548 { echo "$as_me:$LINENO: result: $SED" >&5
6549echo "${ECHO_T}$SED" >&6; }
6550else
6551 { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
6553fi
6554
6555
6556# Extract the first word of "tar", so it can be a program name with args.
6557set dummy tar; ac_word=$2
6558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560if test "${ac_cv_path_TAR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563 case $TAR in
6564 [\\/]* | ?:[\\/]*)
6565 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6566 ;;
6567 *)
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006575 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579done
6580done
6581IFS=$as_save_IFS
6582
6583 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6584 ;;
6585esac
6586fi
6587TAR=$ac_cv_path_TAR
6588if test -n "$TAR"; then
6589 { echo "$as_me:$LINENO: result: $TAR" >&5
6590echo "${ECHO_T}$TAR" >&6; }
6591else
6592 { echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6; }
6594fi
6595
6596
6597# Extract the first word of "pwd", so it can be a program name with args.
6598set dummy pwd; ac_word=$2
6599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601if test "${ac_cv_path_BINPWD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604 case $BINPWD in
6605 [\\/]* | ?:[\\/]*)
6606 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6607 ;;
6608 *)
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006616 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620done
6621done
6622IFS=$as_save_IFS
6623
6624 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6625 ;;
6626esac
6627fi
6628BINPWD=$ac_cv_path_BINPWD
6629if test -n "$BINPWD"; then
6630 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6631echo "${ECHO_T}$BINPWD" >&6; }
6632else
6633 { echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6; }
6635fi
6636
6637
6638
6639# Extract the first word of "Graphviz", so it can be a program name with args.
6640set dummy Graphviz; ac_word=$2
6641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 case $GRAPHVIZ in
6647 [\\/]* | ?:[\\/]*)
6648 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6649 ;;
6650 *)
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006658 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664IFS=$as_save_IFS
6665
6666 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6667 ;;
6668esac
6669fi
6670GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6671if test -n "$GRAPHVIZ"; then
6672 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6673echo "${ECHO_T}$GRAPHVIZ" >&6; }
6674else
6675 { echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6; }
6677fi
6678
6679
6680if test "$GRAPHVIZ" != "echo Graphviz" ; then
6681
6682cat >>confdefs.h <<\_ACEOF
6683#define HAVE_GRAPHVIZ 1
6684_ACEOF
6685
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688 fi
6689
6690cat >>confdefs.h <<_ACEOF
6691#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6692_ACEOF
6693
6694fi
6695# Extract the first word of "dot", so it can be a program name with args.
6696set dummy dot; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_DOT+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $DOT in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006714 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6723 ;;
6724esac
6725fi
6726DOT=$ac_cv_path_DOT
6727if test -n "$DOT"; then
6728 { echo "$as_me:$LINENO: result: $DOT" >&5
6729echo "${ECHO_T}$DOT" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736if test "$DOT" != "echo dot" ; then
6737
6738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_DOT 1
6740_ACEOF
6741
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 fi
6745
6746cat >>confdefs.h <<_ACEOF
6747#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6748_ACEOF
6749
6750fi
6751for ac_prog in gv gsview32
6752do
6753 # Extract the first word of "$ac_prog", so it can be a program name with args.
6754set dummy $ac_prog; ac_word=$2
6755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757if test "${ac_cv_path_GV+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 case $GV in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6763 ;;
6764 *)
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006772 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777done
6778IFS=$as_save_IFS
6779
6780 ;;
6781esac
6782fi
6783GV=$ac_cv_path_GV
6784if test -n "$GV"; then
6785 { echo "$as_me:$LINENO: result: $GV" >&5
6786echo "${ECHO_T}$GV" >&6; }
6787else
6788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
6790fi
6791
6792
6793 test -n "$GV" && break
6794done
6795test -n "$GV" || GV="echo gv"
6796
6797if test "$GV" != "echo gv" ; then
6798
6799cat >>confdefs.h <<\_ACEOF
6800#define HAVE_GV 1
6801_ACEOF
6802
6803 if test "$llvm_cv_os_type" = "MingW" ; then
6804 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805 fi
6806
6807cat >>confdefs.h <<_ACEOF
6808#define LLVM_PATH_GV "$GV${EXEEXT}"
6809_ACEOF
6810
6811fi
6812# Extract the first word of "dotty", so it can be a program name with args.
6813set dummy dotty; 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_DOTTY+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 case $DOTTY in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_DOTTY="$DOTTY" # 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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006831 ac_cv_path_DOTTY="$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_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6840 ;;
6841esac
6842fi
6843DOTTY=$ac_cv_path_DOTTY
6844if test -n "$DOTTY"; then
6845 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6846echo "${ECHO_T}$DOTTY" >&6; }
6847else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853if test "$DOTTY" != "echo dotty" ; then
6854
6855cat >>confdefs.h <<\_ACEOF
6856#define HAVE_DOTTY 1
6857_ACEOF
6858
6859 if test "$llvm_cv_os_type" = "MingW" ; then
6860 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861 fi
6862
6863cat >>confdefs.h <<_ACEOF
6864#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6865_ACEOF
6866
6867fi
6868
6869
6870# Extract the first word of "perl", so it can be a program name with args.
6871set dummy perl; ac_word=$2
6872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874if test "${ac_cv_path_PERL+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 case $PERL in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006889 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894done
6895IFS=$as_save_IFS
6896
6897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6898 ;;
6899esac
6900fi
6901PERL=$ac_cv_path_PERL
6902if test -n "$PERL"; then
6903 { echo "$as_me:$LINENO: result: $PERL" >&5
6904echo "${ECHO_T}$PERL" >&6; }
6905else
6906 { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
6908fi
6909
6910
6911if test "$PERL" != "none"; then
6912 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6913echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6914 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6915 { echo "$as_me:$LINENO: result: yes" >&5
6916echo "${ECHO_T}yes" >&6; }
6917 else
6918 PERL=none
6919 { echo "$as_me:$LINENO: result: not found" >&5
6920echo "${ECHO_T}not found" >&6; }
6921 fi
6922fi
6923
6924
6925if test x"$PERL" = xnone; then
6926 HAVE_PERL=0
6927
6928 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6929echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6930 { (exit 1); exit 1; }; }
6931else
6932 HAVE_PERL=1
6933
6934fi
6935
6936# Find a good install program. We prefer a C program (faster),
6937# so one script is as good as another. But avoid the broken or
6938# incompatible versions:
6939# SysV /etc/install, /usr/sbin/install
6940# SunOS /usr/etc/install
6941# IRIX /sbin/install
6942# AIX /bin/install
6943# AmigaOS /C/install, which installs bootblocks on floppy discs
6944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6947# OS/2's system install, which has a completely different semantic
6948# ./install, which can be erroneously created by make from ./install.sh.
6949{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6950echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6951if test -z "$INSTALL"; then
6952if test "${ac_cv_path_install+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 # Account for people who put trailing slashes in PATH elements.
6961case $as_dir/ in
6962 ./ | .// | /cC/* | \
6963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6964 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6965 /usr/ucb/* ) ;;
6966 *)
6967 # OSF1 and SCO ODT 3.0 have their own names for install.
6968 # Don't use installbsd from OSF since it installs stuff as root
6969 # by default.
6970 for ac_prog in ginstall scoinst install; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00006972 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006973 if test $ac_prog = install &&
6974 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975 # AIX install. It has an incompatible calling convention.
6976 :
6977 elif test $ac_prog = install &&
6978 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979 # program-specific install script used by HP pwplus--don't use.
6980 :
6981 else
6982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6983 break 3
6984 fi
6985 fi
6986 done
6987 done
6988 ;;
6989esac
6990done
6991IFS=$as_save_IFS
6992
6993
6994fi
6995 if test "${ac_cv_path_install+set}" = set; then
6996 INSTALL=$ac_cv_path_install
6997 else
6998 # As a last resort, use the slow shell script. Don't cache a
6999 # value for INSTALL within a source directory, because that will
7000 # break other packages using the cache if that directory is
7001 # removed, or if the value is a relative name.
7002 INSTALL=$ac_install_sh
7003 fi
7004fi
7005{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7006echo "${ECHO_T}$INSTALL" >&6; }
7007
7008# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7009# It thinks the first close brace ends the variable substitution.
7010test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7011
7012test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7013
7014test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7015
7016
7017# Extract the first word of "bzip2", so it can be a program name with args.
7018set dummy bzip2; ac_word=$2
7019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_BZIP2+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 case $BZIP2 in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007036 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041done
7042IFS=$as_save_IFS
7043
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007044 ;;
7045esac
7046fi
7047BZIP2=$ac_cv_path_BZIP2
7048if test -n "$BZIP2"; then
7049 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050echo "${ECHO_T}$BZIP2" >&6; }
7051else
7052 { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
7054fi
7055
7056
7057# Extract the first word of "doxygen", so it can be a program name with args.
7058set dummy doxygen; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_path_DOXYGEN+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $DOXYGEN in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007076 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082IFS=$as_save_IFS
7083
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007084 ;;
7085esac
7086fi
7087DOXYGEN=$ac_cv_path_DOXYGEN
7088if test -n "$DOXYGEN"; then
7089 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7090echo "${ECHO_T}$DOXYGEN" >&6; }
7091else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
7094fi
7095
7096
7097# Extract the first word of "groff", so it can be a program name with args.
7098set dummy groff; ac_word=$2
7099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_GROFF+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104 case $GROFF in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007116 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120done
7121done
7122IFS=$as_save_IFS
7123
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007124 ;;
7125esac
7126fi
7127GROFF=$ac_cv_path_GROFF
7128if test -n "$GROFF"; then
7129 { echo "$as_me:$LINENO: result: $GROFF" >&5
7130echo "${ECHO_T}$GROFF" >&6; }
7131else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136
7137# Extract the first word of "gzip", so it can be a program name with args.
7138set dummy gzip; ac_word=$2
7139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_GZIP+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 case $GZIP in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007156 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161done
7162IFS=$as_save_IFS
7163
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007164 ;;
7165esac
7166fi
7167GZIP=$ac_cv_path_GZIP
7168if test -n "$GZIP"; then
7169 { echo "$as_me:$LINENO: result: $GZIP" >&5
7170echo "${ECHO_T}$GZIP" >&6; }
7171else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
7174fi
7175
7176
7177# Extract the first word of "pod2html", so it can be a program name with args.
7178set dummy pod2html; ac_word=$2
7179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181if test "${ac_cv_path_POD2HTML+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184 case $POD2HTML in
7185 [\\/]* | ?:[\\/]*)
7186 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007196 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202IFS=$as_save_IFS
7203
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007204 ;;
7205esac
7206fi
7207POD2HTML=$ac_cv_path_POD2HTML
7208if test -n "$POD2HTML"; then
7209 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7210echo "${ECHO_T}$POD2HTML" >&6; }
7211else
7212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
7214fi
7215
7216
7217# Extract the first word of "pod2man", so it can be a program name with args.
7218set dummy pod2man; ac_word=$2
7219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221if test "${ac_cv_path_POD2MAN+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224 case $POD2MAN in
7225 [\\/]* | ?:[\\/]*)
7226 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7227 ;;
7228 *)
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007236 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241done
7242IFS=$as_save_IFS
7243
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007244 ;;
7245esac
7246fi
7247POD2MAN=$ac_cv_path_POD2MAN
7248if test -n "$POD2MAN"; then
7249 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7250echo "${ECHO_T}$POD2MAN" >&6; }
7251else
7252 { echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6; }
7254fi
7255
7256
7257# Extract the first word of "runtest", so it can be a program name with args.
7258set dummy runtest; ac_word=$2
7259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261if test "${ac_cv_path_RUNTEST+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 case $RUNTEST in
7265 [\\/]* | ?:[\\/]*)
7266 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7267 ;;
7268 *)
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007276 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281done
7282IFS=$as_save_IFS
7283
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007284 ;;
7285esac
7286fi
7287RUNTEST=$ac_cv_path_RUNTEST
7288if test -n "$RUNTEST"; then
7289 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7290echo "${ECHO_T}$RUNTEST" >&6; }
7291else
7292 { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
7294fi
7295
7296
7297
7298no_itcl=true
7299{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7300echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7301
7302# Check whether --with-tclinclude was given.
7303if test "${with_tclinclude+set}" = set; then
7304 withval=$with_tclinclude; with_tclinclude=${withval}
7305else
7306 with_tclinclude=''
7307fi
7308
7309if test "${ac_cv_path_tclsh+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312
7313if test x"${with_tclinclude}" != x ; then
7314 if test -f ${with_tclinclude}/tclsh ; then
7315 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7316 elif test -f ${with_tclinclude}/src/tclsh ; then
7317 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7318 else
7319 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7320echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7321 { (exit 1); exit 1; }; }
7322 fi
7323fi
7324
7325if test x"${ac_cv_path_tclsh}" = x ; then
7326 { echo "$as_me:$LINENO: result: none" >&5
7327echo "${ECHO_T}none" >&6; }
7328 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
7329do
7330 # Extract the first word of "$ac_prog", so it can be a program name with args.
7331set dummy $ac_prog; ac_word=$2
7332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334if test "${ac_cv_path_TCLSH+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 case $TCLSH in
7338 [\\/]* | ?:[\\/]*)
7339 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7340 ;;
7341 *)
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007349 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354done
7355IFS=$as_save_IFS
7356
7357 ;;
7358esac
7359fi
7360TCLSH=$ac_cv_path_TCLSH
7361if test -n "$TCLSH"; then
7362 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7363echo "${ECHO_T}$TCLSH" >&6; }
7364else
7365 { echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6; }
7367fi
7368
7369
7370 test -n "$TCLSH" && break
7371done
7372
7373 if test x"${TCLSH}" = x ; then
7374 ac_cv_path_tclsh='';
7375 else
7376 ac_cv_path_tclsh="${TCLSH}";
7377 fi
7378else
7379 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7380echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7381 TCLSH="${ac_cv_path_tclsh}"
7382
7383fi
7384
7385fi
7386
7387# Extract the first word of "zip", so it can be a program name with args.
7388set dummy zip; ac_word=$2
7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_ZIP+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 case $ZIP in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007406 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412IFS=$as_save_IFS
7413
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007414 ;;
7415esac
7416fi
7417ZIP=$ac_cv_path_ZIP
7418if test -n "$ZIP"; then
7419 { echo "$as_me:$LINENO: result: $ZIP" >&5
7420echo "${ECHO_T}$ZIP" >&6; }
7421else
7422 { echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6; }
7424fi
7425
7426
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007427for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007428do
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433if test "${ac_cv_path_OCAMLC+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 case $OCAMLC in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7439 ;;
7440 *)
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007448 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454IFS=$as_save_IFS
7455
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007456 ;;
7457esac
7458fi
7459OCAMLC=$ac_cv_path_OCAMLC
7460if test -n "$OCAMLC"; then
7461 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7462echo "${ECHO_T}$OCAMLC" >&6; }
7463else
7464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
7466fi
7467
7468
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007469 test -n "$OCAMLC" && break
7470done
7471
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007472for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007473do
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 case $OCAMLOPT in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007493 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499IFS=$as_save_IFS
7500
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007501 ;;
7502esac
7503fi
7504OCAMLOPT=$ac_cv_path_OCAMLOPT
7505if test -n "$OCAMLOPT"; then
7506 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7507echo "${ECHO_T}$OCAMLOPT" >&6; }
7508else
7509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
7511fi
7512
7513
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007514 test -n "$OCAMLOPT" && break
7515done
7516
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007517for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007518do
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526 case $OCAMLDEP in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007538 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543done
7544IFS=$as_save_IFS
7545
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007546 ;;
7547esac
7548fi
7549OCAMLDEP=$ac_cv_path_OCAMLDEP
7550if test -n "$OCAMLDEP"; then
7551 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7552echo "${ECHO_T}$OCAMLDEP" >&6; }
7553else
7554 { echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6; }
7556fi
7557
7558
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007559 test -n "$OCAMLDEP" && break
7560done
7561
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007562for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007563do
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565set dummy $ac_prog; ac_word=$2
7566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
7571 case $OCAMLDOC in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007583 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587done
7588done
7589IFS=$as_save_IFS
7590
7591 ;;
7592esac
7593fi
7594OCAMLDOC=$ac_cv_path_OCAMLDOC
7595if test -n "$OCAMLDOC"; then
7596 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7597echo "${ECHO_T}$OCAMLDOC" >&6; }
7598else
7599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
7601fi
7602
7603
7604 test -n "$OCAMLDOC" && break
7605done
7606
Edwin Török20176752008-10-22 09:56:27 +00007607for ac_prog in gas as
7608do
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610set dummy $ac_prog; ac_word=$2
7611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613if test "${ac_cv_path_GAS+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 case $GAS in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Edwin Török20176752008-10-22 09:56:27 +00007628 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633done
7634IFS=$as_save_IFS
7635
7636 ;;
7637esac
7638fi
7639GAS=$ac_cv_path_GAS
7640if test -n "$GAS"; then
7641 { echo "$as_me:$LINENO: result: $GAS" >&5
7642echo "${ECHO_T}$GAS" >&6; }
7643else
7644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
7646fi
7647
7648
7649 test -n "$GAS" && break
7650done
7651
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007652
7653{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655if test "${llvm_cv_link_use_r+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 ac_ext=c
7659ac_cpp='$CPP $CPPFLAGS'
7660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664 oldcflags="$CFLAGS"
7665 CFLAGS="$CFLAGS -Wl,-R."
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672
7673int
7674main ()
7675{
7676int main() { return 0; }
7677 ;
7678 return 0;
7679}
7680_ACEOF
7681rm -f conftest.$ac_objext conftest$ac_exeext
7682if { (ac_try="$ac_link"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_link") 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007694 (exit $ac_status); } && {
7695 test -z "$ac_c_werror_flag" ||
7696 test ! -s conftest.err
7697 } && test -s conftest$ac_exeext &&
7698 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007699 llvm_cv_link_use_r=yes
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 llvm_cv_link_use_r=no
7705fi
7706
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007708 conftest$ac_exeext conftest.$ac_ext
7709 CFLAGS="$oldcflags"
7710 ac_ext=c
7711ac_cpp='$CPP $CPPFLAGS'
7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717fi
7718{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720if test "$llvm_cv_link_use_r" = yes ; then
7721
7722cat >>confdefs.h <<\_ACEOF
7723#define HAVE_LINK_R 1
7724_ACEOF
7725
7726 fi
7727
7728
Nick Lewycky6eab6652009-03-05 08:20:44 +00007729{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7730echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7731if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740 oldcflags="$CFLAGS"
7741 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748
7749int
7750main ()
7751{
7752int main() { return 0; }
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (ac_try="$ac_link"
7759case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest$ac_exeext &&
7774 $as_test_x conftest$ac_exeext; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00007775 llvm_cv_link_use_export_dynamic=yes
7776else
7777 echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 llvm_cv_link_use_export_dynamic=no
7781fi
7782
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Nick Lewycky6eab6652009-03-05 08:20:44 +00007784 conftest$ac_exeext conftest.$ac_ext
7785 CFLAGS="$oldcflags"
7786 ac_ext=c
7787ac_cpp='$CPP $CPPFLAGS'
7788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791
7792
7793fi
7794{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7795echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7796if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7797
7798cat >>confdefs.h <<\_ACEOF
7799#define HAVE_LINK_EXPORT_DYNAMIC 1
7800_ACEOF
7801
7802 fi
7803
7804
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007805
7806
7807{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7808echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7809if test "${ac_cv_c_const+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812 cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h. */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h. */
7818
7819int
7820main ()
7821{
7822/* FIXME: Include the comments suggested by Paul. */
7823#ifndef __cplusplus
7824 /* Ultrix mips cc rejects this. */
7825 typedef int charset[2];
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007826 const charset cs;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007827 /* SunOS 4.1.1 cc rejects this. */
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007828 char const *const *pcpcc;
7829 char **ppc;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007830 /* NEC SVR4.0.2 mips cc rejects this. */
7831 struct point {int x, y;};
7832 static struct point const zero = {0,0};
7833 /* AIX XL C 1.02.0.0 rejects this.
7834 It does not let you subtract one const X* pointer from another in
7835 an arm of an if-expression whose if-part is not a constant
7836 expression */
7837 const char *g = "string";
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007838 pcpcc = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007839 /* HPUX 7.0 cc rejects these. */
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007840 ++pcpcc;
7841 ppc = (char**) pcpcc;
7842 pcpcc = (char const *const *) ppc;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007843 { /* SCO 3.2v4 cc rejects this. */
7844 char *t;
7845 char const *s = 0 ? (char *) 0 : (char const *) 0;
7846
7847 *t++ = 0;
7848 if (s) return 0;
7849 }
7850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7851 int x[] = {25, 17};
7852 const int *foo = &x[0];
7853 ++foo;
7854 }
7855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7856 typedef const int *iptr;
7857 iptr p = 0;
7858 ++p;
7859 }
7860 { /* AIX XL C 1.02.0.0 rejects this saying
7861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7862 struct s { int j; const int *ap[3]; };
7863 struct s *b; b->j = 5;
7864 }
7865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7866 const int foo = 10;
7867 if (!foo) return 0;
7868 }
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007869 return !cs[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007870#endif
7871
7872 ;
7873 return 0;
7874}
7875_ACEOF
7876rm -f conftest.$ac_objext
7877if { (ac_try="$ac_compile"
7878case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_compile") 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007889 (exit $ac_status); } && {
7890 test -z "$ac_c_werror_flag" ||
7891 test ! -s conftest.err
7892 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007893 ac_cv_c_const=yes
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ac_cv_c_const=no
7899fi
7900
7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7904echo "${ECHO_T}$ac_cv_c_const" >&6; }
7905if test $ac_cv_c_const = no; then
7906
7907cat >>confdefs.h <<\_ACEOF
7908#define const
7909_ACEOF
7910
7911fi
7912
7913
7914
7915
7916
7917
7918ac_header_dirent=no
7919for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7920 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7921{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7922echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
7932#include <sys/types.h>
7933#include <$ac_hdr>
7934
7935int
7936main ()
7937{
7938if ((DIR *) 0)
7939return 0;
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext
7945if { (ac_try="$ac_compile"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00007957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007961 eval "$as_ac_Header=yes"
7962else
7963 echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 eval "$as_ac_Header=no"
7967fi
7968
7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970fi
7971ac_res=`eval echo '${'$as_ac_Header'}'`
7972 { echo "$as_me:$LINENO: result: $ac_res" >&5
7973echo "${ECHO_T}$ac_res" >&6; }
7974if test `eval echo '${'$as_ac_Header'}'` = yes; then
7975 cat >>confdefs.h <<_ACEOF
7976#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7977_ACEOF
7978
7979ac_header_dirent=$ac_hdr; break
7980fi
7981
7982done
7983# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7984if test $ac_header_dirent = dirent.h; then
7985 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7986echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7987if test "${ac_cv_search_opendir+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 ac_func_search_save_LIBS=$LIBS
7991cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997
7998/* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8001#ifdef __cplusplus
8002extern "C"
8003#endif
8004char opendir ();
8005int
8006main ()
8007{
8008return opendir ();
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013for ac_lib in '' dir; do
8014 if test -z "$ac_lib"; then
8015 ac_res="none required"
8016 else
8017 ac_res=-l$ac_lib
8018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8019 fi
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (ac_try="$ac_link"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest$ac_exeext &&
8037 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008038 ac_cv_search_opendir=$ac_res
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043
8044fi
8045
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008047 conftest$ac_exeext
8048 if test "${ac_cv_search_opendir+set}" = set; then
8049 break
8050fi
8051done
8052if test "${ac_cv_search_opendir+set}" = set; then
8053 :
8054else
8055 ac_cv_search_opendir=no
8056fi
8057rm conftest.$ac_ext
8058LIBS=$ac_func_search_save_LIBS
8059fi
8060{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8061echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8062ac_res=$ac_cv_search_opendir
8063if test "$ac_res" != no; then
8064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8065
8066fi
8067
8068else
8069 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8070echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8071if test "${ac_cv_search_opendir+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 ac_func_search_save_LIBS=$LIBS
8075cat >conftest.$ac_ext <<_ACEOF
8076/* confdefs.h. */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h. */
8081
8082/* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8085#ifdef __cplusplus
8086extern "C"
8087#endif
8088char opendir ();
8089int
8090main ()
8091{
8092return opendir ();
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097for ac_lib in '' x; do
8098 if test -z "$ac_lib"; then
8099 ac_res="none required"
8100 else
8101 ac_res=-l$ac_lib
8102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8103 fi
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105if { (ac_try="$ac_link"
8106case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext &&
8121 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008122 ac_cv_search_opendir=$ac_res
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127
8128fi
8129
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008131 conftest$ac_exeext
8132 if test "${ac_cv_search_opendir+set}" = set; then
8133 break
8134fi
8135done
8136if test "${ac_cv_search_opendir+set}" = set; then
8137 :
8138else
8139 ac_cv_search_opendir=no
8140fi
8141rm conftest.$ac_ext
8142LIBS=$ac_func_search_save_LIBS
8143fi
8144{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8145echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8146ac_res=$ac_cv_search_opendir
8147if test "$ac_res" != no; then
8148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8149
8150fi
8151
8152fi
8153
8154
8155for ac_header in dlfcn.h
8156do
8157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163fi
8164ac_res=`eval echo '${'$as_ac_Header'}'`
8165 { echo "$as_me:$LINENO: result: $ac_res" >&5
8166echo "${ECHO_T}$ac_res" >&6; }
8167else
8168 # Is the header compilable?
8169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8171cat >conftest.$ac_ext <<_ACEOF
8172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h. */
8177$ac_includes_default
8178#include <$ac_header>
8179_ACEOF
8180rm -f conftest.$ac_objext
8181if { (ac_try="$ac_compile"
8182case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008197 ac_header_compiler=yes
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_header_compiler=no
8203fi
8204
8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207echo "${ECHO_T}$ac_header_compiler" >&6; }
8208
8209# Is the header present?
8210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8212cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218#include <$ac_header>
8219_ACEOF
8220if { (ac_try="$ac_cpp conftest.$ac_ext"
8221case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008232 (exit $ac_status); } >/dev/null && {
8233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008236 ac_header_preproc=yes
8237else
8238 echo "$as_me: failed program was:" >&5
8239sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_header_preproc=no
8242fi
8243
8244rm -f conftest.err conftest.$ac_ext
8245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246echo "${ECHO_T}$ac_header_preproc" >&6; }
8247
8248# So? What about this header?
8249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8250 yes:no: )
8251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8255 ac_header_preproc=yes
8256 ;;
8257 no:yes:* )
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8270 ( cat <<\_ASBOX
8271## ----------------------------------- ##
8272## Report this to llvmbugs@cs.uiuc.edu ##
8273## ----------------------------------- ##
8274_ASBOX
8275 ) | sed "s/^/$as_me: WARNING: /" >&2
8276 ;;
8277esac
8278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 eval "$as_ac_Header=\$ac_header_preproc"
8284fi
8285ac_res=`eval echo '${'$as_ac_Header'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287echo "${ECHO_T}$ac_res" >&6; }
8288
8289fi
8290if test `eval echo '${'$as_ac_Header'}'` = yes; then
8291 cat >>confdefs.h <<_ACEOF
8292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8293_ACEOF
8294
8295fi
8296
8297done
8298
8299# Check whether --enable-ltdl-install was given.
8300if test "${enable_ltdl_install+set}" = set; then
8301 enableval=$enable_ltdl_install;
8302fi
8303
8304
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008305 if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008306 INSTALL_LTDL_TRUE=
8307 INSTALL_LTDL_FALSE='#'
8308else
8309 INSTALL_LTDL_TRUE='#'
8310 INSTALL_LTDL_FALSE=
8311fi
8312
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00008313 if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008314 CONVENIENCE_LTDL_TRUE=
8315 CONVENIENCE_LTDL_FALSE='#'
8316else
8317 CONVENIENCE_LTDL_TRUE='#'
8318 CONVENIENCE_LTDL_FALSE=
8319fi
8320
8321
8322{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8323echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8324library_names_spec=
8325libname_spec='lib$name'
8326soname_spec=
8327shrext_cmds=".so"
8328postinstall_cmds=
8329postuninstall_cmds=
8330finish_cmds=
8331finish_eval=
8332shlibpath_var=
8333shlibpath_overrides_runpath=unknown
8334version_type=none
8335dynamic_linker="$host_os ld.so"
8336sys_lib_dlsearch_path_spec="/lib /usr/lib"
8337if test "$GCC" = yes; then
8338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8339 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8340 # if the path contains ";" then we assume it to be the separator
8341 # otherwise default to the standard path separator (i.e. ":") - it is
8342 # assumed that no part of a normal pathname contains ";" but that should
8343 # okay in the real world where ";" in dirpaths is itself problematic.
8344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8345 else
8346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8347 fi
8348else
8349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8350fi
8351need_lib_prefix=unknown
8352hardcode_into_libs=no
8353
8354# when you set need_version to no, make sure it does not cause -set_version
8355# flags to be left without arguments
8356need_version=unknown
8357
8358case $host_os in
8359aix3*)
8360 version_type=linux
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8362 shlibpath_var=LIBPATH
8363
8364 # AIX 3 has no versioning support, so we append a major version to the name.
8365 soname_spec='${libname}${release}${shared_ext}$major'
8366 ;;
8367
8368aix4* | aix5*)
8369 version_type=linux
8370 need_lib_prefix=no
8371 need_version=no
8372 hardcode_into_libs=yes
8373 if test "$host_cpu" = ia64; then
8374 # AIX 5 supports IA64
8375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8376 shlibpath_var=LD_LIBRARY_PATH
8377 else
8378 # With GCC up to 2.95.x, collect2 would create an import file
8379 # for dependence libraries. The import file would start with
8380 # the line `#! .'. This would cause the generated library to
8381 # depend on `.', always an invalid library. This was fixed in
8382 # development snapshots of GCC prior to 3.0.
8383 case $host_os in
8384 aix4 | aix4.[01] | aix4.[01].*)
8385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8386 echo ' yes '
8387 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8388 :
8389 else
8390 can_build_shared=no
8391 fi
8392 ;;
8393 esac
8394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8395 # soname into executable. Probably we can add versioning support to
8396 # collect2, so additional links can be useful in future.
8397 if test "$aix_use_runtimelinking" = yes; then
8398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8399 # instead of lib<name>.a to let people know that these are not
8400 # typical AIX shared libraries.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 else
8403 # We preserve .a as extension for shared libraries through AIX4.2
8404 # and later when we are not doing run time linking.
8405 library_names_spec='${libname}${release}.a $libname.a'
8406 soname_spec='${libname}${release}${shared_ext}$major'
8407 fi
8408 shlibpath_var=LIBPATH
8409 fi
8410 ;;
8411
8412amigaos*)
8413 library_names_spec='$libname.ixlibrary $libname.a'
8414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8415 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'
8416 ;;
8417
8418beos*)
8419 library_names_spec='${libname}${shared_ext}'
8420 dynamic_linker="$host_os ld.so"
8421 shlibpath_var=LIBRARY_PATH
8422 ;;
8423
8424bsdi[45]*)
8425 version_type=linux
8426 need_version=no
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8433 # the default ld.so.conf also contains /usr/contrib/lib and
8434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8435 # libtool to hard-code these into programs
8436 ;;
8437
8438cygwin* | mingw* | pw32*)
8439 version_type=windows
8440 shrext_cmds=".dll"
8441 need_version=no
8442 need_lib_prefix=no
8443
8444 case $GCC,$host_os in
8445 yes,cygwin* | yes,mingw* | yes,pw32*)
8446 library_names_spec='$libname.dll.a'
8447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8448 postinstall_cmds='base_file=`basename \${file}`~
8449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8450 dldir=$destdir/`dirname \$dlpath`~
8451 test -d \$dldir || mkdir -p \$dldir~
8452 $install_prog $dir/$dlname \$dldir/$dlname~
8453 chmod a+x \$dldir/$dlname'
8454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8455 dlpath=$dir/\$dldll~
8456 $rm \$dlpath'
8457 shlibpath_overrides_runpath=yes
8458
8459 case $host_os in
8460 cygwin*)
8461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8464 ;;
8465 mingw*)
8466 # MinGW DLLs use traditional 'lib' prefix
8467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8470 # It is most probably a Windows format PATH printed by
8471 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8472 # path with ; separators, and with drive letters. We can handle the
8473 # drive letters (cygwin fileutils understands them), so leave them,
8474 # especially as we might pass files found there to a mingw objdump,
8475 # which wouldn't understand a cygwinified path. Ahh.
8476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8477 else
8478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8479 fi
8480 ;;
8481 pw32*)
8482 # pw32 DLLs use 'pw' prefix rather than 'lib'
8483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8484 ;;
8485 esac
8486 ;;
8487
8488 *)
8489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8490 ;;
8491 esac
8492 dynamic_linker='Win32 ld.exe'
8493 # FIXME: first we should search . and the directory the executable is in
8494 shlibpath_var=PATH
8495 ;;
8496
8497darwin* | rhapsody*)
8498 dynamic_linker="$host_os dyld"
8499 version_type=darwin
8500 need_lib_prefix=no
8501 need_version=no
8502 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8503 soname_spec='${libname}${release}${major}$shared_ext'
8504 shlibpath_overrides_runpath=yes
8505 shlibpath_var=DYLD_LIBRARY_PATH
8506 shrext_cmds='.dylib'
8507 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8508 if test "$GCC" = yes; then
8509 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"`
8510 else
8511 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8512 fi
8513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8514 ;;
8515
8516dgux*)
8517 version_type=linux
8518 need_lib_prefix=no
8519 need_version=no
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 ;;
8524
8525freebsd1*)
8526 dynamic_linker=no
8527 ;;
8528
8529kfreebsd*-gnu)
8530 version_type=linux
8531 need_lib_prefix=no
8532 need_version=no
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=no
8537 hardcode_into_libs=yes
8538 dynamic_linker='GNU ld.so'
8539 ;;
8540
8541freebsd* | dragonfly*)
8542 # DragonFly does not have aout. When/if they implement a new
8543 # versioning mechanism, adjust this.
8544 if test -x /usr/bin/objformat; then
8545 objformat=`/usr/bin/objformat`
8546 else
8547 case $host_os in
8548 freebsd[123]*) objformat=aout ;;
8549 *) objformat=elf ;;
8550 esac
8551 fi
8552 version_type=freebsd-$objformat
8553 case $version_type in
8554 freebsd-elf*)
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8556 need_version=no
8557 need_lib_prefix=no
8558 ;;
8559 freebsd-*)
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8561 need_version=yes
8562 ;;
8563 esac
8564 shlibpath_var=LD_LIBRARY_PATH
8565 case $host_os in
8566 freebsd2*)
8567 shlibpath_overrides_runpath=yes
8568 ;;
8569 freebsd3.[01]* | freebsdelf3.[01]*)
8570 shlibpath_overrides_runpath=yes
8571 hardcode_into_libs=yes
8572 ;;
8573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8575 shlibpath_overrides_runpath=no
8576 hardcode_into_libs=yes
8577 ;;
8578 freebsd*) # from 4.6 on
8579 shlibpath_overrides_runpath=yes
8580 hardcode_into_libs=yes
8581 ;;
8582 esac
8583 ;;
8584
8585gnu*)
8586 version_type=linux
8587 need_lib_prefix=no
8588 need_version=no
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 shlibpath_var=LD_LIBRARY_PATH
8592 hardcode_into_libs=yes
8593 ;;
8594
8595hpux9* | hpux10* | hpux11*)
8596 # Give a soname corresponding to the major version so that dld.sl refuses to
8597 # link against other versions.
8598 version_type=sunos
8599 need_lib_prefix=no
8600 need_version=no
8601 case $host_cpu in
8602 ia64*)
8603 shrext_cmds='.so'
8604 hardcode_into_libs=yes
8605 dynamic_linker="$host_os dld.so"
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 soname_spec='${libname}${release}${shared_ext}$major'
8610 if test "X$HPUX_IA64_MODE" = X32; then
8611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8612 else
8613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8614 fi
8615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8616 ;;
8617 hppa*64*)
8618 shrext_cmds='.sl'
8619 hardcode_into_libs=yes
8620 dynamic_linker="$host_os dld.sl"
8621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8627 ;;
8628 *)
8629 shrext_cmds='.sl'
8630 dynamic_linker="$host_os dld.sl"
8631 shlibpath_var=SHLIB_PATH
8632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 ;;
8636 esac
8637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8638 postinstall_cmds='chmod 555 $lib'
8639 ;;
8640
8641interix3*)
8642 version_type=linux
8643 need_lib_prefix=no
8644 need_version=no
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 shlibpath_overrides_runpath=no
8650 hardcode_into_libs=yes
8651 ;;
8652
8653irix5* | irix6* | nonstopux*)
8654 case $host_os in
8655 nonstopux*) version_type=nonstopux ;;
8656 *)
8657 if test "$lt_cv_prog_gnu_ld" = yes; then
8658 version_type=linux
8659 else
8660 version_type=irix
8661 fi ;;
8662 esac
8663 need_lib_prefix=no
8664 need_version=no
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8667 case $host_os in
8668 irix5* | nonstopux*)
8669 libsuff= shlibsuff=
8670 ;;
8671 *)
8672 case $LD in # libtool.m4 will add one of these switches to LD
8673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8674 libsuff= shlibsuff= libmagic=32-bit;;
8675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8676 libsuff=32 shlibsuff=N32 libmagic=N32;;
8677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8679 *) libsuff= shlibsuff= libmagic=never-match;;
8680 esac
8681 ;;
8682 esac
8683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8684 shlibpath_overrides_runpath=no
8685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8687 hardcode_into_libs=yes
8688 ;;
8689
8690# No shared lib support for Linux oldld, aout, or coff.
8691linux*oldld* | linux*aout* | linux*coff*)
8692 dynamic_linker=no
8693 ;;
8694
8695# This must be Linux ELF.
8696linux*)
8697 version_type=linux
8698 need_lib_prefix=no
8699 need_version=no
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 shlibpath_overrides_runpath=no
8705 # This implies no fast_install, which is unacceptable.
8706 # Some rework will be needed to allow for fast_install
8707 # before this can be enabled.
8708 hardcode_into_libs=yes
8709
8710 # Append ld.so.conf contents to the search path
8711 if test -f /etc/ld.so.conf; then
8712 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' ' '`
8713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8714 fi
8715
8716 # We used to test for /lib/ld.so.1 and disable shared libraries on
8717 # powerpc, because MkLinux only supported shared libraries with the
8718 # GNU dynamic linker. Since this was broken with cross compilers,
8719 # most powerpc-linux boxes support dynamic linking these days and
8720 # people can always --disable-shared, the test was removed, and we
8721 # assume the GNU/Linux dynamic linker is in use.
8722 dynamic_linker='GNU/Linux ld.so'
8723 ;;
8724
8725knetbsd*-gnu)
8726 version_type=linux
8727 need_lib_prefix=no
8728 need_version=no
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 shlibpath_overrides_runpath=no
8733 hardcode_into_libs=yes
8734 dynamic_linker='GNU ld.so'
8735 ;;
8736
8737netbsd*)
8738 version_type=sunos
8739 need_lib_prefix=no
8740 need_version=no
8741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8744 dynamic_linker='NetBSD (a.out) ld.so'
8745 else
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 dynamic_linker='NetBSD ld.elf_so'
8749 fi
8750 shlibpath_var=LD_LIBRARY_PATH
8751 shlibpath_overrides_runpath=yes
8752 hardcode_into_libs=yes
8753 ;;
8754
8755newsos6)
8756 version_type=linux
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8760 ;;
8761
8762nto-qnx*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=yes
8770 ;;
8771
8772openbsd*)
8773 version_type=sunos
8774 sys_lib_dlsearch_path_spec="/usr/lib"
8775 need_lib_prefix=no
8776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8777 case $host_os in
8778 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8779 *) need_version=no ;;
8780 esac
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8785 case $host_os in
8786 openbsd2.[89] | openbsd2.[89].*)
8787 shlibpath_overrides_runpath=no
8788 ;;
8789 *)
8790 shlibpath_overrides_runpath=yes
8791 ;;
8792 esac
8793 else
8794 shlibpath_overrides_runpath=yes
8795 fi
8796 ;;
8797
8798os2*)
8799 libname_spec='$name'
8800 shrext_cmds=".dll"
8801 need_lib_prefix=no
8802 library_names_spec='$libname${shared_ext} $libname.a'
8803 dynamic_linker='OS/2 ld.exe'
8804 shlibpath_var=LIBPATH
8805 ;;
8806
8807osf3* | osf4* | osf5*)
8808 version_type=osf
8809 need_lib_prefix=no
8810 need_version=no
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8816 ;;
8817
8818solaris*)
8819 version_type=linux
8820 need_lib_prefix=no
8821 need_version=no
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8827 # ldd complains unless libraries are executable
8828 postinstall_cmds='chmod +x $lib'
8829 ;;
8830
8831sunos4*)
8832 version_type=sunos
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8834 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 shlibpath_overrides_runpath=yes
8837 if test "$with_gnu_ld" = yes; then
8838 need_lib_prefix=no
8839 fi
8840 need_version=yes
8841 ;;
8842
8843sysv4 | sysv4.3*)
8844 version_type=linux
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 case $host_vendor in
8849 sni)
8850 shlibpath_overrides_runpath=no
8851 need_lib_prefix=no
8852 export_dynamic_flag_spec='${wl}-Blargedynsym'
8853 runpath_var=LD_RUN_PATH
8854 ;;
8855 siemens)
8856 need_lib_prefix=no
8857 ;;
8858 motorola)
8859 need_lib_prefix=no
8860 need_version=no
8861 shlibpath_overrides_runpath=no
8862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8863 ;;
8864 esac
8865 ;;
8866
8867sysv4*MP*)
8868 if test -d /usr/nec ;then
8869 version_type=linux
8870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871 soname_spec='$libname${shared_ext}.$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 fi
8874 ;;
8875
8876sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877 version_type=freebsd-elf
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 hardcode_into_libs=yes
8884 if test "$with_gnu_ld" = yes; then
8885 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8886 shlibpath_overrides_runpath=no
8887 else
8888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8889 shlibpath_overrides_runpath=yes
8890 case $host_os in
8891 sco3.2v5*)
8892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8893 ;;
8894 esac
8895 fi
8896 sys_lib_dlsearch_path_spec='/usr/lib'
8897 ;;
8898
8899uts4*)
8900 version_type=linux
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 ;;
8905
8906*)
8907 dynamic_linker=no
8908 ;;
8909esac
8910{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8911echo "${ECHO_T}$dynamic_linker" >&6; }
8912test "$dynamic_linker" = no && can_build_shared=no
8913
8914variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8915if test "$GCC" = yes; then
8916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8917fi
8918
8919
8920{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8921echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8922if test "${libltdl_cv_shlibext+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925
8926module=yes
8927eval libltdl_cv_shlibext=$shrext_cmds
8928
8929fi
8930{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8931echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8932if test -n "$libltdl_cv_shlibext"; then
8933
8934cat >>confdefs.h <<_ACEOF
8935#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8936_ACEOF
8937
8938fi
8939
8940
8941{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8942echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8943if test "${libltdl_cv_shlibpath_var+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946 libltdl_cv_shlibpath_var="$shlibpath_var"
8947fi
8948{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8949echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8950if test -n "$libltdl_cv_shlibpath_var"; then
8951
8952cat >>confdefs.h <<_ACEOF
8953#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8954_ACEOF
8955
8956fi
8957
8958
8959{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8960echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8961if test "${libltdl_cv_sys_search_path+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8965fi
8966{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8967echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8968if test -n "$libltdl_cv_sys_search_path"; then
8969 sys_search_path=
8970 for dir in $libltdl_cv_sys_search_path; do
8971 if test -z "$sys_search_path"; then
8972 sys_search_path="$dir"
8973 else
8974 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8975 fi
8976 done
8977
8978cat >>confdefs.h <<_ACEOF
8979#define LTDL_SYSSEARCHPATH "$sys_search_path"
8980_ACEOF
8981
8982fi
8983
8984{ echo "$as_me:$LINENO: checking for objdir" >&5
8985echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8986if test "${libltdl_cv_objdir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 libltdl_cv_objdir="$objdir"
8990 if test -n "$objdir"; then
8991 :
8992 else
8993 rm -f .libs 2>/dev/null
8994 mkdir .libs 2>/dev/null
8995 if test -d .libs; then
8996 libltdl_cv_objdir=.libs
8997 else
8998 # MS-DOS does not allow filenames that begin with a dot.
8999 libltdl_cv_objdir=_libs
9000 fi
9001 rmdir .libs 2>/dev/null
9002 fi
9003
9004fi
9005{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9006echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9007
9008cat >>confdefs.h <<_ACEOF
9009#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9010_ACEOF
9011
9012
9013
9014
9015
9016
9017# Check for command to grab the raw symbol name followed by C symbol from nm.
9018{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9019echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9020if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9022else
9023
9024# These are sane defaults that work on at least a few old systems.
9025# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9026
9027# Character class describing NM global symbol codes.
9028symcode='[BCDEGRST]'
9029
9030# Regexp to match symbols that can be accessed directly from C.
9031sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9032
9033# Transform an extracted symbol line into a proper C declaration
9034lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9035
9036# Transform an extracted symbol line into symbol name and symbol address
9037lt_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'"
9038
9039# Define system-specific variables.
9040case $host_os in
9041aix*)
9042 symcode='[BCDT]'
9043 ;;
9044cygwin* | mingw* | pw32*)
9045 symcode='[ABCDGISTW]'
9046 ;;
9047hpux*) # Its linker distinguishes data from code symbols
9048 if test "$host_cpu" = ia64; then
9049 symcode='[ABCDEGRST]'
9050 fi
9051 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9052 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'"
9053 ;;
9054linux*)
9055 if test "$host_cpu" = ia64; then
9056 symcode='[ABCDGIRSTW]'
9057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9058 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'"
9059 fi
9060 ;;
9061irix* | nonstopux*)
9062 symcode='[BCDEGRST]'
9063 ;;
9064osf*)
9065 symcode='[BCDEGQRST]'
9066 ;;
9067solaris*)
9068 symcode='[BDRT]'
9069 ;;
9070sco3.2v5*)
9071 symcode='[DT]'
9072 ;;
9073sysv4.2uw2*)
9074 symcode='[DT]'
9075 ;;
9076sysv5* | sco5v6* | unixware* | OpenUNIX*)
9077 symcode='[ABDT]'
9078 ;;
9079sysv4)
9080 symcode='[DFNSTU]'
9081 ;;
9082esac
9083
9084# Handle CRLF in mingw tool chain
9085opt_cr=
9086case $build_os in
9087mingw*)
9088 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9089 ;;
9090esac
9091
9092# If we're using GNU nm, then use its standard symbol codes.
9093case `$NM -V 2>&1` in
9094*GNU* | *'with BFD'*)
9095 symcode='[ABCDGIRSTW]' ;;
9096esac
9097
9098# Try without a prefix undercore, then with it.
9099for ac_symprfx in "" "_"; do
9100
9101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9102 symxfrm="\\1 $ac_symprfx\\2 \\2"
9103
9104 # Write the raw and C identifiers.
9105 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9106
9107 # Check to see that the pipe works correctly.
9108 pipe_works=no
9109
9110 rm -f conftest*
9111 cat > conftest.$ac_ext <<EOF
9112#ifdef __cplusplus
9113extern "C" {
9114#endif
9115char nm_test_var;
9116void nm_test_func(){}
9117#ifdef __cplusplus
9118}
9119#endif
9120int main(){nm_test_var='a';nm_test_func();return(0);}
9121EOF
9122
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124 (eval $ac_compile) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; then
9128 # Now try to grab the symbols.
9129 nlist=conftest.nm
9130 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9131 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && test -s "$nlist"; then
9135 # Try sorting and uniquifying the output.
9136 if sort "$nlist" | uniq > "$nlist"T; then
9137 mv -f "$nlist"T "$nlist"
9138 else
9139 rm -f "$nlist"T
9140 fi
9141
9142 # Make sure that we snagged all the symbols we need.
9143 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9144 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9145 cat <<EOF > conftest.$ac_ext
9146#ifdef __cplusplus
9147extern "C" {
9148#endif
9149
9150EOF
9151 # Now generate the symbol file.
9152 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9153
9154 cat <<EOF >> conftest.$ac_ext
9155#if defined (__STDC__) && __STDC__
9156# define lt_ptr_t void *
9157#else
9158# define lt_ptr_t char *
9159# define const
9160#endif
9161
9162/* The mapping between symbol names and symbols. */
9163const struct {
9164 const char *name;
9165 lt_ptr_t address;
9166}
9167lt_preloaded_symbols[] =
9168{
9169EOF
9170 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9171 cat <<\EOF >> conftest.$ac_ext
9172 {0, (lt_ptr_t) 0}
9173};
9174
9175#ifdef __cplusplus
9176}
9177#endif
9178EOF
9179 # Now try linking the two files.
9180 mv conftest.$ac_objext conftstm.$ac_objext
9181 lt_save_LIBS="$LIBS"
9182 lt_save_CFLAGS="$CFLAGS"
9183 LIBS="conftstm.$ac_objext"
9184 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9190 pipe_works=yes
9191 fi
9192 LIBS="$lt_save_LIBS"
9193 CFLAGS="$lt_save_CFLAGS"
9194 else
9195 echo "cannot find nm_test_func in $nlist" >&5
9196 fi
9197 else
9198 echo "cannot find nm_test_var in $nlist" >&5
9199 fi
9200 else
9201 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9202 fi
9203 else
9204 echo "$progname: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 fi
9207 rm -f conftest* conftst*
9208
9209 # Do not use the global_symbol_pipe unless it works.
9210 if test "$pipe_works" = yes; then
9211 break
9212 else
9213 lt_cv_sys_global_symbol_pipe=
9214 fi
9215done
9216
9217fi
9218
9219if test -z "$lt_cv_sys_global_symbol_pipe"; then
9220 lt_cv_sys_global_symbol_to_cdecl=
9221fi
9222if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9223 { echo "$as_me:$LINENO: result: failed" >&5
9224echo "${ECHO_T}failed" >&6; }
9225else
9226 { echo "$as_me:$LINENO: result: ok" >&5
9227echo "${ECHO_T}ok" >&6; }
9228fi
9229
9230
9231{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9232echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9233if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9237 libltdl_cv_preloaded_symbols=yes
9238 else
9239 libltdl_cv_preloaded_symbols=no
9240 fi
9241
9242fi
9243{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9244echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9245if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9246
9247cat >>confdefs.h <<\_ACEOF
9248#define HAVE_PRELOADED_SYMBOLS 1
9249_ACEOF
9250
9251fi
9252
9253LIBADD_DL=
9254
9255ac_ext=c
9256ac_cpp='$CPP $CPPFLAGS'
9257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259ac_compiler_gnu=$ac_cv_c_compiler_gnu
9260
9261
9262{ echo "$as_me:$LINENO: checking for shl_load" >&5
9263echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9264if test "${ac_cv_func_shl_load+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266else
9267 cat >conftest.$ac_ext <<_ACEOF
9268/* confdefs.h. */
9269_ACEOF
9270cat confdefs.h >>conftest.$ac_ext
9271cat >>conftest.$ac_ext <<_ACEOF
9272/* end confdefs.h. */
9273/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275#define shl_load innocuous_shl_load
9276
9277/* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char shl_load (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9281
9282#ifdef __STDC__
9283# include <limits.h>
9284#else
9285# include <assert.h>
9286#endif
9287
9288#undef shl_load
9289
9290/* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9293#ifdef __cplusplus
9294extern "C"
9295#endif
9296char shl_load ();
9297/* The GNU C library defines this for functions which it implements
9298 to always fail with ENOSYS. Some functions are actually named
9299 something starting with __ and the normal name is an alias. */
9300#if defined __stub_shl_load || defined __stub___shl_load
9301choke me
9302#endif
9303
9304int
9305main ()
9306{
9307return shl_load ();
9308 ;
9309 return 0;
9310}
9311_ACEOF
9312rm -f conftest.$ac_objext conftest$ac_exeext
9313if { (ac_try="$ac_link"
9314case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317esac
9318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_link") 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009325 (exit $ac_status); } && {
9326 test -z "$ac_c_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest$ac_exeext &&
9329 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009330 ac_cv_func_shl_load=yes
9331else
9332 echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 ac_cv_func_shl_load=no
9336fi
9337
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009339 conftest$ac_exeext conftest.$ac_ext
9340fi
9341{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9342echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9343if test $ac_cv_func_shl_load = yes; then
9344
9345cat >>confdefs.h <<\_ACEOF
9346#define HAVE_SHL_LOAD 1
9347_ACEOF
9348
9349else
9350 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9351echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9352if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355 ac_check_lib_save_LIBS=$LIBS
9356LIBS="-ldld $LIBS"
9357cat >conftest.$ac_ext <<_ACEOF
9358/* confdefs.h. */
9359_ACEOF
9360cat confdefs.h >>conftest.$ac_ext
9361cat >>conftest.$ac_ext <<_ACEOF
9362/* end confdefs.h. */
9363
9364/* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9367#ifdef __cplusplus
9368extern "C"
9369#endif
9370char shl_load ();
9371int
9372main ()
9373{
9374return shl_load ();
9375 ;
9376 return 0;
9377}
9378_ACEOF
9379rm -f conftest.$ac_objext conftest$ac_exeext
9380if { (ac_try="$ac_link"
9381case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384esac
9385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_link") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest$ac_exeext &&
9396 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009397 ac_cv_lib_dld_shl_load=yes
9398else
9399 echo "$as_me: failed program was:" >&5
9400sed 's/^/| /' conftest.$ac_ext >&5
9401
9402 ac_cv_lib_dld_shl_load=no
9403fi
9404
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009406 conftest$ac_exeext conftest.$ac_ext
9407LIBS=$ac_check_lib_save_LIBS
9408fi
9409{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9410echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9411if test $ac_cv_lib_dld_shl_load = yes; then
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_SHL_LOAD 1
9415_ACEOF
9416
9417 LIBADD_DL="$LIBADD_DL -ldld"
9418else
9419 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9420echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9421if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423else
9424 ac_check_lib_save_LIBS=$LIBS
9425LIBS="-ldl $LIBS"
9426cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
9432
9433/* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9436#ifdef __cplusplus
9437extern "C"
9438#endif
9439char dlopen ();
9440int
9441main ()
9442{
9443return dlopen ();
9444 ;
9445 return 0;
9446}
9447_ACEOF
9448rm -f conftest.$ac_objext conftest$ac_exeext
9449if { (ac_try="$ac_link"
9450case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453esac
9454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest$ac_exeext &&
9465 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009466 ac_cv_lib_dl_dlopen=yes
9467else
9468 echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_cv_lib_dl_dlopen=no
9472fi
9473
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009475 conftest$ac_exeext conftest.$ac_ext
9476LIBS=$ac_check_lib_save_LIBS
9477fi
9478{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9480if test $ac_cv_lib_dl_dlopen = yes; then
9481
9482cat >>confdefs.h <<\_ACEOF
9483#define HAVE_LIBDL 1
9484_ACEOF
9485
9486 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9487else
9488 cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494#if HAVE_DLFCN_H
9495# include <dlfcn.h>
9496#endif
9497
9498int
9499main ()
9500{
9501dlopen(0, 0);
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext conftest$ac_exeext
9507if { (ac_try="$ac_link"
9508case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511esac
9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009524
9525cat >>confdefs.h <<\_ACEOF
9526#define HAVE_LIBDL 1
9527_ACEOF
9528 libltdl_cv_func_dlopen="yes"
9529else
9530 echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9534echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9535if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 ac_check_lib_save_LIBS=$LIBS
9539LIBS="-lsvld $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
9547/* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553char dlopen ();
9554int
9555main ()
9556{
9557return dlopen ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext &&
9579 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009580 ac_cv_lib_svld_dlopen=yes
9581else
9582 echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 ac_cv_lib_svld_dlopen=no
9586fi
9587
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009589 conftest$ac_exeext conftest.$ac_ext
9590LIBS=$ac_check_lib_save_LIBS
9591fi
9592{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9593echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9594if test $ac_cv_lib_svld_dlopen = yes; then
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define HAVE_LIBDL 1
9598_ACEOF
9599
9600 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9601else
9602 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9603echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9604if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607 ac_check_lib_save_LIBS=$LIBS
9608LIBS="-ldld $LIBS"
9609cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615
9616/* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619#ifdef __cplusplus
9620extern "C"
9621#endif
9622char dld_link ();
9623int
9624main ()
9625{
9626return dld_link ();
9627 ;
9628 return 0;
9629}
9630_ACEOF
9631rm -f conftest.$ac_objext conftest$ac_exeext
9632if { (ac_try="$ac_link"
9633case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext &&
9648 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009649 ac_cv_lib_dld_dld_link=yes
9650else
9651 echo "$as_me: failed program was:" >&5
9652sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_lib_dld_dld_link=no
9655fi
9656
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009658 conftest$ac_exeext conftest.$ac_ext
9659LIBS=$ac_check_lib_save_LIBS
9660fi
9661{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9662echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9663if test $ac_cv_lib_dld_dld_link = yes; then
9664
9665cat >>confdefs.h <<\_ACEOF
9666#define HAVE_DLD 1
9667_ACEOF
9668
9669 LIBADD_DL="$LIBADD_DL -ldld"
9670else
9671 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9672echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9673if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9684#define _dyld_func_lookup innocuous__dyld_func_lookup
9685
9686/* System header to define __stub macros and hopefully few prototypes,
9687 which can conflict with char _dyld_func_lookup (); below.
9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 <limits.h> exists even on freestanding compilers. */
9690
9691#ifdef __STDC__
9692# include <limits.h>
9693#else
9694# include <assert.h>
9695#endif
9696
9697#undef _dyld_func_lookup
9698
9699/* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9702#ifdef __cplusplus
9703extern "C"
9704#endif
9705char _dyld_func_lookup ();
9706/* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9710choke me
9711#endif
9712
9713int
9714main ()
9715{
9716return _dyld_func_lookup ();
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (ac_try="$ac_link"
9723case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009739 ac_cv_func__dyld_func_lookup=yes
9740else
9741 echo "$as_me: failed program was:" >&5
9742sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 ac_cv_func__dyld_func_lookup=no
9745fi
9746
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009748 conftest$ac_exeext conftest.$ac_ext
9749fi
9750{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9751echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9752if test $ac_cv_func__dyld_func_lookup = yes; then
9753
9754cat >>confdefs.h <<\_ACEOF
9755#define HAVE_DYLD 1
9756_ACEOF
9757
9758fi
9759
9760
9761fi
9762
9763
9764fi
9765
9766
9767fi
9768
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009770 conftest$ac_exeext conftest.$ac_ext
9771
9772fi
9773
9774
9775fi
9776
9777
9778fi
9779
9780
9781if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9782then
9783 lt_save_LIBS="$LIBS"
9784 LIBS="$LIBS $LIBADD_DL"
9785
9786for ac_func in dlerror
9787do
9788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9791if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9802#define $ac_func innocuous_$ac_func
9803
9804/* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char $ac_func (); below.
9806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807 <limits.h> exists even on freestanding compilers. */
9808
9809#ifdef __STDC__
9810# include <limits.h>
9811#else
9812# include <assert.h>
9813#endif
9814
9815#undef $ac_func
9816
9817/* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9820#ifdef __cplusplus
9821extern "C"
9822#endif
9823char $ac_func ();
9824/* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827#if defined __stub_$ac_func || defined __stub___$ac_func
9828choke me
9829#endif
9830
9831int
9832main ()
9833{
9834return $ac_func ();
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (ac_try="$ac_link"
9841case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest$ac_exeext &&
9856 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009857 eval "$as_ac_var=yes"
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 eval "$as_ac_var=no"
9863fi
9864
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009866 conftest$ac_exeext conftest.$ac_ext
9867fi
9868ac_res=`eval echo '${'$as_ac_var'}'`
9869 { echo "$as_me:$LINENO: result: $ac_res" >&5
9870echo "${ECHO_T}$ac_res" >&6; }
9871if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874_ACEOF
9875
9876fi
9877done
9878
9879 LIBS="$lt_save_LIBS"
9880fi
9881ac_ext=c
9882ac_cpp='$CPP $CPPFLAGS'
9883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9885ac_compiler_gnu=$ac_cv_c_compiler_gnu
9886
9887
9888
9889{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9890echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9891if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893else
9894 ac_cv_sys_symbol_underscore=no
9895 cat > conftest.$ac_ext <<EOF
9896void nm_test_func(){}
9897int main(){nm_test_func;return 0;}
9898EOF
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; then
9904 # Now try to grab the symbols.
9905 ac_nlist=conftest.nm
9906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && test -s "$ac_nlist"; then
9911 # See whether the symbols have a leading underscore.
9912 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9913 ac_cv_sys_symbol_underscore=yes
9914 else
9915 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9916 :
9917 else
9918 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9919 fi
9920 fi
9921 else
9922 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9923 fi
9924 else
9925 echo "configure: failed program was:" >&5
9926 cat conftest.c >&5
9927 fi
9928 rm -rf conftest*
9929
9930fi
9931{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9932echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9933
9934
9935if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9936 if test x"$libltdl_cv_func_dlopen" = xyes ||
9937 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9938 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9939echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9940if test "${libltdl_cv_need_uscore+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 libltdl_cv_need_uscore=unknown
9944 save_LIBS="$LIBS"
9945 LIBS="$LIBS $LIBADD_DL"
9946 if test "$cross_compiling" = yes; then :
9947 libltdl_cv_need_uscore=cross
9948else
9949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9950 lt_status=$lt_dlunknown
9951 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovc805f902009-04-18 09:59:26 +00009952#line 9952 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009953#include "confdefs.h"
9954
9955#if HAVE_DLFCN_H
9956#include <dlfcn.h>
9957#endif
9958
9959#include <stdio.h>
9960
9961#ifdef RTLD_GLOBAL
9962# define LT_DLGLOBAL RTLD_GLOBAL
9963#else
9964# ifdef DL_GLOBAL
9965# define LT_DLGLOBAL DL_GLOBAL
9966# else
9967# define LT_DLGLOBAL 0
9968# endif
9969#endif
9970
9971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9972 find out it does not work in some platform. */
9973#ifndef LT_DLLAZY_OR_NOW
9974# ifdef RTLD_LAZY
9975# define LT_DLLAZY_OR_NOW RTLD_LAZY
9976# else
9977# ifdef DL_LAZY
9978# define LT_DLLAZY_OR_NOW DL_LAZY
9979# else
9980# ifdef RTLD_NOW
9981# define LT_DLLAZY_OR_NOW RTLD_NOW
9982# else
9983# ifdef DL_NOW
9984# define LT_DLLAZY_OR_NOW DL_NOW
9985# else
9986# define LT_DLLAZY_OR_NOW 0
9987# endif
9988# endif
9989# endif
9990# endif
9991#endif
9992
9993#ifdef __cplusplus
9994extern "C" void exit (int);
9995#endif
9996
9997void fnord() { int i=42;}
9998int main ()
9999{
10000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10001 int status = $lt_dlunknown;
10002
10003 if (self)
10004 {
10005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10006 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10007 /* dlclose (self); */
10008 }
10009 else
10010 puts (dlerror ());
10011
10012 exit (status);
10013}
10014EOF
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10020 (./conftest; exit; ) >&5 2>/dev/null
10021 lt_status=$?
10022 case x$lt_status in
10023 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10024 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10025 x$lt_dlunknown|x*) ;;
10026 esac
10027 else :
10028 # compilation failed
10029
10030 fi
10031fi
10032rm -fr conftest*
10033
10034 LIBS="$save_LIBS"
10035
10036fi
10037{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10038echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10039 fi
10040fi
10041
10042if test x"$libltdl_cv_need_uscore" = xyes; then
10043
10044cat >>confdefs.h <<\_ACEOF
10045#define NEED_USCORE 1
10046_ACEOF
10047
10048fi
10049
10050
10051{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10052echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10053if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056 # PORTME does your system automatically load deplibs for dlopen?
10057 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10058 # For now, we just catch OSes we know something about -- in the
10059 # future, we'll try test this programmatically.
10060 libltdl_cv_sys_dlopen_deplibs=unknown
10061 case "$host_os" in
10062 aix3*|aix4.1.*|aix4.2.*)
10063 # Unknown whether this is true for these versions of AIX, but
10064 # we want this `case' here to explicitly catch those versions.
10065 libltdl_cv_sys_dlopen_deplibs=unknown
10066 ;;
10067 aix[45]*)
10068 libltdl_cv_sys_dlopen_deplibs=yes
10069 ;;
10070 darwin*)
10071 # Assuming the user has installed a libdl from somewhere, this is true
10072 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10073 libltdl_cv_sys_dlopen_deplibs=yes
10074 ;;
10075 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10076 # GNU and its variants, using gnu ld.so (Glibc)
10077 libltdl_cv_sys_dlopen_deplibs=yes
10078 ;;
10079 hpux10*|hpux11*)
10080 libltdl_cv_sys_dlopen_deplibs=yes
10081 ;;
10082 interix*)
10083 libltdl_cv_sys_dlopen_deplibs=yes
10084 ;;
10085 irix[12345]*|irix6.[01]*)
10086 # Catch all versions of IRIX before 6.2, and indicate that we don't
10087 # know how it worked for any of those versions.
10088 libltdl_cv_sys_dlopen_deplibs=unknown
10089 ;;
10090 irix*)
10091 # The case above catches anything before 6.2, and it's known that
10092 # at 6.2 and later dlopen does load deplibs.
10093 libltdl_cv_sys_dlopen_deplibs=yes
10094 ;;
10095 netbsd*)
10096 libltdl_cv_sys_dlopen_deplibs=yes
10097 ;;
10098 openbsd*)
10099 libltdl_cv_sys_dlopen_deplibs=yes
10100 ;;
10101 osf[1234]*)
10102 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10103 # it did *not* use an RPATH in a shared library to find objects the
10104 # library depends on, so we explictly say `no'.
10105 libltdl_cv_sys_dlopen_deplibs=no
10106 ;;
10107 osf5.0|osf5.0a|osf5.1)
10108 # dlopen *does* load deplibs and with the right loader patch applied
10109 # it even uses RPATH in a shared library to search for shared objects
10110 # that the library depends on, but there's no easy way to know if that
10111 # patch is installed. Since this is the case, all we can really
10112 # say is unknown -- it depends on the patch being installed. If
10113 # it is, this changes to `yes'. Without it, it would be `no'.
10114 libltdl_cv_sys_dlopen_deplibs=unknown
10115 ;;
10116 osf*)
10117 # the two cases above should catch all versions of osf <= 5.1. Read
10118 # the comments above for what we know about them.
10119 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10120 # is used to find them so we can finally say `yes'.
10121 libltdl_cv_sys_dlopen_deplibs=yes
10122 ;;
10123 solaris*)
10124 libltdl_cv_sys_dlopen_deplibs=yes
10125 ;;
10126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10127 libltdl_cv_sys_dlopen_deplibs=yes
10128 ;;
10129 esac
10130
10131fi
10132{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10133echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10134if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10135
10136cat >>confdefs.h <<\_ACEOF
10137#define LTDL_DLOPEN_DEPLIBS 1
10138_ACEOF
10139
10140fi
10141
10142
10143for ac_header in argz.h
10144do
10145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151fi
10152ac_res=`eval echo '${'$as_ac_Header'}'`
10153 { echo "$as_me:$LINENO: result: $ac_res" >&5
10154echo "${ECHO_T}$ac_res" >&6; }
10155else
10156 # Is the header compilable?
10157{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165$ac_includes_default
10166#include <$ac_header>
10167_ACEOF
10168rm -f conftest.$ac_objext
10169if { (ac_try="$ac_compile"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010185 ac_header_compiler=yes
10186else
10187 echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_header_compiler=no
10191fi
10192
10193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195echo "${ECHO_T}$ac_header_compiler" >&6; }
10196
10197# Is the header present?
10198{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206#include <$ac_header>
10207_ACEOF
10208if { (ac_try="$ac_cpp conftest.$ac_ext"
10209case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010224 ac_header_preproc=yes
10225else
10226 echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_header_preproc=no
10230fi
10231
10232rm -f conftest.err conftest.$ac_ext
10233{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234echo "${ECHO_T}$ac_header_preproc" >&6; }
10235
10236# So? What about this header?
10237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 yes:no: )
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10244 ;;
10245 no:yes:* )
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10258 ( cat <<\_ASBOX
10259## ----------------------------------- ##
10260## Report this to llvmbugs@cs.uiuc.edu ##
10261## ----------------------------------- ##
10262_ASBOX
10263 ) | sed "s/^/$as_me: WARNING: /" >&2
10264 ;;
10265esac
10266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 eval "$as_ac_Header=\$ac_header_preproc"
10272fi
10273ac_res=`eval echo '${'$as_ac_Header'}'`
10274 { echo "$as_me:$LINENO: result: $ac_res" >&5
10275echo "${ECHO_T}$ac_res" >&6; }
10276
10277fi
10278if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281_ACEOF
10282
10283fi
10284
10285done
10286
10287
10288{ echo "$as_me:$LINENO: checking for error_t" >&5
10289echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10290if test "${ac_cv_type_error_t+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299#if HAVE_ARGZ_H
10300# include <argz.h>
10301#endif
10302
10303typedef error_t ac__type_new_;
10304int
10305main ()
10306{
10307if ((ac__type_new_ *) 0)
10308 return 0;
10309if (sizeof (ac__type_new_))
10310 return 0;
10311 ;
10312 return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext
10316if { (ac_try="$ac_compile"
10317case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320esac
10321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_compile") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010332 ac_cv_type_error_t=yes
10333else
10334 echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_cv_type_error_t=no
10338fi
10339
10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341fi
10342{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10343echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10344if test $ac_cv_type_error_t = yes; then
10345
10346cat >>confdefs.h <<_ACEOF
10347#define HAVE_ERROR_T 1
10348_ACEOF
10349
10350
10351else
10352
10353cat >>confdefs.h <<\_ACEOF
10354#define error_t int
10355_ACEOF
10356
10357fi
10358
10359
10360
10361
10362
10363
10364
10365for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10366do
10367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h. */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h. */
10379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381#define $ac_func innocuous_$ac_func
10382
10383/* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10387
10388#ifdef __STDC__
10389# include <limits.h>
10390#else
10391# include <assert.h>
10392#endif
10393
10394#undef $ac_func
10395
10396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char $ac_func ();
10403/* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406#if defined __stub_$ac_func || defined __stub___$ac_func
10407choke me
10408#endif
10409
10410int
10411main ()
10412{
10413return $ac_func ();
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (ac_try="$ac_link"
10420case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010436 eval "$as_ac_var=yes"
10437else
10438 echo "$as_me: failed program was:" >&5
10439sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 eval "$as_ac_var=no"
10442fi
10443
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010445 conftest$ac_exeext conftest.$ac_ext
10446fi
10447ac_res=`eval echo '${'$as_ac_var'}'`
10448 { echo "$as_me:$LINENO: result: $ac_res" >&5
10449echo "${ECHO_T}$ac_res" >&6; }
10450if test `eval echo '${'$as_ac_var'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10453_ACEOF
10454
10455fi
10456done
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10486 stdio.h unistd.h
10487do
10488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494fi
10495ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497echo "${ECHO_T}$ac_res" >&6; }
10498else
10499 # Is the header compilable?
10500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508$ac_includes_default
10509#include <$ac_header>
10510_ACEOF
10511rm -f conftest.$ac_objext
10512if { (ac_try="$ac_compile"
10513case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010528 ac_header_compiler=yes
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_header_compiler=no
10534fi
10535
10536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538echo "${ECHO_T}$ac_header_compiler" >&6; }
10539
10540# Is the header present?
10541{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10543cat >conftest.$ac_ext <<_ACEOF
10544/* confdefs.h. */
10545_ACEOF
10546cat confdefs.h >>conftest.$ac_ext
10547cat >>conftest.$ac_ext <<_ACEOF
10548/* end confdefs.h. */
10549#include <$ac_header>
10550_ACEOF
10551if { (ac_try="$ac_cpp conftest.$ac_ext"
10552case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555esac
10556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010567 ac_header_preproc=yes
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_header_preproc=no
10573fi
10574
10575rm -f conftest.err conftest.$ac_ext
10576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577echo "${ECHO_T}$ac_header_preproc" >&6; }
10578
10579# So? What about this header?
10580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 yes:no: )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10587 ;;
10588 no:yes:* )
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10601 ( cat <<\_ASBOX
10602## ----------------------------------- ##
10603## Report this to llvmbugs@cs.uiuc.edu ##
10604## ----------------------------------- ##
10605_ASBOX
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10607 ;;
10608esac
10609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614 eval "$as_ac_Header=\$ac_header_preproc"
10615fi
10616ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618echo "${ECHO_T}$ac_res" >&6; }
10619
10620fi
10621if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624_ACEOF
10625
10626fi
10627
10628done
10629
10630
10631
10632
10633
10634for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10635do
10636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642fi
10643ac_res=`eval echo '${'$as_ac_Header'}'`
10644 { echo "$as_me:$LINENO: result: $ac_res" >&5
10645echo "${ECHO_T}$ac_res" >&6; }
10646else
10647 # Is the header compilable?
10648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656$ac_includes_default
10657#include <$ac_header>
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (ac_try="$ac_compile"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010672 (exit $ac_status); } && {
10673 test -z "$ac_c_werror_flag" ||
10674 test ! -s conftest.err
10675 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010676 ac_header_compiler=yes
10677else
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_header_compiler=no
10682fi
10683
10684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686echo "${ECHO_T}$ac_header_compiler" >&6; }
10687
10688# Is the header present?
10689{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10691cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697#include <$ac_header>
10698_ACEOF
10699if { (ac_try="$ac_cpp conftest.$ac_ext"
10700case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010711 (exit $ac_status); } >/dev/null && {
10712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010715 ac_header_preproc=yes
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 ac_header_preproc=no
10721fi
10722
10723rm -f conftest.err conftest.$ac_ext
10724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10725echo "${ECHO_T}$ac_header_preproc" >&6; }
10726
10727# So? What about this header?
10728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10729 yes:no: )
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10734 ac_header_preproc=yes
10735 ;;
10736 no:yes:* )
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10749 ( cat <<\_ASBOX
10750## ----------------------------------- ##
10751## Report this to llvmbugs@cs.uiuc.edu ##
10752## ----------------------------------- ##
10753_ASBOX
10754 ) | sed "s/^/$as_me: WARNING: /" >&2
10755 ;;
10756esac
10757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 eval "$as_ac_Header=\$ac_header_preproc"
10763fi
10764ac_res=`eval echo '${'$as_ac_Header'}'`
10765 { echo "$as_me:$LINENO: result: $ac_res" >&5
10766echo "${ECHO_T}$ac_res" >&6; }
10767
10768fi
10769if test `eval echo '${'$as_ac_Header'}'` = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10772_ACEOF
10773
10774fi
10775
10776done
10777
10778
10779
10780for ac_header in string.h strings.h
10781do
10782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788fi
10789ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791echo "${ECHO_T}$ac_res" >&6; }
10792else
10793 # Is the header compilable?
10794{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802$ac_includes_default
10803#include <$ac_header>
10804_ACEOF
10805rm -f conftest.$ac_objext
10806if { (ac_try="$ac_compile"
10807case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010822 ac_header_compiler=yes
10823else
10824 echo "$as_me: failed program was:" >&5
10825sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ac_header_compiler=no
10828fi
10829
10830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832echo "${ECHO_T}$ac_header_compiler" >&6; }
10833
10834# Is the header present?
10835{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10837cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
10842/* end confdefs.h. */
10843#include <$ac_header>
10844_ACEOF
10845if { (ac_try="$ac_cpp conftest.$ac_ext"
10846case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849esac
10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010857 (exit $ac_status); } >/dev/null && {
10858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010861 ac_header_preproc=yes
10862else
10863 echo "$as_me: failed program was:" >&5
10864sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_header_preproc=no
10867fi
10868
10869rm -f conftest.err conftest.$ac_ext
10870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871echo "${ECHO_T}$ac_header_preproc" >&6; }
10872
10873# So? What about this header?
10874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 yes:no: )
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10880 ac_header_preproc=yes
10881 ;;
10882 no:yes:* )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10895 ( cat <<\_ASBOX
10896## ----------------------------------- ##
10897## Report this to llvmbugs@cs.uiuc.edu ##
10898## ----------------------------------- ##
10899_ASBOX
10900 ) | sed "s/^/$as_me: WARNING: /" >&2
10901 ;;
10902esac
10903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
10908 eval "$as_ac_Header=\$ac_header_preproc"
10909fi
10910ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912echo "${ECHO_T}$ac_res" >&6; }
10913
10914fi
10915if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918_ACEOF
10919 break
10920fi
10921
10922done
10923
10924
10925
10926
10927for ac_func in strchr index
10928do
10929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935 cat >conftest.$ac_ext <<_ACEOF
10936/* confdefs.h. */
10937_ACEOF
10938cat confdefs.h >>conftest.$ac_ext
10939cat >>conftest.$ac_ext <<_ACEOF
10940/* end confdefs.h. */
10941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10943#define $ac_func innocuous_$ac_func
10944
10945/* System header to define __stub macros and hopefully few prototypes,
10946 which can conflict with char $ac_func (); below.
10947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10948 <limits.h> exists even on freestanding compilers. */
10949
10950#ifdef __STDC__
10951# include <limits.h>
10952#else
10953# include <assert.h>
10954#endif
10955
10956#undef $ac_func
10957
10958/* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10961#ifdef __cplusplus
10962extern "C"
10963#endif
10964char $ac_func ();
10965/* The GNU C library defines this for functions which it implements
10966 to always fail with ENOSYS. Some functions are actually named
10967 something starting with __ and the normal name is an alias. */
10968#if defined __stub_$ac_func || defined __stub___$ac_func
10969choke me
10970#endif
10971
10972int
10973main ()
10974{
10975return $ac_func ();
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980rm -f conftest.$ac_objext conftest$ac_exeext
10981if { (ac_try="$ac_link"
10982case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_link") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000010993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest$ac_exeext &&
10997 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010998 eval "$as_ac_var=yes"
10999else
11000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 eval "$as_ac_var=no"
11004fi
11005
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011007 conftest$ac_exeext conftest.$ac_ext
11008fi
11009ac_res=`eval echo '${'$as_ac_var'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011echo "${ECHO_T}$ac_res" >&6; }
11012if test `eval echo '${'$as_ac_var'}'` = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11015_ACEOF
11016 break
11017fi
11018done
11019
11020
11021
11022for ac_func in strrchr rindex
11023do
11024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h. */
11036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038#define $ac_func innocuous_$ac_func
11039
11040/* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11044
11045#ifdef __STDC__
11046# include <limits.h>
11047#else
11048# include <assert.h>
11049#endif
11050
11051#undef $ac_func
11052
11053/* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056#ifdef __cplusplus
11057extern "C"
11058#endif
11059char $ac_func ();
11060/* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063#if defined __stub_$ac_func || defined __stub___$ac_func
11064choke me
11065#endif
11066
11067int
11068main ()
11069{
11070return $ac_func ();
11071 ;
11072 return 0;
11073}
11074_ACEOF
11075rm -f conftest.$ac_objext conftest$ac_exeext
11076if { (ac_try="$ac_link"
11077case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080esac
11081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext &&
11092 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011093 eval "$as_ac_var=yes"
11094else
11095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 eval "$as_ac_var=no"
11099fi
11100
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011102 conftest$ac_exeext conftest.$ac_ext
11103fi
11104ac_res=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106echo "${ECHO_T}$ac_res" >&6; }
11107if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110_ACEOF
11111 break
11112fi
11113done
11114
11115
11116
11117for ac_func in memcpy bcopy
11118do
11119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133#define $ac_func innocuous_$ac_func
11134
11135/* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char $ac_func (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11139
11140#ifdef __STDC__
11141# include <limits.h>
11142#else
11143# include <assert.h>
11144#endif
11145
11146#undef $ac_func
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char $ac_func ();
11155/* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158#if defined __stub_$ac_func || defined __stub___$ac_func
11159choke me
11160#endif
11161
11162int
11163main ()
11164{
11165return $ac_func ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext conftest$ac_exeext
11171if { (ac_try="$ac_link"
11172case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext &&
11187 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011188 eval "$as_ac_var=yes"
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 eval "$as_ac_var=no"
11194fi
11195
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011197 conftest$ac_exeext conftest.$ac_ext
11198fi
11199ac_res=`eval echo '${'$as_ac_var'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201echo "${ECHO_T}$ac_res" >&6; }
11202if test `eval echo '${'$as_ac_var'}'` = yes; then
11203 cat >>confdefs.h <<_ACEOF
11204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11205_ACEOF
11206 break
11207fi
11208done
11209
11210
11211
11212for ac_func in memmove strcmp
11213do
11214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228#define $ac_func innocuous_$ac_func
11229
11230/* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11234
11235#ifdef __STDC__
11236# include <limits.h>
11237#else
11238# include <assert.h>
11239#endif
11240
11241#undef $ac_func
11242
11243/* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246#ifdef __cplusplus
11247extern "C"
11248#endif
11249char $ac_func ();
11250/* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253#if defined __stub_$ac_func || defined __stub___$ac_func
11254choke me
11255#endif
11256
11257int
11258main ()
11259{
11260return $ac_func ();
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext conftest$ac_exeext
11266if { (ac_try="$ac_link"
11267case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest$ac_exeext &&
11282 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011283 eval "$as_ac_var=yes"
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 eval "$as_ac_var=no"
11289fi
11290
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011292 conftest$ac_exeext conftest.$ac_ext
11293fi
11294ac_res=`eval echo '${'$as_ac_var'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296echo "${ECHO_T}$ac_res" >&6; }
11297if test `eval echo '${'$as_ac_var'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300_ACEOF
11301
11302fi
11303done
11304
11305
11306
11307
11308for ac_func in closedir opendir readdir
11309do
11310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 cat >conftest.$ac_ext <<_ACEOF
11317/* confdefs.h. */
11318_ACEOF
11319cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h. */
11322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11324#define $ac_func innocuous_$ac_func
11325
11326/* System header to define __stub macros and hopefully few prototypes,
11327 which can conflict with char $ac_func (); below.
11328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11329 <limits.h> exists even on freestanding compilers. */
11330
11331#ifdef __STDC__
11332# include <limits.h>
11333#else
11334# include <assert.h>
11335#endif
11336
11337#undef $ac_func
11338
11339/* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342#ifdef __cplusplus
11343extern "C"
11344#endif
11345char $ac_func ();
11346/* The GNU C library defines this for functions which it implements
11347 to always fail with ENOSYS. Some functions are actually named
11348 something starting with __ and the normal name is an alias. */
11349#if defined __stub_$ac_func || defined __stub___$ac_func
11350choke me
11351#endif
11352
11353int
11354main ()
11355{
11356return $ac_func ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361rm -f conftest.$ac_objext conftest$ac_exeext
11362if { (ac_try="$ac_link"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011379 eval "$as_ac_var=yes"
11380else
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 eval "$as_ac_var=no"
11385fi
11386
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011388 conftest$ac_exeext conftest.$ac_ext
11389fi
11390ac_res=`eval echo '${'$as_ac_var'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392echo "${ECHO_T}$ac_res" >&6; }
11393if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396_ACEOF
11397
11398fi
11399done
11400
11401
11402# Check whether --enable-shared was given.
11403if test "${enable_shared+set}" = set; then
11404 enableval=$enable_shared; p=${PACKAGE-default}
11405 case $enableval in
11406 yes) enable_shared=yes ;;
11407 no) enable_shared=no ;;
11408 *)
11409 enable_shared=no
11410 # Look at the argument we got. We use all the common list separators.
11411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11412 for pkg in $enableval; do
11413 IFS="$lt_save_ifs"
11414 if test "X$pkg" = "X$p"; then
11415 enable_shared=yes
11416 fi
11417 done
11418 IFS="$lt_save_ifs"
11419 ;;
11420 esac
11421else
11422 enable_shared=yes
11423fi
11424
11425
11426# Check whether --enable-static was given.
11427if test "${enable_static+set}" = set; then
11428 enableval=$enable_static; p=${PACKAGE-default}
11429 case $enableval in
11430 yes) enable_static=yes ;;
11431 no) enable_static=no ;;
11432 *)
11433 enable_static=no
11434 # Look at the argument we got. We use all the common list separators.
11435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11436 for pkg in $enableval; do
11437 IFS="$lt_save_ifs"
11438 if test "X$pkg" = "X$p"; then
11439 enable_static=yes
11440 fi
11441 done
11442 IFS="$lt_save_ifs"
11443 ;;
11444 esac
11445else
11446 enable_static=yes
11447fi
11448
11449
11450# Check whether --enable-fast-install was given.
11451if test "${enable_fast_install+set}" = set; then
11452 enableval=$enable_fast_install; p=${PACKAGE-default}
11453 case $enableval in
11454 yes) enable_fast_install=yes ;;
11455 no) enable_fast_install=no ;;
11456 *)
11457 enable_fast_install=no
11458 # Look at the argument we got. We use all the common list separators.
11459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11460 for pkg in $enableval; do
11461 IFS="$lt_save_ifs"
11462 if test "X$pkg" = "X$p"; then
11463 enable_fast_install=yes
11464 fi
11465 done
11466 IFS="$lt_save_ifs"
11467 ;;
11468 esac
11469else
11470 enable_fast_install=yes
11471fi
11472
11473
11474{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11475echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11476if test "${lt_cv_path_SED+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478else
11479 # Loop through the user's path and test for sed and gsed.
11480# Then use that list of sed's as ones to test for truncation.
11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for lt_ac_prog in sed gsed; do
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11489 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11490 fi
11491 done
11492 done
11493done
11494lt_ac_max=0
11495lt_ac_count=0
11496# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11497# along with /bin/sed that truncates output.
11498for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11499 test ! -f $lt_ac_sed && continue
11500 cat /dev/null > conftest.in
11501 lt_ac_count=0
11502 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11503 # Check for GNU sed and select it if it is found.
11504 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11505 lt_cv_path_SED=$lt_ac_sed
11506 break
11507 fi
11508 while true; do
11509 cat conftest.in conftest.in >conftest.tmp
11510 mv conftest.tmp conftest.in
11511 cp conftest.in conftest.nl
11512 echo >>conftest.nl
11513 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11514 cmp -s conftest.out conftest.nl || break
11515 # 10000 chars as input seems more than enough
11516 test $lt_ac_count -gt 10 && break
11517 lt_ac_count=`expr $lt_ac_count + 1`
11518 if test $lt_ac_count -gt $lt_ac_max; then
11519 lt_ac_max=$lt_ac_count
11520 lt_cv_path_SED=$lt_ac_sed
11521 fi
11522 done
11523done
11524
11525fi
11526
11527SED=$lt_cv_path_SED
11528{ echo "$as_me:$LINENO: result: $SED" >&5
11529echo "${ECHO_T}$SED" >&6; }
11530
11531
11532# Check whether --with-gnu-ld was given.
11533if test "${with_gnu_ld+set}" = set; then
11534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11535else
11536 with_gnu_ld=no
11537fi
11538
11539ac_prog=ld
11540if test "$GCC" = yes; then
11541 # Check if gcc -print-prog-name=ld gives a path.
11542 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11543echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11544 case $host in
11545 *-*-mingw*)
11546 # gcc leaves a trailing carriage return which upsets mingw
11547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11548 *)
11549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11550 esac
11551 case $ac_prog in
11552 # Accept absolute paths.
11553 [\\/]* | ?:[\\/]*)
11554 re_direlt='/[^/][^/]*/\.\./'
11555 # Canonicalize the pathname of ld
11556 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11557 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11558 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11559 done
11560 test -z "$LD" && LD="$ac_prog"
11561 ;;
11562 "")
11563 # If it fails, then pretend we aren't using GCC.
11564 ac_prog=ld
11565 ;;
11566 *)
11567 # If it is relative, then search for the first ld in PATH.
11568 with_gnu_ld=unknown
11569 ;;
11570 esac
11571elif test "$with_gnu_ld" = yes; then
11572 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11573echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11574else
11575 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11576echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11577fi
11578if test "${lt_cv_path_LD+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 if test -z "$LD"; then
11582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11583 for ac_dir in $PATH; do
11584 IFS="$lt_save_ifs"
11585 test -z "$ac_dir" && ac_dir=.
11586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11587 lt_cv_path_LD="$ac_dir/$ac_prog"
11588 # Check to see if the program is GNU ld. I'd rather use --version,
11589 # but apparently some variants of GNU ld only accept -v.
11590 # Break only if it was the GNU/non-GNU ld that we prefer.
11591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11592 *GNU* | *'with BFD'*)
11593 test "$with_gnu_ld" != no && break
11594 ;;
11595 *)
11596 test "$with_gnu_ld" != yes && break
11597 ;;
11598 esac
11599 fi
11600 done
11601 IFS="$lt_save_ifs"
11602else
11603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11604fi
11605fi
11606
11607LD="$lt_cv_path_LD"
11608if test -n "$LD"; then
11609 { echo "$as_me:$LINENO: result: $LD" >&5
11610echo "${ECHO_T}$LD" >&6; }
11611else
11612 { echo "$as_me:$LINENO: result: no" >&5
11613echo "${ECHO_T}no" >&6; }
11614fi
11615test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11616echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11617 { (exit 1); exit 1; }; }
11618{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11619echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11620if test "${lt_cv_prog_gnu_ld+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11624case `$LD -v 2>&1 </dev/null` in
11625*GNU* | *'with BFD'*)
11626 lt_cv_prog_gnu_ld=yes
11627 ;;
11628*)
11629 lt_cv_prog_gnu_ld=no
11630 ;;
11631esac
11632fi
11633{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11634echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11635with_gnu_ld=$lt_cv_prog_gnu_ld
11636
11637
11638{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11639echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11640if test "${lt_cv_ld_reload_flag+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 lt_cv_ld_reload_flag='-r'
11644fi
11645{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11646echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11647reload_flag=$lt_cv_ld_reload_flag
11648case $reload_flag in
11649"" | " "*) ;;
11650*) reload_flag=" $reload_flag" ;;
11651esac
11652reload_cmds='$LD$reload_flag -o $output$reload_objs'
11653case $host_os in
11654 darwin*)
11655 if test "$GCC" = yes; then
11656 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11657 else
11658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11659 fi
11660 ;;
11661esac
11662
11663{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11664echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11665if test "${lt_cv_deplibs_check_method+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
11668 lt_cv_file_magic_cmd='$MAGIC_CMD'
11669lt_cv_file_magic_test_file=
11670lt_cv_deplibs_check_method='unknown'
11671# Need to set the preceding variable on all platforms that support
11672# interlibrary dependencies.
11673# 'none' -- dependencies not supported.
11674# `unknown' -- same as none, but documents that we really don't know.
11675# 'pass_all' -- all dependencies passed with no checks.
11676# 'test_compile' -- check by making test program.
11677# 'file_magic [[regex]]' -- check by looking for files in library path
11678# which responds to the $file_magic_cmd with a given extended regex.
11679# If you have `file' or equivalent on your system and you're not sure
11680# whether `pass_all' will *always* work, you probably want this one.
11681
11682case $host_os in
11683aix4* | aix5*)
11684 lt_cv_deplibs_check_method=pass_all
11685 ;;
11686
11687beos*)
11688 lt_cv_deplibs_check_method=pass_all
11689 ;;
11690
11691bsdi[45]*)
11692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11693 lt_cv_file_magic_cmd='/usr/bin/file -L'
11694 lt_cv_file_magic_test_file=/shlib/libc.so
11695 ;;
11696
11697cygwin*)
11698 # func_win32_libid is a shell function defined in ltmain.sh
11699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11700 lt_cv_file_magic_cmd='func_win32_libid'
11701 ;;
11702
11703mingw* | pw32*)
11704 # Base MSYS/MinGW do not provide the 'file' command needed by
11705 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11706 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11707 lt_cv_file_magic_cmd='$OBJDUMP -f'
11708 ;;
11709
11710darwin* | rhapsody*)
11711 lt_cv_deplibs_check_method=pass_all
11712 ;;
11713
11714freebsd* | kfreebsd*-gnu | dragonfly*)
11715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11716 case $host_cpu in
11717 i*86 )
11718 # Not sure whether the presence of OpenBSD here was a mistake.
11719 # Let's accept both of them until this is cleared up.
11720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11721 lt_cv_file_magic_cmd=/usr/bin/file
11722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11723 ;;
11724 esac
11725 else
11726 lt_cv_deplibs_check_method=pass_all
11727 fi
11728 ;;
11729
11730gnu*)
11731 lt_cv_deplibs_check_method=pass_all
11732 ;;
11733
11734hpux10.20* | hpux11*)
11735 lt_cv_file_magic_cmd=/usr/bin/file
11736 case $host_cpu in
11737 ia64*)
11738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11740 ;;
11741 hppa*64*)
11742 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]'
11743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11744 ;;
11745 *)
11746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11748 ;;
11749 esac
11750 ;;
11751
11752interix3*)
11753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11755 ;;
11756
11757irix5* | irix6* | nonstopux*)
11758 case $LD in
11759 *-32|*"-32 ") libmagic=32-bit;;
11760 *-n32|*"-n32 ") libmagic=N32;;
11761 *-64|*"-64 ") libmagic=64-bit;;
11762 *) libmagic=never-match;;
11763 esac
11764 lt_cv_deplibs_check_method=pass_all
11765 ;;
11766
11767# This must be Linux ELF.
11768linux*)
11769 lt_cv_deplibs_check_method=pass_all
11770 ;;
11771
11772netbsd*)
11773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11775 else
11776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11777 fi
11778 ;;
11779
11780newos6*)
11781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11782 lt_cv_file_magic_cmd=/usr/bin/file
11783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11784 ;;
11785
11786nto-qnx*)
11787 lt_cv_deplibs_check_method=unknown
11788 ;;
11789
11790openbsd*)
11791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11793 else
11794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11795 fi
11796 ;;
11797
11798osf3* | osf4* | osf5*)
11799 lt_cv_deplibs_check_method=pass_all
11800 ;;
11801
11802solaris*)
11803 lt_cv_deplibs_check_method=pass_all
11804 ;;
11805
11806sysv4 | sysv4.3*)
11807 case $host_vendor in
11808 motorola)
11809 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]'
11810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11811 ;;
11812 ncr)
11813 lt_cv_deplibs_check_method=pass_all
11814 ;;
11815 sequent)
11816 lt_cv_file_magic_cmd='/bin/file'
11817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11818 ;;
11819 sni)
11820 lt_cv_file_magic_cmd='/bin/file'
11821 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11822 lt_cv_file_magic_test_file=/lib/libc.so
11823 ;;
11824 siemens)
11825 lt_cv_deplibs_check_method=pass_all
11826 ;;
11827 pc)
11828 lt_cv_deplibs_check_method=pass_all
11829 ;;
11830 esac
11831 ;;
11832
11833sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834 lt_cv_deplibs_check_method=pass_all
11835 ;;
11836esac
11837
11838fi
11839{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11840echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11841file_magic_cmd=$lt_cv_file_magic_cmd
11842deplibs_check_method=$lt_cv_deplibs_check_method
11843test -z "$deplibs_check_method" && deplibs_check_method=unknown
11844
11845
11846
11847# If no C compiler was specified, use CC.
11848LTCC=${LTCC-"$CC"}
11849
11850# If no C compiler flags were specified, use CFLAGS.
11851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11852
11853# Allow CC to be a program name with arguments.
11854compiler=$CC
11855
11856# Check whether --enable-libtool-lock was given.
11857if test "${enable_libtool_lock+set}" = set; then
11858 enableval=$enable_libtool_lock;
11859fi
11860
11861test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11862
11863# Some flags need to be propagated to the compiler or linker for good
11864# libtool support.
11865case $host in
11866ia64-*-hpux*)
11867 # Find out which ABI we are using.
11868 echo 'int i;' > conftest.$ac_ext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; then
11874 case `/usr/bin/file conftest.$ac_objext` in
11875 *ELF-32*)
11876 HPUX_IA64_MODE="32"
11877 ;;
11878 *ELF-64*)
11879 HPUX_IA64_MODE="64"
11880 ;;
11881 esac
11882 fi
11883 rm -rf conftest*
11884 ;;
11885*-*-irix6*)
11886 # Find out which ABI we are using.
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000011887 echo '#line 11887 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; then
11893 if test "$lt_cv_prog_gnu_ld" = yes; then
11894 case `/usr/bin/file conftest.$ac_objext` in
11895 *32-bit*)
11896 LD="${LD-ld} -melf32bsmip"
11897 ;;
11898 *N32*)
11899 LD="${LD-ld} -melf32bmipn32"
11900 ;;
11901 *64-bit*)
11902 LD="${LD-ld} -melf64bmip"
11903 ;;
11904 esac
11905 else
11906 case `/usr/bin/file conftest.$ac_objext` in
11907 *32-bit*)
11908 LD="${LD-ld} -32"
11909 ;;
11910 *N32*)
11911 LD="${LD-ld} -n32"
11912 ;;
11913 *64-bit*)
11914 LD="${LD-ld} -64"
11915 ;;
11916 esac
11917 fi
11918 fi
11919 rm -rf conftest*
11920 ;;
11921
11922x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11923 # Find out which ABI we are using.
11924 echo 'int i;' > conftest.$ac_ext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; then
11930 case `/usr/bin/file conftest.o` in
11931 *32-bit*)
11932 case $host in
11933 x86_64-*linux*)
11934 LD="${LD-ld} -m elf_i386"
11935 ;;
11936 ppc64-*linux*|powerpc64-*linux*)
11937 LD="${LD-ld} -m elf32ppclinux"
11938 ;;
11939 s390x-*linux*)
11940 LD="${LD-ld} -m elf_s390"
11941 ;;
11942 sparc64-*linux*)
11943 LD="${LD-ld} -m elf32_sparc"
11944 ;;
11945 esac
11946 ;;
11947 *64-bit*)
11948 case $host in
11949 x86_64-*linux*)
11950 LD="${LD-ld} -m elf_x86_64"
11951 ;;
11952 ppc*-*linux*|powerpc*-*linux*)
11953 LD="${LD-ld} -m elf64ppc"
11954 ;;
11955 s390*-*linux*)
11956 LD="${LD-ld} -m elf64_s390"
11957 ;;
11958 sparc*-*linux*)
11959 LD="${LD-ld} -m elf64_sparc"
11960 ;;
11961 esac
11962 ;;
11963 esac
11964 fi
11965 rm -rf conftest*
11966 ;;
11967
11968*-*-sco3.2v5*)
11969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11970 SAVE_CFLAGS="$CFLAGS"
11971 CFLAGS="$CFLAGS -belf"
11972 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11973echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11974if test "${lt_cv_cc_needs_belf+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 ac_ext=c
11978ac_cpp='$CPP $CPPFLAGS'
11979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981ac_compiler_gnu=$ac_cv_c_compiler_gnu
11982
11983 cat >conftest.$ac_ext <<_ACEOF
11984/* confdefs.h. */
11985_ACEOF
11986cat confdefs.h >>conftest.$ac_ext
11987cat >>conftest.$ac_ext <<_ACEOF
11988/* end confdefs.h. */
11989
11990int
11991main ()
11992{
11993
11994 ;
11995 return 0;
11996}
11997_ACEOF
11998rm -f conftest.$ac_objext conftest$ac_exeext
11999if { (ac_try="$ac_link"
12000case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest$ac_exeext &&
12015 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012016 lt_cv_cc_needs_belf=yes
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 lt_cv_cc_needs_belf=no
12022fi
12023
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012025 conftest$ac_exeext conftest.$ac_ext
12026 ac_ext=c
12027ac_cpp='$CPP $CPPFLAGS'
12028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032fi
12033{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12034echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12035 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12036 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12037 CFLAGS="$SAVE_CFLAGS"
12038 fi
12039 ;;
12040sparc*-*solaris*)
12041 # Find out which ABI we are using.
12042 echo 'int i;' > conftest.$ac_ext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; then
12048 case `/usr/bin/file conftest.o` in
12049 *64-bit*)
12050 case $lt_cv_prog_gnu_ld in
12051 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12052 *) LD="${LD-ld} -64" ;;
12053 esac
12054 ;;
12055 esac
12056 fi
12057 rm -rf conftest*
12058 ;;
12059
12060
12061esac
12062
12063need_locks="$enable_libtool_lock"
12064
12065
12066
12067
12068if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12069 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12070 (test "X$CXX" != "Xg++"))) ; then
12071 ac_ext=cpp
12072ac_cpp='$CXXCPP $CPPFLAGS'
12073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12076{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12077echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12078if test -z "$CXXCPP"; then
12079 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 # Double quotes because CXXCPP needs to be expanded
12083 for CXXCPP in "$CXX -E" "/lib/cpp"
12084 do
12085 ac_preproc_ok=false
12086for ac_cxx_preproc_warn_flag in '' yes
12087do
12088 # Use a header file that comes with gcc, so configuring glibc
12089 # with a fresh cross-compiler works.
12090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091 # <limits.h> exists even on freestanding compilers.
12092 # On the NeXT, cc -E runs the code through the compiler's parser,
12093 # not just through cpp. "Syntax error" is here to catch this case.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#ifdef __STDC__
12101# include <limits.h>
12102#else
12103# include <assert.h>
12104#endif
12105 Syntax error
12106_ACEOF
12107if { (ac_try="$ac_cpp conftest.$ac_ext"
12108case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012119 (exit $ac_status); } >/dev/null && {
12120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12121 test ! -s conftest.err
12122 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012123 :
12124else
12125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 # Broken: fails on valid input.
12129continue
12130fi
12131
12132rm -f conftest.err conftest.$ac_ext
12133
12134 # OK, works on sane cases. Now check whether nonexistent headers
12135 # can be detected and how.
12136 cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
12142#include <ac_nonexistent.h>
12143_ACEOF
12144if { (ac_try="$ac_cpp conftest.$ac_ext"
12145case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012156 (exit $ac_status); } >/dev/null && {
12157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12158 test ! -s conftest.err
12159 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012160 # Broken: success on invalid input.
12161continue
12162else
12163 echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 # Passes both tests.
12167ac_preproc_ok=:
12168break
12169fi
12170
12171rm -f conftest.err conftest.$ac_ext
12172
12173done
12174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12175rm -f conftest.err conftest.$ac_ext
12176if $ac_preproc_ok; then
12177 break
12178fi
12179
12180 done
12181 ac_cv_prog_CXXCPP=$CXXCPP
12182
12183fi
12184 CXXCPP=$ac_cv_prog_CXXCPP
12185else
12186 ac_cv_prog_CXXCPP=$CXXCPP
12187fi
12188{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12189echo "${ECHO_T}$CXXCPP" >&6; }
12190ac_preproc_ok=false
12191for ac_cxx_preproc_warn_flag in '' yes
12192do
12193 # Use a header file that comes with gcc, so configuring glibc
12194 # with a fresh cross-compiler works.
12195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12196 # <limits.h> exists even on freestanding compilers.
12197 # On the NeXT, cc -E runs the code through the compiler's parser,
12198 # not just through cpp. "Syntax error" is here to catch this case.
12199 cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h. */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h. */
12205#ifdef __STDC__
12206# include <limits.h>
12207#else
12208# include <assert.h>
12209#endif
12210 Syntax error
12211_ACEOF
12212if { (ac_try="$ac_cpp conftest.$ac_ext"
12213case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012224 (exit $ac_status); } >/dev/null && {
12225 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12226 test ! -s conftest.err
12227 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012228 :
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Broken: fails on valid input.
12234continue
12235fi
12236
12237rm -f conftest.err conftest.$ac_ext
12238
12239 # OK, works on sane cases. Now check whether nonexistent headers
12240 # can be detected and how.
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <ac_nonexistent.h>
12248_ACEOF
12249if { (ac_try="$ac_cpp conftest.$ac_ext"
12250case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012261 (exit $ac_status); } >/dev/null && {
12262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12263 test ! -s conftest.err
12264 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012265 # Broken: success on invalid input.
12266continue
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 # Passes both tests.
12272ac_preproc_ok=:
12273break
12274fi
12275
12276rm -f conftest.err conftest.$ac_ext
12277
12278done
12279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12280rm -f conftest.err conftest.$ac_ext
12281if $ac_preproc_ok; then
12282 :
12283else
12284 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12285See \`config.log' for more details." >&5
12286echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12287See \`config.log' for more details." >&2;}
12288 { (exit 1); exit 1; }; }
12289fi
12290
12291ac_ext=cpp
12292ac_cpp='$CXXCPP $CPPFLAGS'
12293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12296
12297fi
12298
12299
12300ac_ext=f
12301ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12302ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12304if test -n "$ac_tool_prefix"; then
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012305 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012306 do
12307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311if test "${ac_cv_prog_F77+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 if test -n "$F77"; then
12315 ac_cv_prog_F77="$F77" # Let the user override the test.
12316else
12317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318for as_dir in $PATH
12319do
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012324 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12327 fi
12328done
12329done
12330IFS=$as_save_IFS
12331
12332fi
12333fi
12334F77=$ac_cv_prog_F77
12335if test -n "$F77"; then
12336 { echo "$as_me:$LINENO: result: $F77" >&5
12337echo "${ECHO_T}$F77" >&6; }
12338else
12339 { echo "$as_me:$LINENO: result: no" >&5
12340echo "${ECHO_T}no" >&6; }
12341fi
12342
12343
12344 test -n "$F77" && break
12345 done
12346fi
12347if test -z "$F77"; then
12348 ac_ct_F77=$F77
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012349 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012350do
12351 # Extract the first word of "$ac_prog", so it can be a program name with args.
12352set dummy $ac_prog; ac_word=$2
12353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12355if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357else
12358 if test -n "$ac_ct_F77"; then
12359 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12360else
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012368 ac_cv_prog_ac_ct_F77="$ac_prog"
12369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12371 fi
12372done
12373done
12374IFS=$as_save_IFS
12375
12376fi
12377fi
12378ac_ct_F77=$ac_cv_prog_ac_ct_F77
12379if test -n "$ac_ct_F77"; then
12380 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12381echo "${ECHO_T}$ac_ct_F77" >&6; }
12382else
12383 { echo "$as_me:$LINENO: result: no" >&5
12384echo "${ECHO_T}no" >&6; }
12385fi
12386
12387
12388 test -n "$ac_ct_F77" && break
12389done
12390
12391 if test "x$ac_ct_F77" = x; then
12392 F77=""
12393 else
12394 case $cross_compiling:$ac_tool_warned in
12395yes:)
12396{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12397whose name does not start with the host triplet. If you think this
12398configuration is useful to you, please write to autoconf@gnu.org." >&5
12399echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12400whose name does not start with the host triplet. If you think this
12401configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12402ac_tool_warned=yes ;;
12403esac
12404 F77=$ac_ct_F77
12405 fi
12406fi
12407
12408
12409# Provide some information about the compiler.
12410echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12411ac_compiler=`set X $ac_compile; echo $2`
12412{ (ac_try="$ac_compiler --version >&5"
12413case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compiler --version >&5") 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }
12422{ (ac_try="$ac_compiler -v >&5"
12423case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compiler -v >&5") 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }
12432{ (ac_try="$ac_compiler -V >&5"
12433case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436esac
12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compiler -V >&5") 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }
12442rm -f a.out
12443
12444# If we don't use `.F' as extension, the preprocessor is not run on the
12445# input file. (Note that this only needs to work for GNU compilers.)
12446ac_save_ext=$ac_ext
12447ac_ext=F
12448{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12449echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12450if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453 cat >conftest.$ac_ext <<_ACEOF
12454 program main
12455#ifndef __GNUC__
12456 choke me
12457#endif
12458
12459 end
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (ac_try="$ac_compile"
12463case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012474 (exit $ac_status); } && {
12475 test -z "$ac_f77_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012478 ac_compiler_gnu=yes
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_compiler_gnu=no
12484fi
12485
12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12488
12489fi
12490{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12491echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12492ac_ext=$ac_save_ext
12493ac_test_FFLAGS=${FFLAGS+set}
12494ac_save_FFLAGS=$FFLAGS
12495FFLAGS=
12496{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12497echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12498if test "${ac_cv_prog_f77_g+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 FFLAGS=-g
12502cat >conftest.$ac_ext <<_ACEOF
12503 program main
12504
12505 end
12506_ACEOF
12507rm -f conftest.$ac_objext
12508if { (ac_try="$ac_compile"
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_compile") 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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012520 (exit $ac_status); } && {
12521 test -z "$ac_f77_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012524 ac_cv_prog_f77_g=yes
12525else
12526 echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 ac_cv_prog_f77_g=no
12530fi
12531
12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533
12534fi
12535{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12536echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12537if test "$ac_test_FFLAGS" = set; then
12538 FFLAGS=$ac_save_FFLAGS
12539elif test $ac_cv_prog_f77_g = yes; then
12540 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12541 FFLAGS="-g -O2"
12542 else
12543 FFLAGS="-g"
12544 fi
12545else
12546 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12547 FFLAGS="-O2"
12548 else
12549 FFLAGS=
12550 fi
12551fi
12552
12553G77=`test $ac_compiler_gnu = yes && echo yes`
12554ac_ext=c
12555ac_cpp='$CPP $CPPFLAGS'
12556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560
12561
12562# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12563
12564# find the maximum length of command line arguments
12565{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12566echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12567if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569else
12570 i=0
12571 teststring="ABCD"
12572
12573 case $build_os in
12574 msdosdjgpp*)
12575 # On DJGPP, this test can blow up pretty badly due to problems in libc
12576 # (any single argument exceeding 2000 bytes causes a buffer overrun
12577 # during glob expansion). Even if it were fixed, the result of this
12578 # check would be larger than it should be.
12579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12580 ;;
12581
12582 gnu*)
12583 # Under GNU Hurd, this test is not required because there is
12584 # no limit to the length of command line arguments.
12585 # Libtool will interpret -1 as no limit whatsoever
12586 lt_cv_sys_max_cmd_len=-1;
12587 ;;
12588
12589 cygwin* | mingw*)
12590 # On Win9x/ME, this test blows up -- it succeeds, but takes
12591 # about 5 minutes as the teststring grows exponentially.
12592 # Worse, since 9x/ME are not pre-emptively multitasking,
12593 # you end up with a "frozen" computer, even though with patience
12594 # the test eventually succeeds (with a max line length of 256k).
12595 # Instead, let's just punt: use the minimum linelength reported by
12596 # all of the supported platforms: 8192 (on NT/2K/XP).
12597 lt_cv_sys_max_cmd_len=8192;
12598 ;;
12599
12600 amigaos*)
12601 # On AmigaOS with pdksh, this test takes hours, literally.
12602 # So we just punt and use a minimum line length of 8192.
12603 lt_cv_sys_max_cmd_len=8192;
12604 ;;
12605
12606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12607 # This has been around since 386BSD, at least. Likely further.
12608 if test -x /sbin/sysctl; then
12609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12610 elif test -x /usr/sbin/sysctl; then
12611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12612 else
12613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12614 fi
12615 # And add a safety zone
12616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12618 ;;
12619
12620 interix*)
12621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12622 lt_cv_sys_max_cmd_len=196608
12623 ;;
12624
12625 osf*)
12626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12628 # nice to cause kernel panics so lets avoid the loop below.
12629 # First set a reasonable default.
12630 lt_cv_sys_max_cmd_len=16384
12631 #
12632 if test -x /sbin/sysconfig; then
12633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12635 esac
12636 fi
12637 ;;
12638 sco3.2v5*)
12639 lt_cv_sys_max_cmd_len=102400
12640 ;;
12641 sysv5* | sco5v6* | sysv4.2uw2*)
12642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12643 if test -n "$kargmax"; then
12644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12645 else
12646 lt_cv_sys_max_cmd_len=32768
12647 fi
12648 ;;
12649 *)
12650 # If test is not a shell built-in, we'll probably end up computing a
12651 # maximum length that is only half of the actual maximum length, but
12652 # we can't tell.
12653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12654 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12655 = "XX$teststring") >/dev/null 2>&1 &&
12656 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12657 lt_cv_sys_max_cmd_len=$new_result &&
12658 test $i != 17 # 1/2 MB should be enough
12659 do
12660 i=`expr $i + 1`
12661 teststring=$teststring$teststring
12662 done
12663 teststring=
12664 # Add a significant safety factor because C++ compilers can tack on massive
12665 # amounts of additional arguments before passing them to the linker.
12666 # It appears as though 1/2 is a usable value.
12667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12668 ;;
12669 esac
12670
12671fi
12672
12673if test -n $lt_cv_sys_max_cmd_len ; then
12674 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12675echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12676else
12677 { echo "$as_me:$LINENO: result: none" >&5
12678echo "${ECHO_T}none" >&6; }
12679fi
12680
12681
12682
12683
12684# Check for command to grab the raw symbol name followed by C symbol from nm.
12685{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12686echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12687if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689else
12690
12691# These are sane defaults that work on at least a few old systems.
12692# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12693
12694# Character class describing NM global symbol codes.
12695symcode='[BCDEGRST]'
12696
12697# Regexp to match symbols that can be accessed directly from C.
12698sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12699
12700# Transform an extracted symbol line into a proper C declaration
12701lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12702
12703# Transform an extracted symbol line into symbol name and symbol address
12704lt_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'"
12705
12706# Define system-specific variables.
12707case $host_os in
12708aix*)
12709 symcode='[BCDT]'
12710 ;;
12711cygwin* | mingw* | pw32*)
12712 symcode='[ABCDGISTW]'
12713 ;;
12714hpux*) # Its linker distinguishes data from code symbols
12715 if test "$host_cpu" = ia64; then
12716 symcode='[ABCDEGRST]'
12717 fi
12718 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12719 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'"
12720 ;;
12721linux*)
12722 if test "$host_cpu" = ia64; then
12723 symcode='[ABCDGIRSTW]'
12724 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12725 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'"
12726 fi
12727 ;;
12728irix* | nonstopux*)
12729 symcode='[BCDEGRST]'
12730 ;;
12731osf*)
12732 symcode='[BCDEGQRST]'
12733 ;;
12734solaris*)
12735 symcode='[BDRT]'
12736 ;;
12737sco3.2v5*)
12738 symcode='[DT]'
12739 ;;
12740sysv4.2uw2*)
12741 symcode='[DT]'
12742 ;;
12743sysv5* | sco5v6* | unixware* | OpenUNIX*)
12744 symcode='[ABDT]'
12745 ;;
12746sysv4)
12747 symcode='[DFNSTU]'
12748 ;;
12749esac
12750
12751# Handle CRLF in mingw tool chain
12752opt_cr=
12753case $build_os in
12754mingw*)
12755 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12756 ;;
12757esac
12758
12759# If we're using GNU nm, then use its standard symbol codes.
12760case `$NM -V 2>&1` in
12761*GNU* | *'with BFD'*)
12762 symcode='[ABCDGIRSTW]' ;;
12763esac
12764
12765# Try without a prefix undercore, then with it.
12766for ac_symprfx in "" "_"; do
12767
12768 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12769 symxfrm="\\1 $ac_symprfx\\2 \\2"
12770
12771 # Write the raw and C identifiers.
12772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12773
12774 # Check to see that the pipe works correctly.
12775 pipe_works=no
12776
12777 rm -f conftest*
12778 cat > conftest.$ac_ext <<EOF
12779#ifdef __cplusplus
12780extern "C" {
12781#endif
12782char nm_test_var;
12783void nm_test_func(){}
12784#ifdef __cplusplus
12785}
12786#endif
12787int main(){nm_test_var='a';nm_test_func();return(0);}
12788EOF
12789
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; then
12795 # Now try to grab the symbols.
12796 nlist=conftest.nm
12797 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12798 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && test -s "$nlist"; then
12802 # Try sorting and uniquifying the output.
12803 if sort "$nlist" | uniq > "$nlist"T; then
12804 mv -f "$nlist"T "$nlist"
12805 else
12806 rm -f "$nlist"T
12807 fi
12808
12809 # Make sure that we snagged all the symbols we need.
12810 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12811 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12812 cat <<EOF > conftest.$ac_ext
12813#ifdef __cplusplus
12814extern "C" {
12815#endif
12816
12817EOF
12818 # Now generate the symbol file.
12819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12820
12821 cat <<EOF >> conftest.$ac_ext
12822#if defined (__STDC__) && __STDC__
12823# define lt_ptr_t void *
12824#else
12825# define lt_ptr_t char *
12826# define const
12827#endif
12828
12829/* The mapping between symbol names and symbols. */
12830const struct {
12831 const char *name;
12832 lt_ptr_t address;
12833}
12834lt_preloaded_symbols[] =
12835{
12836EOF
12837 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12838 cat <<\EOF >> conftest.$ac_ext
12839 {0, (lt_ptr_t) 0}
12840};
12841
12842#ifdef __cplusplus
12843}
12844#endif
12845EOF
12846 # Now try linking the two files.
12847 mv conftest.$ac_objext conftstm.$ac_objext
12848 lt_save_LIBS="$LIBS"
12849 lt_save_CFLAGS="$CFLAGS"
12850 LIBS="conftstm.$ac_objext"
12851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12857 pipe_works=yes
12858 fi
12859 LIBS="$lt_save_LIBS"
12860 CFLAGS="$lt_save_CFLAGS"
12861 else
12862 echo "cannot find nm_test_func in $nlist" >&5
12863 fi
12864 else
12865 echo "cannot find nm_test_var in $nlist" >&5
12866 fi
12867 else
12868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12869 fi
12870 else
12871 echo "$progname: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12873 fi
12874 rm -f conftest* conftst*
12875
12876 # Do not use the global_symbol_pipe unless it works.
12877 if test "$pipe_works" = yes; then
12878 break
12879 else
12880 lt_cv_sys_global_symbol_pipe=
12881 fi
12882done
12883
12884fi
12885
12886if test -z "$lt_cv_sys_global_symbol_pipe"; then
12887 lt_cv_sys_global_symbol_to_cdecl=
12888fi
12889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12890 { echo "$as_me:$LINENO: result: failed" >&5
12891echo "${ECHO_T}failed" >&6; }
12892else
12893 { echo "$as_me:$LINENO: result: ok" >&5
12894echo "${ECHO_T}ok" >&6; }
12895fi
12896
12897{ echo "$as_me:$LINENO: checking for objdir" >&5
12898echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12899if test "${lt_cv_objdir+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 rm -f .libs 2>/dev/null
12903mkdir .libs 2>/dev/null
12904if test -d .libs; then
12905 lt_cv_objdir=.libs
12906else
12907 # MS-DOS does not allow filenames that begin with a dot.
12908 lt_cv_objdir=_libs
12909fi
12910rmdir .libs 2>/dev/null
12911fi
12912{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12913echo "${ECHO_T}$lt_cv_objdir" >&6; }
12914objdir=$lt_cv_objdir
12915
12916
12917
12918
12919
12920case $host_os in
12921aix3*)
12922 # AIX sometimes has problems with the GCC collect2 program. For some
12923 # reason, if we set the COLLECT_NAMES environment variable, the problems
12924 # vanish in a puff of smoke.
12925 if test "X${COLLECT_NAMES+set}" != Xset; then
12926 COLLECT_NAMES=
12927 export COLLECT_NAMES
12928 fi
12929 ;;
12930esac
12931
12932# Sed substitution that helps us do robust quoting. It backslashifies
12933# metacharacters that are still active within double-quoted strings.
12934Xsed='sed -e 1s/^X//'
12935sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12936
12937# Same as above, but do not quote variable references.
12938double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12939
12940# Sed substitution to delay expansion of an escaped shell variable in a
12941# double_quote_subst'ed string.
12942delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12943
12944# Sed substitution to avoid accidental globbing in evaled expressions
12945no_glob_subst='s/\*/\\\*/g'
12946
12947# Constants:
12948rm="rm -f"
12949
12950# Global variables:
12951default_ofile=mklib
12952can_build_shared=yes
12953
12954# All known linkers require a `.a' archive for static linking (except MSVC,
12955# which needs '.lib').
12956libext=a
12957ltmain="$ac_aux_dir/ltmain.sh"
12958ofile="$default_ofile"
12959with_gnu_ld="$lt_cv_prog_gnu_ld"
12960
12961if test -n "$ac_tool_prefix"; then
12962 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12963set dummy ${ac_tool_prefix}ar; ac_word=$2
12964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12966if test "${ac_cv_prog_AR+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969 if test -n "$AR"; then
12970 ac_cv_prog_AR="$AR" # Let the user override the test.
12971else
12972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973for as_dir in $PATH
12974do
12975 IFS=$as_save_IFS
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000012978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012979 ac_cv_prog_AR="${ac_tool_prefix}ar"
12980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 break 2
12982 fi
12983done
12984done
12985IFS=$as_save_IFS
12986
12987fi
12988fi
12989AR=$ac_cv_prog_AR
12990if test -n "$AR"; then
12991 { echo "$as_me:$LINENO: result: $AR" >&5
12992echo "${ECHO_T}$AR" >&6; }
12993else
12994 { echo "$as_me:$LINENO: result: no" >&5
12995echo "${ECHO_T}no" >&6; }
12996fi
12997
12998
12999fi
13000if test -z "$ac_cv_prog_AR"; then
13001 ac_ct_AR=$AR
13002 # Extract the first word of "ar", so it can be a program name with args.
13003set dummy ar; ac_word=$2
13004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 if test -n "$ac_ct_AR"; then
13010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13011else
13012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013for as_dir in $PATH
13014do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013019 ac_cv_prog_ac_ct_AR="ar"
13020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13022 fi
13023done
13024done
13025IFS=$as_save_IFS
13026
13027fi
13028fi
13029ac_ct_AR=$ac_cv_prog_ac_ct_AR
13030if test -n "$ac_ct_AR"; then
13031 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13032echo "${ECHO_T}$ac_ct_AR" >&6; }
13033else
13034 { echo "$as_me:$LINENO: result: no" >&5
13035echo "${ECHO_T}no" >&6; }
13036fi
13037
13038 if test "x$ac_ct_AR" = x; then
13039 AR="false"
13040 else
13041 case $cross_compiling:$ac_tool_warned in
13042yes:)
13043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13044whose name does not start with the host triplet. If you think this
13045configuration is useful to you, please write to autoconf@gnu.org." >&5
13046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13047whose name does not start with the host triplet. If you think this
13048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13049ac_tool_warned=yes ;;
13050esac
13051 AR=$ac_ct_AR
13052 fi
13053else
13054 AR="$ac_cv_prog_AR"
13055fi
13056
13057if test -n "$ac_tool_prefix"; then
13058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13062if test "${ac_cv_prog_RANLIB+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064else
13065 if test -n "$RANLIB"; then
13066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13067else
13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069for as_dir in $PATH
13070do
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13078 fi
13079done
13080done
13081IFS=$as_save_IFS
13082
13083fi
13084fi
13085RANLIB=$ac_cv_prog_RANLIB
13086if test -n "$RANLIB"; then
13087 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13088echo "${ECHO_T}$RANLIB" >&6; }
13089else
13090 { echo "$as_me:$LINENO: result: no" >&5
13091echo "${ECHO_T}no" >&6; }
13092fi
13093
13094
13095fi
13096if test -z "$ac_cv_prog_RANLIB"; then
13097 ac_ct_RANLIB=$RANLIB
13098 # Extract the first word of "ranlib", so it can be a program name with args.
13099set dummy ranlib; ac_word=$2
13100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13102if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105 if test -n "$ac_ct_RANLIB"; then
13106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13107else
13108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109for as_dir in $PATH
13110do
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013115 ac_cv_prog_ac_ct_RANLIB="ranlib"
13116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13118 fi
13119done
13120done
13121IFS=$as_save_IFS
13122
13123fi
13124fi
13125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13126if test -n "$ac_ct_RANLIB"; then
13127 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13128echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13129else
13130 { echo "$as_me:$LINENO: result: no" >&5
13131echo "${ECHO_T}no" >&6; }
13132fi
13133
13134 if test "x$ac_ct_RANLIB" = x; then
13135 RANLIB=":"
13136 else
13137 case $cross_compiling:$ac_tool_warned in
13138yes:)
13139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13140whose name does not start with the host triplet. If you think this
13141configuration is useful to you, please write to autoconf@gnu.org." >&5
13142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13143whose name does not start with the host triplet. If you think this
13144configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13145ac_tool_warned=yes ;;
13146esac
13147 RANLIB=$ac_ct_RANLIB
13148 fi
13149else
13150 RANLIB="$ac_cv_prog_RANLIB"
13151fi
13152
13153if test -n "$ac_tool_prefix"; then
13154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13155set dummy ${ac_tool_prefix}strip; ac_word=$2
13156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158if test "${ac_cv_prog_STRIP+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 if test -n "$STRIP"; then
13162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181STRIP=$ac_cv_prog_STRIP
13182if test -n "$STRIP"; then
13183 { echo "$as_me:$LINENO: result: $STRIP" >&5
13184echo "${ECHO_T}$STRIP" >&6; }
13185else
13186 { echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6; }
13188fi
13189
13190
13191fi
13192if test -z "$ac_cv_prog_STRIP"; then
13193 ac_ct_STRIP=$STRIP
13194 # Extract the first word of "strip", so it can be a program name with args.
13195set dummy strip; ac_word=$2
13196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200else
13201 if test -n "$ac_ct_STRIP"; then
13202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013211 ac_cv_prog_ac_ct_STRIP="strip"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215done
13216done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13222if test -n "$ac_ct_STRIP"; then
13223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13224echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13225else
13226 { echo "$as_me:$LINENO: result: no" >&5
13227echo "${ECHO_T}no" >&6; }
13228fi
13229
13230 if test "x$ac_ct_STRIP" = x; then
13231 STRIP=":"
13232 else
13233 case $cross_compiling:$ac_tool_warned in
13234yes:)
13235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13236whose name does not start with the host triplet. If you think this
13237configuration is useful to you, please write to autoconf@gnu.org." >&5
13238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13239whose name does not start with the host triplet. If you think this
13240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13241ac_tool_warned=yes ;;
13242esac
13243 STRIP=$ac_ct_STRIP
13244 fi
13245else
13246 STRIP="$ac_cv_prog_STRIP"
13247fi
13248
13249
13250old_CC="$CC"
13251old_CFLAGS="$CFLAGS"
13252
13253# Set sane defaults for various variables
13254test -z "$AR" && AR=ar
13255test -z "$AR_FLAGS" && AR_FLAGS=cru
13256test -z "$AS" && AS=as
13257test -z "$CC" && CC=cc
13258test -z "$LTCC" && LTCC=$CC
13259test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13260test -z "$DLLTOOL" && DLLTOOL=dlltool
13261test -z "$LD" && LD=ld
13262test -z "$LN_S" && LN_S="ln -s"
13263test -z "$MAGIC_CMD" && MAGIC_CMD=file
13264test -z "$NM" && NM=nm
13265test -z "$SED" && SED=sed
13266test -z "$OBJDUMP" && OBJDUMP=objdump
13267test -z "$RANLIB" && RANLIB=:
13268test -z "$STRIP" && STRIP=:
13269test -z "$ac_objext" && ac_objext=o
13270
13271# Determine commands to create old-style static archives.
13272old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13273old_postinstall_cmds='chmod 644 $oldlib'
13274old_postuninstall_cmds=
13275
13276if test -n "$RANLIB"; then
13277 case $host_os in
13278 openbsd*)
13279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13280 ;;
13281 *)
13282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13283 ;;
13284 esac
13285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13286fi
13287
13288for cc_temp in $compiler""; do
13289 case $cc_temp in
13290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13292 \-*) ;;
13293 *) break;;
13294 esac
13295done
13296cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13297
13298
13299# Only perform the check for file, if the check method requires it
13300case $deplibs_check_method in
13301file_magic*)
13302 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13303 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13304echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13305if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307else
13308 case $MAGIC_CMD in
13309[\\/*] | ?:[\\/]*)
13310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13311 ;;
13312*)
13313 lt_save_MAGIC_CMD="$MAGIC_CMD"
13314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13316 for ac_dir in $ac_dummy; do
13317 IFS="$lt_save_ifs"
13318 test -z "$ac_dir" && ac_dir=.
13319 if test -f $ac_dir/${ac_tool_prefix}file; then
13320 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13321 if test -n "$file_magic_test_file"; then
13322 case $deplibs_check_method in
13323 "file_magic "*)
13324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13327 $EGREP "$file_magic_regex" > /dev/null; then
13328 :
13329 else
13330 cat <<EOF 1>&2
13331
13332*** Warning: the command libtool uses to detect shared libraries,
13333*** $file_magic_cmd, produces output that libtool cannot recognize.
13334*** The result is that libtool may fail to recognize shared libraries
13335*** as such. This will affect the creation of libtool libraries that
13336*** depend on shared libraries, but programs linked with such libtool
13337*** libraries will work regardless of this problem. Nevertheless, you
13338*** may want to report the problem to your system manager and/or to
13339*** bug-libtool@gnu.org
13340
13341EOF
13342 fi ;;
13343 esac
13344 fi
13345 break
13346 fi
13347 done
13348 IFS="$lt_save_ifs"
13349 MAGIC_CMD="$lt_save_MAGIC_CMD"
13350 ;;
13351esac
13352fi
13353
13354MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13355if test -n "$MAGIC_CMD"; then
13356 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13357echo "${ECHO_T}$MAGIC_CMD" >&6; }
13358else
13359 { echo "$as_me:$LINENO: result: no" >&5
13360echo "${ECHO_T}no" >&6; }
13361fi
13362
13363if test -z "$lt_cv_path_MAGIC_CMD"; then
13364 if test -n "$ac_tool_prefix"; then
13365 { echo "$as_me:$LINENO: checking for file" >&5
13366echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13367if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
13370 case $MAGIC_CMD in
13371[\\/*] | ?:[\\/]*)
13372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13373 ;;
13374*)
13375 lt_save_MAGIC_CMD="$MAGIC_CMD"
13376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13378 for ac_dir in $ac_dummy; do
13379 IFS="$lt_save_ifs"
13380 test -z "$ac_dir" && ac_dir=.
13381 if test -f $ac_dir/file; then
13382 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13383 if test -n "$file_magic_test_file"; then
13384 case $deplibs_check_method in
13385 "file_magic "*)
13386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13389 $EGREP "$file_magic_regex" > /dev/null; then
13390 :
13391 else
13392 cat <<EOF 1>&2
13393
13394*** Warning: the command libtool uses to detect shared libraries,
13395*** $file_magic_cmd, produces output that libtool cannot recognize.
13396*** The result is that libtool may fail to recognize shared libraries
13397*** as such. This will affect the creation of libtool libraries that
13398*** depend on shared libraries, but programs linked with such libtool
13399*** libraries will work regardless of this problem. Nevertheless, you
13400*** may want to report the problem to your system manager and/or to
13401*** bug-libtool@gnu.org
13402
13403EOF
13404 fi ;;
13405 esac
13406 fi
13407 break
13408 fi
13409 done
13410 IFS="$lt_save_ifs"
13411 MAGIC_CMD="$lt_save_MAGIC_CMD"
13412 ;;
13413esac
13414fi
13415
13416MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13417if test -n "$MAGIC_CMD"; then
13418 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13419echo "${ECHO_T}$MAGIC_CMD" >&6; }
13420else
13421 { echo "$as_me:$LINENO: result: no" >&5
13422echo "${ECHO_T}no" >&6; }
13423fi
13424
13425 else
13426 MAGIC_CMD=:
13427 fi
13428fi
13429
13430 fi
13431 ;;
13432esac
13433
13434enable_dlopen=yes
13435enable_win32_dll=no
13436
13437# Check whether --enable-libtool-lock was given.
13438if test "${enable_libtool_lock+set}" = set; then
13439 enableval=$enable_libtool_lock;
13440fi
13441
13442test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13443
13444
13445# Check whether --with-pic was given.
13446if test "${with_pic+set}" = set; then
13447 withval=$with_pic; pic_mode="$withval"
13448else
13449 pic_mode=default
13450fi
13451
13452test -z "$pic_mode" && pic_mode=default
13453
13454# Use C for the default configuration in the libtool script
13455tagname=
13456lt_save_CC="$CC"
13457ac_ext=c
13458ac_cpp='$CPP $CPPFLAGS'
13459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461ac_compiler_gnu=$ac_cv_c_compiler_gnu
13462
13463
13464# Source file extension for C test sources.
13465ac_ext=c
13466
13467# Object file extension for compiled C test sources.
13468objext=o
13469objext=$objext
13470
13471# Code to be used in simple compile tests
13472lt_simple_compile_test_code="int some_variable = 0;\n"
13473
13474# Code to be used in simple link tests
13475lt_simple_link_test_code='int main(){return(0);}\n'
13476
13477
13478# If no C compiler was specified, use CC.
13479LTCC=${LTCC-"$CC"}
13480
13481# If no C compiler flags were specified, use CFLAGS.
13482LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13483
13484# Allow CC to be a program name with arguments.
13485compiler=$CC
13486
13487
13488# save warnings/boilerplate of simple test code
13489ac_outfile=conftest.$ac_objext
13490printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13491eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13492_lt_compiler_boilerplate=`cat conftest.err`
13493$rm conftest*
13494
13495ac_outfile=conftest.$ac_objext
13496printf "$lt_simple_link_test_code" >conftest.$ac_ext
13497eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13498_lt_linker_boilerplate=`cat conftest.err`
13499$rm conftest*
13500
13501
13502
13503lt_prog_compiler_no_builtin_flag=
13504
13505if test "$GCC" = yes; then
13506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13507
13508
13509{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13510echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13511if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 lt_cv_prog_compiler_rtti_exceptions=no
13515 ac_outfile=conftest.$ac_objext
13516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13517 lt_compiler_flag="-fno-rtti -fno-exceptions"
13518 # Insert the option either (1) after the last *FLAGS variable, or
13519 # (2) before a word containing "conftest.", or (3) at the end.
13520 # Note that $ac_compile itself does not contain backslashes and begins
13521 # with a dollar sign (not a hyphen), so the echo should work correctly.
13522 # The option is referenced via a variable to avoid confusing sed.
13523 lt_compile=`echo "$ac_compile" | $SED \
13524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13526 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013527 (eval echo "\"\$as_me:13527: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013528 (eval "$lt_compile" 2>conftest.err)
13529 ac_status=$?
13530 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013531 echo "$as_me:13531: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013532 if (exit $ac_status) && test -s "$ac_outfile"; then
13533 # The compiler can only warn and ignore the option if not recognized
13534 # So say no if there are warnings other than the usual output.
13535 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13538 lt_cv_prog_compiler_rtti_exceptions=yes
13539 fi
13540 fi
13541 $rm conftest*
13542
13543fi
13544{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13545echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13546
13547if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13549else
13550 :
13551fi
13552
13553fi
13554
13555lt_prog_compiler_wl=
13556lt_prog_compiler_pic=
13557lt_prog_compiler_static=
13558
13559{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13560echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13561
13562 if test "$GCC" = yes; then
13563 lt_prog_compiler_wl='-Wl,'
13564 lt_prog_compiler_static='-static'
13565
13566 case $host_os in
13567 aix*)
13568 # All AIX code is PIC.
13569 if test "$host_cpu" = ia64; then
13570 # AIX 5 now supports IA64 processor
13571 lt_prog_compiler_static='-Bstatic'
13572 fi
13573 ;;
13574
13575 amigaos*)
13576 # FIXME: we need at least 68020 code to build shared libraries, but
13577 # adding the `-m68020' flag to GCC prevents building anything better,
13578 # like `-m68040'.
13579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13580 ;;
13581
13582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13583 # PIC is the default for these OSes.
13584 ;;
13585
13586 mingw* | pw32* | os2*)
13587 # This hack is so that the source file can tell whether it is being
13588 # built for inclusion in a dll (and should export symbols for example).
13589 lt_prog_compiler_pic='-DDLL_EXPORT'
13590 ;;
13591
13592 darwin* | rhapsody*)
13593 # PIC is the default on this platform
13594 # Common symbols not allowed in MH_DYLIB files
13595 lt_prog_compiler_pic='-fno-common'
13596 ;;
13597
13598 interix3*)
13599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13600 # Instead, we relocate shared libraries at runtime.
13601 ;;
13602
13603 msdosdjgpp*)
13604 # Just because we use GCC doesn't mean we suddenly get shared libraries
13605 # on systems that don't support them.
13606 lt_prog_compiler_can_build_shared=no
13607 enable_shared=no
13608 ;;
13609
13610 sysv4*MP*)
13611 if test -d /usr/nec; then
13612 lt_prog_compiler_pic=-Kconform_pic
13613 fi
13614 ;;
13615
13616 hpux*)
13617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13618 # not for PA HP-UX.
13619 case $host_cpu in
13620 hppa*64*|ia64*)
13621 # +Z the default
13622 ;;
13623 *)
13624 lt_prog_compiler_pic='-fPIC'
13625 ;;
13626 esac
13627 ;;
13628
13629 *)
13630 lt_prog_compiler_pic='-fPIC'
13631 ;;
13632 esac
13633 else
13634 # PORTME Check for flag to pass linker flags through the system compiler.
13635 case $host_os in
13636 aix*)
13637 lt_prog_compiler_wl='-Wl,'
13638 if test "$host_cpu" = ia64; then
13639 # AIX 5 now supports IA64 processor
13640 lt_prog_compiler_static='-Bstatic'
13641 else
13642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13643 fi
13644 ;;
13645 darwin*)
13646 # PIC is the default on this platform
13647 # Common symbols not allowed in MH_DYLIB files
13648 case $cc_basename in
13649 xlc*)
13650 lt_prog_compiler_pic='-qnocommon'
13651 lt_prog_compiler_wl='-Wl,'
13652 ;;
13653 esac
13654 ;;
13655
13656 mingw* | pw32* | os2*)
13657 # This hack is so that the source file can tell whether it is being
13658 # built for inclusion in a dll (and should export symbols for example).
13659 lt_prog_compiler_pic='-DDLL_EXPORT'
13660 ;;
13661
13662 hpux9* | hpux10* | hpux11*)
13663 lt_prog_compiler_wl='-Wl,'
13664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13665 # not for PA HP-UX.
13666 case $host_cpu in
13667 hppa*64*|ia64*)
13668 # +Z the default
13669 ;;
13670 *)
13671 lt_prog_compiler_pic='+Z'
13672 ;;
13673 esac
13674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13675 lt_prog_compiler_static='${wl}-a ${wl}archive'
13676 ;;
13677
13678 irix5* | irix6* | nonstopux*)
13679 lt_prog_compiler_wl='-Wl,'
13680 # PIC (with -KPIC) is the default.
13681 lt_prog_compiler_static='-non_shared'
13682 ;;
13683
13684 newsos6)
13685 lt_prog_compiler_pic='-KPIC'
13686 lt_prog_compiler_static='-Bstatic'
13687 ;;
13688
13689 linux*)
13690 case $cc_basename in
13691 icc* | ecc*)
13692 lt_prog_compiler_wl='-Wl,'
13693 lt_prog_compiler_pic='-KPIC'
13694 lt_prog_compiler_static='-static'
13695 ;;
13696 pgcc* | pgf77* | pgf90* | pgf95*)
13697 # Portland Group compilers (*not* the Pentium gcc compiler,
13698 # which looks to be a dead project)
13699 lt_prog_compiler_wl='-Wl,'
13700 lt_prog_compiler_pic='-fpic'
13701 lt_prog_compiler_static='-Bstatic'
13702 ;;
13703 ccc*)
13704 lt_prog_compiler_wl='-Wl,'
13705 # All Alpha code is PIC.
13706 lt_prog_compiler_static='-non_shared'
13707 ;;
13708 esac
13709 ;;
13710
13711 osf3* | osf4* | osf5*)
13712 lt_prog_compiler_wl='-Wl,'
13713 # All OSF/1 code is PIC.
13714 lt_prog_compiler_static='-non_shared'
13715 ;;
13716
13717 solaris*)
13718 lt_prog_compiler_pic='-KPIC'
13719 lt_prog_compiler_static='-Bstatic'
13720 case $cc_basename in
13721 f77* | f90* | f95*)
13722 lt_prog_compiler_wl='-Qoption ld ';;
13723 *)
13724 lt_prog_compiler_wl='-Wl,';;
13725 esac
13726 ;;
13727
13728 sunos4*)
13729 lt_prog_compiler_wl='-Qoption ld '
13730 lt_prog_compiler_pic='-PIC'
13731 lt_prog_compiler_static='-Bstatic'
13732 ;;
13733
13734 sysv4 | sysv4.2uw2* | sysv4.3*)
13735 lt_prog_compiler_wl='-Wl,'
13736 lt_prog_compiler_pic='-KPIC'
13737 lt_prog_compiler_static='-Bstatic'
13738 ;;
13739
13740 sysv4*MP*)
13741 if test -d /usr/nec ;then
13742 lt_prog_compiler_pic='-Kconform_pic'
13743 lt_prog_compiler_static='-Bstatic'
13744 fi
13745 ;;
13746
13747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13748 lt_prog_compiler_wl='-Wl,'
13749 lt_prog_compiler_pic='-KPIC'
13750 lt_prog_compiler_static='-Bstatic'
13751 ;;
13752
13753 unicos*)
13754 lt_prog_compiler_wl='-Wl,'
13755 lt_prog_compiler_can_build_shared=no
13756 ;;
13757
13758 uts4*)
13759 lt_prog_compiler_pic='-pic'
13760 lt_prog_compiler_static='-Bstatic'
13761 ;;
13762
13763 *)
13764 lt_prog_compiler_can_build_shared=no
13765 ;;
13766 esac
13767 fi
13768
13769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13770echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13771
13772#
13773# Check to make sure the PIC flag actually works.
13774#
13775if test -n "$lt_prog_compiler_pic"; then
13776
13777{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13778echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13779if test "${lt_prog_compiler_pic_works+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782 lt_prog_compiler_pic_works=no
13783 ac_outfile=conftest.$ac_objext
13784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13786 # Insert the option either (1) after the last *FLAGS variable, or
13787 # (2) before a word containing "conftest.", or (3) at the end.
13788 # Note that $ac_compile itself does not contain backslashes and begins
13789 # with a dollar sign (not a hyphen), so the echo should work correctly.
13790 # The option is referenced via a variable to avoid confusing sed.
13791 lt_compile=`echo "$ac_compile" | $SED \
13792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013795 (eval echo "\"\$as_me:13795: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013796 (eval "$lt_compile" 2>conftest.err)
13797 ac_status=$?
13798 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013799 echo "$as_me:13799: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013800 if (exit $ac_status) && test -s "$ac_outfile"; then
13801 # The compiler can only warn and ignore the option if not recognized
13802 # So say no if there are warnings other than the usual output.
13803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13806 lt_prog_compiler_pic_works=yes
13807 fi
13808 fi
13809 $rm conftest*
13810
13811fi
13812{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13813echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13814
13815if test x"$lt_prog_compiler_pic_works" = xyes; then
13816 case $lt_prog_compiler_pic in
13817 "" | " "*) ;;
13818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13819 esac
13820else
13821 lt_prog_compiler_pic=
13822 lt_prog_compiler_can_build_shared=no
13823fi
13824
13825fi
13826case $host_os in
13827 # For platforms which do not support PIC, -DPIC is meaningless:
13828 *djgpp*)
13829 lt_prog_compiler_pic=
13830 ;;
13831 *)
13832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13833 ;;
13834esac
13835
13836#
13837# Check to make sure the static flag actually works.
13838#
13839wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13840{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13841echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13842if test "${lt_prog_compiler_static_works+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844else
13845 lt_prog_compiler_static_works=no
13846 save_LDFLAGS="$LDFLAGS"
13847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13848 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13850 # The linker can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 if test -s conftest.err; then
13853 # Append any errors to the config.log.
13854 cat conftest.err 1>&5
13855 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857 if diff conftest.exp conftest.er2 >/dev/null; then
13858 lt_prog_compiler_static_works=yes
13859 fi
13860 else
13861 lt_prog_compiler_static_works=yes
13862 fi
13863 fi
13864 $rm conftest*
13865 LDFLAGS="$save_LDFLAGS"
13866
13867fi
13868{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13869echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13870
13871if test x"$lt_prog_compiler_static_works" = xyes; then
13872 :
13873else
13874 lt_prog_compiler_static=
13875fi
13876
13877
13878{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13879echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13880if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882else
13883 lt_cv_prog_compiler_c_o=no
13884 $rm -r conftest 2>/dev/null
13885 mkdir conftest
13886 cd conftest
13887 mkdir out
13888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13889
13890 lt_compiler_flag="-o out/conftest2.$ac_objext"
13891 # Insert the option either (1) after the last *FLAGS variable, or
13892 # (2) before a word containing "conftest.", or (3) at the end.
13893 # Note that $ac_compile itself does not contain backslashes and begins
13894 # with a dollar sign (not a hyphen), so the echo should work correctly.
13895 lt_compile=`echo "$ac_compile" | $SED \
13896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13898 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013899 (eval echo "\"\$as_me:13899: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013900 (eval "$lt_compile" 2>out/conftest.err)
13901 ac_status=$?
13902 cat out/conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000013903 echo "$as_me:13903: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13905 then
13906 # The compiler can only warn and ignore the option if not recognized
13907 # So say no if there are warnings
13908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13911 lt_cv_prog_compiler_c_o=yes
13912 fi
13913 fi
13914 chmod u+w . 2>&5
13915 $rm conftest*
13916 # SGI C++ compiler will create directory out/ii_files/ for
13917 # template instantiation
13918 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13919 $rm out/* && rmdir out
13920 cd ..
13921 rmdir conftest
13922 $rm conftest*
13923
13924fi
13925{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13926echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13927
13928
13929hard_links="nottested"
13930if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13931 # do not overwrite the value of need_locks provided by the user
13932 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13933echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13934 hard_links=yes
13935 $rm conftest*
13936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13937 touch conftest.a
13938 ln conftest.a conftest.b 2>&5 || hard_links=no
13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940 { echo "$as_me:$LINENO: result: $hard_links" >&5
13941echo "${ECHO_T}$hard_links" >&6; }
13942 if test "$hard_links" = no; then
13943 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13944echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13945 need_locks=warn
13946 fi
13947else
13948 need_locks=no
13949fi
13950
13951{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13952echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13953
13954 runpath_var=
13955 allow_undefined_flag=
13956 enable_shared_with_static_runtimes=no
13957 archive_cmds=
13958 archive_expsym_cmds=
13959 old_archive_From_new_cmds=
13960 old_archive_from_expsyms_cmds=
13961 export_dynamic_flag_spec=
13962 whole_archive_flag_spec=
13963 thread_safe_flag_spec=
13964 hardcode_libdir_flag_spec=
13965 hardcode_libdir_flag_spec_ld=
13966 hardcode_libdir_separator=
13967 hardcode_direct=no
13968 hardcode_minus_L=no
13969 hardcode_shlibpath_var=unsupported
13970 link_all_deplibs=unknown
13971 hardcode_automatic=no
13972 module_cmds=
13973 module_expsym_cmds=
13974 always_export_symbols=no
13975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13976 # include_expsyms should be a list of space-separated symbols to be *always*
13977 # included in the symbol list
13978 include_expsyms=
13979 # exclude_expsyms can be an extended regexp of symbols to exclude
13980 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13981 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13982 # as well as any symbol that contains `d'.
13983 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13985 # platforms (ab)use it in PIC code, but their linkers get confused if
13986 # the symbol is explicitly referenced. Since portable code cannot
13987 # rely on this symbol name, it's probably fine to never include it in
13988 # preloaded symbol tables.
13989 extract_expsyms_cmds=
13990 # Just being paranoid about ensuring that cc_basename is set.
13991 for cc_temp in $compiler""; do
13992 case $cc_temp in
13993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13995 \-*) ;;
13996 *) break;;
13997 esac
13998done
13999cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14000
14001 case $host_os in
14002 cygwin* | mingw* | pw32*)
14003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14004 # When not using gcc, we currently assume that we are using
14005 # Microsoft Visual C++.
14006 if test "$GCC" != yes; then
14007 with_gnu_ld=no
14008 fi
14009 ;;
14010 interix*)
14011 # we just hope/assume this is gcc and not c89 (= MSVC++)
14012 with_gnu_ld=yes
14013 ;;
14014 openbsd*)
14015 with_gnu_ld=no
14016 ;;
14017 esac
14018
14019 ld_shlibs=yes
14020 if test "$with_gnu_ld" = yes; then
14021 # If archive_cmds runs LD, not CC, wlarc should be empty
14022 wlarc='${wl}'
14023
14024 # Set some defaults for GNU ld with shared library support. These
14025 # are reset later if shared libraries are not supported. Putting them
14026 # here allows them to be overridden if necessary.
14027 runpath_var=LD_RUN_PATH
14028 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14029 export_dynamic_flag_spec='${wl}--export-dynamic'
14030 # ancient GNU ld didn't support --whole-archive et. al.
14031 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14033 else
14034 whole_archive_flag_spec=
14035 fi
14036 supports_anon_versioning=no
14037 case `$LD -v 2>/dev/null` in
14038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14041 *\ 2.11.*) ;; # other 2.11 versions
14042 *) supports_anon_versioning=yes ;;
14043 esac
14044
14045 # See if GNU ld supports shared libraries.
14046 case $host_os in
14047 aix3* | aix4* | aix5*)
14048 # On AIX/PPC, the GNU linker is very broken
14049 if test "$host_cpu" != ia64; then
14050 ld_shlibs=no
14051 cat <<EOF 1>&2
14052
14053*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14054*** to be unable to reliably create shared libraries on AIX.
14055*** Therefore, libtool is disabling shared libraries support. If you
14056*** really care for shared libraries, you may want to modify your PATH
14057*** so that a non-GNU linker is found, and then restart.
14058
14059EOF
14060 fi
14061 ;;
14062
14063 amigaos*)
14064 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)'
14065 hardcode_libdir_flag_spec='-L$libdir'
14066 hardcode_minus_L=yes
14067
14068 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14069 # that the semantics of dynamic libraries on AmigaOS, at least up
14070 # to version 4, is to share data among multiple programs linked
14071 # with the same dynamic library. Since this doesn't match the
14072 # behavior of shared libraries on other platforms, we can't use
14073 # them.
14074 ld_shlibs=no
14075 ;;
14076
14077 beos*)
14078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14079 allow_undefined_flag=unsupported
14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081 # support --undefined. This deserves some investigation. FIXME
14082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 else
14084 ld_shlibs=no
14085 fi
14086 ;;
14087
14088 cygwin* | mingw* | pw32*)
14089 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec='-L$libdir'
14092 allow_undefined_flag=unsupported
14093 always_export_symbols=no
14094 enable_shared_with_static_runtimes=yes
14095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14096
14097 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14099 # If the export-symbols file already is a .def file (1st line
14100 # is EXPORTS), use it as is; otherwise, prepend...
14101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14102 cp $export_symbols $output_objdir/$soname.def;
14103 else
14104 echo EXPORTS > $output_objdir/$soname.def;
14105 cat $export_symbols >> $output_objdir/$soname.def;
14106 fi~
14107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14108 else
14109 ld_shlibs=no
14110 fi
14111 ;;
14112
14113 interix3*)
14114 hardcode_direct=no
14115 hardcode_shlibpath_var=no
14116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14117 export_dynamic_flag_spec='${wl}-E'
14118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14119 # Instead, shared libraries are loaded at an image base (0x10000000 by
14120 # default) and relocated if they conflict, which is a slow very memory
14121 # consuming and fragmenting process. To avoid this, we pick a random,
14122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14125 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'
14126 ;;
14127
14128 linux*)
14129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14130 tmp_addflag=
14131 case $cc_basename,$host_cpu in
14132 pgcc*) # Portland Group C compiler
14133 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'
14134 tmp_addflag=' $pic_flag'
14135 ;;
14136 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14137 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'
14138 tmp_addflag=' $pic_flag -Mnomain' ;;
14139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14140 tmp_addflag=' -i_dynamic' ;;
14141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14142 tmp_addflag=' -i_dynamic -nofor_main' ;;
14143 ifc* | ifort*) # Intel Fortran compiler
14144 tmp_addflag=' -nofor_main' ;;
14145 esac
14146 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147
14148 if test $supports_anon_versioning = yes; then
14149 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14151 $echo "local: *; };" >> $output_objdir/$libname.ver~
14152 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14153 fi
14154 else
14155 ld_shlibs=no
14156 fi
14157 ;;
14158
14159 netbsd*)
14160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14162 wlarc=
14163 else
14164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14166 fi
14167 ;;
14168
14169 solaris*)
14170 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14171 ld_shlibs=no
14172 cat <<EOF 1>&2
14173
14174*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14175*** create shared libraries on Solaris systems. Therefore, libtool
14176*** is disabling shared libraries support. We urge you to upgrade GNU
14177*** binutils to release 2.9.1 or newer. Another option is to modify
14178*** your PATH or compiler configuration so that the native linker is
14179*** used, and then restart.
14180
14181EOF
14182 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14185 else
14186 ld_shlibs=no
14187 fi
14188 ;;
14189
14190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14191 case `$LD -v 2>&1` in
14192 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14193 ld_shlibs=no
14194 cat <<_LT_EOF 1>&2
14195
14196*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14197*** reliably create shared libraries on SCO systems. Therefore, libtool
14198*** is disabling shared libraries support. We urge you to upgrade GNU
14199*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14200*** your PATH or compiler configuration so that the native linker is
14201*** used, and then restart.
14202
14203_LT_EOF
14204 ;;
14205 *)
14206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14207 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14210 else
14211 ld_shlibs=no
14212 fi
14213 ;;
14214 esac
14215 ;;
14216
14217 sunos4*)
14218 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14219 wlarc=
14220 hardcode_direct=yes
14221 hardcode_shlibpath_var=no
14222 ;;
14223
14224 *)
14225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14228 else
14229 ld_shlibs=no
14230 fi
14231 ;;
14232 esac
14233
14234 if test "$ld_shlibs" = no; then
14235 runpath_var=
14236 hardcode_libdir_flag_spec=
14237 export_dynamic_flag_spec=
14238 whole_archive_flag_spec=
14239 fi
14240 else
14241 # PORTME fill in a description of your system's linker (not GNU ld)
14242 case $host_os in
14243 aix3*)
14244 allow_undefined_flag=unsupported
14245 always_export_symbols=yes
14246 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'
14247 # Note: this linker hardcodes the directories in LIBPATH if there
14248 # are no directories specified by -L.
14249 hardcode_minus_L=yes
14250 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14251 # Neither direct hardcoding nor static linking is supported with a
14252 # broken collect2.
14253 hardcode_direct=unsupported
14254 fi
14255 ;;
14256
14257 aix4* | aix5*)
14258 if test "$host_cpu" = ia64; then
14259 # On IA64, the linker does run time linking by default, so we don't
14260 # have to do anything special.
14261 aix_use_runtimelinking=no
14262 exp_sym_flag='-Bexport'
14263 no_entry_flag=""
14264 else
14265 # If we're using GNU nm, then we don't want the "-C" option.
14266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14267 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14268 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'
14269 else
14270 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'
14271 fi
14272 aix_use_runtimelinking=no
14273
14274 # Test if we are trying to use run time linking or normal
14275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14276 # need to do runtime linking.
14277 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14278 for ld_flag in $LDFLAGS; do
14279 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14280 aix_use_runtimelinking=yes
14281 break
14282 fi
14283 done
14284 ;;
14285 esac
14286
14287 exp_sym_flag='-bexport'
14288 no_entry_flag='-bnoentry'
14289 fi
14290
14291 # When large executables or shared objects are built, AIX ld can
14292 # have problems creating the table of contents. If linking a library
14293 # or program results in "error TOC overflow" add -mminimal-toc to
14294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14296
14297 archive_cmds=''
14298 hardcode_direct=yes
14299 hardcode_libdir_separator=':'
14300 link_all_deplibs=yes
14301
14302 if test "$GCC" = yes; then
14303 case $host_os in aix4.[012]|aix4.[012].*)
14304 # We only want to do this on AIX 4.2 and lower, the check
14305 # below for broken collect2 doesn't work under 4.3+
14306 collect2name=`${CC} -print-prog-name=collect2`
14307 if test -f "$collect2name" && \
14308 strings "$collect2name" | grep resolve_lib_name >/dev/null
14309 then
14310 # We have reworked collect2
14311 hardcode_direct=yes
14312 else
14313 # We have old collect2
14314 hardcode_direct=unsupported
14315 # It fails to find uninstalled libraries when the uninstalled
14316 # path is not listed in the libpath. Setting hardcode_minus_L
14317 # to unsupported forces relinking
14318 hardcode_minus_L=yes
14319 hardcode_libdir_flag_spec='-L$libdir'
14320 hardcode_libdir_separator=
14321 fi
14322 ;;
14323 esac
14324 shared_flag='-shared'
14325 if test "$aix_use_runtimelinking" = yes; then
14326 shared_flag="$shared_flag "'${wl}-G'
14327 fi
14328 else
14329 # not using gcc
14330 if test "$host_cpu" = ia64; then
14331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14332 # chokes on -Wl,-G. The following line is correct:
14333 shared_flag='-G'
14334 else
14335 if test "$aix_use_runtimelinking" = yes; then
14336 shared_flag='${wl}-G'
14337 else
14338 shared_flag='${wl}-bM:SRE'
14339 fi
14340 fi
14341 fi
14342
14343 # It seems that -bexpall does not export symbols beginning with
14344 # underscore (_), so it is better to generate a list of symbols to export.
14345 always_export_symbols=yes
14346 if test "$aix_use_runtimelinking" = yes; then
14347 # Warning - without using the other runtime loading flags (-brtl),
14348 # -berok will link without error, but may produce a broken library.
14349 allow_undefined_flag='-berok'
14350 # Determine the default libpath from the value encoded in an empty executable.
14351 cat >conftest.$ac_ext <<_ACEOF
14352/* confdefs.h. */
14353_ACEOF
14354cat confdefs.h >>conftest.$ac_ext
14355cat >>conftest.$ac_ext <<_ACEOF
14356/* end confdefs.h. */
14357
14358int
14359main ()
14360{
14361
14362 ;
14363 return 0;
14364}
14365_ACEOF
14366rm -f conftest.$ac_objext conftest$ac_exeext
14367if { (ac_try="$ac_link"
14368case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_link") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext &&
14383 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014384
14385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14386}'`
14387# Check for a 64-bit object if we didn't find anything.
14388if 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; }
14389}'`; fi
14390else
14391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394
14395fi
14396
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014398 conftest$ac_exeext conftest.$ac_ext
14399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14400
14401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14402 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"
14403 else
14404 if test "$host_cpu" = ia64; then
14405 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14406 allow_undefined_flag="-z nodefs"
14407 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"
14408 else
14409 # Determine the default libpath from the value encoded in an empty executable.
14410 cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416
14417int
14418main ()
14419{
14420
14421 ;
14422 return 0;
14423}
14424_ACEOF
14425rm -f conftest.$ac_objext conftest$ac_exeext
14426if { (ac_try="$ac_link"
14427case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430esac
14431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_link") 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest$ac_exeext &&
14442 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014443
14444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14445}'`
14446# Check for a 64-bit object if we didn't find anything.
14447if 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; }
14448}'`; fi
14449else
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453
14454fi
14455
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000014456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014457 conftest$ac_exeext conftest.$ac_ext
14458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14459
14460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14461 # Warning - without using the other run time loading flags,
14462 # -berok will link without error, but may produce a broken library.
14463 no_undefined_flag=' ${wl}-bernotok'
14464 allow_undefined_flag=' ${wl}-berok'
14465 # Exported symbols can be pulled into shared objects from archives
14466 whole_archive_flag_spec='$convenience'
14467 archive_cmds_need_lc=yes
14468 # This is similar to how AIX traditionally builds its shared libraries.
14469 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'
14470 fi
14471 fi
14472 ;;
14473
14474 amigaos*)
14475 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)'
14476 hardcode_libdir_flag_spec='-L$libdir'
14477 hardcode_minus_L=yes
14478 # see comment about different semantics on the GNU ld section
14479 ld_shlibs=no
14480 ;;
14481
14482 bsdi[45]*)
14483 export_dynamic_flag_spec=-rdynamic
14484 ;;
14485
14486 cygwin* | mingw* | pw32*)
14487 # When not using gcc, we currently assume that we are using
14488 # Microsoft Visual C++.
14489 # hardcode_libdir_flag_spec is actually meaningless, as there is
14490 # no search path for DLLs.
14491 hardcode_libdir_flag_spec=' '
14492 allow_undefined_flag=unsupported
14493 # Tell ltmain to make .lib files, not .a files.
14494 libext=lib
14495 # Tell ltmain to make .dll files, not .so files.
14496 shrext_cmds=".dll"
14497 # FIXME: Setting linknames here is a bad hack.
14498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14499 # The linker will automatically build a .lib file if we build a DLL.
14500 old_archive_From_new_cmds='true'
14501 # FIXME: Should let the user specify the lib program.
14502 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14503 fix_srcfile_path='`cygpath -w "$srcfile"`'
14504 enable_shared_with_static_runtimes=yes
14505 ;;
14506
14507 darwin* | rhapsody*)
14508 case $host_os in
14509 rhapsody* | darwin1.[012])
14510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14511 ;;
14512 *) # Darwin 1.3 on
14513 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14514 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14515 else
14516 case ${MACOSX_DEPLOYMENT_TARGET} in
14517 10.[012])
14518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14519 ;;
14520 10.*)
14521 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14522 ;;
14523 esac
14524 fi
14525 ;;
14526 esac
14527 archive_cmds_need_lc=no
14528 hardcode_direct=no
14529 hardcode_automatic=yes
14530 hardcode_shlibpath_var=unsupported
14531 whole_archive_flag_spec=''
14532 link_all_deplibs=yes
14533 if test "$GCC" = yes ; then
14534 output_verbose_link_cmd='echo'
14535 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14536 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14538 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}'
14539 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}'
14540 else
14541 case $cc_basename in
14542 xlc*)
14543 output_verbose_link_cmd='echo'
14544 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14547 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}'
14548 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}'
14549 ;;
14550 *)
14551 ld_shlibs=no
14552 ;;
14553 esac
14554 fi
14555 ;;
14556
14557 dgux*)
14558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_libdir_flag_spec='-L$libdir'
14560 hardcode_shlibpath_var=no
14561 ;;
14562
14563 freebsd1*)
14564 ld_shlibs=no
14565 ;;
14566
14567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14568 # support. Future versions do this automatically, but an explicit c++rt0.o
14569 # does not break anything, and helps significantly (at the cost of a little
14570 # extra space).
14571 freebsd2.2*)
14572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14573 hardcode_libdir_flag_spec='-R$libdir'
14574 hardcode_direct=yes
14575 hardcode_shlibpath_var=no
14576 ;;
14577
14578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14579 freebsd2*)
14580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_direct=yes
14582 hardcode_minus_L=yes
14583 hardcode_shlibpath_var=no
14584 ;;
14585
14586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14587 freebsd* | kfreebsd*-gnu | dragonfly*)
14588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14589 hardcode_libdir_flag_spec='-R$libdir'
14590 hardcode_direct=yes
14591 hardcode_shlibpath_var=no
14592 ;;
14593
14594 hpux9*)
14595 if test "$GCC" = yes; then
14596 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'
14597 else
14598 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'
14599 fi
14600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14601 hardcode_libdir_separator=:
14602 hardcode_direct=yes
14603
14604 # hardcode_minus_L: Not really in the search PATH,
14605 # but as the default location of the library.
14606 hardcode_minus_L=yes
14607 export_dynamic_flag_spec='${wl}-E'
14608 ;;
14609
14610 hpux10*)
14611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14613 else
14614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14615 fi
14616 if test "$with_gnu_ld" = no; then
14617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618 hardcode_libdir_separator=:
14619
14620 hardcode_direct=yes
14621 export_dynamic_flag_spec='${wl}-E'
14622
14623 # hardcode_minus_L: Not really in the search PATH,
14624 # but as the default location of the library.
14625 hardcode_minus_L=yes
14626 fi
14627 ;;
14628
14629 hpux11*)
14630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14631 case $host_cpu in
14632 hppa*64*)
14633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14634 ;;
14635 ia64*)
14636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14637 ;;
14638 *)
14639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14640 ;;
14641 esac
14642 else
14643 case $host_cpu in
14644 hppa*64*)
14645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14646 ;;
14647 ia64*)
14648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14649 ;;
14650 *)
14651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14652 ;;
14653 esac
14654 fi
14655 if test "$with_gnu_ld" = no; then
14656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14657 hardcode_libdir_separator=:
14658
14659 case $host_cpu in
14660 hppa*64*|ia64*)
14661 hardcode_libdir_flag_spec_ld='+b $libdir'
14662 hardcode_direct=no
14663 hardcode_shlibpath_var=no
14664 ;;
14665 *)
14666 hardcode_direct=yes
14667 export_dynamic_flag_spec='${wl}-E'
14668
14669 # hardcode_minus_L: Not really in the search PATH,
14670 # but as the default location of the library.
14671 hardcode_minus_L=yes
14672 ;;
14673 esac
14674 fi
14675 ;;
14676
14677 irix5* | irix6* | nonstopux*)
14678 if test "$GCC" = yes; then
14679 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'
14680 else
14681 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'
14682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14683 fi
14684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14685 hardcode_libdir_separator=:
14686 link_all_deplibs=yes
14687 ;;
14688
14689 netbsd*)
14690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14692 else
14693 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14694 fi
14695 hardcode_libdir_flag_spec='-R$libdir'
14696 hardcode_direct=yes
14697 hardcode_shlibpath_var=no
14698 ;;
14699
14700 newsos6)
14701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_direct=yes
14703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14704 hardcode_libdir_separator=:
14705 hardcode_shlibpath_var=no
14706 ;;
14707
14708 openbsd*)
14709 hardcode_direct=yes
14710 hardcode_shlibpath_var=no
14711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14715 export_dynamic_flag_spec='${wl}-E'
14716 else
14717 case $host_os in
14718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14720 hardcode_libdir_flag_spec='-R$libdir'
14721 ;;
14722 *)
14723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14725 ;;
14726 esac
14727 fi
14728 ;;
14729
14730 os2*)
14731 hardcode_libdir_flag_spec='-L$libdir'
14732 hardcode_minus_L=yes
14733 allow_undefined_flag=unsupported
14734 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'
14735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14736 ;;
14737
14738 osf3*)
14739 if test "$GCC" = yes; then
14740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14741 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'
14742 else
14743 allow_undefined_flag=' -expect_unresolved \*'
14744 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'
14745 fi
14746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14747 hardcode_libdir_separator=:
14748 ;;
14749
14750 osf4* | osf5*) # as osf3* with the addition of -msym flag
14751 if test "$GCC" = yes; then
14752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14753 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'
14754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14755 else
14756 allow_undefined_flag=' -expect_unresolved \*'
14757 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'
14758 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14759 $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'
14760
14761 # Both c and cxx compiler support -rpath directly
14762 hardcode_libdir_flag_spec='-rpath $libdir'
14763 fi
14764 hardcode_libdir_separator=:
14765 ;;
14766
14767 solaris*)
14768 no_undefined_flag=' -z text'
14769 if test "$GCC" = yes; then
14770 wlarc='${wl}'
14771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14773 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14774 else
14775 wlarc=''
14776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14779 fi
14780 hardcode_libdir_flag_spec='-R$libdir'
14781 hardcode_shlibpath_var=no
14782 case $host_os in
14783 solaris2.[0-5] | solaris2.[0-5].*) ;;
14784 *)
14785 # The compiler driver will combine linker options so we
14786 # cannot just pass the convience library names through
14787 # without $wl, iff we do not link with $LD.
14788 # Luckily, gcc supports the same syntax we need for Sun Studio.
14789 # Supported since Solaris 2.6 (maybe 2.5.1?)
14790 case $wlarc in
14791 '')
14792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14793 *)
14794 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' ;;
14795 esac ;;
14796 esac
14797 link_all_deplibs=yes
14798 ;;
14799
14800 sunos4*)
14801 if test "x$host_vendor" = xsequent; then
14802 # Use $CC to link under sequent, because it throws in some extra .o
14803 # files that make .init and .fini sections work.
14804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14805 else
14806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14807 fi
14808 hardcode_libdir_flag_spec='-L$libdir'
14809 hardcode_direct=yes
14810 hardcode_minus_L=yes
14811 hardcode_shlibpath_var=no
14812 ;;
14813
14814 sysv4)
14815 case $host_vendor in
14816 sni)
14817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_direct=yes # is this really true???
14819 ;;
14820 siemens)
14821 ## LD is ld it makes a PLAMLIB
14822 ## CC just makes a GrossModule.
14823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14824 reload_cmds='$CC -r -o $output$reload_objs'
14825 hardcode_direct=no
14826 ;;
14827 motorola)
14828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14830 ;;
14831 esac
14832 runpath_var='LD_RUN_PATH'
14833 hardcode_shlibpath_var=no
14834 ;;
14835
14836 sysv4.3*)
14837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_shlibpath_var=no
14839 export_dynamic_flag_spec='-Bexport'
14840 ;;
14841
14842 sysv4*MP*)
14843 if test -d /usr/nec; then
14844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_shlibpath_var=no
14846 runpath_var=LD_RUN_PATH
14847 hardcode_runpath_var=yes
14848 ld_shlibs=yes
14849 fi
14850 ;;
14851
14852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14853 no_undefined_flag='${wl}-z,text'
14854 archive_cmds_need_lc=no
14855 hardcode_shlibpath_var=no
14856 runpath_var='LD_RUN_PATH'
14857
14858 if test "$GCC" = yes; then
14859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861 else
14862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14864 fi
14865 ;;
14866
14867 sysv5* | sco3.2v5* | sco5v6*)
14868 # Note: We can NOT use -z defs as we might desire, because we do not
14869 # link with -lc, and that would cause any symbols used from libc to
14870 # always be unresolved, which means just about no library would
14871 # ever link correctly. If we're not using GNU ld we use -z text
14872 # though, which does catch some bad symbols but isn't as heavy-handed
14873 # as -z defs.
14874 no_undefined_flag='${wl}-z,text'
14875 allow_undefined_flag='${wl}-z,nodefs'
14876 archive_cmds_need_lc=no
14877 hardcode_shlibpath_var=no
14878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14879 hardcode_libdir_separator=':'
14880 link_all_deplibs=yes
14881 export_dynamic_flag_spec='${wl}-Bexport'
14882 runpath_var='LD_RUN_PATH'
14883
14884 if test "$GCC" = yes; then
14885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 else
14888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 fi
14891 ;;
14892
14893 uts4*)
14894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec='-L$libdir'
14896 hardcode_shlibpath_var=no
14897 ;;
14898
14899 *)
14900 ld_shlibs=no
14901 ;;
14902 esac
14903 fi
14904
14905{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14906echo "${ECHO_T}$ld_shlibs" >&6; }
14907test "$ld_shlibs" = no && can_build_shared=no
14908
14909#
14910# Do we need to explicitly link libc?
14911#
14912case "x$archive_cmds_need_lc" in
14913x|xyes)
14914 # Assume -lc should be added
14915 archive_cmds_need_lc=yes
14916
14917 if test "$enable_shared" = yes && test "$GCC" = yes; then
14918 case $archive_cmds in
14919 *'~'*)
14920 # FIXME: we may have to deal with multi-command sequences.
14921 ;;
14922 '$CC '*)
14923 # Test whether the compiler implicitly links with -lc since on some
14924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14925 # to ld, don't add -lc before -lgcc.
14926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14928 $rm conftest*
14929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14930
14931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } 2>conftest.err; then
14936 soname=conftest
14937 lib=conftest
14938 libobjs=conftest.$ac_objext
14939 deplibs=
14940 wl=$lt_prog_compiler_wl
14941 pic_flag=$lt_prog_compiler_pic
14942 compiler_flags=-v
14943 linker_flags=-v
14944 verstring=
14945 output_objdir=.
14946 libname=conftest
14947 lt_save_allow_undefined_flag=$allow_undefined_flag
14948 allow_undefined_flag=
14949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }
14954 then
14955 archive_cmds_need_lc=no
14956 else
14957 archive_cmds_need_lc=yes
14958 fi
14959 allow_undefined_flag=$lt_save_allow_undefined_flag
14960 else
14961 cat conftest.err 1>&5
14962 fi
14963 $rm conftest*
14964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14965echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14966 ;;
14967 esac
14968 fi
14969 ;;
14970esac
14971
14972{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14974library_names_spec=
14975libname_spec='lib$name'
14976soname_spec=
14977shrext_cmds=".so"
14978postinstall_cmds=
14979postuninstall_cmds=
14980finish_cmds=
14981finish_eval=
14982shlibpath_var=
14983shlibpath_overrides_runpath=unknown
14984version_type=none
14985dynamic_linker="$host_os ld.so"
14986sys_lib_dlsearch_path_spec="/lib /usr/lib"
14987if test "$GCC" = yes; then
14988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14990 # if the path contains ";" then we assume it to be the separator
14991 # otherwise default to the standard path separator (i.e. ":") - it is
14992 # assumed that no part of a normal pathname contains ";" but that should
14993 # okay in the real world where ";" in dirpaths is itself problematic.
14994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14995 else
14996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14997 fi
14998else
14999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15000fi
15001need_lib_prefix=unknown
15002hardcode_into_libs=no
15003
15004# when you set need_version to no, make sure it does not cause -set_version
15005# flags to be left without arguments
15006need_version=unknown
15007
15008case $host_os in
15009aix3*)
15010 version_type=linux
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15012 shlibpath_var=LIBPATH
15013
15014 # AIX 3 has no versioning support, so we append a major version to the name.
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 ;;
15017
15018aix4* | aix5*)
15019 version_type=linux
15020 need_lib_prefix=no
15021 need_version=no
15022 hardcode_into_libs=yes
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 supports IA64
15025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 else
15028 # With GCC up to 2.95.x, collect2 would create an import file
15029 # for dependence libraries. The import file would start with
15030 # the line `#! .'. This would cause the generated library to
15031 # depend on `.', always an invalid library. This was fixed in
15032 # development snapshots of GCC prior to 3.0.
15033 case $host_os in
15034 aix4 | aix4.[01] | aix4.[01].*)
15035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15036 echo ' yes '
15037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15038 :
15039 else
15040 can_build_shared=no
15041 fi
15042 ;;
15043 esac
15044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15045 # soname into executable. Probably we can add versioning support to
15046 # collect2, so additional links can be useful in future.
15047 if test "$aix_use_runtimelinking" = yes; then
15048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15049 # instead of lib<name>.a to let people know that these are not
15050 # typical AIX shared libraries.
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 else
15053 # We preserve .a as extension for shared libraries through AIX4.2
15054 # and later when we are not doing run time linking.
15055 library_names_spec='${libname}${release}.a $libname.a'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 fi
15058 shlibpath_var=LIBPATH
15059 fi
15060 ;;
15061
15062amigaos*)
15063 library_names_spec='$libname.ixlibrary $libname.a'
15064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15065 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'
15066 ;;
15067
15068beos*)
15069 library_names_spec='${libname}${shared_ext}'
15070 dynamic_linker="$host_os ld.so"
15071 shlibpath_var=LIBRARY_PATH
15072 ;;
15073
15074bsdi[45]*)
15075 version_type=linux
15076 need_version=no
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15083 # the default ld.so.conf also contains /usr/contrib/lib and
15084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15085 # libtool to hard-code these into programs
15086 ;;
15087
15088cygwin* | mingw* | pw32*)
15089 version_type=windows
15090 shrext_cmds=".dll"
15091 need_version=no
15092 need_lib_prefix=no
15093
15094 case $GCC,$host_os in
15095 yes,cygwin* | yes,mingw* | yes,pw32*)
15096 library_names_spec='$libname.dll.a'
15097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15098 postinstall_cmds='base_file=`basename \${file}`~
15099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15100 dldir=$destdir/`dirname \$dlpath`~
15101 test -d \$dldir || mkdir -p \$dldir~
15102 $install_prog $dir/$dlname \$dldir/$dlname~
15103 chmod a+x \$dldir/$dlname'
15104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15105 dlpath=$dir/\$dldll~
15106 $rm \$dlpath'
15107 shlibpath_overrides_runpath=yes
15108
15109 case $host_os in
15110 cygwin*)
15111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15114 ;;
15115 mingw*)
15116 # MinGW DLLs use traditional 'lib' prefix
15117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15120 # It is most probably a Windows format PATH printed by
15121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15122 # path with ; separators, and with drive letters. We can handle the
15123 # drive letters (cygwin fileutils understands them), so leave them,
15124 # especially as we might pass files found there to a mingw objdump,
15125 # which wouldn't understand a cygwinified path. Ahh.
15126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15127 else
15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15129 fi
15130 ;;
15131 pw32*)
15132 # pw32 DLLs use 'pw' prefix rather than 'lib'
15133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15134 ;;
15135 esac
15136 ;;
15137
15138 *)
15139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15140 ;;
15141 esac
15142 dynamic_linker='Win32 ld.exe'
15143 # FIXME: first we should search . and the directory the executable is in
15144 shlibpath_var=PATH
15145 ;;
15146
15147darwin* | rhapsody*)
15148 dynamic_linker="$host_os dyld"
15149 version_type=darwin
15150 need_lib_prefix=no
15151 need_version=no
15152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15153 soname_spec='${libname}${release}${major}$shared_ext'
15154 shlibpath_overrides_runpath=yes
15155 shlibpath_var=DYLD_LIBRARY_PATH
15156 shrext_cmds='.dylib'
15157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15158 if test "$GCC" = yes; then
15159 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"`
15160 else
15161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15162 fi
15163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15164 ;;
15165
15166dgux*)
15167 version_type=linux
15168 need_lib_prefix=no
15169 need_version=no
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 ;;
15174
15175freebsd1*)
15176 dynamic_linker=no
15177 ;;
15178
15179kfreebsd*-gnu)
15180 version_type=linux
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15188 dynamic_linker='GNU ld.so'
15189 ;;
15190
15191freebsd* | dragonfly*)
15192 # DragonFly does not have aout. When/if they implement a new
15193 # versioning mechanism, adjust this.
15194 if test -x /usr/bin/objformat; then
15195 objformat=`/usr/bin/objformat`
15196 else
15197 case $host_os in
15198 freebsd[123]*) objformat=aout ;;
15199 *) objformat=elf ;;
15200 esac
15201 fi
15202 version_type=freebsd-$objformat
15203 case $version_type in
15204 freebsd-elf*)
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15206 need_version=no
15207 need_lib_prefix=no
15208 ;;
15209 freebsd-*)
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15211 need_version=yes
15212 ;;
15213 esac
15214 shlibpath_var=LD_LIBRARY_PATH
15215 case $host_os in
15216 freebsd2*)
15217 shlibpath_overrides_runpath=yes
15218 ;;
15219 freebsd3.[01]* | freebsdelf3.[01]*)
15220 shlibpath_overrides_runpath=yes
15221 hardcode_into_libs=yes
15222 ;;
15223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15225 shlibpath_overrides_runpath=no
15226 hardcode_into_libs=yes
15227 ;;
15228 freebsd*) # from 4.6 on
15229 shlibpath_overrides_runpath=yes
15230 hardcode_into_libs=yes
15231 ;;
15232 esac
15233 ;;
15234
15235gnu*)
15236 version_type=linux
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 hardcode_into_libs=yes
15243 ;;
15244
15245hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 case $host_cpu in
15252 ia64*)
15253 shrext_cmds='.so'
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262 else
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15264 fi
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15266 ;;
15267 hppa*64*)
15268 shrext_cmds='.sl'
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277 ;;
15278 *)
15279 shrext_cmds='.sl'
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 ;;
15286 esac
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15288 postinstall_cmds='chmod 555 $lib'
15289 ;;
15290
15291interix3*)
15292 version_type=linux
15293 need_lib_prefix=no
15294 need_version=no
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15301 ;;
15302
15303irix5* | irix6* | nonstopux*)
15304 case $host_os in
15305 nonstopux*) version_type=nonstopux ;;
15306 *)
15307 if test "$lt_cv_prog_gnu_ld" = yes; then
15308 version_type=linux
15309 else
15310 version_type=irix
15311 fi ;;
15312 esac
15313 need_lib_prefix=no
15314 need_version=no
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 case $host_os in
15318 irix5* | nonstopux*)
15319 libsuff= shlibsuff=
15320 ;;
15321 *)
15322 case $LD in # libtool.m4 will add one of these switches to LD
15323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15324 libsuff= shlibsuff= libmagic=32-bit;;
15325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15326 libsuff=32 shlibsuff=N32 libmagic=N32;;
15327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15329 *) libsuff= shlibsuff= libmagic=never-match;;
15330 esac
15331 ;;
15332 esac
15333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15337 hardcode_into_libs=yes
15338 ;;
15339
15340# No shared lib support for Linux oldld, aout, or coff.
15341linux*oldld* | linux*aout* | linux*coff*)
15342 dynamic_linker=no
15343 ;;
15344
15345# This must be Linux ELF.
15346linux*)
15347 version_type=linux
15348 need_lib_prefix=no
15349 need_version=no
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 shlibpath_overrides_runpath=no
15355 # This implies no fast_install, which is unacceptable.
15356 # Some rework will be needed to allow for fast_install
15357 # before this can be enabled.
15358 hardcode_into_libs=yes
15359
15360 # Append ld.so.conf contents to the search path
15361 if test -f /etc/ld.so.conf; then
15362 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' ' '`
15363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15364 fi
15365
15366 # We used to test for /lib/ld.so.1 and disable shared libraries on
15367 # powerpc, because MkLinux only supported shared libraries with the
15368 # GNU dynamic linker. Since this was broken with cross compilers,
15369 # most powerpc-linux boxes support dynamic linking these days and
15370 # people can always --disable-shared, the test was removed, and we
15371 # assume the GNU/Linux dynamic linker is in use.
15372 dynamic_linker='GNU/Linux ld.so'
15373 ;;
15374
15375knetbsd*-gnu)
15376 version_type=linux
15377 need_lib_prefix=no
15378 need_version=no
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=no
15383 hardcode_into_libs=yes
15384 dynamic_linker='GNU ld.so'
15385 ;;
15386
15387netbsd*)
15388 version_type=sunos
15389 need_lib_prefix=no
15390 need_version=no
15391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15394 dynamic_linker='NetBSD (a.out) ld.so'
15395 else
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 dynamic_linker='NetBSD ld.elf_so'
15399 fi
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes
15402 hardcode_into_libs=yes
15403 ;;
15404
15405newsos6)
15406 version_type=linux
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 ;;
15411
15412nto-qnx*)
15413 version_type=linux
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 ;;
15421
15422openbsd*)
15423 version_type=sunos
15424 sys_lib_dlsearch_path_spec="/usr/lib"
15425 need_lib_prefix=no
15426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15427 case $host_os in
15428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15429 *) need_version=no ;;
15430 esac
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15435 case $host_os in
15436 openbsd2.[89] | openbsd2.[89].*)
15437 shlibpath_overrides_runpath=no
15438 ;;
15439 *)
15440 shlibpath_overrides_runpath=yes
15441 ;;
15442 esac
15443 else
15444 shlibpath_overrides_runpath=yes
15445 fi
15446 ;;
15447
15448os2*)
15449 libname_spec='$name'
15450 shrext_cmds=".dll"
15451 need_lib_prefix=no
15452 library_names_spec='$libname${shared_ext} $libname.a'
15453 dynamic_linker='OS/2 ld.exe'
15454 shlibpath_var=LIBPATH
15455 ;;
15456
15457osf3* | osf4* | osf5*)
15458 version_type=osf
15459 need_lib_prefix=no
15460 need_version=no
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15466 ;;
15467
15468solaris*)
15469 version_type=linux
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 # ldd complains unless libraries are executable
15478 postinstall_cmds='chmod +x $lib'
15479 ;;
15480
15481sunos4*)
15482 version_type=sunos
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15487 if test "$with_gnu_ld" = yes; then
15488 need_lib_prefix=no
15489 fi
15490 need_version=yes
15491 ;;
15492
15493sysv4 | sysv4.3*)
15494 version_type=linux
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 case $host_vendor in
15499 sni)
15500 shlibpath_overrides_runpath=no
15501 need_lib_prefix=no
15502 export_dynamic_flag_spec='${wl}-Blargedynsym'
15503 runpath_var=LD_RUN_PATH
15504 ;;
15505 siemens)
15506 need_lib_prefix=no
15507 ;;
15508 motorola)
15509 need_lib_prefix=no
15510 need_version=no
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15513 ;;
15514 esac
15515 ;;
15516
15517sysv4*MP*)
15518 if test -d /usr/nec ;then
15519 version_type=linux
15520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15521 soname_spec='$libname${shared_ext}.$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 fi
15524 ;;
15525
15526sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15527 version_type=freebsd-elf
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 hardcode_into_libs=yes
15534 if test "$with_gnu_ld" = yes; then
15535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15536 shlibpath_overrides_runpath=no
15537 else
15538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15539 shlibpath_overrides_runpath=yes
15540 case $host_os in
15541 sco3.2v5*)
15542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15543 ;;
15544 esac
15545 fi
15546 sys_lib_dlsearch_path_spec='/usr/lib'
15547 ;;
15548
15549uts4*)
15550 version_type=linux
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 ;;
15555
15556*)
15557 dynamic_linker=no
15558 ;;
15559esac
15560{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15561echo "${ECHO_T}$dynamic_linker" >&6; }
15562test "$dynamic_linker" = no && can_build_shared=no
15563
15564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15565if test "$GCC" = yes; then
15566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15567fi
15568
15569{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15570echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15571hardcode_action=
15572if test -n "$hardcode_libdir_flag_spec" || \
15573 test -n "$runpath_var" || \
15574 test "X$hardcode_automatic" = "Xyes" ; then
15575
15576 # We can hardcode non-existant directories.
15577 if test "$hardcode_direct" != no &&
15578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15579 # have to relink, otherwise we might link with an installed library
15580 # when we should be linking with a yet-to-be-installed one
15581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15582 test "$hardcode_minus_L" != no; then
15583 # Linking always hardcodes the temporary library directory.
15584 hardcode_action=relink
15585 else
15586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15587 hardcode_action=immediate
15588 fi
15589else
15590 # We cannot hardcode anything, or else we can only hardcode existing
15591 # directories.
15592 hardcode_action=unsupported
15593fi
15594{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15595echo "${ECHO_T}$hardcode_action" >&6; }
15596
15597if test "$hardcode_action" = relink; then
15598 # Fast installation is not supported
15599 enable_fast_install=no
15600elif test "$shlibpath_overrides_runpath" = yes ||
15601 test "$enable_shared" = no; then
15602 # Fast installation is not necessary
15603 enable_fast_install=needless
15604fi
15605
15606striplib=
15607old_striplib=
15608{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15609echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15610if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15613 { echo "$as_me:$LINENO: result: yes" >&5
15614echo "${ECHO_T}yes" >&6; }
15615else
15616# FIXME - insert some real tests, host_os isn't really good enough
15617 case $host_os in
15618 darwin*)
15619 if test -n "$STRIP" ; then
15620 striplib="$STRIP -x"
15621 { echo "$as_me:$LINENO: result: yes" >&5
15622echo "${ECHO_T}yes" >&6; }
15623 else
15624 { echo "$as_me:$LINENO: result: no" >&5
15625echo "${ECHO_T}no" >&6; }
15626fi
15627 ;;
15628 *)
15629 { echo "$as_me:$LINENO: result: no" >&5
15630echo "${ECHO_T}no" >&6; }
15631 ;;
15632 esac
15633fi
15634
15635if test "x$enable_dlopen" != xyes; then
15636 enable_dlopen=unknown
15637 enable_dlopen_self=unknown
15638 enable_dlopen_self_static=unknown
15639else
15640 lt_cv_dlopen=no
15641 lt_cv_dlopen_libs=
15642
15643 case $host_os in
15644 beos*)
15645 lt_cv_dlopen="load_add_on"
15646 lt_cv_dlopen_libs=
15647 lt_cv_dlopen_self=yes
15648 ;;
15649
15650 mingw* | pw32*)
15651 lt_cv_dlopen="LoadLibrary"
15652 lt_cv_dlopen_libs=
15653 ;;
15654
15655 cygwin*)
15656 lt_cv_dlopen="dlopen"
15657 lt_cv_dlopen_libs=
15658 ;;
15659
15660 darwin*)
15661 # if libdl is installed we need to link against it
15662 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15663echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15664if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15666else
15667 ac_check_lib_save_LIBS=$LIBS
15668LIBS="-ldl $LIBS"
15669cat >conftest.$ac_ext <<_ACEOF
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
15675
15676/* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15679#ifdef __cplusplus
15680extern "C"
15681#endif
15682char dlopen ();
15683int
15684main ()
15685{
15686return dlopen ();
15687 ;
15688 return 0;
15689}
15690_ACEOF
15691rm -f conftest.$ac_objext conftest$ac_exeext
15692if { (ac_try="$ac_link"
15693case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696esac
15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_link") 2>conftest.er1
15699 ac_status=$?
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015704 (exit $ac_status); } && {
15705 test -z "$ac_c_werror_flag" ||
15706 test ! -s conftest.err
15707 } && test -s conftest$ac_exeext &&
15708 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015709 ac_cv_lib_dl_dlopen=yes
15710else
15711 echo "$as_me: failed program was:" >&5
15712sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 ac_cv_lib_dl_dlopen=no
15715fi
15716
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015718 conftest$ac_exeext conftest.$ac_ext
15719LIBS=$ac_check_lib_save_LIBS
15720fi
15721{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15722echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15723if test $ac_cv_lib_dl_dlopen = yes; then
15724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15725else
15726
15727 lt_cv_dlopen="dyld"
15728 lt_cv_dlopen_libs=
15729 lt_cv_dlopen_self=yes
15730
15731fi
15732
15733 ;;
15734
15735 *)
15736 { echo "$as_me:$LINENO: checking for shl_load" >&5
15737echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15738if test "${ac_cv_func_shl_load+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740else
15741 cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749#define shl_load innocuous_shl_load
15750
15751/* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char shl_load (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15755
15756#ifdef __STDC__
15757# include <limits.h>
15758#else
15759# include <assert.h>
15760#endif
15761
15762#undef shl_load
15763
15764/* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15767#ifdef __cplusplus
15768extern "C"
15769#endif
15770char shl_load ();
15771/* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774#if defined __stub_shl_load || defined __stub___shl_load
15775choke me
15776#endif
15777
15778int
15779main ()
15780{
15781return shl_load ();
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext conftest$ac_exeext
15787if { (ac_try="$ac_link"
15788case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015804 ac_cv_func_shl_load=yes
15805else
15806 echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_func_shl_load=no
15810fi
15811
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015813 conftest$ac_exeext conftest.$ac_ext
15814fi
15815{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15816echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15817if test $ac_cv_func_shl_load = yes; then
15818 lt_cv_dlopen="shl_load"
15819else
15820 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15821echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15822if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824else
15825 ac_check_lib_save_LIBS=$LIBS
15826LIBS="-ldld $LIBS"
15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833
15834/* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15837#ifdef __cplusplus
15838extern "C"
15839#endif
15840char shl_load ();
15841int
15842main ()
15843{
15844return shl_load ();
15845 ;
15846 return 0;
15847}
15848_ACEOF
15849rm -f conftest.$ac_objext conftest$ac_exeext
15850if { (ac_try="$ac_link"
15851case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854esac
15855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_link") 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest$ac_exeext &&
15866 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015867 ac_cv_lib_dld_shl_load=yes
15868else
15869 echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ac_cv_lib_dld_shl_load=no
15873fi
15874
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015876 conftest$ac_exeext conftest.$ac_ext
15877LIBS=$ac_check_lib_save_LIBS
15878fi
15879{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15880echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15881if test $ac_cv_lib_dld_shl_load = yes; then
15882 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15883else
15884 { echo "$as_me:$LINENO: checking for dlopen" >&5
15885echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15886if test "${ac_cv_func_dlopen+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889 cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
15895/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15897#define dlopen innocuous_dlopen
15898
15899/* System header to define __stub macros and hopefully few prototypes,
15900 which can conflict with char dlopen (); below.
15901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 <limits.h> exists even on freestanding compilers. */
15903
15904#ifdef __STDC__
15905# include <limits.h>
15906#else
15907# include <assert.h>
15908#endif
15909
15910#undef dlopen
15911
15912/* Override any GCC internal prototype to avoid an error.
15913 Use char because int might match the return type of a GCC
15914 builtin and then its argument prototype would still apply. */
15915#ifdef __cplusplus
15916extern "C"
15917#endif
15918char dlopen ();
15919/* The GNU C library defines this for functions which it implements
15920 to always fail with ENOSYS. Some functions are actually named
15921 something starting with __ and the normal name is an alias. */
15922#if defined __stub_dlopen || defined __stub___dlopen
15923choke me
15924#endif
15925
15926int
15927main ()
15928{
15929return dlopen ();
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (ac_try="$ac_link"
15936case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_link") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest$ac_exeext &&
15951 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015952 ac_cv_func_dlopen=yes
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ac_cv_func_dlopen=no
15958fi
15959
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000015960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015961 conftest$ac_exeext conftest.$ac_ext
15962fi
15963{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15964echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15965if test $ac_cv_func_dlopen = yes; then
15966 lt_cv_dlopen="dlopen"
15967else
15968 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15969echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15970if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972else
15973 ac_check_lib_save_LIBS=$LIBS
15974LIBS="-ldl $LIBS"
15975cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981
15982/* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15985#ifdef __cplusplus
15986extern "C"
15987#endif
15988char dlopen ();
15989int
15990main ()
15991{
15992return dlopen ();
15993 ;
15994 return 0;
15995}
15996_ACEOF
15997rm -f conftest.$ac_objext conftest$ac_exeext
15998if { (ac_try="$ac_link"
15999case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002esac
16003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_link") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest$ac_exeext &&
16014 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016015 ac_cv_lib_dl_dlopen=yes
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_cv_lib_dl_dlopen=no
16021fi
16022
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016024 conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
16027{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16028echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16029if test $ac_cv_lib_dl_dlopen = yes; then
16030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16031else
16032 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16033echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16034if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16036else
16037 ac_check_lib_save_LIBS=$LIBS
16038LIBS="-lsvld $LIBS"
16039cat >conftest.$ac_ext <<_ACEOF
16040/* confdefs.h. */
16041_ACEOF
16042cat confdefs.h >>conftest.$ac_ext
16043cat >>conftest.$ac_ext <<_ACEOF
16044/* end confdefs.h. */
16045
16046/* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16049#ifdef __cplusplus
16050extern "C"
16051#endif
16052char dlopen ();
16053int
16054main ()
16055{
16056return dlopen ();
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext conftest$ac_exeext
16062if { (ac_try="$ac_link"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_link") 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016074 (exit $ac_status); } && {
16075 test -z "$ac_c_werror_flag" ||
16076 test ! -s conftest.err
16077 } && test -s conftest$ac_exeext &&
16078 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016079 ac_cv_lib_svld_dlopen=yes
16080else
16081 echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_cv_lib_svld_dlopen=no
16085fi
16086
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016088 conftest$ac_exeext conftest.$ac_ext
16089LIBS=$ac_check_lib_save_LIBS
16090fi
16091{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16093if test $ac_cv_lib_svld_dlopen = yes; then
16094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16095else
16096 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16097echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16098if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100else
16101 ac_check_lib_save_LIBS=$LIBS
16102LIBS="-ldld $LIBS"
16103cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109
16110/* Override any GCC internal prototype to avoid an error.
16111 Use char because int might match the return type of a GCC
16112 builtin and then its argument prototype would still apply. */
16113#ifdef __cplusplus
16114extern "C"
16115#endif
16116char dld_link ();
16117int
16118main ()
16119{
16120return dld_link ();
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext conftest$ac_exeext
16126if { (ac_try="$ac_link"
16127case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16130esac
16131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_link") 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016138 (exit $ac_status); } && {
16139 test -z "$ac_c_werror_flag" ||
16140 test ! -s conftest.err
16141 } && test -s conftest$ac_exeext &&
16142 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016143 ac_cv_lib_dld_dld_link=yes
16144else
16145 echo "$as_me: failed program was:" >&5
16146sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 ac_cv_lib_dld_dld_link=no
16149fi
16150
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016152 conftest$ac_exeext conftest.$ac_ext
16153LIBS=$ac_check_lib_save_LIBS
16154fi
16155{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16156echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16157if test $ac_cv_lib_dld_dld_link = yes; then
16158 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16159fi
16160
16161
16162fi
16163
16164
16165fi
16166
16167
16168fi
16169
16170
16171fi
16172
16173
16174fi
16175
16176 ;;
16177 esac
16178
16179 if test "x$lt_cv_dlopen" != xno; then
16180 enable_dlopen=yes
16181 else
16182 enable_dlopen=no
16183 fi
16184
16185 case $lt_cv_dlopen in
16186 dlopen)
16187 save_CPPFLAGS="$CPPFLAGS"
16188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16189
16190 save_LDFLAGS="$LDFLAGS"
16191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16192
16193 save_LIBS="$LIBS"
16194 LIBS="$lt_cv_dlopen_libs $LIBS"
16195
16196 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16197echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16198if test "${lt_cv_dlopen_self+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200else
16201 if test "$cross_compiling" = yes; then :
16202 lt_cv_dlopen_self=cross
16203else
16204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16205 lt_status=$lt_dlunknown
16206 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016207#line 16207 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016208#include "confdefs.h"
16209
16210#if HAVE_DLFCN_H
16211#include <dlfcn.h>
16212#endif
16213
16214#include <stdio.h>
16215
16216#ifdef RTLD_GLOBAL
16217# define LT_DLGLOBAL RTLD_GLOBAL
16218#else
16219# ifdef DL_GLOBAL
16220# define LT_DLGLOBAL DL_GLOBAL
16221# else
16222# define LT_DLGLOBAL 0
16223# endif
16224#endif
16225
16226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16227 find out it does not work in some platform. */
16228#ifndef LT_DLLAZY_OR_NOW
16229# ifdef RTLD_LAZY
16230# define LT_DLLAZY_OR_NOW RTLD_LAZY
16231# else
16232# ifdef DL_LAZY
16233# define LT_DLLAZY_OR_NOW DL_LAZY
16234# else
16235# ifdef RTLD_NOW
16236# define LT_DLLAZY_OR_NOW RTLD_NOW
16237# else
16238# ifdef DL_NOW
16239# define LT_DLLAZY_OR_NOW DL_NOW
16240# else
16241# define LT_DLLAZY_OR_NOW 0
16242# endif
16243# endif
16244# endif
16245# endif
16246#endif
16247
16248#ifdef __cplusplus
16249extern "C" void exit (int);
16250#endif
16251
16252void fnord() { int i=42;}
16253int main ()
16254{
16255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16256 int status = $lt_dlunknown;
16257
16258 if (self)
16259 {
16260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16262 /* dlclose (self); */
16263 }
16264 else
16265 puts (dlerror ());
16266
16267 exit (status);
16268}
16269EOF
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16275 (./conftest; exit; ) >&5 2>/dev/null
16276 lt_status=$?
16277 case x$lt_status in
16278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16281 esac
16282 else :
16283 # compilation failed
16284 lt_cv_dlopen_self=no
16285 fi
16286fi
16287rm -fr conftest*
16288
16289
16290fi
16291{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16292echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16293
16294 if test "x$lt_cv_dlopen_self" = xyes; then
16295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16296 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16297echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16298if test "${lt_cv_dlopen_self_static+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16300else
16301 if test "$cross_compiling" = yes; then :
16302 lt_cv_dlopen_self_static=cross
16303else
16304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16305 lt_status=$lt_dlunknown
16306 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000016307#line 16307 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016308#include "confdefs.h"
16309
16310#if HAVE_DLFCN_H
16311#include <dlfcn.h>
16312#endif
16313
16314#include <stdio.h>
16315
16316#ifdef RTLD_GLOBAL
16317# define LT_DLGLOBAL RTLD_GLOBAL
16318#else
16319# ifdef DL_GLOBAL
16320# define LT_DLGLOBAL DL_GLOBAL
16321# else
16322# define LT_DLGLOBAL 0
16323# endif
16324#endif
16325
16326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16327 find out it does not work in some platform. */
16328#ifndef LT_DLLAZY_OR_NOW
16329# ifdef RTLD_LAZY
16330# define LT_DLLAZY_OR_NOW RTLD_LAZY
16331# else
16332# ifdef DL_LAZY
16333# define LT_DLLAZY_OR_NOW DL_LAZY
16334# else
16335# ifdef RTLD_NOW
16336# define LT_DLLAZY_OR_NOW RTLD_NOW
16337# else
16338# ifdef DL_NOW
16339# define LT_DLLAZY_OR_NOW DL_NOW
16340# else
16341# define LT_DLLAZY_OR_NOW 0
16342# endif
16343# endif
16344# endif
16345# endif
16346#endif
16347
16348#ifdef __cplusplus
16349extern "C" void exit (int);
16350#endif
16351
16352void fnord() { int i=42;}
16353int main ()
16354{
16355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16356 int status = $lt_dlunknown;
16357
16358 if (self)
16359 {
16360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16362 /* dlclose (self); */
16363 }
16364 else
16365 puts (dlerror ());
16366
16367 exit (status);
16368}
16369EOF
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371 (eval $ac_link) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16375 (./conftest; exit; ) >&5 2>/dev/null
16376 lt_status=$?
16377 case x$lt_status in
16378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16381 esac
16382 else :
16383 # compilation failed
16384 lt_cv_dlopen_self_static=no
16385 fi
16386fi
16387rm -fr conftest*
16388
16389
16390fi
16391{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16392echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16393 fi
16394
16395 CPPFLAGS="$save_CPPFLAGS"
16396 LDFLAGS="$save_LDFLAGS"
16397 LIBS="$save_LIBS"
16398 ;;
16399 esac
16400
16401 case $lt_cv_dlopen_self in
16402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16403 *) enable_dlopen_self=unknown ;;
16404 esac
16405
16406 case $lt_cv_dlopen_self_static in
16407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16408 *) enable_dlopen_self_static=unknown ;;
16409 esac
16410fi
16411
16412
16413# Report which library types will actually be built
16414{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16415echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16416{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16417echo "${ECHO_T}$can_build_shared" >&6; }
16418
16419{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16420echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16421test "$can_build_shared" = "no" && enable_shared=no
16422
16423# On AIX, shared libraries and static libraries use the same namespace, and
16424# are all built from PIC.
16425case $host_os in
16426aix3*)
16427 test "$enable_shared" = yes && enable_static=no
16428 if test -n "$RANLIB"; then
16429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16430 postinstall_cmds='$RANLIB $lib'
16431 fi
16432 ;;
16433
16434aix4* | aix5*)
16435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16436 test "$enable_shared" = yes && enable_static=no
16437 fi
16438 ;;
16439esac
16440{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16441echo "${ECHO_T}$enable_shared" >&6; }
16442
16443{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16445# Make sure either enable_shared or enable_static is yes.
16446test "$enable_shared" = yes || enable_static=yes
16447{ echo "$as_me:$LINENO: result: $enable_static" >&5
16448echo "${ECHO_T}$enable_static" >&6; }
16449
16450# The else clause should only fire when bootstrapping the
16451# libtool distribution, otherwise you forgot to ship ltmain.sh
16452# with your package, and you will get complaints that there are
16453# no rules to generate ltmain.sh.
16454if test -f "$ltmain"; then
16455 # See if we are running on zsh, and set the options which allow our commands through
16456 # without removal of \ escapes.
16457 if test -n "${ZSH_VERSION+set}" ; then
16458 setopt NO_GLOB_SUBST
16459 fi
16460 # Now quote all the things that may contain metacharacters while being
16461 # careful not to overquote the AC_SUBSTed values. We take copies of the
16462 # variables and quote the copies for generation of the libtool script.
16463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16464 SED SHELL STRIP \
16465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16467 deplibs_check_method reload_flag reload_cmds need_locks \
16468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16469 lt_cv_sys_global_symbol_to_c_name_address \
16470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16471 old_postinstall_cmds old_postuninstall_cmds \
16472 compiler \
16473 CC \
16474 LD \
16475 lt_prog_compiler_wl \
16476 lt_prog_compiler_pic \
16477 lt_prog_compiler_static \
16478 lt_prog_compiler_no_builtin_flag \
16479 export_dynamic_flag_spec \
16480 thread_safe_flag_spec \
16481 whole_archive_flag_spec \
16482 enable_shared_with_static_runtimes \
16483 old_archive_cmds \
16484 old_archive_from_new_cmds \
16485 predep_objects \
16486 postdep_objects \
16487 predeps \
16488 postdeps \
16489 compiler_lib_search_path \
16490 archive_cmds \
16491 archive_expsym_cmds \
16492 postinstall_cmds \
16493 postuninstall_cmds \
16494 old_archive_from_expsyms_cmds \
16495 allow_undefined_flag \
16496 no_undefined_flag \
16497 export_symbols_cmds \
16498 hardcode_libdir_flag_spec \
16499 hardcode_libdir_flag_spec_ld \
16500 hardcode_libdir_separator \
16501 hardcode_automatic \
16502 module_cmds \
16503 module_expsym_cmds \
16504 lt_cv_prog_compiler_c_o \
16505 exclude_expsyms \
16506 include_expsyms; do
16507
16508 case $var in
16509 old_archive_cmds | \
16510 old_archive_from_new_cmds | \
16511 archive_cmds | \
16512 archive_expsym_cmds | \
16513 module_cmds | \
16514 module_expsym_cmds | \
16515 old_archive_from_expsyms_cmds | \
16516 export_symbols_cmds | \
16517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16518 postinstall_cmds | postuninstall_cmds | \
16519 old_postinstall_cmds | old_postuninstall_cmds | \
16520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16521 # Double-quote double-evaled strings.
16522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16523 ;;
16524 *)
16525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16526 ;;
16527 esac
16528 done
16529
16530 case $lt_echo in
16531 *'\$0 --fallback-echo"')
16532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16533 ;;
16534 esac
16535
16536cfgfile="${ofile}T"
16537 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16538 $rm -f "$cfgfile"
16539 { echo "$as_me:$LINENO: creating $ofile" >&5
16540echo "$as_me: creating $ofile" >&6;}
16541
16542 cat <<__EOF__ >> "$cfgfile"
16543#! $SHELL
16544
16545# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16546# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16547# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16548#
16549# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16550# Free Software Foundation, Inc.
16551#
16552# This file is part of GNU Libtool:
16553# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16554#
16555# This program is free software; you can redistribute it and/or modify
16556# it under the terms of the GNU General Public License as published by
16557# the Free Software Foundation; either version 2 of the License, or
16558# (at your option) any later version.
16559#
16560# This program is distributed in the hope that it will be useful, but
16561# WITHOUT ANY WARRANTY; without even the implied warranty of
16562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16563# General Public License for more details.
16564#
16565# You should have received a copy of the GNU General Public License
16566# along with this program; if not, write to the Free Software
16567# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16568#
16569# As a special exception to the GNU General Public License, if you
16570# distribute this file as part of a program that contains a
16571# configuration script generated by Autoconf, you may include it under
16572# the same distribution terms that you use for the rest of that program.
16573
16574# A sed program that does not truncate output.
16575SED=$lt_SED
16576
16577# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16578Xsed="$SED -e 1s/^X//"
16579
16580# The HP-UX ksh and POSIX shell print the target directory to stdout
16581# if CDPATH is set.
16582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16583
16584# The names of the tagged configurations supported by this script.
16585available_tags=
16586
16587# ### BEGIN LIBTOOL CONFIG
16588
16589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16590
16591# Shell to use when invoking shell scripts.
16592SHELL=$lt_SHELL
16593
16594# Whether or not to build shared libraries.
16595build_libtool_libs=$enable_shared
16596
16597# Whether or not to build static libraries.
16598build_old_libs=$enable_static
16599
16600# Whether or not to add -lc for building shared libraries.
16601build_libtool_need_lc=$archive_cmds_need_lc
16602
16603# Whether or not to disallow shared libs when runtime libs are static
16604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16605
16606# Whether or not to optimize for fast installation.
16607fast_install=$enable_fast_install
16608
16609# The host system.
16610host_alias=$host_alias
16611host=$host
16612host_os=$host_os
16613
16614# The build system.
16615build_alias=$build_alias
16616build=$build
16617build_os=$build_os
16618
16619# An echo program that does not interpret backslashes.
16620echo=$lt_echo
16621
16622# The archiver.
16623AR=$lt_AR
16624AR_FLAGS=$lt_AR_FLAGS
16625
16626# A C compiler.
16627LTCC=$lt_LTCC
16628
16629# LTCC compiler flags.
16630LTCFLAGS=$lt_LTCFLAGS
16631
16632# A language-specific compiler.
16633CC=$lt_compiler
16634
16635# Is the compiler the GNU C compiler?
16636with_gcc=$GCC
16637
16638# An ERE matcher.
16639EGREP=$lt_EGREP
16640
16641# The linker used to build libraries.
16642LD=$lt_LD
16643
16644# Whether we need hard or soft links.
16645LN_S=$lt_LN_S
16646
16647# A BSD-compatible nm program.
16648NM=$lt_NM
16649
16650# A symbol stripping program
16651STRIP=$lt_STRIP
16652
16653# Used to examine libraries when file_magic_cmd begins "file"
16654MAGIC_CMD=$MAGIC_CMD
16655
16656# Used on cygwin: DLL creation program.
16657DLLTOOL="$DLLTOOL"
16658
16659# Used on cygwin: object dumper.
16660OBJDUMP="$OBJDUMP"
16661
16662# Used on cygwin: assembler.
16663AS="$AS"
16664
16665# The name of the directory that contains temporary libtool files.
16666objdir=$objdir
16667
16668# How to create reloadable object files.
16669reload_flag=$lt_reload_flag
16670reload_cmds=$lt_reload_cmds
16671
16672# How to pass a linker flag through the compiler.
16673wl=$lt_lt_prog_compiler_wl
16674
16675# Object file suffix (normally "o").
16676objext="$ac_objext"
16677
16678# Old archive suffix (normally "a").
16679libext="$libext"
16680
16681# Shared library suffix (normally ".so").
16682shrext_cmds='$shrext_cmds'
16683
16684# Executable file suffix (normally "").
16685exeext="$exeext"
16686
16687# Additional compiler flags for building library objects.
16688pic_flag=$lt_lt_prog_compiler_pic
16689pic_mode=$pic_mode
16690
16691# What is the maximum length of a command?
16692max_cmd_len=$lt_cv_sys_max_cmd_len
16693
16694# Does compiler simultaneously support -c and -o options?
16695compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16696
16697# Must we lock files when doing compilation?
16698need_locks=$lt_need_locks
16699
16700# Do we need the lib prefix for modules?
16701need_lib_prefix=$need_lib_prefix
16702
16703# Do we need a version for libraries?
16704need_version=$need_version
16705
16706# Whether dlopen is supported.
16707dlopen_support=$enable_dlopen
16708
16709# Whether dlopen of programs is supported.
16710dlopen_self=$enable_dlopen_self
16711
16712# Whether dlopen of statically linked programs is supported.
16713dlopen_self_static=$enable_dlopen_self_static
16714
16715# Compiler flag to prevent dynamic linking.
16716link_static_flag=$lt_lt_prog_compiler_static
16717
16718# Compiler flag to turn off builtin functions.
16719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16720
16721# Compiler flag to allow reflexive dlopens.
16722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16723
16724# Compiler flag to generate shared objects directly from archives.
16725whole_archive_flag_spec=$lt_whole_archive_flag_spec
16726
16727# Compiler flag to generate thread-safe objects.
16728thread_safe_flag_spec=$lt_thread_safe_flag_spec
16729
16730# Library versioning type.
16731version_type=$version_type
16732
16733# Format of library name prefix.
16734libname_spec=$lt_libname_spec
16735
16736# List of archive names. First name is the real one, the rest are links.
16737# The last name is the one that the linker finds with -lNAME.
16738library_names_spec=$lt_library_names_spec
16739
16740# The coded name of the library, if different from the real name.
16741soname_spec=$lt_soname_spec
16742
16743# Commands used to build and install an old-style archive.
16744RANLIB=$lt_RANLIB
16745old_archive_cmds=$lt_old_archive_cmds
16746old_postinstall_cmds=$lt_old_postinstall_cmds
16747old_postuninstall_cmds=$lt_old_postuninstall_cmds
16748
16749# Create an old-style archive from a shared archive.
16750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16751
16752# Create a temporary old-style archive to link instead of a shared archive.
16753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16754
16755# Commands used to build and install a shared archive.
16756archive_cmds=$lt_archive_cmds
16757archive_expsym_cmds=$lt_archive_expsym_cmds
16758postinstall_cmds=$lt_postinstall_cmds
16759postuninstall_cmds=$lt_postuninstall_cmds
16760
16761# Commands used to build a loadable module (assumed same as above if empty)
16762module_cmds=$lt_module_cmds
16763module_expsym_cmds=$lt_module_expsym_cmds
16764
16765# Commands to strip libraries.
16766old_striplib=$lt_old_striplib
16767striplib=$lt_striplib
16768
16769# Dependencies to place before the objects being linked to create a
16770# shared library.
16771predep_objects=$lt_predep_objects
16772
16773# Dependencies to place after the objects being linked to create a
16774# shared library.
16775postdep_objects=$lt_postdep_objects
16776
16777# Dependencies to place before the objects being linked to create a
16778# shared library.
16779predeps=$lt_predeps
16780
16781# Dependencies to place after the objects being linked to create a
16782# shared library.
16783postdeps=$lt_postdeps
16784
16785# The library search path used internally by the compiler when linking
16786# a shared library.
16787compiler_lib_search_path=$lt_compiler_lib_search_path
16788
16789# Method to check whether dependent libraries are shared objects.
16790deplibs_check_method=$lt_deplibs_check_method
16791
16792# Command to use when deplibs_check_method == file_magic.
16793file_magic_cmd=$lt_file_magic_cmd
16794
16795# Flag that allows shared libraries with undefined symbols to be built.
16796allow_undefined_flag=$lt_allow_undefined_flag
16797
16798# Flag that forces no undefined symbols.
16799no_undefined_flag=$lt_no_undefined_flag
16800
16801# Commands used to finish a libtool library installation in a directory.
16802finish_cmds=$lt_finish_cmds
16803
16804# Same as above, but a single script fragment to be evaled but not shown.
16805finish_eval=$lt_finish_eval
16806
16807# Take the output of nm and produce a listing of raw symbols and C names.
16808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16809
16810# Transform the output of nm in a proper C declaration
16811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16812
16813# Transform the output of nm in a C name address pair
16814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16815
16816# This is the shared library runtime path variable.
16817runpath_var=$runpath_var
16818
16819# This is the shared library path variable.
16820shlibpath_var=$shlibpath_var
16821
16822# Is shlibpath searched before the hard-coded library search path?
16823shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16824
16825# How to hardcode a shared library path into an executable.
16826hardcode_action=$hardcode_action
16827
16828# Whether we should hardcode library paths into libraries.
16829hardcode_into_libs=$hardcode_into_libs
16830
16831# Flag to hardcode \$libdir into a binary during linking.
16832# This must work even if \$libdir does not exist.
16833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16834
16835# If ld is used when linking, flag to hardcode \$libdir into
16836# a binary during linking. This must work even if \$libdir does
16837# not exist.
16838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16839
16840# Whether we need a single -rpath flag with a separated argument.
16841hardcode_libdir_separator=$lt_hardcode_libdir_separator
16842
16843# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16844# resulting binary.
16845hardcode_direct=$hardcode_direct
16846
16847# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16848# resulting binary.
16849hardcode_minus_L=$hardcode_minus_L
16850
16851# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16852# the resulting binary.
16853hardcode_shlibpath_var=$hardcode_shlibpath_var
16854
16855# Set to yes if building a shared library automatically hardcodes DIR into the library
16856# and all subsequent libraries and executables linked against it.
16857hardcode_automatic=$hardcode_automatic
16858
16859# Variables whose values should be saved in libtool wrapper scripts and
16860# restored at relink time.
16861variables_saved_for_relink="$variables_saved_for_relink"
16862
16863# Whether libtool must link a program against all its dependency libraries.
16864link_all_deplibs=$link_all_deplibs
16865
16866# Compile-time system search path for libraries
16867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16868
16869# Run-time system search path for libraries
16870sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16871
16872# Fix the shell variable \$srcfile for the compiler.
16873fix_srcfile_path="$fix_srcfile_path"
16874
16875# Set to yes if exported symbols are required.
16876always_export_symbols=$always_export_symbols
16877
16878# The commands to list exported symbols.
16879export_symbols_cmds=$lt_export_symbols_cmds
16880
16881# The commands to extract the exported symbol list from a shared archive.
16882extract_expsyms_cmds=$lt_extract_expsyms_cmds
16883
16884# Symbols that should not be listed in the preloaded symbols.
16885exclude_expsyms=$lt_exclude_expsyms
16886
16887# Symbols that must always be exported.
16888include_expsyms=$lt_include_expsyms
16889
16890# ### END LIBTOOL CONFIG
16891
16892__EOF__
16893
16894
16895 case $host_os in
16896 aix3*)
16897 cat <<\EOF >> "$cfgfile"
16898
16899# AIX sometimes has problems with the GCC collect2 program. For some
16900# reason, if we set the COLLECT_NAMES environment variable, the problems
16901# vanish in a puff of smoke.
16902if test "X${COLLECT_NAMES+set}" != Xset; then
16903 COLLECT_NAMES=
16904 export COLLECT_NAMES
16905fi
16906EOF
16907 ;;
16908 esac
16909
16910 # We use sed instead of cat because bash on DJGPP gets confused if
16911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16912 # text mode, it properly converts lines to CR/LF. This bash problem
16913 # is reportedly fixed, but why not run on old versions too?
16914 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16915
16916 mv -f "$cfgfile" "$ofile" || \
16917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16918 chmod +x "$ofile"
16919
16920else
16921 # If there is no Makefile yet, we rely on a make rule to execute
16922 # `config.status --recheck' to rerun these tests and create the
16923 # libtool script then.
16924 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16925 if test -f "$ltmain_in"; then
16926 test -f Makefile && make "$ltmain"
16927 fi
16928fi
16929
16930
16931ac_ext=c
16932ac_cpp='$CPP $CPPFLAGS'
16933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935ac_compiler_gnu=$ac_cv_c_compiler_gnu
16936
16937CC="$lt_save_CC"
16938
16939
16940# Check whether --with-tags was given.
16941if test "${with_tags+set}" = set; then
16942 withval=$with_tags; tagnames="$withval"
16943fi
16944
16945
16946if test -f "$ltmain" && test -n "$tagnames"; then
16947 if test ! -f "${ofile}"; then
16948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16949echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16950 fi
16951
16952 if test -z "$LTCC"; then
16953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16954 if test -z "$LTCC"; then
16955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16956echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16957 else
16958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16959echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16960 fi
16961 fi
16962 if test -z "$LTCFLAGS"; then
16963 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16964 fi
16965
16966 # Extract list of available tagged configurations in $ofile.
16967 # Note that this assumes the entire list is on one line.
16968 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16969
16970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16971 for tagname in $tagnames; do
16972 IFS="$lt_save_ifs"
16973 # Check whether tagname contains only valid characters
16974 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16975 "") ;;
16976 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16977echo "$as_me: error: invalid tag name: $tagname" >&2;}
16978 { (exit 1); exit 1; }; }
16979 ;;
16980 esac
16981
16982 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16983 then
16984 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16985echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16986 { (exit 1); exit 1; }; }
16987 fi
16988
16989 # Update the list of available tags.
16990 if test -n "$tagname"; then
16991 echo appending configuration tag \"$tagname\" to $ofile
16992
16993 case $tagname in
16994 CXX)
16995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16997 (test "X$CXX" != "Xg++"))) ; then
16998 ac_ext=cpp
16999ac_cpp='$CXXCPP $CPPFLAGS'
17000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003
17004
17005
17006
17007archive_cmds_need_lc_CXX=no
17008allow_undefined_flag_CXX=
17009always_export_symbols_CXX=no
17010archive_expsym_cmds_CXX=
17011export_dynamic_flag_spec_CXX=
17012hardcode_direct_CXX=no
17013hardcode_libdir_flag_spec_CXX=
17014hardcode_libdir_flag_spec_ld_CXX=
17015hardcode_libdir_separator_CXX=
17016hardcode_minus_L_CXX=no
17017hardcode_shlibpath_var_CXX=unsupported
17018hardcode_automatic_CXX=no
17019module_cmds_CXX=
17020module_expsym_cmds_CXX=
17021link_all_deplibs_CXX=unknown
17022old_archive_cmds_CXX=$old_archive_cmds
17023no_undefined_flag_CXX=
17024whole_archive_flag_spec_CXX=
17025enable_shared_with_static_runtimes_CXX=no
17026
17027# Dependencies to place before and after the object being linked:
17028predep_objects_CXX=
17029postdep_objects_CXX=
17030predeps_CXX=
17031postdeps_CXX=
17032compiler_lib_search_path_CXX=
17033
17034# Source file extension for C++ test sources.
17035ac_ext=cpp
17036
17037# Object file extension for compiled C++ test sources.
17038objext=o
17039objext_CXX=$objext
17040
17041# Code to be used in simple compile tests
17042lt_simple_compile_test_code="int some_variable = 0;\n"
17043
17044# Code to be used in simple link tests
17045lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17046
17047# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17048
17049# If no C compiler was specified, use CC.
17050LTCC=${LTCC-"$CC"}
17051
17052# If no C compiler flags were specified, use CFLAGS.
17053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17054
17055# Allow CC to be a program name with arguments.
17056compiler=$CC
17057
17058
17059# save warnings/boilerplate of simple test code
17060ac_outfile=conftest.$ac_objext
17061printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17063_lt_compiler_boilerplate=`cat conftest.err`
17064$rm conftest*
17065
17066ac_outfile=conftest.$ac_objext
17067printf "$lt_simple_link_test_code" >conftest.$ac_ext
17068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17069_lt_linker_boilerplate=`cat conftest.err`
17070$rm conftest*
17071
17072
17073# Allow CC to be a program name with arguments.
17074lt_save_CC=$CC
17075lt_save_LD=$LD
17076lt_save_GCC=$GCC
17077GCC=$GXX
17078lt_save_with_gnu_ld=$with_gnu_ld
17079lt_save_path_LD=$lt_cv_path_LD
17080if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17082else
17083 $as_unset lt_cv_prog_gnu_ld
17084fi
17085if test -n "${lt_cv_path_LDCXX+set}"; then
17086 lt_cv_path_LD=$lt_cv_path_LDCXX
17087else
17088 $as_unset lt_cv_path_LD
17089fi
17090test -z "${LDCXX+set}" || LD=$LDCXX
17091CC=${CXX-"c++"}
17092compiler=$CC
17093compiler_CXX=$CC
17094for cc_temp in $compiler""; do
17095 case $cc_temp in
17096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17098 \-*) ;;
17099 *) break;;
17100 esac
17101done
17102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17103
17104
17105# We don't want -fno-exception wen compiling C++ code, so set the
17106# no_builtin_flag separately
17107if test "$GXX" = yes; then
17108 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17109else
17110 lt_prog_compiler_no_builtin_flag_CXX=
17111fi
17112
17113if test "$GXX" = yes; then
17114 # Set up default GNU C++ configuration
17115
17116
17117# Check whether --with-gnu-ld was given.
17118if test "${with_gnu_ld+set}" = set; then
17119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17120else
17121 with_gnu_ld=no
17122fi
17123
17124ac_prog=ld
17125if test "$GCC" = yes; then
17126 # Check if gcc -print-prog-name=ld gives a path.
17127 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17128echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17129 case $host in
17130 *-*-mingw*)
17131 # gcc leaves a trailing carriage return which upsets mingw
17132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17133 *)
17134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17135 esac
17136 case $ac_prog in
17137 # Accept absolute paths.
17138 [\\/]* | ?:[\\/]*)
17139 re_direlt='/[^/][^/]*/\.\./'
17140 # Canonicalize the pathname of ld
17141 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17142 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17143 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17144 done
17145 test -z "$LD" && LD="$ac_prog"
17146 ;;
17147 "")
17148 # If it fails, then pretend we aren't using GCC.
17149 ac_prog=ld
17150 ;;
17151 *)
17152 # If it is relative, then search for the first ld in PATH.
17153 with_gnu_ld=unknown
17154 ;;
17155 esac
17156elif test "$with_gnu_ld" = yes; then
17157 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17158echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17159else
17160 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17161echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17162fi
17163if test "${lt_cv_path_LD+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166 if test -z "$LD"; then
17167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17168 for ac_dir in $PATH; do
17169 IFS="$lt_save_ifs"
17170 test -z "$ac_dir" && ac_dir=.
17171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17172 lt_cv_path_LD="$ac_dir/$ac_prog"
17173 # Check to see if the program is GNU ld. I'd rather use --version,
17174 # but apparently some variants of GNU ld only accept -v.
17175 # Break only if it was the GNU/non-GNU ld that we prefer.
17176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17177 *GNU* | *'with BFD'*)
17178 test "$with_gnu_ld" != no && break
17179 ;;
17180 *)
17181 test "$with_gnu_ld" != yes && break
17182 ;;
17183 esac
17184 fi
17185 done
17186 IFS="$lt_save_ifs"
17187else
17188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17189fi
17190fi
17191
17192LD="$lt_cv_path_LD"
17193if test -n "$LD"; then
17194 { echo "$as_me:$LINENO: result: $LD" >&5
17195echo "${ECHO_T}$LD" >&6; }
17196else
17197 { echo "$as_me:$LINENO: result: no" >&5
17198echo "${ECHO_T}no" >&6; }
17199fi
17200test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17201echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17202 { (exit 1); exit 1; }; }
17203{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17204echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17205if test "${lt_cv_prog_gnu_ld+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17209case `$LD -v 2>&1 </dev/null` in
17210*GNU* | *'with BFD'*)
17211 lt_cv_prog_gnu_ld=yes
17212 ;;
17213*)
17214 lt_cv_prog_gnu_ld=no
17215 ;;
17216esac
17217fi
17218{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17219echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17220with_gnu_ld=$lt_cv_prog_gnu_ld
17221
17222
17223
17224 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17225 # archiving commands below assume that GNU ld is being used.
17226 if test "$with_gnu_ld" = yes; then
17227 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17228 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'
17229
17230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17232
17233 # If archive_cmds runs LD, not CC, wlarc should be empty
17234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17235 # investigate it a little bit more. (MM)
17236 wlarc='${wl}'
17237
17238 # ancient GNU ld didn't support --whole-archive et. al.
17239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17240 grep 'no-whole-archive' > /dev/null; then
17241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17242 else
17243 whole_archive_flag_spec_CXX=
17244 fi
17245 else
17246 with_gnu_ld=no
17247 wlarc=
17248
17249 # A generic and very simple default shared library creation
17250 # command for GNU C++ for the case where it uses the native
17251 # linker, instead of GNU ld. If possible, this setting should
17252 # overridden to take advantage of the native linker features on
17253 # the platform it is being used on.
17254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17255 fi
17256
17257 # Commands to make compiler produce verbose output that lists
17258 # what "hidden" libraries, object files and flags are used when
17259 # linking a shared library.
17260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17261
17262else
17263 GXX=no
17264 with_gnu_ld=no
17265 wlarc=
17266fi
17267
17268# PORTME: fill in a description of your system's C++ link characteristics
17269{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17271ld_shlibs_CXX=yes
17272case $host_os in
17273 aix3*)
17274 # FIXME: insert proper C++ library support
17275 ld_shlibs_CXX=no
17276 ;;
17277 aix4* | aix5*)
17278 if test "$host_cpu" = ia64; then
17279 # On IA64, the linker does run time linking by default, so we don't
17280 # have to do anything special.
17281 aix_use_runtimelinking=no
17282 exp_sym_flag='-Bexport'
17283 no_entry_flag=""
17284 else
17285 aix_use_runtimelinking=no
17286
17287 # Test if we are trying to use run time linking or normal
17288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17289 # need to do runtime linking.
17290 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17291 for ld_flag in $LDFLAGS; do
17292 case $ld_flag in
17293 *-brtl*)
17294 aix_use_runtimelinking=yes
17295 break
17296 ;;
17297 esac
17298 done
17299 ;;
17300 esac
17301
17302 exp_sym_flag='-bexport'
17303 no_entry_flag='-bnoentry'
17304 fi
17305
17306 # When large executables or shared objects are built, AIX ld can
17307 # have problems creating the table of contents. If linking a library
17308 # or program results in "error TOC overflow" add -mminimal-toc to
17309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17311
17312 archive_cmds_CXX=''
17313 hardcode_direct_CXX=yes
17314 hardcode_libdir_separator_CXX=':'
17315 link_all_deplibs_CXX=yes
17316
17317 if test "$GXX" = yes; then
17318 case $host_os in aix4.[012]|aix4.[012].*)
17319 # We only want to do this on AIX 4.2 and lower, the check
17320 # below for broken collect2 doesn't work under 4.3+
17321 collect2name=`${CC} -print-prog-name=collect2`
17322 if test -f "$collect2name" && \
17323 strings "$collect2name" | grep resolve_lib_name >/dev/null
17324 then
17325 # We have reworked collect2
17326 hardcode_direct_CXX=yes
17327 else
17328 # We have old collect2
17329 hardcode_direct_CXX=unsupported
17330 # It fails to find uninstalled libraries when the uninstalled
17331 # path is not listed in the libpath. Setting hardcode_minus_L
17332 # to unsupported forces relinking
17333 hardcode_minus_L_CXX=yes
17334 hardcode_libdir_flag_spec_CXX='-L$libdir'
17335 hardcode_libdir_separator_CXX=
17336 fi
17337 ;;
17338 esac
17339 shared_flag='-shared'
17340 if test "$aix_use_runtimelinking" = yes; then
17341 shared_flag="$shared_flag "'${wl}-G'
17342 fi
17343 else
17344 # not using gcc
17345 if test "$host_cpu" = ia64; then
17346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17347 # chokes on -Wl,-G. The following line is correct:
17348 shared_flag='-G'
17349 else
17350 if test "$aix_use_runtimelinking" = yes; then
17351 shared_flag='${wl}-G'
17352 else
17353 shared_flag='${wl}-bM:SRE'
17354 fi
17355 fi
17356 fi
17357
17358 # It seems that -bexpall does not export symbols beginning with
17359 # underscore (_), so it is better to generate a list of symbols to export.
17360 always_export_symbols_CXX=yes
17361 if test "$aix_use_runtimelinking" = yes; then
17362 # Warning - without using the other runtime loading flags (-brtl),
17363 # -berok will link without error, but may produce a broken library.
17364 allow_undefined_flag_CXX='-berok'
17365 # Determine the default libpath from the value encoded in an empty executable.
17366 cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372
17373int
17374main ()
17375{
17376
17377 ;
17378 return 0;
17379}
17380_ACEOF
17381rm -f conftest.$ac_objext conftest$ac_exeext
17382if { (ac_try="$ac_link"
17383case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_link") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000017394 (exit $ac_status); } && {
17395 test -z "$ac_cxx_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest$ac_exeext &&
17398 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017399
17400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17401}'`
17402# Check for a 64-bit object if we didn't find anything.
17403if 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; }
17404}'`; fi
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409
17410fi
17411
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000017412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017413 conftest$ac_exeext conftest.$ac_ext
17414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17415
17416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17417
17418 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"
17419 else
17420 if test "$host_cpu" = ia64; then
17421 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17422 allow_undefined_flag_CXX="-z nodefs"
17423 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"
17424 else
17425 # Determine the default libpath from the value encoded in an empty executable.
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432
17433int
17434main ()
17435{
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext conftest$ac_exeext
17442if { (ac_try="$ac_link"
17443case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000017454 (exit $ac_status); } && {
17455 test -z "$ac_cxx_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017459
17460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17461}'`
17462# Check for a 64-bit object if we didn't find anything.
17463if 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; }
17464}'`; fi
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469
17470fi
17471
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000017472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017473 conftest$ac_exeext conftest.$ac_ext
17474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17475
17476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17477 # Warning - without using the other run time loading flags,
17478 # -berok will link without error, but may produce a broken library.
17479 no_undefined_flag_CXX=' ${wl}-bernotok'
17480 allow_undefined_flag_CXX=' ${wl}-berok'
17481 # Exported symbols can be pulled into shared objects from archives
17482 whole_archive_flag_spec_CXX='$convenience'
17483 archive_cmds_need_lc_CXX=yes
17484 # This is similar to how AIX traditionally builds its shared libraries.
17485 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'
17486 fi
17487 fi
17488 ;;
17489
17490 beos*)
17491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492 allow_undefined_flag_CXX=unsupported
17493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17494 # support --undefined. This deserves some investigation. FIXME
17495 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496 else
17497 ld_shlibs_CXX=no
17498 fi
17499 ;;
17500
17501 chorus*)
17502 case $cc_basename in
17503 *)
17504 # FIXME: insert proper C++ library support
17505 ld_shlibs_CXX=no
17506 ;;
17507 esac
17508 ;;
17509
17510 cygwin* | mingw* | pw32*)
17511 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17512 # as there is no search path for DLLs.
17513 hardcode_libdir_flag_spec_CXX='-L$libdir'
17514 allow_undefined_flag_CXX=unsupported
17515 always_export_symbols_CXX=no
17516 enable_shared_with_static_runtimes_CXX=yes
17517
17518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17519 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'
17520 # If the export-symbols file already is a .def file (1st line
17521 # is EXPORTS), use it as is; otherwise, prepend...
17522 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17523 cp $export_symbols $output_objdir/$soname.def;
17524 else
17525 echo EXPORTS > $output_objdir/$soname.def;
17526 cat $export_symbols >> $output_objdir/$soname.def;
17527 fi~
17528 $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'
17529 else
17530 ld_shlibs_CXX=no
17531 fi
17532 ;;
17533 darwin* | rhapsody*)
17534 case $host_os in
17535 rhapsody* | darwin1.[012])
17536 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17537 ;;
17538 *) # Darwin 1.3 on
17539 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17541 else
17542 case ${MACOSX_DEPLOYMENT_TARGET} in
17543 10.[012])
17544 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17545 ;;
17546 10.*)
17547 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17548 ;;
17549 esac
17550 fi
17551 ;;
17552 esac
17553 archive_cmds_need_lc_CXX=no
17554 hardcode_direct_CXX=no
17555 hardcode_automatic_CXX=yes
17556 hardcode_shlibpath_var_CXX=unsupported
17557 whole_archive_flag_spec_CXX=''
17558 link_all_deplibs_CXX=yes
17559
17560 if test "$GXX" = yes ; then
17561 lt_int_apple_cc_single_mod=no
17562 output_verbose_link_cmd='echo'
17563 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17564 lt_int_apple_cc_single_mod=yes
17565 fi
17566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17567 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17568 else
17569 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'
17570 fi
17571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17574 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}'
17575 else
17576 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}'
17577 fi
17578 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}'
17579 else
17580 case $cc_basename in
17581 xlc*)
17582 output_verbose_link_cmd='echo'
17583 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'
17584 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17586 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}'
17587 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}'
17588 ;;
17589 *)
17590 ld_shlibs_CXX=no
17591 ;;
17592 esac
17593 fi
17594 ;;
17595
17596 dgux*)
17597 case $cc_basename in
17598 ec++*)
17599 # FIXME: insert proper C++ library support
17600 ld_shlibs_CXX=no
17601 ;;
17602 ghcx*)
17603 # Green Hills C++ Compiler
17604 # FIXME: insert proper C++ library support
17605 ld_shlibs_CXX=no
17606 ;;
17607 *)
17608 # FIXME: insert proper C++ library support
17609 ld_shlibs_CXX=no
17610 ;;
17611 esac
17612 ;;
17613 freebsd[12]*)
17614 # C++ shared libraries reported to be fairly broken before switch to ELF
17615 ld_shlibs_CXX=no
17616 ;;
17617 freebsd-elf*)
17618 archive_cmds_need_lc_CXX=no
17619 ;;
17620 freebsd* | kfreebsd*-gnu | dragonfly*)
17621 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17622 # conventions
17623 ld_shlibs_CXX=yes
17624 ;;
17625 gnu*)
17626 ;;
17627 hpux9*)
17628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17629 hardcode_libdir_separator_CXX=:
17630 export_dynamic_flag_spec_CXX='${wl}-E'
17631 hardcode_direct_CXX=yes
17632 hardcode_minus_L_CXX=yes # Not in the search PATH,
17633 # but as the default
17634 # location of the library.
17635
17636 case $cc_basename in
17637 CC*)
17638 # FIXME: insert proper C++ library support
17639 ld_shlibs_CXX=no
17640 ;;
17641 aCC*)
17642 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'
17643 # Commands to make compiler produce verbose output that lists
17644 # what "hidden" libraries, object files and flags are used when
17645 # linking a shared library.
17646 #
17647 # There doesn't appear to be a way to prevent this compiler from
17648 # explicitly linking system object files so we need to strip them
17649 # from the output so that they don't get included in the library
17650 # dependencies.
17651 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'
17652 ;;
17653 *)
17654 if test "$GXX" = yes; then
17655 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'
17656 else
17657 # FIXME: insert proper C++ library support
17658 ld_shlibs_CXX=no
17659 fi
17660 ;;
17661 esac
17662 ;;
17663 hpux10*|hpux11*)
17664 if test $with_gnu_ld = no; then
17665 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17666 hardcode_libdir_separator_CXX=:
17667
17668 case $host_cpu in
17669 hppa*64*|ia64*)
17670 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17671 ;;
17672 *)
17673 export_dynamic_flag_spec_CXX='${wl}-E'
17674 ;;
17675 esac
17676 fi
17677 case $host_cpu in
17678 hppa*64*|ia64*)
17679 hardcode_direct_CXX=no
17680 hardcode_shlibpath_var_CXX=no
17681 ;;
17682 *)
17683 hardcode_direct_CXX=yes
17684 hardcode_minus_L_CXX=yes # Not in the search PATH,
17685 # but as the default
17686 # location of the library.
17687 ;;
17688 esac
17689
17690 case $cc_basename in
17691 CC*)
17692 # FIXME: insert proper C++ library support
17693 ld_shlibs_CXX=no
17694 ;;
17695 aCC*)
17696 case $host_cpu in
17697 hppa*64*)
17698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 ;;
17700 ia64*)
17701 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17702 ;;
17703 *)
17704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17705 ;;
17706 esac
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17710 #
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17714 # dependencies.
17715 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'
17716 ;;
17717 *)
17718 if test "$GXX" = yes; then
17719 if test $with_gnu_ld = no; then
17720 case $host_cpu in
17721 hppa*64*)
17722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17723 ;;
17724 ia64*)
17725 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17726 ;;
17727 *)
17728 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'
17729 ;;
17730 esac
17731 fi
17732 else
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 fi
17736 ;;
17737 esac
17738 ;;
17739 interix3*)
17740 hardcode_direct_CXX=no
17741 hardcode_shlibpath_var_CXX=no
17742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17743 export_dynamic_flag_spec_CXX='${wl}-E'
17744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17745 # Instead, shared libraries are loaded at an image base (0x10000000 by
17746 # default) and relocated if they conflict, which is a slow very memory
17747 # consuming and fragmenting process. To avoid this, we pick a random,
17748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17750 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'
17751 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'
17752 ;;
17753 irix5* | irix6*)
17754 case $cc_basename in
17755 CC*)
17756 # SGI C++
17757 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'
17758
17759 # Archives containing C++ object files must be created using
17760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17761 # necessary to make sure instantiated templates are included
17762 # in the archive.
17763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17764 ;;
17765 *)
17766 if test "$GXX" = yes; then
17767 if test "$with_gnu_ld" = no; then
17768 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'
17769 else
17770 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'
17771 fi
17772 fi
17773 link_all_deplibs_CXX=yes
17774 ;;
17775 esac
17776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17777 hardcode_libdir_separator_CXX=:
17778 ;;
17779 linux*)
17780 case $cc_basename in
17781 KCC*)
17782 # Kuck and Associates, Inc. (KAI) C++ Compiler
17783
17784 # KCC will only create a shared library if the output file
17785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17786 # to its proper name (with version) after linking.
17787 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'
17788 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'
17789 # Commands to make compiler produce verbose output that lists
17790 # what "hidden" libraries, object files and flags are used when
17791 # linking a shared library.
17792 #
17793 # There doesn't appear to be a way to prevent this compiler from
17794 # explicitly linking system object files so we need to strip them
17795 # from the output so that they don't get included in the library
17796 # dependencies.
17797 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'
17798
17799 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17801
17802 # Archives containing C++ object files must be created using
17803 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17804 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17805 ;;
17806 icpc*)
17807 # Intel C++
17808 with_gnu_ld=yes
17809 # version 8.0 and above of icpc choke on multiply defined symbols
17810 # if we add $predep_objects and $postdep_objects, however 7.1 and
17811 # earlier do not add the objects themselves.
17812 case `$CC -V 2>&1` in
17813 *"Version 7."*)
17814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17815 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'
17816 ;;
17817 *) # Version 8.0 or newer
17818 tmp_idyn=
17819 case $host_cpu in
17820 ia64*) tmp_idyn=' -i_dynamic';;
17821 esac
17822 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17823 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'
17824 ;;
17825 esac
17826 archive_cmds_need_lc_CXX=no
17827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17829 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17830 ;;
17831 pgCC*)
17832 # Portland Group C++ compiler
17833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17834 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'
17835
17836 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17838 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'
17839 ;;
17840 cxx*)
17841 # Compaq C++
17842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17843 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'
17844
17845 runpath_var=LD_RUN_PATH
17846 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17847 hardcode_libdir_separator_CXX=:
17848
17849 # Commands to make compiler produce verbose output that lists
17850 # what "hidden" libraries, object files and flags are used when
17851 # linking a shared library.
17852 #
17853 # There doesn't appear to be a way to prevent this compiler from
17854 # explicitly linking system object files so we need to strip them
17855 # from the output so that they don't get included in the library
17856 # dependencies.
17857 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'
17858 ;;
17859 esac
17860 ;;
17861 lynxos*)
17862 # FIXME: insert proper C++ library support
17863 ld_shlibs_CXX=no
17864 ;;
17865 m88k*)
17866 # FIXME: insert proper C++ library support
17867 ld_shlibs_CXX=no
17868 ;;
17869 mvs*)
17870 case $cc_basename in
17871 cxx*)
17872 # FIXME: insert proper C++ library support
17873 ld_shlibs_CXX=no
17874 ;;
17875 *)
17876 # FIXME: insert proper C++ library support
17877 ld_shlibs_CXX=no
17878 ;;
17879 esac
17880 ;;
17881 netbsd*)
17882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17883 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17884 wlarc=
17885 hardcode_libdir_flag_spec_CXX='-R$libdir'
17886 hardcode_direct_CXX=yes
17887 hardcode_shlibpath_var_CXX=no
17888 fi
17889 # Workaround some broken pre-1.5 toolchains
17890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17891 ;;
17892 openbsd2*)
17893 # C++ shared libraries are fairly broken
17894 ld_shlibs_CXX=no
17895 ;;
17896 openbsd*)
17897 hardcode_direct_CXX=yes
17898 hardcode_shlibpath_var_CXX=no
17899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17903 export_dynamic_flag_spec_CXX='${wl}-E'
17904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17905 fi
17906 output_verbose_link_cmd='echo'
17907 ;;
17908 osf3*)
17909 case $cc_basename in
17910 KCC*)
17911 # Kuck and Associates, Inc. (KAI) C++ Compiler
17912
17913 # KCC will only create a shared library if the output file
17914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17915 # to its proper name (with version) after linking.
17916 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'
17917
17918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17919 hardcode_libdir_separator_CXX=:
17920
17921 # Archives containing C++ object files must be created using
17922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17924
17925 ;;
17926 RCC*)
17927 # Rational C++ 2.4.1
17928 # FIXME: insert proper C++ library support
17929 ld_shlibs_CXX=no
17930 ;;
17931 cxx*)
17932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17933 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'
17934
17935 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17936 hardcode_libdir_separator_CXX=:
17937
17938 # Commands to make compiler produce verbose output that lists
17939 # what "hidden" libraries, object files and flags are used when
17940 # linking a shared library.
17941 #
17942 # There doesn't appear to be a way to prevent this compiler from
17943 # explicitly linking system object files so we need to strip them
17944 # from the output so that they don't get included in the library
17945 # dependencies.
17946 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'
17947 ;;
17948 *)
17949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17951 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'
17952
17953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17954 hardcode_libdir_separator_CXX=:
17955
17956 # Commands to make compiler produce verbose output that lists
17957 # what "hidden" libraries, object files and flags are used when
17958 # linking a shared library.
17959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17960
17961 else
17962 # FIXME: insert proper C++ library support
17963 ld_shlibs_CXX=no
17964 fi
17965 ;;
17966 esac
17967 ;;
17968 osf4* | osf5*)
17969 case $cc_basename in
17970 KCC*)
17971 # Kuck and Associates, Inc. (KAI) C++ Compiler
17972
17973 # KCC will only create a shared library if the output file
17974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17975 # to its proper name (with version) after linking.
17976 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'
17977
17978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17979 hardcode_libdir_separator_CXX=:
17980
17981 # Archives containing C++ object files must be created using
17982 # the KAI C++ compiler.
17983 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17984 ;;
17985 RCC*)
17986 # Rational C++ 2.4.1
17987 # FIXME: insert proper C++ library support
17988 ld_shlibs_CXX=no
17989 ;;
17990 cxx*)
17991 allow_undefined_flag_CXX=' -expect_unresolved \*'
17992 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'
17993 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17994 echo "-hidden">> $lib.exp~
17995 $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~
17996 $rm $lib.exp'
17997
17998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17999 hardcode_libdir_separator_CXX=:
18000
18001 # Commands to make compiler produce verbose output that lists
18002 # what "hidden" libraries, object files and flags are used when
18003 # linking a shared library.
18004 #
18005 # There doesn't appear to be a way to prevent this compiler from
18006 # explicitly linking system object files so we need to strip them
18007 # from the output so that they don't get included in the library
18008 # dependencies.
18009 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'
18010 ;;
18011 *)
18012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18014 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'
18015
18016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18017 hardcode_libdir_separator_CXX=:
18018
18019 # Commands to make compiler produce verbose output that lists
18020 # what "hidden" libraries, object files and flags are used when
18021 # linking a shared library.
18022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18023
18024 else
18025 # FIXME: insert proper C++ library support
18026 ld_shlibs_CXX=no
18027 fi
18028 ;;
18029 esac
18030 ;;
18031 psos*)
18032 # FIXME: insert proper C++ library support
18033 ld_shlibs_CXX=no
18034 ;;
18035 sunos4*)
18036 case $cc_basename in
18037 CC*)
18038 # Sun C++ 4.x
18039 # FIXME: insert proper C++ library support
18040 ld_shlibs_CXX=no
18041 ;;
18042 lcc*)
18043 # Lucid
18044 # FIXME: insert proper C++ library support
18045 ld_shlibs_CXX=no
18046 ;;
18047 *)
18048 # FIXME: insert proper C++ library support
18049 ld_shlibs_CXX=no
18050 ;;
18051 esac
18052 ;;
18053 solaris*)
18054 case $cc_basename in
18055 CC*)
18056 # Sun C++ 4.2, 5.x and Centerline C++
18057 archive_cmds_need_lc_CXX=yes
18058 no_undefined_flag_CXX=' -zdefs'
18059 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18061 $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'
18062
18063 hardcode_libdir_flag_spec_CXX='-R$libdir'
18064 hardcode_shlibpath_var_CXX=no
18065 case $host_os in
18066 solaris2.[0-5] | solaris2.[0-5].*) ;;
18067 *)
18068 # The C++ compiler is used as linker so we must use $wl
18069 # flag to pass the commands to the underlying system
18070 # linker. We must also pass each convience library through
18071 # to the system linker between allextract/defaultextract.
18072 # The C++ compiler will combine linker options so we
18073 # cannot just pass the convience library names through
18074 # without $wl.
18075 # Supported since Solaris 2.6 (maybe 2.5.1?)
18076 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'
18077 ;;
18078 esac
18079 link_all_deplibs_CXX=yes
18080
18081 output_verbose_link_cmd='echo'
18082
18083 # Archives containing C++ object files must be created using
18084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18085 # necessary to make sure instantiated templates are included
18086 # in the archive.
18087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18088 ;;
18089 gcx*)
18090 # Green Hills C++ Compiler
18091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18092
18093 # The C++ compiler must be used to create the archive.
18094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18095 ;;
18096 *)
18097 # GNU C++ compiler with Solaris linker
18098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18100 if $CC --version | grep -v '^2\.7' > /dev/null; then
18101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18104
18105 # Commands to make compiler produce verbose output that lists
18106 # what "hidden" libraries, object files and flags are used when
18107 # linking a shared library.
18108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18109 else
18110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18111 # platform.
18112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18115
18116 # Commands to make compiler produce verbose output that lists
18117 # what "hidden" libraries, object files and flags are used when
18118 # linking a shared library.
18119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18120 fi
18121
18122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18123 fi
18124 ;;
18125 esac
18126 ;;
18127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18128 no_undefined_flag_CXX='${wl}-z,text'
18129 archive_cmds_need_lc_CXX=no
18130 hardcode_shlibpath_var_CXX=no
18131 runpath_var='LD_RUN_PATH'
18132
18133 case $cc_basename in
18134 CC*)
18135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137 ;;
18138 *)
18139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141 ;;
18142 esac
18143 ;;
18144 sysv5* | sco3.2v5* | sco5v6*)
18145 # Note: We can NOT use -z defs as we might desire, because we do not
18146 # link with -lc, and that would cause any symbols used from libc to
18147 # always be unresolved, which means just about no library would
18148 # ever link correctly. If we're not using GNU ld we use -z text
18149 # though, which does catch some bad symbols but isn't as heavy-handed
18150 # as -z defs.
18151 # For security reasons, it is highly recommended that you always
18152 # use absolute paths for naming shared libraries, and exclude the
18153 # DT_RUNPATH tag from executables and libraries. But doing so
18154 # requires that you compile everything twice, which is a pain.
18155 # So that behaviour is only enabled if SCOABSPATH is set to a
18156 # non-empty value in the environment. Most likely only useful for
18157 # creating official distributions of packages.
18158 # This is a hack until libtool officially supports absolute path
18159 # names for shared libraries.
18160 no_undefined_flag_CXX='${wl}-z,text'
18161 allow_undefined_flag_CXX='${wl}-z,nodefs'
18162 archive_cmds_need_lc_CXX=no
18163 hardcode_shlibpath_var_CXX=no
18164 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18165 hardcode_libdir_separator_CXX=':'
18166 link_all_deplibs_CXX=yes
18167 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18168 runpath_var='LD_RUN_PATH'
18169
18170 case $cc_basename in
18171 CC*)
18172 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18173 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18174 ;;
18175 *)
18176 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18177 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18178 ;;
18179 esac
18180 ;;
18181 tandem*)
18182 case $cc_basename in
18183 NCC*)
18184 # NonStop-UX NCC 3.20
18185 # FIXME: insert proper C++ library support
18186 ld_shlibs_CXX=no
18187 ;;
18188 *)
18189 # FIXME: insert proper C++ library support
18190 ld_shlibs_CXX=no
18191 ;;
18192 esac
18193 ;;
18194 vxworks*)
18195 # FIXME: insert proper C++ library support
18196 ld_shlibs_CXX=no
18197 ;;
18198 *)
18199 # FIXME: insert proper C++ library support
18200 ld_shlibs_CXX=no
18201 ;;
18202esac
18203{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18204echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18205test "$ld_shlibs_CXX" = no && can_build_shared=no
18206
18207GCC_CXX="$GXX"
18208LD_CXX="$LD"
18209
18210
18211cat > conftest.$ac_ext <<EOF
18212class Foo
18213{
18214public:
18215 Foo (void) { a = 0; }
18216private:
18217 int a;
18218};
18219EOF
18220
18221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18222 (eval $ac_compile) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; then
18226 # Parse the compiler output and extract the necessary
18227 # objects, libraries and library flags.
18228
18229 # Sentinel used to keep track of whether or not we are before
18230 # the conftest object file.
18231 pre_test_object_deps_done=no
18232
18233 # The `*' in the case matches for architectures that use `case' in
18234 # $output_verbose_cmd can trigger glob expansion during the loop
18235 # eval without this substitution.
18236 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18237
18238 for p in `eval $output_verbose_link_cmd`; do
18239 case $p in
18240
18241 -L* | -R* | -l*)
18242 # Some compilers place space between "-{L,R}" and the path.
18243 # Remove the space.
18244 if test $p = "-L" \
18245 || test $p = "-R"; then
18246 prev=$p
18247 continue
18248 else
18249 prev=
18250 fi
18251
18252 if test "$pre_test_object_deps_done" = no; then
18253 case $p in
18254 -L* | -R*)
18255 # Internal compiler library paths should come after those
18256 # provided the user. The postdeps already come after the
18257 # user supplied libs so there is no need to process them.
18258 if test -z "$compiler_lib_search_path_CXX"; then
18259 compiler_lib_search_path_CXX="${prev}${p}"
18260 else
18261 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18262 fi
18263 ;;
18264 # The "-l" case would never come before the object being
18265 # linked, so don't bother handling this case.
18266 esac
18267 else
18268 if test -z "$postdeps_CXX"; then
18269 postdeps_CXX="${prev}${p}"
18270 else
18271 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18272 fi
18273 fi
18274 ;;
18275
18276 *.$objext)
18277 # This assumes that the test object file only shows up
18278 # once in the compiler output.
18279 if test "$p" = "conftest.$objext"; then
18280 pre_test_object_deps_done=yes
18281 continue
18282 fi
18283
18284 if test "$pre_test_object_deps_done" = no; then
18285 if test -z "$predep_objects_CXX"; then
18286 predep_objects_CXX="$p"
18287 else
18288 predep_objects_CXX="$predep_objects_CXX $p"
18289 fi
18290 else
18291 if test -z "$postdep_objects_CXX"; then
18292 postdep_objects_CXX="$p"
18293 else
18294 postdep_objects_CXX="$postdep_objects_CXX $p"
18295 fi
18296 fi
18297 ;;
18298
18299 *) ;; # Ignore the rest.
18300
18301 esac
18302 done
18303
18304 # Clean up.
18305 rm -f a.out a.exe
18306else
18307 echo "libtool.m4: error: problem compiling CXX test program"
18308fi
18309
18310$rm -f confest.$objext
18311
18312# PORTME: override above test on systems where it is broken
18313case $host_os in
18314interix3*)
18315 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18316 # hack all around it, let's just trust "g++" to DTRT.
18317 predep_objects_CXX=
18318 postdep_objects_CXX=
18319 postdeps_CXX=
18320 ;;
18321
18322solaris*)
18323 case $cc_basename in
18324 CC*)
18325 # Adding this requires a known-good setup of shared libraries for
18326 # Sun compiler versions before 5.6, else PIC objects from an old
18327 # archive will be linked into the output, leading to subtle bugs.
18328 postdeps_CXX='-lCstd -lCrun'
18329 ;;
18330 esac
18331 ;;
18332esac
18333
18334
18335case " $postdeps_CXX " in
18336*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18337esac
18338
18339lt_prog_compiler_wl_CXX=
18340lt_prog_compiler_pic_CXX=
18341lt_prog_compiler_static_CXX=
18342
18343{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18344echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18345
18346 # C++ specific cases for pic, static, wl, etc.
18347 if test "$GXX" = yes; then
18348 lt_prog_compiler_wl_CXX='-Wl,'
18349 lt_prog_compiler_static_CXX='-static'
18350
18351 case $host_os in
18352 aix*)
18353 # All AIX code is PIC.
18354 if test "$host_cpu" = ia64; then
18355 # AIX 5 now supports IA64 processor
18356 lt_prog_compiler_static_CXX='-Bstatic'
18357 fi
18358 ;;
18359 amigaos*)
18360 # FIXME: we need at least 68020 code to build shared libraries, but
18361 # adding the `-m68020' flag to GCC prevents building anything better,
18362 # like `-m68040'.
18363 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18364 ;;
18365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18366 # PIC is the default for these OSes.
18367 ;;
18368 mingw* | os2* | pw32*)
18369 # This hack is so that the source file can tell whether it is being
18370 # built for inclusion in a dll (and should export symbols for example).
18371 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18372 ;;
18373 darwin* | rhapsody*)
18374 # PIC is the default on this platform
18375 # Common symbols not allowed in MH_DYLIB files
18376 lt_prog_compiler_pic_CXX='-fno-common'
18377 ;;
18378 *djgpp*)
18379 # DJGPP does not support shared libraries at all
18380 lt_prog_compiler_pic_CXX=
18381 ;;
18382 interix3*)
18383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18384 # Instead, we relocate shared libraries at runtime.
18385 ;;
18386 sysv4*MP*)
18387 if test -d /usr/nec; then
18388 lt_prog_compiler_pic_CXX=-Kconform_pic
18389 fi
18390 ;;
18391 hpux*)
18392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18393 # not for PA HP-UX.
18394 case $host_cpu in
18395 hppa*64*|ia64*)
18396 ;;
18397 *)
18398 lt_prog_compiler_pic_CXX='-fPIC'
18399 ;;
18400 esac
18401 ;;
18402 *)
18403 lt_prog_compiler_pic_CXX='-fPIC'
18404 ;;
18405 esac
18406 else
18407 case $host_os in
18408 aix4* | aix5*)
18409 # All AIX code is PIC.
18410 if test "$host_cpu" = ia64; then
18411 # AIX 5 now supports IA64 processor
18412 lt_prog_compiler_static_CXX='-Bstatic'
18413 else
18414 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18415 fi
18416 ;;
18417 chorus*)
18418 case $cc_basename in
18419 cxch68*)
18420 # Green Hills C++ Compiler
18421 # _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"
18422 ;;
18423 esac
18424 ;;
18425 darwin*)
18426 # PIC is the default on this platform
18427 # Common symbols not allowed in MH_DYLIB files
18428 case $cc_basename in
18429 xlc*)
18430 lt_prog_compiler_pic_CXX='-qnocommon'
18431 lt_prog_compiler_wl_CXX='-Wl,'
18432 ;;
18433 esac
18434 ;;
18435 dgux*)
18436 case $cc_basename in
18437 ec++*)
18438 lt_prog_compiler_pic_CXX='-KPIC'
18439 ;;
18440 ghcx*)
18441 # Green Hills C++ Compiler
18442 lt_prog_compiler_pic_CXX='-pic'
18443 ;;
18444 *)
18445 ;;
18446 esac
18447 ;;
18448 freebsd* | kfreebsd*-gnu | dragonfly*)
18449 # FreeBSD uses GNU C++
18450 ;;
18451 hpux9* | hpux10* | hpux11*)
18452 case $cc_basename in
18453 CC*)
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18456 if test "$host_cpu" != ia64; then
18457 lt_prog_compiler_pic_CXX='+Z'
18458 fi
18459 ;;
18460 aCC*)
18461 lt_prog_compiler_wl_CXX='-Wl,'
18462 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18463 case $host_cpu in
18464 hppa*64*|ia64*)
18465 # +Z the default
18466 ;;
18467 *)
18468 lt_prog_compiler_pic_CXX='+Z'
18469 ;;
18470 esac
18471 ;;
18472 *)
18473 ;;
18474 esac
18475 ;;
18476 interix*)
18477 # This is c89, which is MS Visual C++ (no shared libs)
18478 # Anyone wants to do a port?
18479 ;;
18480 irix5* | irix6* | nonstopux*)
18481 case $cc_basename in
18482 CC*)
18483 lt_prog_compiler_wl_CXX='-Wl,'
18484 lt_prog_compiler_static_CXX='-non_shared'
18485 # CC pic flag -KPIC is the default.
18486 ;;
18487 *)
18488 ;;
18489 esac
18490 ;;
18491 linux*)
18492 case $cc_basename in
18493 KCC*)
18494 # KAI C++ Compiler
18495 lt_prog_compiler_wl_CXX='--backend -Wl,'
18496 lt_prog_compiler_pic_CXX='-fPIC'
18497 ;;
18498 icpc* | ecpc*)
18499 # Intel C++
18500 lt_prog_compiler_wl_CXX='-Wl,'
18501 lt_prog_compiler_pic_CXX='-KPIC'
18502 lt_prog_compiler_static_CXX='-static'
18503 ;;
18504 pgCC*)
18505 # Portland Group C++ compiler.
18506 lt_prog_compiler_wl_CXX='-Wl,'
18507 lt_prog_compiler_pic_CXX='-fpic'
18508 lt_prog_compiler_static_CXX='-Bstatic'
18509 ;;
18510 cxx*)
18511 # Compaq C++
18512 # Make sure the PIC flag is empty. It appears that all Alpha
18513 # Linux and Compaq Tru64 Unix objects are PIC.
18514 lt_prog_compiler_pic_CXX=
18515 lt_prog_compiler_static_CXX='-non_shared'
18516 ;;
18517 *)
18518 ;;
18519 esac
18520 ;;
18521 lynxos*)
18522 ;;
18523 m88k*)
18524 ;;
18525 mvs*)
18526 case $cc_basename in
18527 cxx*)
18528 lt_prog_compiler_pic_CXX='-W c,exportall'
18529 ;;
18530 *)
18531 ;;
18532 esac
18533 ;;
18534 netbsd*)
18535 ;;
18536 osf3* | osf4* | osf5*)
18537 case $cc_basename in
18538 KCC*)
18539 lt_prog_compiler_wl_CXX='--backend -Wl,'
18540 ;;
18541 RCC*)
18542 # Rational C++ 2.4.1
18543 lt_prog_compiler_pic_CXX='-pic'
18544 ;;
18545 cxx*)
18546 # Digital/Compaq C++
18547 lt_prog_compiler_wl_CXX='-Wl,'
18548 # Make sure the PIC flag is empty. It appears that all Alpha
18549 # Linux and Compaq Tru64 Unix objects are PIC.
18550 lt_prog_compiler_pic_CXX=
18551 lt_prog_compiler_static_CXX='-non_shared'
18552 ;;
18553 *)
18554 ;;
18555 esac
18556 ;;
18557 psos*)
18558 ;;
18559 solaris*)
18560 case $cc_basename in
18561 CC*)
18562 # Sun C++ 4.2, 5.x and Centerline C++
18563 lt_prog_compiler_pic_CXX='-KPIC'
18564 lt_prog_compiler_static_CXX='-Bstatic'
18565 lt_prog_compiler_wl_CXX='-Qoption ld '
18566 ;;
18567 gcx*)
18568 # Green Hills C++ Compiler
18569 lt_prog_compiler_pic_CXX='-PIC'
18570 ;;
18571 *)
18572 ;;
18573 esac
18574 ;;
18575 sunos4*)
18576 case $cc_basename in
18577 CC*)
18578 # Sun C++ 4.x
18579 lt_prog_compiler_pic_CXX='-pic'
18580 lt_prog_compiler_static_CXX='-Bstatic'
18581 ;;
18582 lcc*)
18583 # Lucid
18584 lt_prog_compiler_pic_CXX='-pic'
18585 ;;
18586 *)
18587 ;;
18588 esac
18589 ;;
18590 tandem*)
18591 case $cc_basename in
18592 NCC*)
18593 # NonStop-UX NCC 3.20
18594 lt_prog_compiler_pic_CXX='-KPIC'
18595 ;;
18596 *)
18597 ;;
18598 esac
18599 ;;
18600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18601 case $cc_basename in
18602 CC*)
18603 lt_prog_compiler_wl_CXX='-Wl,'
18604 lt_prog_compiler_pic_CXX='-KPIC'
18605 lt_prog_compiler_static_CXX='-Bstatic'
18606 ;;
18607 esac
18608 ;;
18609 vxworks*)
18610 ;;
18611 *)
18612 lt_prog_compiler_can_build_shared_CXX=no
18613 ;;
18614 esac
18615 fi
18616
18617{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18618echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18619
18620#
18621# Check to make sure the PIC flag actually works.
18622#
18623if test -n "$lt_prog_compiler_pic_CXX"; then
18624
18625{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18626echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18627if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629else
18630 lt_prog_compiler_pic_works_CXX=no
18631 ac_outfile=conftest.$ac_objext
18632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18633 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18634 # Insert the option either (1) after the last *FLAGS variable, or
18635 # (2) before a word containing "conftest.", or (3) at the end.
18636 # Note that $ac_compile itself does not contain backslashes and begins
18637 # with a dollar sign (not a hyphen), so the echo should work correctly.
18638 # The option is referenced via a variable to avoid confusing sed.
18639 lt_compile=`echo "$ac_compile" | $SED \
18640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000018643 (eval echo "\"\$as_me:18643: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018644 (eval "$lt_compile" 2>conftest.err)
18645 ac_status=$?
18646 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000018647 echo "$as_me:18647: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018648 if (exit $ac_status) && test -s "$ac_outfile"; then
18649 # The compiler can only warn and ignore the option if not recognized
18650 # So say no if there are warnings other than the usual output.
18651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18654 lt_prog_compiler_pic_works_CXX=yes
18655 fi
18656 fi
18657 $rm conftest*
18658
18659fi
18660{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18661echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18662
18663if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18664 case $lt_prog_compiler_pic_CXX in
18665 "" | " "*) ;;
18666 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18667 esac
18668else
18669 lt_prog_compiler_pic_CXX=
18670 lt_prog_compiler_can_build_shared_CXX=no
18671fi
18672
18673fi
18674case $host_os in
18675 # For platforms which do not support PIC, -DPIC is meaningless:
18676 *djgpp*)
18677 lt_prog_compiler_pic_CXX=
18678 ;;
18679 *)
18680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18681 ;;
18682esac
18683
18684#
18685# Check to make sure the static flag actually works.
18686#
18687wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18688{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18689echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18690if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18692else
18693 lt_prog_compiler_static_works_CXX=no
18694 save_LDFLAGS="$LDFLAGS"
18695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18696 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18698 # The linker can only warn and ignore the option if not recognized
18699 # So say no if there are warnings
18700 if test -s conftest.err; then
18701 # Append any errors to the config.log.
18702 cat conftest.err 1>&5
18703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18705 if diff conftest.exp conftest.er2 >/dev/null; then
18706 lt_prog_compiler_static_works_CXX=yes
18707 fi
18708 else
18709 lt_prog_compiler_static_works_CXX=yes
18710 fi
18711 fi
18712 $rm conftest*
18713 LDFLAGS="$save_LDFLAGS"
18714
18715fi
18716{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18717echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18718
18719if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18720 :
18721else
18722 lt_prog_compiler_static_CXX=
18723fi
18724
18725
18726{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18727echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18728if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 lt_cv_prog_compiler_c_o_CXX=no
18732 $rm -r conftest 2>/dev/null
18733 mkdir conftest
18734 cd conftest
18735 mkdir out
18736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18737
18738 lt_compiler_flag="-o out/conftest2.$ac_objext"
18739 # Insert the option either (1) after the last *FLAGS variable, or
18740 # (2) before a word containing "conftest.", or (3) at the end.
18741 # Note that $ac_compile itself does not contain backslashes and begins
18742 # with a dollar sign (not a hyphen), so the echo should work correctly.
18743 lt_compile=`echo "$ac_compile" | $SED \
18744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18746 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000018747 (eval echo "\"\$as_me:18747: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018748 (eval "$lt_compile" 2>out/conftest.err)
18749 ac_status=$?
18750 cat out/conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000018751 echo "$as_me:18751: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18753 then
18754 # The compiler can only warn and ignore the option if not recognized
18755 # So say no if there are warnings
18756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18759 lt_cv_prog_compiler_c_o_CXX=yes
18760 fi
18761 fi
18762 chmod u+w . 2>&5
18763 $rm conftest*
18764 # SGI C++ compiler will create directory out/ii_files/ for
18765 # template instantiation
18766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18767 $rm out/* && rmdir out
18768 cd ..
18769 rmdir conftest
18770 $rm conftest*
18771
18772fi
18773{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18774echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18775
18776
18777hard_links="nottested"
18778if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18779 # do not overwrite the value of need_locks provided by the user
18780 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18781echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18782 hard_links=yes
18783 $rm conftest*
18784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18785 touch conftest.a
18786 ln conftest.a conftest.b 2>&5 || hard_links=no
18787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18788 { echo "$as_me:$LINENO: result: $hard_links" >&5
18789echo "${ECHO_T}$hard_links" >&6; }
18790 if test "$hard_links" = no; then
18791 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18792echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18793 need_locks=warn
18794 fi
18795else
18796 need_locks=no
18797fi
18798
18799{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18800echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18801
18802 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18803 case $host_os in
18804 aix4* | aix5*)
18805 # If we're using GNU nm, then we don't want the "-C" option.
18806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18808 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'
18809 else
18810 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'
18811 fi
18812 ;;
18813 pw32*)
18814 export_symbols_cmds_CXX="$ltdll_cmds"
18815 ;;
18816 cygwin* | mingw*)
18817 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'
18818 ;;
18819 *)
18820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18821 ;;
18822 esac
18823
18824{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18825echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18826test "$ld_shlibs_CXX" = no && can_build_shared=no
18827
18828#
18829# Do we need to explicitly link libc?
18830#
18831case "x$archive_cmds_need_lc_CXX" in
18832x|xyes)
18833 # Assume -lc should be added
18834 archive_cmds_need_lc_CXX=yes
18835
18836 if test "$enable_shared" = yes && test "$GCC" = yes; then
18837 case $archive_cmds_CXX in
18838 *'~'*)
18839 # FIXME: we may have to deal with multi-command sequences.
18840 ;;
18841 '$CC '*)
18842 # Test whether the compiler implicitly links with -lc since on some
18843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18844 # to ld, don't add -lc before -lgcc.
18845 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18846echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18847 $rm conftest*
18848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18849
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } 2>conftest.err; then
18855 soname=conftest
18856 lib=conftest
18857 libobjs=conftest.$ac_objext
18858 deplibs=
18859 wl=$lt_prog_compiler_wl_CXX
18860 pic_flag=$lt_prog_compiler_pic_CXX
18861 compiler_flags=-v
18862 linker_flags=-v
18863 verstring=
18864 output_objdir=.
18865 libname=conftest
18866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18867 allow_undefined_flag_CXX=
18868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18869 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }
18873 then
18874 archive_cmds_need_lc_CXX=no
18875 else
18876 archive_cmds_need_lc_CXX=yes
18877 fi
18878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18879 else
18880 cat conftest.err 1>&5
18881 fi
18882 $rm conftest*
18883 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18884echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18885 ;;
18886 esac
18887 fi
18888 ;;
18889esac
18890
18891{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18892echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18893library_names_spec=
18894libname_spec='lib$name'
18895soname_spec=
18896shrext_cmds=".so"
18897postinstall_cmds=
18898postuninstall_cmds=
18899finish_cmds=
18900finish_eval=
18901shlibpath_var=
18902shlibpath_overrides_runpath=unknown
18903version_type=none
18904dynamic_linker="$host_os ld.so"
18905sys_lib_dlsearch_path_spec="/lib /usr/lib"
18906if test "$GCC" = yes; then
18907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18909 # if the path contains ";" then we assume it to be the separator
18910 # otherwise default to the standard path separator (i.e. ":") - it is
18911 # assumed that no part of a normal pathname contains ";" but that should
18912 # okay in the real world where ";" in dirpaths is itself problematic.
18913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18914 else
18915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18916 fi
18917else
18918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18919fi
18920need_lib_prefix=unknown
18921hardcode_into_libs=no
18922
18923# when you set need_version to no, make sure it does not cause -set_version
18924# flags to be left without arguments
18925need_version=unknown
18926
18927case $host_os in
18928aix3*)
18929 version_type=linux
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18931 shlibpath_var=LIBPATH
18932
18933 # AIX 3 has no versioning support, so we append a major version to the name.
18934 soname_spec='${libname}${release}${shared_ext}$major'
18935 ;;
18936
18937aix4* | aix5*)
18938 version_type=linux
18939 need_lib_prefix=no
18940 need_version=no
18941 hardcode_into_libs=yes
18942 if test "$host_cpu" = ia64; then
18943 # AIX 5 supports IA64
18944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18945 shlibpath_var=LD_LIBRARY_PATH
18946 else
18947 # With GCC up to 2.95.x, collect2 would create an import file
18948 # for dependence libraries. The import file would start with
18949 # the line `#! .'. This would cause the generated library to
18950 # depend on `.', always an invalid library. This was fixed in
18951 # development snapshots of GCC prior to 3.0.
18952 case $host_os in
18953 aix4 | aix4.[01] | aix4.[01].*)
18954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18955 echo ' yes '
18956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18957 :
18958 else
18959 can_build_shared=no
18960 fi
18961 ;;
18962 esac
18963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18964 # soname into executable. Probably we can add versioning support to
18965 # collect2, so additional links can be useful in future.
18966 if test "$aix_use_runtimelinking" = yes; then
18967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18968 # instead of lib<name>.a to let people know that these are not
18969 # typical AIX shared libraries.
18970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971 else
18972 # We preserve .a as extension for shared libraries through AIX4.2
18973 # and later when we are not doing run time linking.
18974 library_names_spec='${libname}${release}.a $libname.a'
18975 soname_spec='${libname}${release}${shared_ext}$major'
18976 fi
18977 shlibpath_var=LIBPATH
18978 fi
18979 ;;
18980
18981amigaos*)
18982 library_names_spec='$libname.ixlibrary $libname.a'
18983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18984 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'
18985 ;;
18986
18987beos*)
18988 library_names_spec='${libname}${shared_ext}'
18989 dynamic_linker="$host_os ld.so"
18990 shlibpath_var=LIBRARY_PATH
18991 ;;
18992
18993bsdi[45]*)
18994 version_type=linux
18995 need_version=no
18996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18997 soname_spec='${libname}${release}${shared_ext}$major'
18998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18999 shlibpath_var=LD_LIBRARY_PATH
19000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19002 # the default ld.so.conf also contains /usr/contrib/lib and
19003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19004 # libtool to hard-code these into programs
19005 ;;
19006
19007cygwin* | mingw* | pw32*)
19008 version_type=windows
19009 shrext_cmds=".dll"
19010 need_version=no
19011 need_lib_prefix=no
19012
19013 case $GCC,$host_os in
19014 yes,cygwin* | yes,mingw* | yes,pw32*)
19015 library_names_spec='$libname.dll.a'
19016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19017 postinstall_cmds='base_file=`basename \${file}`~
19018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19019 dldir=$destdir/`dirname \$dlpath`~
19020 test -d \$dldir || mkdir -p \$dldir~
19021 $install_prog $dir/$dlname \$dldir/$dlname~
19022 chmod a+x \$dldir/$dlname'
19023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19024 dlpath=$dir/\$dldll~
19025 $rm \$dlpath'
19026 shlibpath_overrides_runpath=yes
19027
19028 case $host_os in
19029 cygwin*)
19030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19033 ;;
19034 mingw*)
19035 # MinGW DLLs use traditional 'lib' prefix
19036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19039 # It is most probably a Windows format PATH printed by
19040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19041 # path with ; separators, and with drive letters. We can handle the
19042 # drive letters (cygwin fileutils understands them), so leave them,
19043 # especially as we might pass files found there to a mingw objdump,
19044 # which wouldn't understand a cygwinified path. Ahh.
19045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19046 else
19047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19048 fi
19049 ;;
19050 pw32*)
19051 # pw32 DLLs use 'pw' prefix rather than 'lib'
19052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19053 ;;
19054 esac
19055 ;;
19056
19057 *)
19058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19059 ;;
19060 esac
19061 dynamic_linker='Win32 ld.exe'
19062 # FIXME: first we should search . and the directory the executable is in
19063 shlibpath_var=PATH
19064 ;;
19065
19066darwin* | rhapsody*)
19067 dynamic_linker="$host_os dyld"
19068 version_type=darwin
19069 need_lib_prefix=no
19070 need_version=no
19071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19072 soname_spec='${libname}${release}${major}$shared_ext'
19073 shlibpath_overrides_runpath=yes
19074 shlibpath_var=DYLD_LIBRARY_PATH
19075 shrext_cmds='.dylib'
19076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19077 if test "$GCC" = yes; then
19078 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"`
19079 else
19080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19081 fi
19082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19083 ;;
19084
19085dgux*)
19086 version_type=linux
19087 need_lib_prefix=no
19088 need_version=no
19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 shlibpath_var=LD_LIBRARY_PATH
19092 ;;
19093
19094freebsd1*)
19095 dynamic_linker=no
19096 ;;
19097
19098kfreebsd*-gnu)
19099 version_type=linux
19100 need_lib_prefix=no
19101 need_version=no
19102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19103 soname_spec='${libname}${release}${shared_ext}$major'
19104 shlibpath_var=LD_LIBRARY_PATH
19105 shlibpath_overrides_runpath=no
19106 hardcode_into_libs=yes
19107 dynamic_linker='GNU ld.so'
19108 ;;
19109
19110freebsd* | dragonfly*)
19111 # DragonFly does not have aout. When/if they implement a new
19112 # versioning mechanism, adjust this.
19113 if test -x /usr/bin/objformat; then
19114 objformat=`/usr/bin/objformat`
19115 else
19116 case $host_os in
19117 freebsd[123]*) objformat=aout ;;
19118 *) objformat=elf ;;
19119 esac
19120 fi
19121 version_type=freebsd-$objformat
19122 case $version_type in
19123 freebsd-elf*)
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19125 need_version=no
19126 need_lib_prefix=no
19127 ;;
19128 freebsd-*)
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19130 need_version=yes
19131 ;;
19132 esac
19133 shlibpath_var=LD_LIBRARY_PATH
19134 case $host_os in
19135 freebsd2*)
19136 shlibpath_overrides_runpath=yes
19137 ;;
19138 freebsd3.[01]* | freebsdelf3.[01]*)
19139 shlibpath_overrides_runpath=yes
19140 hardcode_into_libs=yes
19141 ;;
19142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19144 shlibpath_overrides_runpath=no
19145 hardcode_into_libs=yes
19146 ;;
19147 freebsd*) # from 4.6 on
19148 shlibpath_overrides_runpath=yes
19149 hardcode_into_libs=yes
19150 ;;
19151 esac
19152 ;;
19153
19154gnu*)
19155 version_type=linux
19156 need_lib_prefix=no
19157 need_version=no
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19159 soname_spec='${libname}${release}${shared_ext}$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 hardcode_into_libs=yes
19162 ;;
19163
19164hpux9* | hpux10* | hpux11*)
19165 # Give a soname corresponding to the major version so that dld.sl refuses to
19166 # link against other versions.
19167 version_type=sunos
19168 need_lib_prefix=no
19169 need_version=no
19170 case $host_cpu in
19171 ia64*)
19172 shrext_cmds='.so'
19173 hardcode_into_libs=yes
19174 dynamic_linker="$host_os dld.so"
19175 shlibpath_var=LD_LIBRARY_PATH
19176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19178 soname_spec='${libname}${release}${shared_ext}$major'
19179 if test "X$HPUX_IA64_MODE" = X32; then
19180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19181 else
19182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19183 fi
19184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19185 ;;
19186 hppa*64*)
19187 shrext_cmds='.sl'
19188 hardcode_into_libs=yes
19189 dynamic_linker="$host_os dld.sl"
19190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19196 ;;
19197 *)
19198 shrext_cmds='.sl'
19199 dynamic_linker="$host_os dld.sl"
19200 shlibpath_var=SHLIB_PATH
19201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203 soname_spec='${libname}${release}${shared_ext}$major'
19204 ;;
19205 esac
19206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19207 postinstall_cmds='chmod 555 $lib'
19208 ;;
19209
19210interix3*)
19211 version_type=linux
19212 need_lib_prefix=no
19213 need_version=no
19214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19215 soname_spec='${libname}${release}${shared_ext}$major'
19216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19217 shlibpath_var=LD_LIBRARY_PATH
19218 shlibpath_overrides_runpath=no
19219 hardcode_into_libs=yes
19220 ;;
19221
19222irix5* | irix6* | nonstopux*)
19223 case $host_os in
19224 nonstopux*) version_type=nonstopux ;;
19225 *)
19226 if test "$lt_cv_prog_gnu_ld" = yes; then
19227 version_type=linux
19228 else
19229 version_type=irix
19230 fi ;;
19231 esac
19232 need_lib_prefix=no
19233 need_version=no
19234 soname_spec='${libname}${release}${shared_ext}$major'
19235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19236 case $host_os in
19237 irix5* | nonstopux*)
19238 libsuff= shlibsuff=
19239 ;;
19240 *)
19241 case $LD in # libtool.m4 will add one of these switches to LD
19242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19243 libsuff= shlibsuff= libmagic=32-bit;;
19244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19245 libsuff=32 shlibsuff=N32 libmagic=N32;;
19246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19248 *) libsuff= shlibsuff= libmagic=never-match;;
19249 esac
19250 ;;
19251 esac
19252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19253 shlibpath_overrides_runpath=no
19254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19256 hardcode_into_libs=yes
19257 ;;
19258
19259# No shared lib support for Linux oldld, aout, or coff.
19260linux*oldld* | linux*aout* | linux*coff*)
19261 dynamic_linker=no
19262 ;;
19263
19264# This must be Linux ELF.
19265linux*)
19266 version_type=linux
19267 need_lib_prefix=no
19268 need_version=no
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270 soname_spec='${libname}${release}${shared_ext}$major'
19271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19272 shlibpath_var=LD_LIBRARY_PATH
19273 shlibpath_overrides_runpath=no
19274 # This implies no fast_install, which is unacceptable.
19275 # Some rework will be needed to allow for fast_install
19276 # before this can be enabled.
19277 hardcode_into_libs=yes
19278
19279 # Append ld.so.conf contents to the search path
19280 if test -f /etc/ld.so.conf; then
19281 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' ' '`
19282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19283 fi
19284
19285 # We used to test for /lib/ld.so.1 and disable shared libraries on
19286 # powerpc, because MkLinux only supported shared libraries with the
19287 # GNU dynamic linker. Since this was broken with cross compilers,
19288 # most powerpc-linux boxes support dynamic linking these days and
19289 # people can always --disable-shared, the test was removed, and we
19290 # assume the GNU/Linux dynamic linker is in use.
19291 dynamic_linker='GNU/Linux ld.so'
19292 ;;
19293
19294knetbsd*-gnu)
19295 version_type=linux
19296 need_lib_prefix=no
19297 need_version=no
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=no
19302 hardcode_into_libs=yes
19303 dynamic_linker='GNU ld.so'
19304 ;;
19305
19306netbsd*)
19307 version_type=sunos
19308 need_lib_prefix=no
19309 need_version=no
19310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19313 dynamic_linker='NetBSD (a.out) ld.so'
19314 else
19315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19316 soname_spec='${libname}${release}${shared_ext}$major'
19317 dynamic_linker='NetBSD ld.elf_so'
19318 fi
19319 shlibpath_var=LD_LIBRARY_PATH
19320 shlibpath_overrides_runpath=yes
19321 hardcode_into_libs=yes
19322 ;;
19323
19324newsos6)
19325 version_type=linux
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 ;;
19330
19331nto-qnx*)
19332 version_type=linux
19333 need_lib_prefix=no
19334 need_version=no
19335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19336 soname_spec='${libname}${release}${shared_ext}$major'
19337 shlibpath_var=LD_LIBRARY_PATH
19338 shlibpath_overrides_runpath=yes
19339 ;;
19340
19341openbsd*)
19342 version_type=sunos
19343 sys_lib_dlsearch_path_spec="/usr/lib"
19344 need_lib_prefix=no
19345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19346 case $host_os in
19347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19348 *) need_version=no ;;
19349 esac
19350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19352 shlibpath_var=LD_LIBRARY_PATH
19353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19354 case $host_os in
19355 openbsd2.[89] | openbsd2.[89].*)
19356 shlibpath_overrides_runpath=no
19357 ;;
19358 *)
19359 shlibpath_overrides_runpath=yes
19360 ;;
19361 esac
19362 else
19363 shlibpath_overrides_runpath=yes
19364 fi
19365 ;;
19366
19367os2*)
19368 libname_spec='$name'
19369 shrext_cmds=".dll"
19370 need_lib_prefix=no
19371 library_names_spec='$libname${shared_ext} $libname.a'
19372 dynamic_linker='OS/2 ld.exe'
19373 shlibpath_var=LIBPATH
19374 ;;
19375
19376osf3* | osf4* | osf5*)
19377 version_type=osf
19378 need_lib_prefix=no
19379 need_version=no
19380 soname_spec='${libname}${release}${shared_ext}$major'
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19385 ;;
19386
19387solaris*)
19388 version_type=linux
19389 need_lib_prefix=no
19390 need_version=no
19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392 soname_spec='${libname}${release}${shared_ext}$major'
19393 shlibpath_var=LD_LIBRARY_PATH
19394 shlibpath_overrides_runpath=yes
19395 hardcode_into_libs=yes
19396 # ldd complains unless libraries are executable
19397 postinstall_cmds='chmod +x $lib'
19398 ;;
19399
19400sunos4*)
19401 version_type=sunos
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 shlibpath_overrides_runpath=yes
19406 if test "$with_gnu_ld" = yes; then
19407 need_lib_prefix=no
19408 fi
19409 need_version=yes
19410 ;;
19411
19412sysv4 | sysv4.3*)
19413 version_type=linux
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415 soname_spec='${libname}${release}${shared_ext}$major'
19416 shlibpath_var=LD_LIBRARY_PATH
19417 case $host_vendor in
19418 sni)
19419 shlibpath_overrides_runpath=no
19420 need_lib_prefix=no
19421 export_dynamic_flag_spec='${wl}-Blargedynsym'
19422 runpath_var=LD_RUN_PATH
19423 ;;
19424 siemens)
19425 need_lib_prefix=no
19426 ;;
19427 motorola)
19428 need_lib_prefix=no
19429 need_version=no
19430 shlibpath_overrides_runpath=no
19431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19432 ;;
19433 esac
19434 ;;
19435
19436sysv4*MP*)
19437 if test -d /usr/nec ;then
19438 version_type=linux
19439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19440 soname_spec='$libname${shared_ext}.$major'
19441 shlibpath_var=LD_LIBRARY_PATH
19442 fi
19443 ;;
19444
19445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19446 version_type=freebsd-elf
19447 need_lib_prefix=no
19448 need_version=no
19449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19450 soname_spec='${libname}${release}${shared_ext}$major'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 hardcode_into_libs=yes
19453 if test "$with_gnu_ld" = yes; then
19454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19455 shlibpath_overrides_runpath=no
19456 else
19457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19458 shlibpath_overrides_runpath=yes
19459 case $host_os in
19460 sco3.2v5*)
19461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19462 ;;
19463 esac
19464 fi
19465 sys_lib_dlsearch_path_spec='/usr/lib'
19466 ;;
19467
19468uts4*)
19469 version_type=linux
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 ;;
19474
19475*)
19476 dynamic_linker=no
19477 ;;
19478esac
19479{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19480echo "${ECHO_T}$dynamic_linker" >&6; }
19481test "$dynamic_linker" = no && can_build_shared=no
19482
19483variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19484if test "$GCC" = yes; then
19485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19486fi
19487
19488{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19489echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19490hardcode_action_CXX=
19491if test -n "$hardcode_libdir_flag_spec_CXX" || \
19492 test -n "$runpath_var_CXX" || \
19493 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19494
19495 # We can hardcode non-existant directories.
19496 if test "$hardcode_direct_CXX" != no &&
19497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19498 # have to relink, otherwise we might link with an installed library
19499 # when we should be linking with a yet-to-be-installed one
19500 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19501 test "$hardcode_minus_L_CXX" != no; then
19502 # Linking always hardcodes the temporary library directory.
19503 hardcode_action_CXX=relink
19504 else
19505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19506 hardcode_action_CXX=immediate
19507 fi
19508else
19509 # We cannot hardcode anything, or else we can only hardcode existing
19510 # directories.
19511 hardcode_action_CXX=unsupported
19512fi
19513{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19514echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19515
19516if test "$hardcode_action_CXX" = relink; then
19517 # Fast installation is not supported
19518 enable_fast_install=no
19519elif test "$shlibpath_overrides_runpath" = yes ||
19520 test "$enable_shared" = no; then
19521 # Fast installation is not necessary
19522 enable_fast_install=needless
19523fi
19524
19525
19526# The else clause should only fire when bootstrapping the
19527# libtool distribution, otherwise you forgot to ship ltmain.sh
19528# with your package, and you will get complaints that there are
19529# no rules to generate ltmain.sh.
19530if test -f "$ltmain"; then
19531 # See if we are running on zsh, and set the options which allow our commands through
19532 # without removal of \ escapes.
19533 if test -n "${ZSH_VERSION+set}" ; then
19534 setopt NO_GLOB_SUBST
19535 fi
19536 # Now quote all the things that may contain metacharacters while being
19537 # careful not to overquote the AC_SUBSTed values. We take copies of the
19538 # variables and quote the copies for generation of the libtool script.
19539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19540 SED SHELL STRIP \
19541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19543 deplibs_check_method reload_flag reload_cmds need_locks \
19544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19545 lt_cv_sys_global_symbol_to_c_name_address \
19546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19547 old_postinstall_cmds old_postuninstall_cmds \
19548 compiler_CXX \
19549 CC_CXX \
19550 LD_CXX \
19551 lt_prog_compiler_wl_CXX \
19552 lt_prog_compiler_pic_CXX \
19553 lt_prog_compiler_static_CXX \
19554 lt_prog_compiler_no_builtin_flag_CXX \
19555 export_dynamic_flag_spec_CXX \
19556 thread_safe_flag_spec_CXX \
19557 whole_archive_flag_spec_CXX \
19558 enable_shared_with_static_runtimes_CXX \
19559 old_archive_cmds_CXX \
19560 old_archive_from_new_cmds_CXX \
19561 predep_objects_CXX \
19562 postdep_objects_CXX \
19563 predeps_CXX \
19564 postdeps_CXX \
19565 compiler_lib_search_path_CXX \
19566 archive_cmds_CXX \
19567 archive_expsym_cmds_CXX \
19568 postinstall_cmds_CXX \
19569 postuninstall_cmds_CXX \
19570 old_archive_from_expsyms_cmds_CXX \
19571 allow_undefined_flag_CXX \
19572 no_undefined_flag_CXX \
19573 export_symbols_cmds_CXX \
19574 hardcode_libdir_flag_spec_CXX \
19575 hardcode_libdir_flag_spec_ld_CXX \
19576 hardcode_libdir_separator_CXX \
19577 hardcode_automatic_CXX \
19578 module_cmds_CXX \
19579 module_expsym_cmds_CXX \
19580 lt_cv_prog_compiler_c_o_CXX \
19581 exclude_expsyms_CXX \
19582 include_expsyms_CXX; do
19583
19584 case $var in
19585 old_archive_cmds_CXX | \
19586 old_archive_from_new_cmds_CXX | \
19587 archive_cmds_CXX | \
19588 archive_expsym_cmds_CXX | \
19589 module_cmds_CXX | \
19590 module_expsym_cmds_CXX | \
19591 old_archive_from_expsyms_cmds_CXX | \
19592 export_symbols_cmds_CXX | \
19593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19594 postinstall_cmds | postuninstall_cmds | \
19595 old_postinstall_cmds | old_postuninstall_cmds | \
19596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19597 # Double-quote double-evaled strings.
19598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19599 ;;
19600 *)
19601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19602 ;;
19603 esac
19604 done
19605
19606 case $lt_echo in
19607 *'\$0 --fallback-echo"')
19608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19609 ;;
19610 esac
19611
19612cfgfile="$ofile"
19613
19614 cat <<__EOF__ >> "$cfgfile"
19615# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19616
19617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19618
19619# Shell to use when invoking shell scripts.
19620SHELL=$lt_SHELL
19621
19622# Whether or not to build shared libraries.
19623build_libtool_libs=$enable_shared
19624
19625# Whether or not to build static libraries.
19626build_old_libs=$enable_static
19627
19628# Whether or not to add -lc for building shared libraries.
19629build_libtool_need_lc=$archive_cmds_need_lc_CXX
19630
19631# Whether or not to disallow shared libs when runtime libs are static
19632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19633
19634# Whether or not to optimize for fast installation.
19635fast_install=$enable_fast_install
19636
19637# The host system.
19638host_alias=$host_alias
19639host=$host
19640host_os=$host_os
19641
19642# The build system.
19643build_alias=$build_alias
19644build=$build
19645build_os=$build_os
19646
19647# An echo program that does not interpret backslashes.
19648echo=$lt_echo
19649
19650# The archiver.
19651AR=$lt_AR
19652AR_FLAGS=$lt_AR_FLAGS
19653
19654# A C compiler.
19655LTCC=$lt_LTCC
19656
19657# LTCC compiler flags.
19658LTCFLAGS=$lt_LTCFLAGS
19659
19660# A language-specific compiler.
19661CC=$lt_compiler_CXX
19662
19663# Is the compiler the GNU C compiler?
19664with_gcc=$GCC_CXX
19665
19666# An ERE matcher.
19667EGREP=$lt_EGREP
19668
19669# The linker used to build libraries.
19670LD=$lt_LD_CXX
19671
19672# Whether we need hard or soft links.
19673LN_S=$lt_LN_S
19674
19675# A BSD-compatible nm program.
19676NM=$lt_NM
19677
19678# A symbol stripping program
19679STRIP=$lt_STRIP
19680
19681# Used to examine libraries when file_magic_cmd begins "file"
19682MAGIC_CMD=$MAGIC_CMD
19683
19684# Used on cygwin: DLL creation program.
19685DLLTOOL="$DLLTOOL"
19686
19687# Used on cygwin: object dumper.
19688OBJDUMP="$OBJDUMP"
19689
19690# Used on cygwin: assembler.
19691AS="$AS"
19692
19693# The name of the directory that contains temporary libtool files.
19694objdir=$objdir
19695
19696# How to create reloadable object files.
19697reload_flag=$lt_reload_flag
19698reload_cmds=$lt_reload_cmds
19699
19700# How to pass a linker flag through the compiler.
19701wl=$lt_lt_prog_compiler_wl_CXX
19702
19703# Object file suffix (normally "o").
19704objext="$ac_objext"
19705
19706# Old archive suffix (normally "a").
19707libext="$libext"
19708
19709# Shared library suffix (normally ".so").
19710shrext_cmds='$shrext_cmds'
19711
19712# Executable file suffix (normally "").
19713exeext="$exeext"
19714
19715# Additional compiler flags for building library objects.
19716pic_flag=$lt_lt_prog_compiler_pic_CXX
19717pic_mode=$pic_mode
19718
19719# What is the maximum length of a command?
19720max_cmd_len=$lt_cv_sys_max_cmd_len
19721
19722# Does compiler simultaneously support -c and -o options?
19723compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19724
19725# Must we lock files when doing compilation?
19726need_locks=$lt_need_locks
19727
19728# Do we need the lib prefix for modules?
19729need_lib_prefix=$need_lib_prefix
19730
19731# Do we need a version for libraries?
19732need_version=$need_version
19733
19734# Whether dlopen is supported.
19735dlopen_support=$enable_dlopen
19736
19737# Whether dlopen of programs is supported.
19738dlopen_self=$enable_dlopen_self
19739
19740# Whether dlopen of statically linked programs is supported.
19741dlopen_self_static=$enable_dlopen_self_static
19742
19743# Compiler flag to prevent dynamic linking.
19744link_static_flag=$lt_lt_prog_compiler_static_CXX
19745
19746# Compiler flag to turn off builtin functions.
19747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19748
19749# Compiler flag to allow reflexive dlopens.
19750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19751
19752# Compiler flag to generate shared objects directly from archives.
19753whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19754
19755# Compiler flag to generate thread-safe objects.
19756thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19757
19758# Library versioning type.
19759version_type=$version_type
19760
19761# Format of library name prefix.
19762libname_spec=$lt_libname_spec
19763
19764# List of archive names. First name is the real one, the rest are links.
19765# The last name is the one that the linker finds with -lNAME.
19766library_names_spec=$lt_library_names_spec
19767
19768# The coded name of the library, if different from the real name.
19769soname_spec=$lt_soname_spec
19770
19771# Commands used to build and install an old-style archive.
19772RANLIB=$lt_RANLIB
19773old_archive_cmds=$lt_old_archive_cmds_CXX
19774old_postinstall_cmds=$lt_old_postinstall_cmds
19775old_postuninstall_cmds=$lt_old_postuninstall_cmds
19776
19777# Create an old-style archive from a shared archive.
19778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19779
19780# Create a temporary old-style archive to link instead of a shared archive.
19781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19782
19783# Commands used to build and install a shared archive.
19784archive_cmds=$lt_archive_cmds_CXX
19785archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19786postinstall_cmds=$lt_postinstall_cmds
19787postuninstall_cmds=$lt_postuninstall_cmds
19788
19789# Commands used to build a loadable module (assumed same as above if empty)
19790module_cmds=$lt_module_cmds_CXX
19791module_expsym_cmds=$lt_module_expsym_cmds_CXX
19792
19793# Commands to strip libraries.
19794old_striplib=$lt_old_striplib
19795striplib=$lt_striplib
19796
19797# Dependencies to place before the objects being linked to create a
19798# shared library.
19799predep_objects=$lt_predep_objects_CXX
19800
19801# Dependencies to place after the objects being linked to create a
19802# shared library.
19803postdep_objects=$lt_postdep_objects_CXX
19804
19805# Dependencies to place before the objects being linked to create a
19806# shared library.
19807predeps=$lt_predeps_CXX
19808
19809# Dependencies to place after the objects being linked to create a
19810# shared library.
19811postdeps=$lt_postdeps_CXX
19812
19813# The library search path used internally by the compiler when linking
19814# a shared library.
19815compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19816
19817# Method to check whether dependent libraries are shared objects.
19818deplibs_check_method=$lt_deplibs_check_method
19819
19820# Command to use when deplibs_check_method == file_magic.
19821file_magic_cmd=$lt_file_magic_cmd
19822
19823# Flag that allows shared libraries with undefined symbols to be built.
19824allow_undefined_flag=$lt_allow_undefined_flag_CXX
19825
19826# Flag that forces no undefined symbols.
19827no_undefined_flag=$lt_no_undefined_flag_CXX
19828
19829# Commands used to finish a libtool library installation in a directory.
19830finish_cmds=$lt_finish_cmds
19831
19832# Same as above, but a single script fragment to be evaled but not shown.
19833finish_eval=$lt_finish_eval
19834
19835# Take the output of nm and produce a listing of raw symbols and C names.
19836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19837
19838# Transform the output of nm in a proper C declaration
19839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19840
19841# Transform the output of nm in a C name address pair
19842global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19843
19844# This is the shared library runtime path variable.
19845runpath_var=$runpath_var
19846
19847# This is the shared library path variable.
19848shlibpath_var=$shlibpath_var
19849
19850# Is shlibpath searched before the hard-coded library search path?
19851shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19852
19853# How to hardcode a shared library path into an executable.
19854hardcode_action=$hardcode_action_CXX
19855
19856# Whether we should hardcode library paths into libraries.
19857hardcode_into_libs=$hardcode_into_libs
19858
19859# Flag to hardcode \$libdir into a binary during linking.
19860# This must work even if \$libdir does not exist.
19861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19862
19863# If ld is used when linking, flag to hardcode \$libdir into
19864# a binary during linking. This must work even if \$libdir does
19865# not exist.
19866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19867
19868# Whether we need a single -rpath flag with a separated argument.
19869hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19870
19871# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19872# resulting binary.
19873hardcode_direct=$hardcode_direct_CXX
19874
19875# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19876# resulting binary.
19877hardcode_minus_L=$hardcode_minus_L_CXX
19878
19879# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19880# the resulting binary.
19881hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19882
19883# Set to yes if building a shared library automatically hardcodes DIR into the library
19884# and all subsequent libraries and executables linked against it.
19885hardcode_automatic=$hardcode_automatic_CXX
19886
19887# Variables whose values should be saved in libtool wrapper scripts and
19888# restored at relink time.
19889variables_saved_for_relink="$variables_saved_for_relink"
19890
19891# Whether libtool must link a program against all its dependency libraries.
19892link_all_deplibs=$link_all_deplibs_CXX
19893
19894# Compile-time system search path for libraries
19895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19896
19897# Run-time system search path for libraries
19898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19899
19900# Fix the shell variable \$srcfile for the compiler.
19901fix_srcfile_path="$fix_srcfile_path_CXX"
19902
19903# Set to yes if exported symbols are required.
19904always_export_symbols=$always_export_symbols_CXX
19905
19906# The commands to list exported symbols.
19907export_symbols_cmds=$lt_export_symbols_cmds_CXX
19908
19909# The commands to extract the exported symbol list from a shared archive.
19910extract_expsyms_cmds=$lt_extract_expsyms_cmds
19911
19912# Symbols that should not be listed in the preloaded symbols.
19913exclude_expsyms=$lt_exclude_expsyms_CXX
19914
19915# Symbols that must always be exported.
19916include_expsyms=$lt_include_expsyms_CXX
19917
19918# ### END LIBTOOL TAG CONFIG: $tagname
19919
19920__EOF__
19921
19922
19923else
19924 # If there is no Makefile yet, we rely on a make rule to execute
19925 # `config.status --recheck' to rerun these tests and create the
19926 # libtool script then.
19927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19928 if test -f "$ltmain_in"; then
19929 test -f Makefile && make "$ltmain"
19930 fi
19931fi
19932
19933
19934ac_ext=c
19935ac_cpp='$CPP $CPPFLAGS'
19936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938ac_compiler_gnu=$ac_cv_c_compiler_gnu
19939
19940CC=$lt_save_CC
19941LDCXX=$LD
19942LD=$lt_save_LD
19943GCC=$lt_save_GCC
19944with_gnu_ldcxx=$with_gnu_ld
19945with_gnu_ld=$lt_save_with_gnu_ld
19946lt_cv_path_LDCXX=$lt_cv_path_LD
19947lt_cv_path_LD=$lt_save_path_LD
19948lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19950
19951 else
19952 tagname=""
19953 fi
19954 ;;
19955
19956 F77)
19957 if test -n "$F77" && test "X$F77" != "Xno"; then
19958
19959ac_ext=f
19960ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19961ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19963
19964
19965archive_cmds_need_lc_F77=no
19966allow_undefined_flag_F77=
19967always_export_symbols_F77=no
19968archive_expsym_cmds_F77=
19969export_dynamic_flag_spec_F77=
19970hardcode_direct_F77=no
19971hardcode_libdir_flag_spec_F77=
19972hardcode_libdir_flag_spec_ld_F77=
19973hardcode_libdir_separator_F77=
19974hardcode_minus_L_F77=no
19975hardcode_automatic_F77=no
19976module_cmds_F77=
19977module_expsym_cmds_F77=
19978link_all_deplibs_F77=unknown
19979old_archive_cmds_F77=$old_archive_cmds
19980no_undefined_flag_F77=
19981whole_archive_flag_spec_F77=
19982enable_shared_with_static_runtimes_F77=no
19983
19984# Source file extension for f77 test sources.
19985ac_ext=f
19986
19987# Object file extension for compiled f77 test sources.
19988objext=o
19989objext_F77=$objext
19990
19991# Code to be used in simple compile tests
19992lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19993
19994# Code to be used in simple link tests
19995lt_simple_link_test_code=" program t\n end\n"
19996
19997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19998
19999# If no C compiler was specified, use CC.
20000LTCC=${LTCC-"$CC"}
20001
20002# If no C compiler flags were specified, use CFLAGS.
20003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20004
20005# Allow CC to be a program name with arguments.
20006compiler=$CC
20007
20008
20009# save warnings/boilerplate of simple test code
20010ac_outfile=conftest.$ac_objext
20011printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20013_lt_compiler_boilerplate=`cat conftest.err`
20014$rm conftest*
20015
20016ac_outfile=conftest.$ac_objext
20017printf "$lt_simple_link_test_code" >conftest.$ac_ext
20018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20019_lt_linker_boilerplate=`cat conftest.err`
20020$rm conftest*
20021
20022
20023# Allow CC to be a program name with arguments.
20024lt_save_CC="$CC"
20025CC=${F77-"f77"}
20026compiler=$CC
20027compiler_F77=$CC
20028for cc_temp in $compiler""; do
20029 case $cc_temp in
20030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20032 \-*) ;;
20033 *) break;;
20034 esac
20035done
20036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20037
20038
20039{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20040echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20041{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20042echo "${ECHO_T}$can_build_shared" >&6; }
20043
20044{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20045echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20046test "$can_build_shared" = "no" && enable_shared=no
20047
20048# On AIX, shared libraries and static libraries use the same namespace, and
20049# are all built from PIC.
20050case $host_os in
20051aix3*)
20052 test "$enable_shared" = yes && enable_static=no
20053 if test -n "$RANLIB"; then
20054 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20055 postinstall_cmds='$RANLIB $lib'
20056 fi
20057 ;;
20058aix4* | aix5*)
20059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20060 test "$enable_shared" = yes && enable_static=no
20061 fi
20062 ;;
20063esac
20064{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20065echo "${ECHO_T}$enable_shared" >&6; }
20066
20067{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20068echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20069# Make sure either enable_shared or enable_static is yes.
20070test "$enable_shared" = yes || enable_static=yes
20071{ echo "$as_me:$LINENO: result: $enable_static" >&5
20072echo "${ECHO_T}$enable_static" >&6; }
20073
20074GCC_F77="$G77"
20075LD_F77="$LD"
20076
20077lt_prog_compiler_wl_F77=
20078lt_prog_compiler_pic_F77=
20079lt_prog_compiler_static_F77=
20080
20081{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20082echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20083
20084 if test "$GCC" = yes; then
20085 lt_prog_compiler_wl_F77='-Wl,'
20086 lt_prog_compiler_static_F77='-static'
20087
20088 case $host_os in
20089 aix*)
20090 # All AIX code is PIC.
20091 if test "$host_cpu" = ia64; then
20092 # AIX 5 now supports IA64 processor
20093 lt_prog_compiler_static_F77='-Bstatic'
20094 fi
20095 ;;
20096
20097 amigaos*)
20098 # FIXME: we need at least 68020 code to build shared libraries, but
20099 # adding the `-m68020' flag to GCC prevents building anything better,
20100 # like `-m68040'.
20101 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20102 ;;
20103
20104 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20105 # PIC is the default for these OSes.
20106 ;;
20107
20108 mingw* | pw32* | os2*)
20109 # This hack is so that the source file can tell whether it is being
20110 # built for inclusion in a dll (and should export symbols for example).
20111 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20112 ;;
20113
20114 darwin* | rhapsody*)
20115 # PIC is the default on this platform
20116 # Common symbols not allowed in MH_DYLIB files
20117 lt_prog_compiler_pic_F77='-fno-common'
20118 ;;
20119
20120 interix3*)
20121 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20122 # Instead, we relocate shared libraries at runtime.
20123 ;;
20124
20125 msdosdjgpp*)
20126 # Just because we use GCC doesn't mean we suddenly get shared libraries
20127 # on systems that don't support them.
20128 lt_prog_compiler_can_build_shared_F77=no
20129 enable_shared=no
20130 ;;
20131
20132 sysv4*MP*)
20133 if test -d /usr/nec; then
20134 lt_prog_compiler_pic_F77=-Kconform_pic
20135 fi
20136 ;;
20137
20138 hpux*)
20139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20140 # not for PA HP-UX.
20141 case $host_cpu in
20142 hppa*64*|ia64*)
20143 # +Z the default
20144 ;;
20145 *)
20146 lt_prog_compiler_pic_F77='-fPIC'
20147 ;;
20148 esac
20149 ;;
20150
20151 *)
20152 lt_prog_compiler_pic_F77='-fPIC'
20153 ;;
20154 esac
20155 else
20156 # PORTME Check for flag to pass linker flags through the system compiler.
20157 case $host_os in
20158 aix*)
20159 lt_prog_compiler_wl_F77='-Wl,'
20160 if test "$host_cpu" = ia64; then
20161 # AIX 5 now supports IA64 processor
20162 lt_prog_compiler_static_F77='-Bstatic'
20163 else
20164 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20165 fi
20166 ;;
20167 darwin*)
20168 # PIC is the default on this platform
20169 # Common symbols not allowed in MH_DYLIB files
20170 case $cc_basename in
20171 xlc*)
20172 lt_prog_compiler_pic_F77='-qnocommon'
20173 lt_prog_compiler_wl_F77='-Wl,'
20174 ;;
20175 esac
20176 ;;
20177
20178 mingw* | pw32* | os2*)
20179 # This hack is so that the source file can tell whether it is being
20180 # built for inclusion in a dll (and should export symbols for example).
20181 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20182 ;;
20183
20184 hpux9* | hpux10* | hpux11*)
20185 lt_prog_compiler_wl_F77='-Wl,'
20186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20187 # not for PA HP-UX.
20188 case $host_cpu in
20189 hppa*64*|ia64*)
20190 # +Z the default
20191 ;;
20192 *)
20193 lt_prog_compiler_pic_F77='+Z'
20194 ;;
20195 esac
20196 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20197 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20198 ;;
20199
20200 irix5* | irix6* | nonstopux*)
20201 lt_prog_compiler_wl_F77='-Wl,'
20202 # PIC (with -KPIC) is the default.
20203 lt_prog_compiler_static_F77='-non_shared'
20204 ;;
20205
20206 newsos6)
20207 lt_prog_compiler_pic_F77='-KPIC'
20208 lt_prog_compiler_static_F77='-Bstatic'
20209 ;;
20210
20211 linux*)
20212 case $cc_basename in
20213 icc* | ecc*)
20214 lt_prog_compiler_wl_F77='-Wl,'
20215 lt_prog_compiler_pic_F77='-KPIC'
20216 lt_prog_compiler_static_F77='-static'
20217 ;;
20218 pgcc* | pgf77* | pgf90* | pgf95*)
20219 # Portland Group compilers (*not* the Pentium gcc compiler,
20220 # which looks to be a dead project)
20221 lt_prog_compiler_wl_F77='-Wl,'
20222 lt_prog_compiler_pic_F77='-fpic'
20223 lt_prog_compiler_static_F77='-Bstatic'
20224 ;;
20225 ccc*)
20226 lt_prog_compiler_wl_F77='-Wl,'
20227 # All Alpha code is PIC.
20228 lt_prog_compiler_static_F77='-non_shared'
20229 ;;
20230 esac
20231 ;;
20232
20233 osf3* | osf4* | osf5*)
20234 lt_prog_compiler_wl_F77='-Wl,'
20235 # All OSF/1 code is PIC.
20236 lt_prog_compiler_static_F77='-non_shared'
20237 ;;
20238
20239 solaris*)
20240 lt_prog_compiler_pic_F77='-KPIC'
20241 lt_prog_compiler_static_F77='-Bstatic'
20242 case $cc_basename in
20243 f77* | f90* | f95*)
20244 lt_prog_compiler_wl_F77='-Qoption ld ';;
20245 *)
20246 lt_prog_compiler_wl_F77='-Wl,';;
20247 esac
20248 ;;
20249
20250 sunos4*)
20251 lt_prog_compiler_wl_F77='-Qoption ld '
20252 lt_prog_compiler_pic_F77='-PIC'
20253 lt_prog_compiler_static_F77='-Bstatic'
20254 ;;
20255
20256 sysv4 | sysv4.2uw2* | sysv4.3*)
20257 lt_prog_compiler_wl_F77='-Wl,'
20258 lt_prog_compiler_pic_F77='-KPIC'
20259 lt_prog_compiler_static_F77='-Bstatic'
20260 ;;
20261
20262 sysv4*MP*)
20263 if test -d /usr/nec ;then
20264 lt_prog_compiler_pic_F77='-Kconform_pic'
20265 lt_prog_compiler_static_F77='-Bstatic'
20266 fi
20267 ;;
20268
20269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20270 lt_prog_compiler_wl_F77='-Wl,'
20271 lt_prog_compiler_pic_F77='-KPIC'
20272 lt_prog_compiler_static_F77='-Bstatic'
20273 ;;
20274
20275 unicos*)
20276 lt_prog_compiler_wl_F77='-Wl,'
20277 lt_prog_compiler_can_build_shared_F77=no
20278 ;;
20279
20280 uts4*)
20281 lt_prog_compiler_pic_F77='-pic'
20282 lt_prog_compiler_static_F77='-Bstatic'
20283 ;;
20284
20285 *)
20286 lt_prog_compiler_can_build_shared_F77=no
20287 ;;
20288 esac
20289 fi
20290
20291{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20292echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20293
20294#
20295# Check to make sure the PIC flag actually works.
20296#
20297if test -n "$lt_prog_compiler_pic_F77"; then
20298
20299{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20300echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20301if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303else
20304 lt_prog_compiler_pic_works_F77=no
20305 ac_outfile=conftest.$ac_objext
20306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20307 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20308 # Insert the option either (1) after the last *FLAGS variable, or
20309 # (2) before a word containing "conftest.", or (3) at the end.
20310 # Note that $ac_compile itself does not contain backslashes and begins
20311 # with a dollar sign (not a hyphen), so the echo should work correctly.
20312 # The option is referenced via a variable to avoid confusing sed.
20313 lt_compile=`echo "$ac_compile" | $SED \
20314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20316 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020317 (eval echo "\"\$as_me:20317: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020318 (eval "$lt_compile" 2>conftest.err)
20319 ac_status=$?
20320 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020321 echo "$as_me:20321: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020322 if (exit $ac_status) && test -s "$ac_outfile"; then
20323 # The compiler can only warn and ignore the option if not recognized
20324 # So say no if there are warnings other than the usual output.
20325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20328 lt_prog_compiler_pic_works_F77=yes
20329 fi
20330 fi
20331 $rm conftest*
20332
20333fi
20334{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20335echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20336
20337if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20338 case $lt_prog_compiler_pic_F77 in
20339 "" | " "*) ;;
20340 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20341 esac
20342else
20343 lt_prog_compiler_pic_F77=
20344 lt_prog_compiler_can_build_shared_F77=no
20345fi
20346
20347fi
20348case $host_os in
20349 # For platforms which do not support PIC, -DPIC is meaningless:
20350 *djgpp*)
20351 lt_prog_compiler_pic_F77=
20352 ;;
20353 *)
20354 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20355 ;;
20356esac
20357
20358#
20359# Check to make sure the static flag actually works.
20360#
20361wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20362{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20363echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20364if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366else
20367 lt_prog_compiler_static_works_F77=no
20368 save_LDFLAGS="$LDFLAGS"
20369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20370 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20372 # The linker can only warn and ignore the option if not recognized
20373 # So say no if there are warnings
20374 if test -s conftest.err; then
20375 # Append any errors to the config.log.
20376 cat conftest.err 1>&5
20377 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20379 if diff conftest.exp conftest.er2 >/dev/null; then
20380 lt_prog_compiler_static_works_F77=yes
20381 fi
20382 else
20383 lt_prog_compiler_static_works_F77=yes
20384 fi
20385 fi
20386 $rm conftest*
20387 LDFLAGS="$save_LDFLAGS"
20388
20389fi
20390{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20391echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20392
20393if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20394 :
20395else
20396 lt_prog_compiler_static_F77=
20397fi
20398
20399
20400{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20401echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20402if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404else
20405 lt_cv_prog_compiler_c_o_F77=no
20406 $rm -r conftest 2>/dev/null
20407 mkdir conftest
20408 cd conftest
20409 mkdir out
20410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20411
20412 lt_compiler_flag="-o out/conftest2.$ac_objext"
20413 # Insert the option either (1) after the last *FLAGS variable, or
20414 # (2) before a word containing "conftest.", or (3) at the end.
20415 # Note that $ac_compile itself does not contain backslashes and begins
20416 # with a dollar sign (not a hyphen), so the echo should work correctly.
20417 lt_compile=`echo "$ac_compile" | $SED \
20418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20420 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020421 (eval echo "\"\$as_me:20421: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020422 (eval "$lt_compile" 2>out/conftest.err)
20423 ac_status=$?
20424 cat out/conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020425 echo "$as_me:20425: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20427 then
20428 # The compiler can only warn and ignore the option if not recognized
20429 # So say no if there are warnings
20430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20433 lt_cv_prog_compiler_c_o_F77=yes
20434 fi
20435 fi
20436 chmod u+w . 2>&5
20437 $rm conftest*
20438 # SGI C++ compiler will create directory out/ii_files/ for
20439 # template instantiation
20440 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20441 $rm out/* && rmdir out
20442 cd ..
20443 rmdir conftest
20444 $rm conftest*
20445
20446fi
20447{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20448echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20449
20450
20451hard_links="nottested"
20452if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20453 # do not overwrite the value of need_locks provided by the user
20454 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20455echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20456 hard_links=yes
20457 $rm conftest*
20458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20459 touch conftest.a
20460 ln conftest.a conftest.b 2>&5 || hard_links=no
20461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20462 { echo "$as_me:$LINENO: result: $hard_links" >&5
20463echo "${ECHO_T}$hard_links" >&6; }
20464 if test "$hard_links" = no; then
20465 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20466echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20467 need_locks=warn
20468 fi
20469else
20470 need_locks=no
20471fi
20472
20473{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20474echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20475
20476 runpath_var=
20477 allow_undefined_flag_F77=
20478 enable_shared_with_static_runtimes_F77=no
20479 archive_cmds_F77=
20480 archive_expsym_cmds_F77=
20481 old_archive_From_new_cmds_F77=
20482 old_archive_from_expsyms_cmds_F77=
20483 export_dynamic_flag_spec_F77=
20484 whole_archive_flag_spec_F77=
20485 thread_safe_flag_spec_F77=
20486 hardcode_libdir_flag_spec_F77=
20487 hardcode_libdir_flag_spec_ld_F77=
20488 hardcode_libdir_separator_F77=
20489 hardcode_direct_F77=no
20490 hardcode_minus_L_F77=no
20491 hardcode_shlibpath_var_F77=unsupported
20492 link_all_deplibs_F77=unknown
20493 hardcode_automatic_F77=no
20494 module_cmds_F77=
20495 module_expsym_cmds_F77=
20496 always_export_symbols_F77=no
20497 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20498 # include_expsyms should be a list of space-separated symbols to be *always*
20499 # included in the symbol list
20500 include_expsyms_F77=
20501 # exclude_expsyms can be an extended regexp of symbols to exclude
20502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20504 # as well as any symbol that contains `d'.
20505 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20507 # platforms (ab)use it in PIC code, but their linkers get confused if
20508 # the symbol is explicitly referenced. Since portable code cannot
20509 # rely on this symbol name, it's probably fine to never include it in
20510 # preloaded symbol tables.
20511 extract_expsyms_cmds=
20512 # Just being paranoid about ensuring that cc_basename is set.
20513 for cc_temp in $compiler""; do
20514 case $cc_temp in
20515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20517 \-*) ;;
20518 *) break;;
20519 esac
20520done
20521cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20522
20523 case $host_os in
20524 cygwin* | mingw* | pw32*)
20525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20526 # When not using gcc, we currently assume that we are using
20527 # Microsoft Visual C++.
20528 if test "$GCC" != yes; then
20529 with_gnu_ld=no
20530 fi
20531 ;;
20532 interix*)
20533 # we just hope/assume this is gcc and not c89 (= MSVC++)
20534 with_gnu_ld=yes
20535 ;;
20536 openbsd*)
20537 with_gnu_ld=no
20538 ;;
20539 esac
20540
20541 ld_shlibs_F77=yes
20542 if test "$with_gnu_ld" = yes; then
20543 # If archive_cmds runs LD, not CC, wlarc should be empty
20544 wlarc='${wl}'
20545
20546 # Set some defaults for GNU ld with shared library support. These
20547 # are reset later if shared libraries are not supported. Putting them
20548 # here allows them to be overridden if necessary.
20549 runpath_var=LD_RUN_PATH
20550 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20551 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20552 # ancient GNU ld didn't support --whole-archive et. al.
20553 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20554 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20555 else
20556 whole_archive_flag_spec_F77=
20557 fi
20558 supports_anon_versioning=no
20559 case `$LD -v 2>/dev/null` in
20560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20563 *\ 2.11.*) ;; # other 2.11 versions
20564 *) supports_anon_versioning=yes ;;
20565 esac
20566
20567 # See if GNU ld supports shared libraries.
20568 case $host_os in
20569 aix3* | aix4* | aix5*)
20570 # On AIX/PPC, the GNU linker is very broken
20571 if test "$host_cpu" != ia64; then
20572 ld_shlibs_F77=no
20573 cat <<EOF 1>&2
20574
20575*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20576*** to be unable to reliably create shared libraries on AIX.
20577*** Therefore, libtool is disabling shared libraries support. If you
20578*** really care for shared libraries, you may want to modify your PATH
20579*** so that a non-GNU linker is found, and then restart.
20580
20581EOF
20582 fi
20583 ;;
20584
20585 amigaos*)
20586 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)'
20587 hardcode_libdir_flag_spec_F77='-L$libdir'
20588 hardcode_minus_L_F77=yes
20589
20590 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20591 # that the semantics of dynamic libraries on AmigaOS, at least up
20592 # to version 4, is to share data among multiple programs linked
20593 # with the same dynamic library. Since this doesn't match the
20594 # behavior of shared libraries on other platforms, we can't use
20595 # them.
20596 ld_shlibs_F77=no
20597 ;;
20598
20599 beos*)
20600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20601 allow_undefined_flag_F77=unsupported
20602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20603 # support --undefined. This deserves some investigation. FIXME
20604 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20605 else
20606 ld_shlibs_F77=no
20607 fi
20608 ;;
20609
20610 cygwin* | mingw* | pw32*)
20611 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20612 # as there is no search path for DLLs.
20613 hardcode_libdir_flag_spec_F77='-L$libdir'
20614 allow_undefined_flag_F77=unsupported
20615 always_export_symbols_F77=no
20616 enable_shared_with_static_runtimes_F77=yes
20617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20618
20619 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20620 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20621 # If the export-symbols file already is a .def file (1st line
20622 # is EXPORTS), use it as is; otherwise, prepend...
20623 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20624 cp $export_symbols $output_objdir/$soname.def;
20625 else
20626 echo EXPORTS > $output_objdir/$soname.def;
20627 cat $export_symbols >> $output_objdir/$soname.def;
20628 fi~
20629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20630 else
20631 ld_shlibs_F77=no
20632 fi
20633 ;;
20634
20635 interix3*)
20636 hardcode_direct_F77=no
20637 hardcode_shlibpath_var_F77=no
20638 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20639 export_dynamic_flag_spec_F77='${wl}-E'
20640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20641 # Instead, shared libraries are loaded at an image base (0x10000000 by
20642 # default) and relocated if they conflict, which is a slow very memory
20643 # consuming and fragmenting process. To avoid this, we pick a random,
20644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20645 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20646 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'
20647 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'
20648 ;;
20649
20650 linux*)
20651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20652 tmp_addflag=
20653 case $cc_basename,$host_cpu in
20654 pgcc*) # Portland Group C compiler
20655 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'
20656 tmp_addflag=' $pic_flag'
20657 ;;
20658 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20659 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'
20660 tmp_addflag=' $pic_flag -Mnomain' ;;
20661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20662 tmp_addflag=' -i_dynamic' ;;
20663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20664 tmp_addflag=' -i_dynamic -nofor_main' ;;
20665 ifc* | ifort*) # Intel Fortran compiler
20666 tmp_addflag=' -nofor_main' ;;
20667 esac
20668 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20669
20670 if test $supports_anon_versioning = yes; then
20671 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20673 $echo "local: *; };" >> $output_objdir/$libname.ver~
20674 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20675 fi
20676 else
20677 ld_shlibs_F77=no
20678 fi
20679 ;;
20680
20681 netbsd*)
20682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20683 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20684 wlarc=
20685 else
20686 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20687 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20688 fi
20689 ;;
20690
20691 solaris*)
20692 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20693 ld_shlibs_F77=no
20694 cat <<EOF 1>&2
20695
20696*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20697*** create shared libraries on Solaris systems. Therefore, libtool
20698*** is disabling shared libraries support. We urge you to upgrade GNU
20699*** binutils to release 2.9.1 or newer. Another option is to modify
20700*** your PATH or compiler configuration so that the native linker is
20701*** used, and then restart.
20702
20703EOF
20704 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20707 else
20708 ld_shlibs_F77=no
20709 fi
20710 ;;
20711
20712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20713 case `$LD -v 2>&1` in
20714 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20715 ld_shlibs_F77=no
20716 cat <<_LT_EOF 1>&2
20717
20718*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20719*** reliably create shared libraries on SCO systems. Therefore, libtool
20720*** is disabling shared libraries support. We urge you to upgrade GNU
20721*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20722*** your PATH or compiler configuration so that the native linker is
20723*** used, and then restart.
20724
20725_LT_EOF
20726 ;;
20727 *)
20728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20729 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20730 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20731 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20732 else
20733 ld_shlibs_F77=no
20734 fi
20735 ;;
20736 esac
20737 ;;
20738
20739 sunos4*)
20740 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20741 wlarc=
20742 hardcode_direct_F77=yes
20743 hardcode_shlibpath_var_F77=no
20744 ;;
20745
20746 *)
20747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20748 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20749 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20750 else
20751 ld_shlibs_F77=no
20752 fi
20753 ;;
20754 esac
20755
20756 if test "$ld_shlibs_F77" = no; then
20757 runpath_var=
20758 hardcode_libdir_flag_spec_F77=
20759 export_dynamic_flag_spec_F77=
20760 whole_archive_flag_spec_F77=
20761 fi
20762 else
20763 # PORTME fill in a description of your system's linker (not GNU ld)
20764 case $host_os in
20765 aix3*)
20766 allow_undefined_flag_F77=unsupported
20767 always_export_symbols_F77=yes
20768 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'
20769 # Note: this linker hardcodes the directories in LIBPATH if there
20770 # are no directories specified by -L.
20771 hardcode_minus_L_F77=yes
20772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20773 # Neither direct hardcoding nor static linking is supported with a
20774 # broken collect2.
20775 hardcode_direct_F77=unsupported
20776 fi
20777 ;;
20778
20779 aix4* | aix5*)
20780 if test "$host_cpu" = ia64; then
20781 # On IA64, the linker does run time linking by default, so we don't
20782 # have to do anything special.
20783 aix_use_runtimelinking=no
20784 exp_sym_flag='-Bexport'
20785 no_entry_flag=""
20786 else
20787 # If we're using GNU nm, then we don't want the "-C" option.
20788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20790 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'
20791 else
20792 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'
20793 fi
20794 aix_use_runtimelinking=no
20795
20796 # Test if we are trying to use run time linking or normal
20797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20798 # need to do runtime linking.
20799 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20800 for ld_flag in $LDFLAGS; do
20801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20802 aix_use_runtimelinking=yes
20803 break
20804 fi
20805 done
20806 ;;
20807 esac
20808
20809 exp_sym_flag='-bexport'
20810 no_entry_flag='-bnoentry'
20811 fi
20812
20813 # When large executables or shared objects are built, AIX ld can
20814 # have problems creating the table of contents. If linking a library
20815 # or program results in "error TOC overflow" add -mminimal-toc to
20816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20818
20819 archive_cmds_F77=''
20820 hardcode_direct_F77=yes
20821 hardcode_libdir_separator_F77=':'
20822 link_all_deplibs_F77=yes
20823
20824 if test "$GCC" = yes; then
20825 case $host_os in aix4.[012]|aix4.[012].*)
20826 # We only want to do this on AIX 4.2 and lower, the check
20827 # below for broken collect2 doesn't work under 4.3+
20828 collect2name=`${CC} -print-prog-name=collect2`
20829 if test -f "$collect2name" && \
20830 strings "$collect2name" | grep resolve_lib_name >/dev/null
20831 then
20832 # We have reworked collect2
20833 hardcode_direct_F77=yes
20834 else
20835 # We have old collect2
20836 hardcode_direct_F77=unsupported
20837 # It fails to find uninstalled libraries when the uninstalled
20838 # path is not listed in the libpath. Setting hardcode_minus_L
20839 # to unsupported forces relinking
20840 hardcode_minus_L_F77=yes
20841 hardcode_libdir_flag_spec_F77='-L$libdir'
20842 hardcode_libdir_separator_F77=
20843 fi
20844 ;;
20845 esac
20846 shared_flag='-shared'
20847 if test "$aix_use_runtimelinking" = yes; then
20848 shared_flag="$shared_flag "'${wl}-G'
20849 fi
20850 else
20851 # not using gcc
20852 if test "$host_cpu" = ia64; then
20853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20854 # chokes on -Wl,-G. The following line is correct:
20855 shared_flag='-G'
20856 else
20857 if test "$aix_use_runtimelinking" = yes; then
20858 shared_flag='${wl}-G'
20859 else
20860 shared_flag='${wl}-bM:SRE'
20861 fi
20862 fi
20863 fi
20864
20865 # It seems that -bexpall does not export symbols beginning with
20866 # underscore (_), so it is better to generate a list of symbols to export.
20867 always_export_symbols_F77=yes
20868 if test "$aix_use_runtimelinking" = yes; then
20869 # Warning - without using the other runtime loading flags (-brtl),
20870 # -berok will link without error, but may produce a broken library.
20871 allow_undefined_flag_F77='-berok'
20872 # Determine the default libpath from the value encoded in an empty executable.
20873 cat >conftest.$ac_ext <<_ACEOF
20874 program main
20875
20876 end
20877_ACEOF
20878rm -f conftest.$ac_objext conftest$ac_exeext
20879if { (ac_try="$ac_link"
20880case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883esac
20884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_link") 2>conftest.er1
20886 ac_status=$?
20887 grep -v '^ *+' conftest.er1 >conftest.err
20888 rm -f conftest.er1
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020891 (exit $ac_status); } && {
20892 test -z "$ac_f77_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest$ac_exeext &&
20895 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020896
20897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20898}'`
20899# Check for a 64-bit object if we didn't find anything.
20900if 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; }
20901}'`; fi
20902else
20903 echo "$as_me: failed program was:" >&5
20904sed 's/^/| /' conftest.$ac_ext >&5
20905
20906
20907fi
20908
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020910 conftest$ac_exeext conftest.$ac_ext
20911if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20912
20913 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20914 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"
20915 else
20916 if test "$host_cpu" = ia64; then
20917 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20918 allow_undefined_flag_F77="-z nodefs"
20919 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"
20920 else
20921 # Determine the default libpath from the value encoded in an empty executable.
20922 cat >conftest.$ac_ext <<_ACEOF
20923 program main
20924
20925 end
20926_ACEOF
20927rm -f conftest.$ac_objext conftest$ac_exeext
20928if { (ac_try="$ac_link"
20929case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_link") 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020940 (exit $ac_status); } && {
20941 test -z "$ac_f77_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest$ac_exeext &&
20944 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020945
20946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20947}'`
20948# Check for a 64-bit object if we didn't find anything.
20949if 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; }
20950}'`; fi
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955
20956fi
20957
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000020958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020959 conftest$ac_exeext conftest.$ac_ext
20960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20961
20962 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20963 # Warning - without using the other run time loading flags,
20964 # -berok will link without error, but may produce a broken library.
20965 no_undefined_flag_F77=' ${wl}-bernotok'
20966 allow_undefined_flag_F77=' ${wl}-berok'
20967 # Exported symbols can be pulled into shared objects from archives
20968 whole_archive_flag_spec_F77='$convenience'
20969 archive_cmds_need_lc_F77=yes
20970 # This is similar to how AIX traditionally builds its shared libraries.
20971 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'
20972 fi
20973 fi
20974 ;;
20975
20976 amigaos*)
20977 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)'
20978 hardcode_libdir_flag_spec_F77='-L$libdir'
20979 hardcode_minus_L_F77=yes
20980 # see comment about different semantics on the GNU ld section
20981 ld_shlibs_F77=no
20982 ;;
20983
20984 bsdi[45]*)
20985 export_dynamic_flag_spec_F77=-rdynamic
20986 ;;
20987
20988 cygwin* | mingw* | pw32*)
20989 # When not using gcc, we currently assume that we are using
20990 # Microsoft Visual C++.
20991 # hardcode_libdir_flag_spec is actually meaningless, as there is
20992 # no search path for DLLs.
20993 hardcode_libdir_flag_spec_F77=' '
20994 allow_undefined_flag_F77=unsupported
20995 # Tell ltmain to make .lib files, not .a files.
20996 libext=lib
20997 # Tell ltmain to make .dll files, not .so files.
20998 shrext_cmds=".dll"
20999 # FIXME: Setting linknames here is a bad hack.
21000 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21001 # The linker will automatically build a .lib file if we build a DLL.
21002 old_archive_From_new_cmds_F77='true'
21003 # FIXME: Should let the user specify the lib program.
21004 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21005 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21006 enable_shared_with_static_runtimes_F77=yes
21007 ;;
21008
21009 darwin* | rhapsody*)
21010 case $host_os in
21011 rhapsody* | darwin1.[012])
21012 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21013 ;;
21014 *) # Darwin 1.3 on
21015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21016 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21017 else
21018 case ${MACOSX_DEPLOYMENT_TARGET} in
21019 10.[012])
21020 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21021 ;;
21022 10.*)
21023 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21024 ;;
21025 esac
21026 fi
21027 ;;
21028 esac
21029 archive_cmds_need_lc_F77=no
21030 hardcode_direct_F77=no
21031 hardcode_automatic_F77=yes
21032 hardcode_shlibpath_var_F77=unsupported
21033 whole_archive_flag_spec_F77=''
21034 link_all_deplibs_F77=yes
21035 if test "$GCC" = yes ; then
21036 output_verbose_link_cmd='echo'
21037 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21038 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21040 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}'
21041 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}'
21042 else
21043 case $cc_basename in
21044 xlc*)
21045 output_verbose_link_cmd='echo'
21046 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21047 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21049 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}'
21050 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}'
21051 ;;
21052 *)
21053 ld_shlibs_F77=no
21054 ;;
21055 esac
21056 fi
21057 ;;
21058
21059 dgux*)
21060 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21061 hardcode_libdir_flag_spec_F77='-L$libdir'
21062 hardcode_shlibpath_var_F77=no
21063 ;;
21064
21065 freebsd1*)
21066 ld_shlibs_F77=no
21067 ;;
21068
21069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21070 # support. Future versions do this automatically, but an explicit c++rt0.o
21071 # does not break anything, and helps significantly (at the cost of a little
21072 # extra space).
21073 freebsd2.2*)
21074 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21075 hardcode_libdir_flag_spec_F77='-R$libdir'
21076 hardcode_direct_F77=yes
21077 hardcode_shlibpath_var_F77=no
21078 ;;
21079
21080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21081 freebsd2*)
21082 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21083 hardcode_direct_F77=yes
21084 hardcode_minus_L_F77=yes
21085 hardcode_shlibpath_var_F77=no
21086 ;;
21087
21088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21089 freebsd* | kfreebsd*-gnu | dragonfly*)
21090 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21091 hardcode_libdir_flag_spec_F77='-R$libdir'
21092 hardcode_direct_F77=yes
21093 hardcode_shlibpath_var_F77=no
21094 ;;
21095
21096 hpux9*)
21097 if test "$GCC" = yes; then
21098 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'
21099 else
21100 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'
21101 fi
21102 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21103 hardcode_libdir_separator_F77=:
21104 hardcode_direct_F77=yes
21105
21106 # hardcode_minus_L: Not really in the search PATH,
21107 # but as the default location of the library.
21108 hardcode_minus_L_F77=yes
21109 export_dynamic_flag_spec_F77='${wl}-E'
21110 ;;
21111
21112 hpux10*)
21113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21114 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21115 else
21116 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21117 fi
21118 if test "$with_gnu_ld" = no; then
21119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21120 hardcode_libdir_separator_F77=:
21121
21122 hardcode_direct_F77=yes
21123 export_dynamic_flag_spec_F77='${wl}-E'
21124
21125 # hardcode_minus_L: Not really in the search PATH,
21126 # but as the default location of the library.
21127 hardcode_minus_L_F77=yes
21128 fi
21129 ;;
21130
21131 hpux11*)
21132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21133 case $host_cpu in
21134 hppa*64*)
21135 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21136 ;;
21137 ia64*)
21138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21139 ;;
21140 *)
21141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21142 ;;
21143 esac
21144 else
21145 case $host_cpu in
21146 hppa*64*)
21147 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21148 ;;
21149 ia64*)
21150 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21151 ;;
21152 *)
21153 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21154 ;;
21155 esac
21156 fi
21157 if test "$with_gnu_ld" = no; then
21158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21159 hardcode_libdir_separator_F77=:
21160
21161 case $host_cpu in
21162 hppa*64*|ia64*)
21163 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21164 hardcode_direct_F77=no
21165 hardcode_shlibpath_var_F77=no
21166 ;;
21167 *)
21168 hardcode_direct_F77=yes
21169 export_dynamic_flag_spec_F77='${wl}-E'
21170
21171 # hardcode_minus_L: Not really in the search PATH,
21172 # but as the default location of the library.
21173 hardcode_minus_L_F77=yes
21174 ;;
21175 esac
21176 fi
21177 ;;
21178
21179 irix5* | irix6* | nonstopux*)
21180 if test "$GCC" = yes; then
21181 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'
21182 else
21183 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'
21184 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21185 fi
21186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21187 hardcode_libdir_separator_F77=:
21188 link_all_deplibs_F77=yes
21189 ;;
21190
21191 netbsd*)
21192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21193 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21194 else
21195 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21196 fi
21197 hardcode_libdir_flag_spec_F77='-R$libdir'
21198 hardcode_direct_F77=yes
21199 hardcode_shlibpath_var_F77=no
21200 ;;
21201
21202 newsos6)
21203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21204 hardcode_direct_F77=yes
21205 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21206 hardcode_libdir_separator_F77=:
21207 hardcode_shlibpath_var_F77=no
21208 ;;
21209
21210 openbsd*)
21211 hardcode_direct_F77=yes
21212 hardcode_shlibpath_var_F77=no
21213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21214 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21215 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21216 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21217 export_dynamic_flag_spec_F77='${wl}-E'
21218 else
21219 case $host_os in
21220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21221 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21222 hardcode_libdir_flag_spec_F77='-R$libdir'
21223 ;;
21224 *)
21225 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21226 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21227 ;;
21228 esac
21229 fi
21230 ;;
21231
21232 os2*)
21233 hardcode_libdir_flag_spec_F77='-L$libdir'
21234 hardcode_minus_L_F77=yes
21235 allow_undefined_flag_F77=unsupported
21236 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'
21237 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21238 ;;
21239
21240 osf3*)
21241 if test "$GCC" = yes; then
21242 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21243 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'
21244 else
21245 allow_undefined_flag_F77=' -expect_unresolved \*'
21246 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'
21247 fi
21248 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21249 hardcode_libdir_separator_F77=:
21250 ;;
21251
21252 osf4* | osf5*) # as osf3* with the addition of -msym flag
21253 if test "$GCC" = yes; then
21254 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21255 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'
21256 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21257 else
21258 allow_undefined_flag_F77=' -expect_unresolved \*'
21259 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'
21260 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~
21261 $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'
21262
21263 # Both c and cxx compiler support -rpath directly
21264 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21265 fi
21266 hardcode_libdir_separator_F77=:
21267 ;;
21268
21269 solaris*)
21270 no_undefined_flag_F77=' -z text'
21271 if test "$GCC" = yes; then
21272 wlarc='${wl}'
21273 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21274 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21276 else
21277 wlarc=''
21278 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21279 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21281 fi
21282 hardcode_libdir_flag_spec_F77='-R$libdir'
21283 hardcode_shlibpath_var_F77=no
21284 case $host_os in
21285 solaris2.[0-5] | solaris2.[0-5].*) ;;
21286 *)
21287 # The compiler driver will combine linker options so we
21288 # cannot just pass the convience library names through
21289 # without $wl, iff we do not link with $LD.
21290 # Luckily, gcc supports the same syntax we need for Sun Studio.
21291 # Supported since Solaris 2.6 (maybe 2.5.1?)
21292 case $wlarc in
21293 '')
21294 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21295 *)
21296 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' ;;
21297 esac ;;
21298 esac
21299 link_all_deplibs_F77=yes
21300 ;;
21301
21302 sunos4*)
21303 if test "x$host_vendor" = xsequent; then
21304 # Use $CC to link under sequent, because it throws in some extra .o
21305 # files that make .init and .fini sections work.
21306 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21307 else
21308 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21309 fi
21310 hardcode_libdir_flag_spec_F77='-L$libdir'
21311 hardcode_direct_F77=yes
21312 hardcode_minus_L_F77=yes
21313 hardcode_shlibpath_var_F77=no
21314 ;;
21315
21316 sysv4)
21317 case $host_vendor in
21318 sni)
21319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21320 hardcode_direct_F77=yes # is this really true???
21321 ;;
21322 siemens)
21323 ## LD is ld it makes a PLAMLIB
21324 ## CC just makes a GrossModule.
21325 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21326 reload_cmds_F77='$CC -r -o $output$reload_objs'
21327 hardcode_direct_F77=no
21328 ;;
21329 motorola)
21330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21331 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21332 ;;
21333 esac
21334 runpath_var='LD_RUN_PATH'
21335 hardcode_shlibpath_var_F77=no
21336 ;;
21337
21338 sysv4.3*)
21339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21340 hardcode_shlibpath_var_F77=no
21341 export_dynamic_flag_spec_F77='-Bexport'
21342 ;;
21343
21344 sysv4*MP*)
21345 if test -d /usr/nec; then
21346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21347 hardcode_shlibpath_var_F77=no
21348 runpath_var=LD_RUN_PATH
21349 hardcode_runpath_var=yes
21350 ld_shlibs_F77=yes
21351 fi
21352 ;;
21353
21354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21355 no_undefined_flag_F77='${wl}-z,text'
21356 archive_cmds_need_lc_F77=no
21357 hardcode_shlibpath_var_F77=no
21358 runpath_var='LD_RUN_PATH'
21359
21360 if test "$GCC" = yes; then
21361 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21362 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21363 else
21364 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21365 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21366 fi
21367 ;;
21368
21369 sysv5* | sco3.2v5* | sco5v6*)
21370 # Note: We can NOT use -z defs as we might desire, because we do not
21371 # link with -lc, and that would cause any symbols used from libc to
21372 # always be unresolved, which means just about no library would
21373 # ever link correctly. If we're not using GNU ld we use -z text
21374 # though, which does catch some bad symbols but isn't as heavy-handed
21375 # as -z defs.
21376 no_undefined_flag_F77='${wl}-z,text'
21377 allow_undefined_flag_F77='${wl}-z,nodefs'
21378 archive_cmds_need_lc_F77=no
21379 hardcode_shlibpath_var_F77=no
21380 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21381 hardcode_libdir_separator_F77=':'
21382 link_all_deplibs_F77=yes
21383 export_dynamic_flag_spec_F77='${wl}-Bexport'
21384 runpath_var='LD_RUN_PATH'
21385
21386 if test "$GCC" = yes; then
21387 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21388 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21389 else
21390 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21391 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21392 fi
21393 ;;
21394
21395 uts4*)
21396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21397 hardcode_libdir_flag_spec_F77='-L$libdir'
21398 hardcode_shlibpath_var_F77=no
21399 ;;
21400
21401 *)
21402 ld_shlibs_F77=no
21403 ;;
21404 esac
21405 fi
21406
21407{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21408echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21409test "$ld_shlibs_F77" = no && can_build_shared=no
21410
21411#
21412# Do we need to explicitly link libc?
21413#
21414case "x$archive_cmds_need_lc_F77" in
21415x|xyes)
21416 # Assume -lc should be added
21417 archive_cmds_need_lc_F77=yes
21418
21419 if test "$enable_shared" = yes && test "$GCC" = yes; then
21420 case $archive_cmds_F77 in
21421 *'~'*)
21422 # FIXME: we may have to deal with multi-command sequences.
21423 ;;
21424 '$CC '*)
21425 # Test whether the compiler implicitly links with -lc since on some
21426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21427 # to ld, don't add -lc before -lgcc.
21428 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21429echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21430 $rm conftest*
21431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21432
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434 (eval $ac_compile) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } 2>conftest.err; then
21438 soname=conftest
21439 lib=conftest
21440 libobjs=conftest.$ac_objext
21441 deplibs=
21442 wl=$lt_prog_compiler_wl_F77
21443 pic_flag=$lt_prog_compiler_pic_F77
21444 compiler_flags=-v
21445 linker_flags=-v
21446 verstring=
21447 output_objdir=.
21448 libname=conftest
21449 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21450 allow_undefined_flag_F77=
21451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21452 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }
21456 then
21457 archive_cmds_need_lc_F77=no
21458 else
21459 archive_cmds_need_lc_F77=yes
21460 fi
21461 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21462 else
21463 cat conftest.err 1>&5
21464 fi
21465 $rm conftest*
21466 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21467echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21468 ;;
21469 esac
21470 fi
21471 ;;
21472esac
21473
21474{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21475echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21476library_names_spec=
21477libname_spec='lib$name'
21478soname_spec=
21479shrext_cmds=".so"
21480postinstall_cmds=
21481postuninstall_cmds=
21482finish_cmds=
21483finish_eval=
21484shlibpath_var=
21485shlibpath_overrides_runpath=unknown
21486version_type=none
21487dynamic_linker="$host_os ld.so"
21488sys_lib_dlsearch_path_spec="/lib /usr/lib"
21489if test "$GCC" = yes; then
21490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21492 # if the path contains ";" then we assume it to be the separator
21493 # otherwise default to the standard path separator (i.e. ":") - it is
21494 # assumed that no part of a normal pathname contains ";" but that should
21495 # okay in the real world where ";" in dirpaths is itself problematic.
21496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21497 else
21498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21499 fi
21500else
21501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21502fi
21503need_lib_prefix=unknown
21504hardcode_into_libs=no
21505
21506# when you set need_version to no, make sure it does not cause -set_version
21507# flags to be left without arguments
21508need_version=unknown
21509
21510case $host_os in
21511aix3*)
21512 version_type=linux
21513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21514 shlibpath_var=LIBPATH
21515
21516 # AIX 3 has no versioning support, so we append a major version to the name.
21517 soname_spec='${libname}${release}${shared_ext}$major'
21518 ;;
21519
21520aix4* | aix5*)
21521 version_type=linux
21522 need_lib_prefix=no
21523 need_version=no
21524 hardcode_into_libs=yes
21525 if test "$host_cpu" = ia64; then
21526 # AIX 5 supports IA64
21527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21528 shlibpath_var=LD_LIBRARY_PATH
21529 else
21530 # With GCC up to 2.95.x, collect2 would create an import file
21531 # for dependence libraries. The import file would start with
21532 # the line `#! .'. This would cause the generated library to
21533 # depend on `.', always an invalid library. This was fixed in
21534 # development snapshots of GCC prior to 3.0.
21535 case $host_os in
21536 aix4 | aix4.[01] | aix4.[01].*)
21537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21538 echo ' yes '
21539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21540 :
21541 else
21542 can_build_shared=no
21543 fi
21544 ;;
21545 esac
21546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21547 # soname into executable. Probably we can add versioning support to
21548 # collect2, so additional links can be useful in future.
21549 if test "$aix_use_runtimelinking" = yes; then
21550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21551 # instead of lib<name>.a to let people know that these are not
21552 # typical AIX shared libraries.
21553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554 else
21555 # We preserve .a as extension for shared libraries through AIX4.2
21556 # and later when we are not doing run time linking.
21557 library_names_spec='${libname}${release}.a $libname.a'
21558 soname_spec='${libname}${release}${shared_ext}$major'
21559 fi
21560 shlibpath_var=LIBPATH
21561 fi
21562 ;;
21563
21564amigaos*)
21565 library_names_spec='$libname.ixlibrary $libname.a'
21566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21567 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'
21568 ;;
21569
21570beos*)
21571 library_names_spec='${libname}${shared_ext}'
21572 dynamic_linker="$host_os ld.so"
21573 shlibpath_var=LIBRARY_PATH
21574 ;;
21575
21576bsdi[45]*)
21577 version_type=linux
21578 need_version=no
21579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21580 soname_spec='${libname}${release}${shared_ext}$major'
21581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21582 shlibpath_var=LD_LIBRARY_PATH
21583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21585 # the default ld.so.conf also contains /usr/contrib/lib and
21586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21587 # libtool to hard-code these into programs
21588 ;;
21589
21590cygwin* | mingw* | pw32*)
21591 version_type=windows
21592 shrext_cmds=".dll"
21593 need_version=no
21594 need_lib_prefix=no
21595
21596 case $GCC,$host_os in
21597 yes,cygwin* | yes,mingw* | yes,pw32*)
21598 library_names_spec='$libname.dll.a'
21599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21600 postinstall_cmds='base_file=`basename \${file}`~
21601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21602 dldir=$destdir/`dirname \$dlpath`~
21603 test -d \$dldir || mkdir -p \$dldir~
21604 $install_prog $dir/$dlname \$dldir/$dlname~
21605 chmod a+x \$dldir/$dlname'
21606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21607 dlpath=$dir/\$dldll~
21608 $rm \$dlpath'
21609 shlibpath_overrides_runpath=yes
21610
21611 case $host_os in
21612 cygwin*)
21613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21616 ;;
21617 mingw*)
21618 # MinGW DLLs use traditional 'lib' prefix
21619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21622 # It is most probably a Windows format PATH printed by
21623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21624 # path with ; separators, and with drive letters. We can handle the
21625 # drive letters (cygwin fileutils understands them), so leave them,
21626 # especially as we might pass files found there to a mingw objdump,
21627 # which wouldn't understand a cygwinified path. Ahh.
21628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21629 else
21630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21631 fi
21632 ;;
21633 pw32*)
21634 # pw32 DLLs use 'pw' prefix rather than 'lib'
21635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21636 ;;
21637 esac
21638 ;;
21639
21640 *)
21641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21642 ;;
21643 esac
21644 dynamic_linker='Win32 ld.exe'
21645 # FIXME: first we should search . and the directory the executable is in
21646 shlibpath_var=PATH
21647 ;;
21648
21649darwin* | rhapsody*)
21650 dynamic_linker="$host_os dyld"
21651 version_type=darwin
21652 need_lib_prefix=no
21653 need_version=no
21654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21655 soname_spec='${libname}${release}${major}$shared_ext'
21656 shlibpath_overrides_runpath=yes
21657 shlibpath_var=DYLD_LIBRARY_PATH
21658 shrext_cmds='.dylib'
21659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21660 if test "$GCC" = yes; then
21661 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"`
21662 else
21663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21664 fi
21665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21666 ;;
21667
21668dgux*)
21669 version_type=linux
21670 need_lib_prefix=no
21671 need_version=no
21672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21673 soname_spec='${libname}${release}${shared_ext}$major'
21674 shlibpath_var=LD_LIBRARY_PATH
21675 ;;
21676
21677freebsd1*)
21678 dynamic_linker=no
21679 ;;
21680
21681kfreebsd*-gnu)
21682 version_type=linux
21683 need_lib_prefix=no
21684 need_version=no
21685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21686 soname_spec='${libname}${release}${shared_ext}$major'
21687 shlibpath_var=LD_LIBRARY_PATH
21688 shlibpath_overrides_runpath=no
21689 hardcode_into_libs=yes
21690 dynamic_linker='GNU ld.so'
21691 ;;
21692
21693freebsd* | dragonfly*)
21694 # DragonFly does not have aout. When/if they implement a new
21695 # versioning mechanism, adjust this.
21696 if test -x /usr/bin/objformat; then
21697 objformat=`/usr/bin/objformat`
21698 else
21699 case $host_os in
21700 freebsd[123]*) objformat=aout ;;
21701 *) objformat=elf ;;
21702 esac
21703 fi
21704 version_type=freebsd-$objformat
21705 case $version_type in
21706 freebsd-elf*)
21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21708 need_version=no
21709 need_lib_prefix=no
21710 ;;
21711 freebsd-*)
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21713 need_version=yes
21714 ;;
21715 esac
21716 shlibpath_var=LD_LIBRARY_PATH
21717 case $host_os in
21718 freebsd2*)
21719 shlibpath_overrides_runpath=yes
21720 ;;
21721 freebsd3.[01]* | freebsdelf3.[01]*)
21722 shlibpath_overrides_runpath=yes
21723 hardcode_into_libs=yes
21724 ;;
21725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21727 shlibpath_overrides_runpath=no
21728 hardcode_into_libs=yes
21729 ;;
21730 freebsd*) # from 4.6 on
21731 shlibpath_overrides_runpath=yes
21732 hardcode_into_libs=yes
21733 ;;
21734 esac
21735 ;;
21736
21737gnu*)
21738 version_type=linux
21739 need_lib_prefix=no
21740 need_version=no
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21742 soname_spec='${libname}${release}${shared_ext}$major'
21743 shlibpath_var=LD_LIBRARY_PATH
21744 hardcode_into_libs=yes
21745 ;;
21746
21747hpux9* | hpux10* | hpux11*)
21748 # Give a soname corresponding to the major version so that dld.sl refuses to
21749 # link against other versions.
21750 version_type=sunos
21751 need_lib_prefix=no
21752 need_version=no
21753 case $host_cpu in
21754 ia64*)
21755 shrext_cmds='.so'
21756 hardcode_into_libs=yes
21757 dynamic_linker="$host_os dld.so"
21758 shlibpath_var=LD_LIBRARY_PATH
21759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21761 soname_spec='${libname}${release}${shared_ext}$major'
21762 if test "X$HPUX_IA64_MODE" = X32; then
21763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21764 else
21765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21766 fi
21767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21768 ;;
21769 hppa*64*)
21770 shrext_cmds='.sl'
21771 hardcode_into_libs=yes
21772 dynamic_linker="$host_os dld.sl"
21773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21779 ;;
21780 *)
21781 shrext_cmds='.sl'
21782 dynamic_linker="$host_os dld.sl"
21783 shlibpath_var=SHLIB_PATH
21784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21786 soname_spec='${libname}${release}${shared_ext}$major'
21787 ;;
21788 esac
21789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21790 postinstall_cmds='chmod 555 $lib'
21791 ;;
21792
21793interix3*)
21794 version_type=linux
21795 need_lib_prefix=no
21796 need_version=no
21797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21798 soname_spec='${libname}${release}${shared_ext}$major'
21799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 shlibpath_overrides_runpath=no
21802 hardcode_into_libs=yes
21803 ;;
21804
21805irix5* | irix6* | nonstopux*)
21806 case $host_os in
21807 nonstopux*) version_type=nonstopux ;;
21808 *)
21809 if test "$lt_cv_prog_gnu_ld" = yes; then
21810 version_type=linux
21811 else
21812 version_type=irix
21813 fi ;;
21814 esac
21815 need_lib_prefix=no
21816 need_version=no
21817 soname_spec='${libname}${release}${shared_ext}$major'
21818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21819 case $host_os in
21820 irix5* | nonstopux*)
21821 libsuff= shlibsuff=
21822 ;;
21823 *)
21824 case $LD in # libtool.m4 will add one of these switches to LD
21825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21826 libsuff= shlibsuff= libmagic=32-bit;;
21827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21828 libsuff=32 shlibsuff=N32 libmagic=N32;;
21829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21831 *) libsuff= shlibsuff= libmagic=never-match;;
21832 esac
21833 ;;
21834 esac
21835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21836 shlibpath_overrides_runpath=no
21837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21839 hardcode_into_libs=yes
21840 ;;
21841
21842# No shared lib support for Linux oldld, aout, or coff.
21843linux*oldld* | linux*aout* | linux*coff*)
21844 dynamic_linker=no
21845 ;;
21846
21847# This must be Linux ELF.
21848linux*)
21849 version_type=linux
21850 need_lib_prefix=no
21851 need_version=no
21852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21853 soname_spec='${libname}${release}${shared_ext}$major'
21854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21855 shlibpath_var=LD_LIBRARY_PATH
21856 shlibpath_overrides_runpath=no
21857 # This implies no fast_install, which is unacceptable.
21858 # Some rework will be needed to allow for fast_install
21859 # before this can be enabled.
21860 hardcode_into_libs=yes
21861
21862 # Append ld.so.conf contents to the search path
21863 if test -f /etc/ld.so.conf; then
21864 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' ' '`
21865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21866 fi
21867
21868 # We used to test for /lib/ld.so.1 and disable shared libraries on
21869 # powerpc, because MkLinux only supported shared libraries with the
21870 # GNU dynamic linker. Since this was broken with cross compilers,
21871 # most powerpc-linux boxes support dynamic linking these days and
21872 # people can always --disable-shared, the test was removed, and we
21873 # assume the GNU/Linux dynamic linker is in use.
21874 dynamic_linker='GNU/Linux ld.so'
21875 ;;
21876
21877knetbsd*-gnu)
21878 version_type=linux
21879 need_lib_prefix=no
21880 need_version=no
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21882 soname_spec='${libname}${release}${shared_ext}$major'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath=no
21885 hardcode_into_libs=yes
21886 dynamic_linker='GNU ld.so'
21887 ;;
21888
21889netbsd*)
21890 version_type=sunos
21891 need_lib_prefix=no
21892 need_version=no
21893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21896 dynamic_linker='NetBSD (a.out) ld.so'
21897 else
21898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21899 soname_spec='${libname}${release}${shared_ext}$major'
21900 dynamic_linker='NetBSD ld.elf_so'
21901 fi
21902 shlibpath_var=LD_LIBRARY_PATH
21903 shlibpath_overrides_runpath=yes
21904 hardcode_into_libs=yes
21905 ;;
21906
21907newsos6)
21908 version_type=linux
21909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21910 shlibpath_var=LD_LIBRARY_PATH
21911 shlibpath_overrides_runpath=yes
21912 ;;
21913
21914nto-qnx*)
21915 version_type=linux
21916 need_lib_prefix=no
21917 need_version=no
21918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21919 soname_spec='${libname}${release}${shared_ext}$major'
21920 shlibpath_var=LD_LIBRARY_PATH
21921 shlibpath_overrides_runpath=yes
21922 ;;
21923
21924openbsd*)
21925 version_type=sunos
21926 sys_lib_dlsearch_path_spec="/usr/lib"
21927 need_lib_prefix=no
21928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21929 case $host_os in
21930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21931 *) need_version=no ;;
21932 esac
21933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21935 shlibpath_var=LD_LIBRARY_PATH
21936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21937 case $host_os in
21938 openbsd2.[89] | openbsd2.[89].*)
21939 shlibpath_overrides_runpath=no
21940 ;;
21941 *)
21942 shlibpath_overrides_runpath=yes
21943 ;;
21944 esac
21945 else
21946 shlibpath_overrides_runpath=yes
21947 fi
21948 ;;
21949
21950os2*)
21951 libname_spec='$name'
21952 shrext_cmds=".dll"
21953 need_lib_prefix=no
21954 library_names_spec='$libname${shared_ext} $libname.a'
21955 dynamic_linker='OS/2 ld.exe'
21956 shlibpath_var=LIBPATH
21957 ;;
21958
21959osf3* | osf4* | osf5*)
21960 version_type=osf
21961 need_lib_prefix=no
21962 need_version=no
21963 soname_spec='${libname}${release}${shared_ext}$major'
21964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21965 shlibpath_var=LD_LIBRARY_PATH
21966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21968 ;;
21969
21970solaris*)
21971 version_type=linux
21972 need_lib_prefix=no
21973 need_version=no
21974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21975 soname_spec='${libname}${release}${shared_ext}$major'
21976 shlibpath_var=LD_LIBRARY_PATH
21977 shlibpath_overrides_runpath=yes
21978 hardcode_into_libs=yes
21979 # ldd complains unless libraries are executable
21980 postinstall_cmds='chmod +x $lib'
21981 ;;
21982
21983sunos4*)
21984 version_type=sunos
21985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21987 shlibpath_var=LD_LIBRARY_PATH
21988 shlibpath_overrides_runpath=yes
21989 if test "$with_gnu_ld" = yes; then
21990 need_lib_prefix=no
21991 fi
21992 need_version=yes
21993 ;;
21994
21995sysv4 | sysv4.3*)
21996 version_type=linux
21997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21998 soname_spec='${libname}${release}${shared_ext}$major'
21999 shlibpath_var=LD_LIBRARY_PATH
22000 case $host_vendor in
22001 sni)
22002 shlibpath_overrides_runpath=no
22003 need_lib_prefix=no
22004 export_dynamic_flag_spec='${wl}-Blargedynsym'
22005 runpath_var=LD_RUN_PATH
22006 ;;
22007 siemens)
22008 need_lib_prefix=no
22009 ;;
22010 motorola)
22011 need_lib_prefix=no
22012 need_version=no
22013 shlibpath_overrides_runpath=no
22014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22015 ;;
22016 esac
22017 ;;
22018
22019sysv4*MP*)
22020 if test -d /usr/nec ;then
22021 version_type=linux
22022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22023 soname_spec='$libname${shared_ext}.$major'
22024 shlibpath_var=LD_LIBRARY_PATH
22025 fi
22026 ;;
22027
22028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22029 version_type=freebsd-elf
22030 need_lib_prefix=no
22031 need_version=no
22032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22033 soname_spec='${libname}${release}${shared_ext}$major'
22034 shlibpath_var=LD_LIBRARY_PATH
22035 hardcode_into_libs=yes
22036 if test "$with_gnu_ld" = yes; then
22037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22038 shlibpath_overrides_runpath=no
22039 else
22040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22041 shlibpath_overrides_runpath=yes
22042 case $host_os in
22043 sco3.2v5*)
22044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22045 ;;
22046 esac
22047 fi
22048 sys_lib_dlsearch_path_spec='/usr/lib'
22049 ;;
22050
22051uts4*)
22052 version_type=linux
22053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22054 soname_spec='${libname}${release}${shared_ext}$major'
22055 shlibpath_var=LD_LIBRARY_PATH
22056 ;;
22057
22058*)
22059 dynamic_linker=no
22060 ;;
22061esac
22062{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22063echo "${ECHO_T}$dynamic_linker" >&6; }
22064test "$dynamic_linker" = no && can_build_shared=no
22065
22066variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22067if test "$GCC" = yes; then
22068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22069fi
22070
22071{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22072echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22073hardcode_action_F77=
22074if test -n "$hardcode_libdir_flag_spec_F77" || \
22075 test -n "$runpath_var_F77" || \
22076 test "X$hardcode_automatic_F77" = "Xyes" ; then
22077
22078 # We can hardcode non-existant directories.
22079 if test "$hardcode_direct_F77" != no &&
22080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22081 # have to relink, otherwise we might link with an installed library
22082 # when we should be linking with a yet-to-be-installed one
22083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22084 test "$hardcode_minus_L_F77" != no; then
22085 # Linking always hardcodes the temporary library directory.
22086 hardcode_action_F77=relink
22087 else
22088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22089 hardcode_action_F77=immediate
22090 fi
22091else
22092 # We cannot hardcode anything, or else we can only hardcode existing
22093 # directories.
22094 hardcode_action_F77=unsupported
22095fi
22096{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22097echo "${ECHO_T}$hardcode_action_F77" >&6; }
22098
22099if test "$hardcode_action_F77" = relink; then
22100 # Fast installation is not supported
22101 enable_fast_install=no
22102elif test "$shlibpath_overrides_runpath" = yes ||
22103 test "$enable_shared" = no; then
22104 # Fast installation is not necessary
22105 enable_fast_install=needless
22106fi
22107
22108
22109# The else clause should only fire when bootstrapping the
22110# libtool distribution, otherwise you forgot to ship ltmain.sh
22111# with your package, and you will get complaints that there are
22112# no rules to generate ltmain.sh.
22113if test -f "$ltmain"; then
22114 # See if we are running on zsh, and set the options which allow our commands through
22115 # without removal of \ escapes.
22116 if test -n "${ZSH_VERSION+set}" ; then
22117 setopt NO_GLOB_SUBST
22118 fi
22119 # Now quote all the things that may contain metacharacters while being
22120 # careful not to overquote the AC_SUBSTed values. We take copies of the
22121 # variables and quote the copies for generation of the libtool script.
22122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22123 SED SHELL STRIP \
22124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22126 deplibs_check_method reload_flag reload_cmds need_locks \
22127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22128 lt_cv_sys_global_symbol_to_c_name_address \
22129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22130 old_postinstall_cmds old_postuninstall_cmds \
22131 compiler_F77 \
22132 CC_F77 \
22133 LD_F77 \
22134 lt_prog_compiler_wl_F77 \
22135 lt_prog_compiler_pic_F77 \
22136 lt_prog_compiler_static_F77 \
22137 lt_prog_compiler_no_builtin_flag_F77 \
22138 export_dynamic_flag_spec_F77 \
22139 thread_safe_flag_spec_F77 \
22140 whole_archive_flag_spec_F77 \
22141 enable_shared_with_static_runtimes_F77 \
22142 old_archive_cmds_F77 \
22143 old_archive_from_new_cmds_F77 \
22144 predep_objects_F77 \
22145 postdep_objects_F77 \
22146 predeps_F77 \
22147 postdeps_F77 \
22148 compiler_lib_search_path_F77 \
22149 archive_cmds_F77 \
22150 archive_expsym_cmds_F77 \
22151 postinstall_cmds_F77 \
22152 postuninstall_cmds_F77 \
22153 old_archive_from_expsyms_cmds_F77 \
22154 allow_undefined_flag_F77 \
22155 no_undefined_flag_F77 \
22156 export_symbols_cmds_F77 \
22157 hardcode_libdir_flag_spec_F77 \
22158 hardcode_libdir_flag_spec_ld_F77 \
22159 hardcode_libdir_separator_F77 \
22160 hardcode_automatic_F77 \
22161 module_cmds_F77 \
22162 module_expsym_cmds_F77 \
22163 lt_cv_prog_compiler_c_o_F77 \
22164 exclude_expsyms_F77 \
22165 include_expsyms_F77; do
22166
22167 case $var in
22168 old_archive_cmds_F77 | \
22169 old_archive_from_new_cmds_F77 | \
22170 archive_cmds_F77 | \
22171 archive_expsym_cmds_F77 | \
22172 module_cmds_F77 | \
22173 module_expsym_cmds_F77 | \
22174 old_archive_from_expsyms_cmds_F77 | \
22175 export_symbols_cmds_F77 | \
22176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22177 postinstall_cmds | postuninstall_cmds | \
22178 old_postinstall_cmds | old_postuninstall_cmds | \
22179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22180 # Double-quote double-evaled strings.
22181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22182 ;;
22183 *)
22184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22185 ;;
22186 esac
22187 done
22188
22189 case $lt_echo in
22190 *'\$0 --fallback-echo"')
22191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22192 ;;
22193 esac
22194
22195cfgfile="$ofile"
22196
22197 cat <<__EOF__ >> "$cfgfile"
22198# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22199
22200# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22201
22202# Shell to use when invoking shell scripts.
22203SHELL=$lt_SHELL
22204
22205# Whether or not to build shared libraries.
22206build_libtool_libs=$enable_shared
22207
22208# Whether or not to build static libraries.
22209build_old_libs=$enable_static
22210
22211# Whether or not to add -lc for building shared libraries.
22212build_libtool_need_lc=$archive_cmds_need_lc_F77
22213
22214# Whether or not to disallow shared libs when runtime libs are static
22215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22216
22217# Whether or not to optimize for fast installation.
22218fast_install=$enable_fast_install
22219
22220# The host system.
22221host_alias=$host_alias
22222host=$host
22223host_os=$host_os
22224
22225# The build system.
22226build_alias=$build_alias
22227build=$build
22228build_os=$build_os
22229
22230# An echo program that does not interpret backslashes.
22231echo=$lt_echo
22232
22233# The archiver.
22234AR=$lt_AR
22235AR_FLAGS=$lt_AR_FLAGS
22236
22237# A C compiler.
22238LTCC=$lt_LTCC
22239
22240# LTCC compiler flags.
22241LTCFLAGS=$lt_LTCFLAGS
22242
22243# A language-specific compiler.
22244CC=$lt_compiler_F77
22245
22246# Is the compiler the GNU C compiler?
22247with_gcc=$GCC_F77
22248
22249# An ERE matcher.
22250EGREP=$lt_EGREP
22251
22252# The linker used to build libraries.
22253LD=$lt_LD_F77
22254
22255# Whether we need hard or soft links.
22256LN_S=$lt_LN_S
22257
22258# A BSD-compatible nm program.
22259NM=$lt_NM
22260
22261# A symbol stripping program
22262STRIP=$lt_STRIP
22263
22264# Used to examine libraries when file_magic_cmd begins "file"
22265MAGIC_CMD=$MAGIC_CMD
22266
22267# Used on cygwin: DLL creation program.
22268DLLTOOL="$DLLTOOL"
22269
22270# Used on cygwin: object dumper.
22271OBJDUMP="$OBJDUMP"
22272
22273# Used on cygwin: assembler.
22274AS="$AS"
22275
22276# The name of the directory that contains temporary libtool files.
22277objdir=$objdir
22278
22279# How to create reloadable object files.
22280reload_flag=$lt_reload_flag
22281reload_cmds=$lt_reload_cmds
22282
22283# How to pass a linker flag through the compiler.
22284wl=$lt_lt_prog_compiler_wl_F77
22285
22286# Object file suffix (normally "o").
22287objext="$ac_objext"
22288
22289# Old archive suffix (normally "a").
22290libext="$libext"
22291
22292# Shared library suffix (normally ".so").
22293shrext_cmds='$shrext_cmds'
22294
22295# Executable file suffix (normally "").
22296exeext="$exeext"
22297
22298# Additional compiler flags for building library objects.
22299pic_flag=$lt_lt_prog_compiler_pic_F77
22300pic_mode=$pic_mode
22301
22302# What is the maximum length of a command?
22303max_cmd_len=$lt_cv_sys_max_cmd_len
22304
22305# Does compiler simultaneously support -c and -o options?
22306compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22307
22308# Must we lock files when doing compilation?
22309need_locks=$lt_need_locks
22310
22311# Do we need the lib prefix for modules?
22312need_lib_prefix=$need_lib_prefix
22313
22314# Do we need a version for libraries?
22315need_version=$need_version
22316
22317# Whether dlopen is supported.
22318dlopen_support=$enable_dlopen
22319
22320# Whether dlopen of programs is supported.
22321dlopen_self=$enable_dlopen_self
22322
22323# Whether dlopen of statically linked programs is supported.
22324dlopen_self_static=$enable_dlopen_self_static
22325
22326# Compiler flag to prevent dynamic linking.
22327link_static_flag=$lt_lt_prog_compiler_static_F77
22328
22329# Compiler flag to turn off builtin functions.
22330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22331
22332# Compiler flag to allow reflexive dlopens.
22333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22334
22335# Compiler flag to generate shared objects directly from archives.
22336whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22337
22338# Compiler flag to generate thread-safe objects.
22339thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22340
22341# Library versioning type.
22342version_type=$version_type
22343
22344# Format of library name prefix.
22345libname_spec=$lt_libname_spec
22346
22347# List of archive names. First name is the real one, the rest are links.
22348# The last name is the one that the linker finds with -lNAME.
22349library_names_spec=$lt_library_names_spec
22350
22351# The coded name of the library, if different from the real name.
22352soname_spec=$lt_soname_spec
22353
22354# Commands used to build and install an old-style archive.
22355RANLIB=$lt_RANLIB
22356old_archive_cmds=$lt_old_archive_cmds_F77
22357old_postinstall_cmds=$lt_old_postinstall_cmds
22358old_postuninstall_cmds=$lt_old_postuninstall_cmds
22359
22360# Create an old-style archive from a shared archive.
22361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22362
22363# Create a temporary old-style archive to link instead of a shared archive.
22364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22365
22366# Commands used to build and install a shared archive.
22367archive_cmds=$lt_archive_cmds_F77
22368archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22369postinstall_cmds=$lt_postinstall_cmds
22370postuninstall_cmds=$lt_postuninstall_cmds
22371
22372# Commands used to build a loadable module (assumed same as above if empty)
22373module_cmds=$lt_module_cmds_F77
22374module_expsym_cmds=$lt_module_expsym_cmds_F77
22375
22376# Commands to strip libraries.
22377old_striplib=$lt_old_striplib
22378striplib=$lt_striplib
22379
22380# Dependencies to place before the objects being linked to create a
22381# shared library.
22382predep_objects=$lt_predep_objects_F77
22383
22384# Dependencies to place after the objects being linked to create a
22385# shared library.
22386postdep_objects=$lt_postdep_objects_F77
22387
22388# Dependencies to place before the objects being linked to create a
22389# shared library.
22390predeps=$lt_predeps_F77
22391
22392# Dependencies to place after the objects being linked to create a
22393# shared library.
22394postdeps=$lt_postdeps_F77
22395
22396# The library search path used internally by the compiler when linking
22397# a shared library.
22398compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22399
22400# Method to check whether dependent libraries are shared objects.
22401deplibs_check_method=$lt_deplibs_check_method
22402
22403# Command to use when deplibs_check_method == file_magic.
22404file_magic_cmd=$lt_file_magic_cmd
22405
22406# Flag that allows shared libraries with undefined symbols to be built.
22407allow_undefined_flag=$lt_allow_undefined_flag_F77
22408
22409# Flag that forces no undefined symbols.
22410no_undefined_flag=$lt_no_undefined_flag_F77
22411
22412# Commands used to finish a libtool library installation in a directory.
22413finish_cmds=$lt_finish_cmds
22414
22415# Same as above, but a single script fragment to be evaled but not shown.
22416finish_eval=$lt_finish_eval
22417
22418# Take the output of nm and produce a listing of raw symbols and C names.
22419global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22420
22421# Transform the output of nm in a proper C declaration
22422global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22423
22424# Transform the output of nm in a C name address pair
22425global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22426
22427# This is the shared library runtime path variable.
22428runpath_var=$runpath_var
22429
22430# This is the shared library path variable.
22431shlibpath_var=$shlibpath_var
22432
22433# Is shlibpath searched before the hard-coded library search path?
22434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22435
22436# How to hardcode a shared library path into an executable.
22437hardcode_action=$hardcode_action_F77
22438
22439# Whether we should hardcode library paths into libraries.
22440hardcode_into_libs=$hardcode_into_libs
22441
22442# Flag to hardcode \$libdir into a binary during linking.
22443# This must work even if \$libdir does not exist.
22444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22445
22446# If ld is used when linking, flag to hardcode \$libdir into
22447# a binary during linking. This must work even if \$libdir does
22448# not exist.
22449hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22450
22451# Whether we need a single -rpath flag with a separated argument.
22452hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22453
22454# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22455# resulting binary.
22456hardcode_direct=$hardcode_direct_F77
22457
22458# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22459# resulting binary.
22460hardcode_minus_L=$hardcode_minus_L_F77
22461
22462# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22463# the resulting binary.
22464hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22465
22466# Set to yes if building a shared library automatically hardcodes DIR into the library
22467# and all subsequent libraries and executables linked against it.
22468hardcode_automatic=$hardcode_automatic_F77
22469
22470# Variables whose values should be saved in libtool wrapper scripts and
22471# restored at relink time.
22472variables_saved_for_relink="$variables_saved_for_relink"
22473
22474# Whether libtool must link a program against all its dependency libraries.
22475link_all_deplibs=$link_all_deplibs_F77
22476
22477# Compile-time system search path for libraries
22478sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22479
22480# Run-time system search path for libraries
22481sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22482
22483# Fix the shell variable \$srcfile for the compiler.
22484fix_srcfile_path="$fix_srcfile_path_F77"
22485
22486# Set to yes if exported symbols are required.
22487always_export_symbols=$always_export_symbols_F77
22488
22489# The commands to list exported symbols.
22490export_symbols_cmds=$lt_export_symbols_cmds_F77
22491
22492# The commands to extract the exported symbol list from a shared archive.
22493extract_expsyms_cmds=$lt_extract_expsyms_cmds
22494
22495# Symbols that should not be listed in the preloaded symbols.
22496exclude_expsyms=$lt_exclude_expsyms_F77
22497
22498# Symbols that must always be exported.
22499include_expsyms=$lt_include_expsyms_F77
22500
22501# ### END LIBTOOL TAG CONFIG: $tagname
22502
22503__EOF__
22504
22505
22506else
22507 # If there is no Makefile yet, we rely on a make rule to execute
22508 # `config.status --recheck' to rerun these tests and create the
22509 # libtool script then.
22510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22511 if test -f "$ltmain_in"; then
22512 test -f Makefile && make "$ltmain"
22513 fi
22514fi
22515
22516
22517ac_ext=c
22518ac_cpp='$CPP $CPPFLAGS'
22519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521ac_compiler_gnu=$ac_cv_c_compiler_gnu
22522
22523CC="$lt_save_CC"
22524
22525 else
22526 tagname=""
22527 fi
22528 ;;
22529
22530 GCJ)
22531 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22532 ac_ext=c
22533ac_cpp='$CPP $CPPFLAGS'
22534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22536ac_compiler_gnu=$ac_cv_c_compiler_gnu
22537
22538
22539# Source file extension for Java test sources.
22540ac_ext=java
22541
22542# Object file extension for compiled Java test sources.
22543objext=o
22544objext_GCJ=$objext
22545
22546# Code to be used in simple compile tests
22547lt_simple_compile_test_code="class foo {}\n"
22548
22549# Code to be used in simple link tests
22550lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22551
22552# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22553
22554# If no C compiler was specified, use CC.
22555LTCC=${LTCC-"$CC"}
22556
22557# If no C compiler flags were specified, use CFLAGS.
22558LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22559
22560# Allow CC to be a program name with arguments.
22561compiler=$CC
22562
22563
22564# save warnings/boilerplate of simple test code
22565ac_outfile=conftest.$ac_objext
22566printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22567eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22568_lt_compiler_boilerplate=`cat conftest.err`
22569$rm conftest*
22570
22571ac_outfile=conftest.$ac_objext
22572printf "$lt_simple_link_test_code" >conftest.$ac_ext
22573eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22574_lt_linker_boilerplate=`cat conftest.err`
22575$rm conftest*
22576
22577
22578# Allow CC to be a program name with arguments.
22579lt_save_CC="$CC"
22580CC=${GCJ-"gcj"}
22581compiler=$CC
22582compiler_GCJ=$CC
22583for cc_temp in $compiler""; do
22584 case $cc_temp in
22585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22587 \-*) ;;
22588 *) break;;
22589 esac
22590done
22591cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22592
22593
22594# GCJ did not exist at the time GCC didn't implicitly link libc in.
22595archive_cmds_need_lc_GCJ=no
22596
22597old_archive_cmds_GCJ=$old_archive_cmds
22598
22599
22600lt_prog_compiler_no_builtin_flag_GCJ=
22601
22602if test "$GCC" = yes; then
22603 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22604
22605
22606{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22607echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22608if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610else
22611 lt_cv_prog_compiler_rtti_exceptions=no
22612 ac_outfile=conftest.$ac_objext
22613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22614 lt_compiler_flag="-fno-rtti -fno-exceptions"
22615 # Insert the option either (1) after the last *FLAGS variable, or
22616 # (2) before a word containing "conftest.", or (3) at the end.
22617 # Note that $ac_compile itself does not contain backslashes and begins
22618 # with a dollar sign (not a hyphen), so the echo should work correctly.
22619 # The option is referenced via a variable to avoid confusing sed.
22620 lt_compile=`echo "$ac_compile" | $SED \
22621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22623 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000022624 (eval echo "\"\$as_me:22624: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022625 (eval "$lt_compile" 2>conftest.err)
22626 ac_status=$?
22627 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000022628 echo "$as_me:22628: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022629 if (exit $ac_status) && test -s "$ac_outfile"; then
22630 # The compiler can only warn and ignore the option if not recognized
22631 # So say no if there are warnings other than the usual output.
22632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22635 lt_cv_prog_compiler_rtti_exceptions=yes
22636 fi
22637 fi
22638 $rm conftest*
22639
22640fi
22641{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22642echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22643
22644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22645 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22646else
22647 :
22648fi
22649
22650fi
22651
22652lt_prog_compiler_wl_GCJ=
22653lt_prog_compiler_pic_GCJ=
22654lt_prog_compiler_static_GCJ=
22655
22656{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22657echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22658
22659 if test "$GCC" = yes; then
22660 lt_prog_compiler_wl_GCJ='-Wl,'
22661 lt_prog_compiler_static_GCJ='-static'
22662
22663 case $host_os in
22664 aix*)
22665 # All AIX code is PIC.
22666 if test "$host_cpu" = ia64; then
22667 # AIX 5 now supports IA64 processor
22668 lt_prog_compiler_static_GCJ='-Bstatic'
22669 fi
22670 ;;
22671
22672 amigaos*)
22673 # FIXME: we need at least 68020 code to build shared libraries, but
22674 # adding the `-m68020' flag to GCC prevents building anything better,
22675 # like `-m68040'.
22676 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22677 ;;
22678
22679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22680 # PIC is the default for these OSes.
22681 ;;
22682
22683 mingw* | pw32* | os2*)
22684 # This hack is so that the source file can tell whether it is being
22685 # built for inclusion in a dll (and should export symbols for example).
22686 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22687 ;;
22688
22689 darwin* | rhapsody*)
22690 # PIC is the default on this platform
22691 # Common symbols not allowed in MH_DYLIB files
22692 lt_prog_compiler_pic_GCJ='-fno-common'
22693 ;;
22694
22695 interix3*)
22696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22697 # Instead, we relocate shared libraries at runtime.
22698 ;;
22699
22700 msdosdjgpp*)
22701 # Just because we use GCC doesn't mean we suddenly get shared libraries
22702 # on systems that don't support them.
22703 lt_prog_compiler_can_build_shared_GCJ=no
22704 enable_shared=no
22705 ;;
22706
22707 sysv4*MP*)
22708 if test -d /usr/nec; then
22709 lt_prog_compiler_pic_GCJ=-Kconform_pic
22710 fi
22711 ;;
22712
22713 hpux*)
22714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22715 # not for PA HP-UX.
22716 case $host_cpu in
22717 hppa*64*|ia64*)
22718 # +Z the default
22719 ;;
22720 *)
22721 lt_prog_compiler_pic_GCJ='-fPIC'
22722 ;;
22723 esac
22724 ;;
22725
22726 *)
22727 lt_prog_compiler_pic_GCJ='-fPIC'
22728 ;;
22729 esac
22730 else
22731 # PORTME Check for flag to pass linker flags through the system compiler.
22732 case $host_os in
22733 aix*)
22734 lt_prog_compiler_wl_GCJ='-Wl,'
22735 if test "$host_cpu" = ia64; then
22736 # AIX 5 now supports IA64 processor
22737 lt_prog_compiler_static_GCJ='-Bstatic'
22738 else
22739 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22740 fi
22741 ;;
22742 darwin*)
22743 # PIC is the default on this platform
22744 # Common symbols not allowed in MH_DYLIB files
22745 case $cc_basename in
22746 xlc*)
22747 lt_prog_compiler_pic_GCJ='-qnocommon'
22748 lt_prog_compiler_wl_GCJ='-Wl,'
22749 ;;
22750 esac
22751 ;;
22752
22753 mingw* | pw32* | os2*)
22754 # This hack is so that the source file can tell whether it is being
22755 # built for inclusion in a dll (and should export symbols for example).
22756 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22757 ;;
22758
22759 hpux9* | hpux10* | hpux11*)
22760 lt_prog_compiler_wl_GCJ='-Wl,'
22761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22762 # not for PA HP-UX.
22763 case $host_cpu in
22764 hppa*64*|ia64*)
22765 # +Z the default
22766 ;;
22767 *)
22768 lt_prog_compiler_pic_GCJ='+Z'
22769 ;;
22770 esac
22771 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22772 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22773 ;;
22774
22775 irix5* | irix6* | nonstopux*)
22776 lt_prog_compiler_wl_GCJ='-Wl,'
22777 # PIC (with -KPIC) is the default.
22778 lt_prog_compiler_static_GCJ='-non_shared'
22779 ;;
22780
22781 newsos6)
22782 lt_prog_compiler_pic_GCJ='-KPIC'
22783 lt_prog_compiler_static_GCJ='-Bstatic'
22784 ;;
22785
22786 linux*)
22787 case $cc_basename in
22788 icc* | ecc*)
22789 lt_prog_compiler_wl_GCJ='-Wl,'
22790 lt_prog_compiler_pic_GCJ='-KPIC'
22791 lt_prog_compiler_static_GCJ='-static'
22792 ;;
22793 pgcc* | pgf77* | pgf90* | pgf95*)
22794 # Portland Group compilers (*not* the Pentium gcc compiler,
22795 # which looks to be a dead project)
22796 lt_prog_compiler_wl_GCJ='-Wl,'
22797 lt_prog_compiler_pic_GCJ='-fpic'
22798 lt_prog_compiler_static_GCJ='-Bstatic'
22799 ;;
22800 ccc*)
22801 lt_prog_compiler_wl_GCJ='-Wl,'
22802 # All Alpha code is PIC.
22803 lt_prog_compiler_static_GCJ='-non_shared'
22804 ;;
22805 esac
22806 ;;
22807
22808 osf3* | osf4* | osf5*)
22809 lt_prog_compiler_wl_GCJ='-Wl,'
22810 # All OSF/1 code is PIC.
22811 lt_prog_compiler_static_GCJ='-non_shared'
22812 ;;
22813
22814 solaris*)
22815 lt_prog_compiler_pic_GCJ='-KPIC'
22816 lt_prog_compiler_static_GCJ='-Bstatic'
22817 case $cc_basename in
22818 f77* | f90* | f95*)
22819 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22820 *)
22821 lt_prog_compiler_wl_GCJ='-Wl,';;
22822 esac
22823 ;;
22824
22825 sunos4*)
22826 lt_prog_compiler_wl_GCJ='-Qoption ld '
22827 lt_prog_compiler_pic_GCJ='-PIC'
22828 lt_prog_compiler_static_GCJ='-Bstatic'
22829 ;;
22830
22831 sysv4 | sysv4.2uw2* | sysv4.3*)
22832 lt_prog_compiler_wl_GCJ='-Wl,'
22833 lt_prog_compiler_pic_GCJ='-KPIC'
22834 lt_prog_compiler_static_GCJ='-Bstatic'
22835 ;;
22836
22837 sysv4*MP*)
22838 if test -d /usr/nec ;then
22839 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22840 lt_prog_compiler_static_GCJ='-Bstatic'
22841 fi
22842 ;;
22843
22844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22845 lt_prog_compiler_wl_GCJ='-Wl,'
22846 lt_prog_compiler_pic_GCJ='-KPIC'
22847 lt_prog_compiler_static_GCJ='-Bstatic'
22848 ;;
22849
22850 unicos*)
22851 lt_prog_compiler_wl_GCJ='-Wl,'
22852 lt_prog_compiler_can_build_shared_GCJ=no
22853 ;;
22854
22855 uts4*)
22856 lt_prog_compiler_pic_GCJ='-pic'
22857 lt_prog_compiler_static_GCJ='-Bstatic'
22858 ;;
22859
22860 *)
22861 lt_prog_compiler_can_build_shared_GCJ=no
22862 ;;
22863 esac
22864 fi
22865
22866{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22867echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22868
22869#
22870# Check to make sure the PIC flag actually works.
22871#
22872if test -n "$lt_prog_compiler_pic_GCJ"; then
22873
22874{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22875echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22876if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22878else
22879 lt_prog_compiler_pic_works_GCJ=no
22880 ac_outfile=conftest.$ac_objext
22881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22882 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22883 # Insert the option either (1) after the last *FLAGS variable, or
22884 # (2) before a word containing "conftest.", or (3) at the end.
22885 # Note that $ac_compile itself does not contain backslashes and begins
22886 # with a dollar sign (not a hyphen), so the echo should work correctly.
22887 # The option is referenced via a variable to avoid confusing sed.
22888 lt_compile=`echo "$ac_compile" | $SED \
22889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22891 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000022892 (eval echo "\"\$as_me:22892: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022893 (eval "$lt_compile" 2>conftest.err)
22894 ac_status=$?
22895 cat conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000022896 echo "$as_me:22896: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022897 if (exit $ac_status) && test -s "$ac_outfile"; then
22898 # The compiler can only warn and ignore the option if not recognized
22899 # So say no if there are warnings other than the usual output.
22900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22903 lt_prog_compiler_pic_works_GCJ=yes
22904 fi
22905 fi
22906 $rm conftest*
22907
22908fi
22909{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22910echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22911
22912if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22913 case $lt_prog_compiler_pic_GCJ in
22914 "" | " "*) ;;
22915 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22916 esac
22917else
22918 lt_prog_compiler_pic_GCJ=
22919 lt_prog_compiler_can_build_shared_GCJ=no
22920fi
22921
22922fi
22923case $host_os in
22924 # For platforms which do not support PIC, -DPIC is meaningless:
22925 *djgpp*)
22926 lt_prog_compiler_pic_GCJ=
22927 ;;
22928 *)
22929 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22930 ;;
22931esac
22932
22933#
22934# Check to make sure the static flag actually works.
22935#
22936wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22937{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22938echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22939if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22941else
22942 lt_prog_compiler_static_works_GCJ=no
22943 save_LDFLAGS="$LDFLAGS"
22944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22945 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22947 # The linker can only warn and ignore the option if not recognized
22948 # So say no if there are warnings
22949 if test -s conftest.err; then
22950 # Append any errors to the config.log.
22951 cat conftest.err 1>&5
22952 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22954 if diff conftest.exp conftest.er2 >/dev/null; then
22955 lt_prog_compiler_static_works_GCJ=yes
22956 fi
22957 else
22958 lt_prog_compiler_static_works_GCJ=yes
22959 fi
22960 fi
22961 $rm conftest*
22962 LDFLAGS="$save_LDFLAGS"
22963
22964fi
22965{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22966echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22967
22968if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22969 :
22970else
22971 lt_prog_compiler_static_GCJ=
22972fi
22973
22974
22975{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22976echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22977if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979else
22980 lt_cv_prog_compiler_c_o_GCJ=no
22981 $rm -r conftest 2>/dev/null
22982 mkdir conftest
22983 cd conftest
22984 mkdir out
22985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22986
22987 lt_compiler_flag="-o out/conftest2.$ac_objext"
22988 # Insert the option either (1) after the last *FLAGS variable, or
22989 # (2) before a word containing "conftest.", or (3) at the end.
22990 # Note that $ac_compile itself does not contain backslashes and begins
22991 # with a dollar sign (not a hyphen), so the echo should work correctly.
22992 lt_compile=`echo "$ac_compile" | $SED \
22993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22995 -e 's:$: $lt_compiler_flag:'`
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000022996 (eval echo "\"\$as_me:22996: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022997 (eval "$lt_compile" 2>out/conftest.err)
22998 ac_status=$?
22999 cat out/conftest.err >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000023000 echo "$as_me:23000: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23002 then
23003 # The compiler can only warn and ignore the option if not recognized
23004 # So say no if there are warnings
23005 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23008 lt_cv_prog_compiler_c_o_GCJ=yes
23009 fi
23010 fi
23011 chmod u+w . 2>&5
23012 $rm conftest*
23013 # SGI C++ compiler will create directory out/ii_files/ for
23014 # template instantiation
23015 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23016 $rm out/* && rmdir out
23017 cd ..
23018 rmdir conftest
23019 $rm conftest*
23020
23021fi
23022{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23023echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23024
23025
23026hard_links="nottested"
23027if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23028 # do not overwrite the value of need_locks provided by the user
23029 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23030echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23031 hard_links=yes
23032 $rm conftest*
23033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23034 touch conftest.a
23035 ln conftest.a conftest.b 2>&5 || hard_links=no
23036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23037 { echo "$as_me:$LINENO: result: $hard_links" >&5
23038echo "${ECHO_T}$hard_links" >&6; }
23039 if test "$hard_links" = no; then
23040 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23041echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23042 need_locks=warn
23043 fi
23044else
23045 need_locks=no
23046fi
23047
23048{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23049echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23050
23051 runpath_var=
23052 allow_undefined_flag_GCJ=
23053 enable_shared_with_static_runtimes_GCJ=no
23054 archive_cmds_GCJ=
23055 archive_expsym_cmds_GCJ=
23056 old_archive_From_new_cmds_GCJ=
23057 old_archive_from_expsyms_cmds_GCJ=
23058 export_dynamic_flag_spec_GCJ=
23059 whole_archive_flag_spec_GCJ=
23060 thread_safe_flag_spec_GCJ=
23061 hardcode_libdir_flag_spec_GCJ=
23062 hardcode_libdir_flag_spec_ld_GCJ=
23063 hardcode_libdir_separator_GCJ=
23064 hardcode_direct_GCJ=no
23065 hardcode_minus_L_GCJ=no
23066 hardcode_shlibpath_var_GCJ=unsupported
23067 link_all_deplibs_GCJ=unknown
23068 hardcode_automatic_GCJ=no
23069 module_cmds_GCJ=
23070 module_expsym_cmds_GCJ=
23071 always_export_symbols_GCJ=no
23072 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23073 # include_expsyms should be a list of space-separated symbols to be *always*
23074 # included in the symbol list
23075 include_expsyms_GCJ=
23076 # exclude_expsyms can be an extended regexp of symbols to exclude
23077 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23078 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23079 # as well as any symbol that contains `d'.
23080 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23081 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23082 # platforms (ab)use it in PIC code, but their linkers get confused if
23083 # the symbol is explicitly referenced. Since portable code cannot
23084 # rely on this symbol name, it's probably fine to never include it in
23085 # preloaded symbol tables.
23086 extract_expsyms_cmds=
23087 # Just being paranoid about ensuring that cc_basename is set.
23088 for cc_temp in $compiler""; do
23089 case $cc_temp in
23090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23092 \-*) ;;
23093 *) break;;
23094 esac
23095done
23096cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23097
23098 case $host_os in
23099 cygwin* | mingw* | pw32*)
23100 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23101 # When not using gcc, we currently assume that we are using
23102 # Microsoft Visual C++.
23103 if test "$GCC" != yes; then
23104 with_gnu_ld=no
23105 fi
23106 ;;
23107 interix*)
23108 # we just hope/assume this is gcc and not c89 (= MSVC++)
23109 with_gnu_ld=yes
23110 ;;
23111 openbsd*)
23112 with_gnu_ld=no
23113 ;;
23114 esac
23115
23116 ld_shlibs_GCJ=yes
23117 if test "$with_gnu_ld" = yes; then
23118 # If archive_cmds runs LD, not CC, wlarc should be empty
23119 wlarc='${wl}'
23120
23121 # Set some defaults for GNU ld with shared library support. These
23122 # are reset later if shared libraries are not supported. Putting them
23123 # here allows them to be overridden if necessary.
23124 runpath_var=LD_RUN_PATH
23125 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23126 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23127 # ancient GNU ld didn't support --whole-archive et. al.
23128 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23129 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23130 else
23131 whole_archive_flag_spec_GCJ=
23132 fi
23133 supports_anon_versioning=no
23134 case `$LD -v 2>/dev/null` in
23135 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23136 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23137 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23138 *\ 2.11.*) ;; # other 2.11 versions
23139 *) supports_anon_versioning=yes ;;
23140 esac
23141
23142 # See if GNU ld supports shared libraries.
23143 case $host_os in
23144 aix3* | aix4* | aix5*)
23145 # On AIX/PPC, the GNU linker is very broken
23146 if test "$host_cpu" != ia64; then
23147 ld_shlibs_GCJ=no
23148 cat <<EOF 1>&2
23149
23150*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23151*** to be unable to reliably create shared libraries on AIX.
23152*** Therefore, libtool is disabling shared libraries support. If you
23153*** really care for shared libraries, you may want to modify your PATH
23154*** so that a non-GNU linker is found, and then restart.
23155
23156EOF
23157 fi
23158 ;;
23159
23160 amigaos*)
23161 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)'
23162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23163 hardcode_minus_L_GCJ=yes
23164
23165 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23166 # that the semantics of dynamic libraries on AmigaOS, at least up
23167 # to version 4, is to share data among multiple programs linked
23168 # with the same dynamic library. Since this doesn't match the
23169 # behavior of shared libraries on other platforms, we can't use
23170 # them.
23171 ld_shlibs_GCJ=no
23172 ;;
23173
23174 beos*)
23175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23176 allow_undefined_flag_GCJ=unsupported
23177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23178 # support --undefined. This deserves some investigation. FIXME
23179 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23180 else
23181 ld_shlibs_GCJ=no
23182 fi
23183 ;;
23184
23185 cygwin* | mingw* | pw32*)
23186 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23187 # as there is no search path for DLLs.
23188 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23189 allow_undefined_flag_GCJ=unsupported
23190 always_export_symbols_GCJ=no
23191 enable_shared_with_static_runtimes_GCJ=yes
23192 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23193
23194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23196 # If the export-symbols file already is a .def file (1st line
23197 # is EXPORTS), use it as is; otherwise, prepend...
23198 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23199 cp $export_symbols $output_objdir/$soname.def;
23200 else
23201 echo EXPORTS > $output_objdir/$soname.def;
23202 cat $export_symbols >> $output_objdir/$soname.def;
23203 fi~
23204 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23205 else
23206 ld_shlibs_GCJ=no
23207 fi
23208 ;;
23209
23210 interix3*)
23211 hardcode_direct_GCJ=no
23212 hardcode_shlibpath_var_GCJ=no
23213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23214 export_dynamic_flag_spec_GCJ='${wl}-E'
23215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23216 # Instead, shared libraries are loaded at an image base (0x10000000 by
23217 # default) and relocated if they conflict, which is a slow very memory
23218 # consuming and fragmenting process. To avoid this, we pick a random,
23219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23221 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'
23222 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'
23223 ;;
23224
23225 linux*)
23226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23227 tmp_addflag=
23228 case $cc_basename,$host_cpu in
23229 pgcc*) # Portland Group C compiler
23230 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'
23231 tmp_addflag=' $pic_flag'
23232 ;;
23233 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23234 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'
23235 tmp_addflag=' $pic_flag -Mnomain' ;;
23236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23237 tmp_addflag=' -i_dynamic' ;;
23238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23239 tmp_addflag=' -i_dynamic -nofor_main' ;;
23240 ifc* | ifort*) # Intel Fortran compiler
23241 tmp_addflag=' -nofor_main' ;;
23242 esac
23243 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23244
23245 if test $supports_anon_versioning = yes; then
23246 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23248 $echo "local: *; };" >> $output_objdir/$libname.ver~
23249 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23250 fi
23251 else
23252 ld_shlibs_GCJ=no
23253 fi
23254 ;;
23255
23256 netbsd*)
23257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23258 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23259 wlarc=
23260 else
23261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23263 fi
23264 ;;
23265
23266 solaris*)
23267 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23268 ld_shlibs_GCJ=no
23269 cat <<EOF 1>&2
23270
23271*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23272*** create shared libraries on Solaris systems. Therefore, libtool
23273*** is disabling shared libraries support. We urge you to upgrade GNU
23274*** binutils to release 2.9.1 or newer. Another option is to modify
23275*** your PATH or compiler configuration so that the native linker is
23276*** used, and then restart.
23277
23278EOF
23279 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23282 else
23283 ld_shlibs_GCJ=no
23284 fi
23285 ;;
23286
23287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23288 case `$LD -v 2>&1` in
23289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23290 ld_shlibs_GCJ=no
23291 cat <<_LT_EOF 1>&2
23292
23293*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23294*** reliably create shared libraries on SCO systems. Therefore, libtool
23295*** is disabling shared libraries support. We urge you to upgrade GNU
23296*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23297*** your PATH or compiler configuration so that the native linker is
23298*** used, and then restart.
23299
23300_LT_EOF
23301 ;;
23302 *)
23303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23304 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23307 else
23308 ld_shlibs_GCJ=no
23309 fi
23310 ;;
23311 esac
23312 ;;
23313
23314 sunos4*)
23315 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23316 wlarc=
23317 hardcode_direct_GCJ=yes
23318 hardcode_shlibpath_var_GCJ=no
23319 ;;
23320
23321 *)
23322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23325 else
23326 ld_shlibs_GCJ=no
23327 fi
23328 ;;
23329 esac
23330
23331 if test "$ld_shlibs_GCJ" = no; then
23332 runpath_var=
23333 hardcode_libdir_flag_spec_GCJ=
23334 export_dynamic_flag_spec_GCJ=
23335 whole_archive_flag_spec_GCJ=
23336 fi
23337 else
23338 # PORTME fill in a description of your system's linker (not GNU ld)
23339 case $host_os in
23340 aix3*)
23341 allow_undefined_flag_GCJ=unsupported
23342 always_export_symbols_GCJ=yes
23343 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'
23344 # Note: this linker hardcodes the directories in LIBPATH if there
23345 # are no directories specified by -L.
23346 hardcode_minus_L_GCJ=yes
23347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23348 # Neither direct hardcoding nor static linking is supported with a
23349 # broken collect2.
23350 hardcode_direct_GCJ=unsupported
23351 fi
23352 ;;
23353
23354 aix4* | aix5*)
23355 if test "$host_cpu" = ia64; then
23356 # On IA64, the linker does run time linking by default, so we don't
23357 # have to do anything special.
23358 aix_use_runtimelinking=no
23359 exp_sym_flag='-Bexport'
23360 no_entry_flag=""
23361 else
23362 # If we're using GNU nm, then we don't want the "-C" option.
23363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23365 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'
23366 else
23367 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'
23368 fi
23369 aix_use_runtimelinking=no
23370
23371 # Test if we are trying to use run time linking or normal
23372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23373 # need to do runtime linking.
23374 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23375 for ld_flag in $LDFLAGS; do
23376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23377 aix_use_runtimelinking=yes
23378 break
23379 fi
23380 done
23381 ;;
23382 esac
23383
23384 exp_sym_flag='-bexport'
23385 no_entry_flag='-bnoentry'
23386 fi
23387
23388 # When large executables or shared objects are built, AIX ld can
23389 # have problems creating the table of contents. If linking a library
23390 # or program results in "error TOC overflow" add -mminimal-toc to
23391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23393
23394 archive_cmds_GCJ=''
23395 hardcode_direct_GCJ=yes
23396 hardcode_libdir_separator_GCJ=':'
23397 link_all_deplibs_GCJ=yes
23398
23399 if test "$GCC" = yes; then
23400 case $host_os in aix4.[012]|aix4.[012].*)
23401 # We only want to do this on AIX 4.2 and lower, the check
23402 # below for broken collect2 doesn't work under 4.3+
23403 collect2name=`${CC} -print-prog-name=collect2`
23404 if test -f "$collect2name" && \
23405 strings "$collect2name" | grep resolve_lib_name >/dev/null
23406 then
23407 # We have reworked collect2
23408 hardcode_direct_GCJ=yes
23409 else
23410 # We have old collect2
23411 hardcode_direct_GCJ=unsupported
23412 # It fails to find uninstalled libraries when the uninstalled
23413 # path is not listed in the libpath. Setting hardcode_minus_L
23414 # to unsupported forces relinking
23415 hardcode_minus_L_GCJ=yes
23416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23417 hardcode_libdir_separator_GCJ=
23418 fi
23419 ;;
23420 esac
23421 shared_flag='-shared'
23422 if test "$aix_use_runtimelinking" = yes; then
23423 shared_flag="$shared_flag "'${wl}-G'
23424 fi
23425 else
23426 # not using gcc
23427 if test "$host_cpu" = ia64; then
23428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23429 # chokes on -Wl,-G. The following line is correct:
23430 shared_flag='-G'
23431 else
23432 if test "$aix_use_runtimelinking" = yes; then
23433 shared_flag='${wl}-G'
23434 else
23435 shared_flag='${wl}-bM:SRE'
23436 fi
23437 fi
23438 fi
23439
23440 # It seems that -bexpall does not export symbols beginning with
23441 # underscore (_), so it is better to generate a list of symbols to export.
23442 always_export_symbols_GCJ=yes
23443 if test "$aix_use_runtimelinking" = yes; then
23444 # Warning - without using the other runtime loading flags (-brtl),
23445 # -berok will link without error, but may produce a broken library.
23446 allow_undefined_flag_GCJ='-berok'
23447 # Determine the default libpath from the value encoded in an empty executable.
23448 cat >conftest.$ac_ext <<_ACEOF
23449/* confdefs.h. */
23450_ACEOF
23451cat confdefs.h >>conftest.$ac_ext
23452cat >>conftest.$ac_ext <<_ACEOF
23453/* end confdefs.h. */
23454
23455int
23456main ()
23457{
23458
23459 ;
23460 return 0;
23461}
23462_ACEOF
23463rm -f conftest.$ac_objext conftest$ac_exeext
23464if { (ac_try="$ac_link"
23465case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23468esac
23469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_link") 2>conftest.er1
23471 ac_status=$?
23472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000023476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest$ac_exeext &&
23480 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023481
23482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23483}'`
23484# Check for a 64-bit object if we didn't find anything.
23485if 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; }
23486}'`; fi
23487else
23488 echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
23491
23492fi
23493
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000023494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023495 conftest$ac_exeext conftest.$ac_ext
23496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23497
23498 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23499 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"
23500 else
23501 if test "$host_cpu" = ia64; then
23502 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23503 allow_undefined_flag_GCJ="-z nodefs"
23504 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"
23505 else
23506 # Determine the default libpath from the value encoded in an empty executable.
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513
23514int
23515main ()
23516{
23517
23518 ;
23519 return 0;
23520}
23521_ACEOF
23522rm -f conftest.$ac_objext conftest$ac_exeext
23523if { (ac_try="$ac_link"
23524case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527esac
23528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_link") 2>conftest.er1
23530 ac_status=$?
23531 grep -v '^ *+' conftest.er1 >conftest.err
23532 rm -f conftest.er1
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000023535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest$ac_exeext &&
23539 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023540
23541aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23542}'`
23543# Check for a 64-bit object if we didn't find anything.
23544if 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; }
23545}'`; fi
23546else
23547 echo "$as_me: failed program was:" >&5
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
23550
23551fi
23552
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000023553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023554 conftest$ac_exeext conftest.$ac_ext
23555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23556
23557 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23558 # Warning - without using the other run time loading flags,
23559 # -berok will link without error, but may produce a broken library.
23560 no_undefined_flag_GCJ=' ${wl}-bernotok'
23561 allow_undefined_flag_GCJ=' ${wl}-berok'
23562 # Exported symbols can be pulled into shared objects from archives
23563 whole_archive_flag_spec_GCJ='$convenience'
23564 archive_cmds_need_lc_GCJ=yes
23565 # This is similar to how AIX traditionally builds its shared libraries.
23566 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'
23567 fi
23568 fi
23569 ;;
23570
23571 amigaos*)
23572 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)'
23573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23574 hardcode_minus_L_GCJ=yes
23575 # see comment about different semantics on the GNU ld section
23576 ld_shlibs_GCJ=no
23577 ;;
23578
23579 bsdi[45]*)
23580 export_dynamic_flag_spec_GCJ=-rdynamic
23581 ;;
23582
23583 cygwin* | mingw* | pw32*)
23584 # When not using gcc, we currently assume that we are using
23585 # Microsoft Visual C++.
23586 # hardcode_libdir_flag_spec is actually meaningless, as there is
23587 # no search path for DLLs.
23588 hardcode_libdir_flag_spec_GCJ=' '
23589 allow_undefined_flag_GCJ=unsupported
23590 # Tell ltmain to make .lib files, not .a files.
23591 libext=lib
23592 # Tell ltmain to make .dll files, not .so files.
23593 shrext_cmds=".dll"
23594 # FIXME: Setting linknames here is a bad hack.
23595 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23596 # The linker will automatically build a .lib file if we build a DLL.
23597 old_archive_From_new_cmds_GCJ='true'
23598 # FIXME: Should let the user specify the lib program.
23599 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23600 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23601 enable_shared_with_static_runtimes_GCJ=yes
23602 ;;
23603
23604 darwin* | rhapsody*)
23605 case $host_os in
23606 rhapsody* | darwin1.[012])
23607 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23608 ;;
23609 *) # Darwin 1.3 on
23610 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23611 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23612 else
23613 case ${MACOSX_DEPLOYMENT_TARGET} in
23614 10.[012])
23615 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23616 ;;
23617 10.*)
23618 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23619 ;;
23620 esac
23621 fi
23622 ;;
23623 esac
23624 archive_cmds_need_lc_GCJ=no
23625 hardcode_direct_GCJ=no
23626 hardcode_automatic_GCJ=yes
23627 hardcode_shlibpath_var_GCJ=unsupported
23628 whole_archive_flag_spec_GCJ=''
23629 link_all_deplibs_GCJ=yes
23630 if test "$GCC" = yes ; then
23631 output_verbose_link_cmd='echo'
23632 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23633 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23635 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}'
23636 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}'
23637 else
23638 case $cc_basename in
23639 xlc*)
23640 output_verbose_link_cmd='echo'
23641 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23642 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23644 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}'
23645 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}'
23646 ;;
23647 *)
23648 ld_shlibs_GCJ=no
23649 ;;
23650 esac
23651 fi
23652 ;;
23653
23654 dgux*)
23655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23657 hardcode_shlibpath_var_GCJ=no
23658 ;;
23659
23660 freebsd1*)
23661 ld_shlibs_GCJ=no
23662 ;;
23663
23664 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23665 # support. Future versions do this automatically, but an explicit c++rt0.o
23666 # does not break anything, and helps significantly (at the cost of a little
23667 # extra space).
23668 freebsd2.2*)
23669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23670 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23671 hardcode_direct_GCJ=yes
23672 hardcode_shlibpath_var_GCJ=no
23673 ;;
23674
23675 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23676 freebsd2*)
23677 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23678 hardcode_direct_GCJ=yes
23679 hardcode_minus_L_GCJ=yes
23680 hardcode_shlibpath_var_GCJ=no
23681 ;;
23682
23683 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23684 freebsd* | kfreebsd*-gnu | dragonfly*)
23685 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23687 hardcode_direct_GCJ=yes
23688 hardcode_shlibpath_var_GCJ=no
23689 ;;
23690
23691 hpux9*)
23692 if test "$GCC" = yes; then
23693 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'
23694 else
23695 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'
23696 fi
23697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23698 hardcode_libdir_separator_GCJ=:
23699 hardcode_direct_GCJ=yes
23700
23701 # hardcode_minus_L: Not really in the search PATH,
23702 # but as the default location of the library.
23703 hardcode_minus_L_GCJ=yes
23704 export_dynamic_flag_spec_GCJ='${wl}-E'
23705 ;;
23706
23707 hpux10*)
23708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23709 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23710 else
23711 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23712 fi
23713 if test "$with_gnu_ld" = no; then
23714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23715 hardcode_libdir_separator_GCJ=:
23716
23717 hardcode_direct_GCJ=yes
23718 export_dynamic_flag_spec_GCJ='${wl}-E'
23719
23720 # hardcode_minus_L: Not really in the search PATH,
23721 # but as the default location of the library.
23722 hardcode_minus_L_GCJ=yes
23723 fi
23724 ;;
23725
23726 hpux11*)
23727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23728 case $host_cpu in
23729 hppa*64*)
23730 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23731 ;;
23732 ia64*)
23733 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23734 ;;
23735 *)
23736 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23737 ;;
23738 esac
23739 else
23740 case $host_cpu in
23741 hppa*64*)
23742 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23743 ;;
23744 ia64*)
23745 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23746 ;;
23747 *)
23748 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23749 ;;
23750 esac
23751 fi
23752 if test "$with_gnu_ld" = no; then
23753 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23754 hardcode_libdir_separator_GCJ=:
23755
23756 case $host_cpu in
23757 hppa*64*|ia64*)
23758 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23759 hardcode_direct_GCJ=no
23760 hardcode_shlibpath_var_GCJ=no
23761 ;;
23762 *)
23763 hardcode_direct_GCJ=yes
23764 export_dynamic_flag_spec_GCJ='${wl}-E'
23765
23766 # hardcode_minus_L: Not really in the search PATH,
23767 # but as the default location of the library.
23768 hardcode_minus_L_GCJ=yes
23769 ;;
23770 esac
23771 fi
23772 ;;
23773
23774 irix5* | irix6* | nonstopux*)
23775 if test "$GCC" = yes; then
23776 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'
23777 else
23778 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'
23779 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23780 fi
23781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23782 hardcode_libdir_separator_GCJ=:
23783 link_all_deplibs_GCJ=yes
23784 ;;
23785
23786 netbsd*)
23787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23788 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23789 else
23790 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23791 fi
23792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23793 hardcode_direct_GCJ=yes
23794 hardcode_shlibpath_var_GCJ=no
23795 ;;
23796
23797 newsos6)
23798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23799 hardcode_direct_GCJ=yes
23800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23801 hardcode_libdir_separator_GCJ=:
23802 hardcode_shlibpath_var_GCJ=no
23803 ;;
23804
23805 openbsd*)
23806 hardcode_direct_GCJ=yes
23807 hardcode_shlibpath_var_GCJ=no
23808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23809 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23810 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23812 export_dynamic_flag_spec_GCJ='${wl}-E'
23813 else
23814 case $host_os in
23815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23817 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23818 ;;
23819 *)
23820 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23821 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23822 ;;
23823 esac
23824 fi
23825 ;;
23826
23827 os2*)
23828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23829 hardcode_minus_L_GCJ=yes
23830 allow_undefined_flag_GCJ=unsupported
23831 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'
23832 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23833 ;;
23834
23835 osf3*)
23836 if test "$GCC" = yes; then
23837 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23838 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'
23839 else
23840 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23841 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'
23842 fi
23843 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23844 hardcode_libdir_separator_GCJ=:
23845 ;;
23846
23847 osf4* | osf5*) # as osf3* with the addition of -msym flag
23848 if test "$GCC" = yes; then
23849 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23850 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'
23851 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23852 else
23853 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23854 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'
23855 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~
23856 $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'
23857
23858 # Both c and cxx compiler support -rpath directly
23859 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23860 fi
23861 hardcode_libdir_separator_GCJ=:
23862 ;;
23863
23864 solaris*)
23865 no_undefined_flag_GCJ=' -z text'
23866 if test "$GCC" = yes; then
23867 wlarc='${wl}'
23868 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23869 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23870 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23871 else
23872 wlarc=''
23873 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23874 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23876 fi
23877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23878 hardcode_shlibpath_var_GCJ=no
23879 case $host_os in
23880 solaris2.[0-5] | solaris2.[0-5].*) ;;
23881 *)
23882 # The compiler driver will combine linker options so we
23883 # cannot just pass the convience library names through
23884 # without $wl, iff we do not link with $LD.
23885 # Luckily, gcc supports the same syntax we need for Sun Studio.
23886 # Supported since Solaris 2.6 (maybe 2.5.1?)
23887 case $wlarc in
23888 '')
23889 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23890 *)
23891 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' ;;
23892 esac ;;
23893 esac
23894 link_all_deplibs_GCJ=yes
23895 ;;
23896
23897 sunos4*)
23898 if test "x$host_vendor" = xsequent; then
23899 # Use $CC to link under sequent, because it throws in some extra .o
23900 # files that make .init and .fini sections work.
23901 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23902 else
23903 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23904 fi
23905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23906 hardcode_direct_GCJ=yes
23907 hardcode_minus_L_GCJ=yes
23908 hardcode_shlibpath_var_GCJ=no
23909 ;;
23910
23911 sysv4)
23912 case $host_vendor in
23913 sni)
23914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23915 hardcode_direct_GCJ=yes # is this really true???
23916 ;;
23917 siemens)
23918 ## LD is ld it makes a PLAMLIB
23919 ## CC just makes a GrossModule.
23920 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23921 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23922 hardcode_direct_GCJ=no
23923 ;;
23924 motorola)
23925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23926 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23927 ;;
23928 esac
23929 runpath_var='LD_RUN_PATH'
23930 hardcode_shlibpath_var_GCJ=no
23931 ;;
23932
23933 sysv4.3*)
23934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23935 hardcode_shlibpath_var_GCJ=no
23936 export_dynamic_flag_spec_GCJ='-Bexport'
23937 ;;
23938
23939 sysv4*MP*)
23940 if test -d /usr/nec; then
23941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23942 hardcode_shlibpath_var_GCJ=no
23943 runpath_var=LD_RUN_PATH
23944 hardcode_runpath_var=yes
23945 ld_shlibs_GCJ=yes
23946 fi
23947 ;;
23948
23949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23950 no_undefined_flag_GCJ='${wl}-z,text'
23951 archive_cmds_need_lc_GCJ=no
23952 hardcode_shlibpath_var_GCJ=no
23953 runpath_var='LD_RUN_PATH'
23954
23955 if test "$GCC" = yes; then
23956 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23957 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23958 else
23959 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23960 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23961 fi
23962 ;;
23963
23964 sysv5* | sco3.2v5* | sco5v6*)
23965 # Note: We can NOT use -z defs as we might desire, because we do not
23966 # link with -lc, and that would cause any symbols used from libc to
23967 # always be unresolved, which means just about no library would
23968 # ever link correctly. If we're not using GNU ld we use -z text
23969 # though, which does catch some bad symbols but isn't as heavy-handed
23970 # as -z defs.
23971 no_undefined_flag_GCJ='${wl}-z,text'
23972 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23973 archive_cmds_need_lc_GCJ=no
23974 hardcode_shlibpath_var_GCJ=no
23975 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23976 hardcode_libdir_separator_GCJ=':'
23977 link_all_deplibs_GCJ=yes
23978 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23979 runpath_var='LD_RUN_PATH'
23980
23981 if test "$GCC" = yes; then
23982 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23983 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23984 else
23985 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23986 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23987 fi
23988 ;;
23989
23990 uts4*)
23991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23993 hardcode_shlibpath_var_GCJ=no
23994 ;;
23995
23996 *)
23997 ld_shlibs_GCJ=no
23998 ;;
23999 esac
24000 fi
24001
24002{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24003echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24004test "$ld_shlibs_GCJ" = no && can_build_shared=no
24005
24006#
24007# Do we need to explicitly link libc?
24008#
24009case "x$archive_cmds_need_lc_GCJ" in
24010x|xyes)
24011 # Assume -lc should be added
24012 archive_cmds_need_lc_GCJ=yes
24013
24014 if test "$enable_shared" = yes && test "$GCC" = yes; then
24015 case $archive_cmds_GCJ in
24016 *'~'*)
24017 # FIXME: we may have to deal with multi-command sequences.
24018 ;;
24019 '$CC '*)
24020 # Test whether the compiler implicitly links with -lc since on some
24021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24022 # to ld, don't add -lc before -lgcc.
24023 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24025 $rm conftest*
24026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24027
24028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24029 (eval $ac_compile) 2>&5
24030 ac_status=$?
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); } 2>conftest.err; then
24033 soname=conftest
24034 lib=conftest
24035 libobjs=conftest.$ac_objext
24036 deplibs=
24037 wl=$lt_prog_compiler_wl_GCJ
24038 pic_flag=$lt_prog_compiler_pic_GCJ
24039 compiler_flags=-v
24040 linker_flags=-v
24041 verstring=
24042 output_objdir=.
24043 libname=conftest
24044 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24045 allow_undefined_flag_GCJ=
24046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24047 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24048 ac_status=$?
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }
24051 then
24052 archive_cmds_need_lc_GCJ=no
24053 else
24054 archive_cmds_need_lc_GCJ=yes
24055 fi
24056 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24057 else
24058 cat conftest.err 1>&5
24059 fi
24060 $rm conftest*
24061 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24062echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24063 ;;
24064 esac
24065 fi
24066 ;;
24067esac
24068
24069{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24070echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24071library_names_spec=
24072libname_spec='lib$name'
24073soname_spec=
24074shrext_cmds=".so"
24075postinstall_cmds=
24076postuninstall_cmds=
24077finish_cmds=
24078finish_eval=
24079shlibpath_var=
24080shlibpath_overrides_runpath=unknown
24081version_type=none
24082dynamic_linker="$host_os ld.so"
24083sys_lib_dlsearch_path_spec="/lib /usr/lib"
24084if test "$GCC" = yes; then
24085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24086 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24087 # if the path contains ";" then we assume it to be the separator
24088 # otherwise default to the standard path separator (i.e. ":") - it is
24089 # assumed that no part of a normal pathname contains ";" but that should
24090 # okay in the real world where ";" in dirpaths is itself problematic.
24091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24092 else
24093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24094 fi
24095else
24096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24097fi
24098need_lib_prefix=unknown
24099hardcode_into_libs=no
24100
24101# when you set need_version to no, make sure it does not cause -set_version
24102# flags to be left without arguments
24103need_version=unknown
24104
24105case $host_os in
24106aix3*)
24107 version_type=linux
24108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24109 shlibpath_var=LIBPATH
24110
24111 # AIX 3 has no versioning support, so we append a major version to the name.
24112 soname_spec='${libname}${release}${shared_ext}$major'
24113 ;;
24114
24115aix4* | aix5*)
24116 version_type=linux
24117 need_lib_prefix=no
24118 need_version=no
24119 hardcode_into_libs=yes
24120 if test "$host_cpu" = ia64; then
24121 # AIX 5 supports IA64
24122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24123 shlibpath_var=LD_LIBRARY_PATH
24124 else
24125 # With GCC up to 2.95.x, collect2 would create an import file
24126 # for dependence libraries. The import file would start with
24127 # the line `#! .'. This would cause the generated library to
24128 # depend on `.', always an invalid library. This was fixed in
24129 # development snapshots of GCC prior to 3.0.
24130 case $host_os in
24131 aix4 | aix4.[01] | aix4.[01].*)
24132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24133 echo ' yes '
24134 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24135 :
24136 else
24137 can_build_shared=no
24138 fi
24139 ;;
24140 esac
24141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24142 # soname into executable. Probably we can add versioning support to
24143 # collect2, so additional links can be useful in future.
24144 if test "$aix_use_runtimelinking" = yes; then
24145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24146 # instead of lib<name>.a to let people know that these are not
24147 # typical AIX shared libraries.
24148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24149 else
24150 # We preserve .a as extension for shared libraries through AIX4.2
24151 # and later when we are not doing run time linking.
24152 library_names_spec='${libname}${release}.a $libname.a'
24153 soname_spec='${libname}${release}${shared_ext}$major'
24154 fi
24155 shlibpath_var=LIBPATH
24156 fi
24157 ;;
24158
24159amigaos*)
24160 library_names_spec='$libname.ixlibrary $libname.a'
24161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24162 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'
24163 ;;
24164
24165beos*)
24166 library_names_spec='${libname}${shared_ext}'
24167 dynamic_linker="$host_os ld.so"
24168 shlibpath_var=LIBRARY_PATH
24169 ;;
24170
24171bsdi[45]*)
24172 version_type=linux
24173 need_version=no
24174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24175 soname_spec='${libname}${release}${shared_ext}$major'
24176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24177 shlibpath_var=LD_LIBRARY_PATH
24178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24180 # the default ld.so.conf also contains /usr/contrib/lib and
24181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24182 # libtool to hard-code these into programs
24183 ;;
24184
24185cygwin* | mingw* | pw32*)
24186 version_type=windows
24187 shrext_cmds=".dll"
24188 need_version=no
24189 need_lib_prefix=no
24190
24191 case $GCC,$host_os in
24192 yes,cygwin* | yes,mingw* | yes,pw32*)
24193 library_names_spec='$libname.dll.a'
24194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24195 postinstall_cmds='base_file=`basename \${file}`~
24196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24197 dldir=$destdir/`dirname \$dlpath`~
24198 test -d \$dldir || mkdir -p \$dldir~
24199 $install_prog $dir/$dlname \$dldir/$dlname~
24200 chmod a+x \$dldir/$dlname'
24201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24202 dlpath=$dir/\$dldll~
24203 $rm \$dlpath'
24204 shlibpath_overrides_runpath=yes
24205
24206 case $host_os in
24207 cygwin*)
24208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24209 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24210 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24211 ;;
24212 mingw*)
24213 # MinGW DLLs use traditional 'lib' prefix
24214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24216 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24217 # It is most probably a Windows format PATH printed by
24218 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24219 # path with ; separators, and with drive letters. We can handle the
24220 # drive letters (cygwin fileutils understands them), so leave them,
24221 # especially as we might pass files found there to a mingw objdump,
24222 # which wouldn't understand a cygwinified path. Ahh.
24223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24224 else
24225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24226 fi
24227 ;;
24228 pw32*)
24229 # pw32 DLLs use 'pw' prefix rather than 'lib'
24230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24231 ;;
24232 esac
24233 ;;
24234
24235 *)
24236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24237 ;;
24238 esac
24239 dynamic_linker='Win32 ld.exe'
24240 # FIXME: first we should search . and the directory the executable is in
24241 shlibpath_var=PATH
24242 ;;
24243
24244darwin* | rhapsody*)
24245 dynamic_linker="$host_os dyld"
24246 version_type=darwin
24247 need_lib_prefix=no
24248 need_version=no
24249 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24250 soname_spec='${libname}${release}${major}$shared_ext'
24251 shlibpath_overrides_runpath=yes
24252 shlibpath_var=DYLD_LIBRARY_PATH
24253 shrext_cmds='.dylib'
24254 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24255 if test "$GCC" = yes; then
24256 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"`
24257 else
24258 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24259 fi
24260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24261 ;;
24262
24263dgux*)
24264 version_type=linux
24265 need_lib_prefix=no
24266 need_version=no
24267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24268 soname_spec='${libname}${release}${shared_ext}$major'
24269 shlibpath_var=LD_LIBRARY_PATH
24270 ;;
24271
24272freebsd1*)
24273 dynamic_linker=no
24274 ;;
24275
24276kfreebsd*-gnu)
24277 version_type=linux
24278 need_lib_prefix=no
24279 need_version=no
24280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24281 soname_spec='${libname}${release}${shared_ext}$major'
24282 shlibpath_var=LD_LIBRARY_PATH
24283 shlibpath_overrides_runpath=no
24284 hardcode_into_libs=yes
24285 dynamic_linker='GNU ld.so'
24286 ;;
24287
24288freebsd* | dragonfly*)
24289 # DragonFly does not have aout. When/if they implement a new
24290 # versioning mechanism, adjust this.
24291 if test -x /usr/bin/objformat; then
24292 objformat=`/usr/bin/objformat`
24293 else
24294 case $host_os in
24295 freebsd[123]*) objformat=aout ;;
24296 *) objformat=elf ;;
24297 esac
24298 fi
24299 version_type=freebsd-$objformat
24300 case $version_type in
24301 freebsd-elf*)
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24303 need_version=no
24304 need_lib_prefix=no
24305 ;;
24306 freebsd-*)
24307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24308 need_version=yes
24309 ;;
24310 esac
24311 shlibpath_var=LD_LIBRARY_PATH
24312 case $host_os in
24313 freebsd2*)
24314 shlibpath_overrides_runpath=yes
24315 ;;
24316 freebsd3.[01]* | freebsdelf3.[01]*)
24317 shlibpath_overrides_runpath=yes
24318 hardcode_into_libs=yes
24319 ;;
24320 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24321 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24322 shlibpath_overrides_runpath=no
24323 hardcode_into_libs=yes
24324 ;;
24325 freebsd*) # from 4.6 on
24326 shlibpath_overrides_runpath=yes
24327 hardcode_into_libs=yes
24328 ;;
24329 esac
24330 ;;
24331
24332gnu*)
24333 version_type=linux
24334 need_lib_prefix=no
24335 need_version=no
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24337 soname_spec='${libname}${release}${shared_ext}$major'
24338 shlibpath_var=LD_LIBRARY_PATH
24339 hardcode_into_libs=yes
24340 ;;
24341
24342hpux9* | hpux10* | hpux11*)
24343 # Give a soname corresponding to the major version so that dld.sl refuses to
24344 # link against other versions.
24345 version_type=sunos
24346 need_lib_prefix=no
24347 need_version=no
24348 case $host_cpu in
24349 ia64*)
24350 shrext_cmds='.so'
24351 hardcode_into_libs=yes
24352 dynamic_linker="$host_os dld.so"
24353 shlibpath_var=LD_LIBRARY_PATH
24354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24356 soname_spec='${libname}${release}${shared_ext}$major'
24357 if test "X$HPUX_IA64_MODE" = X32; then
24358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24359 else
24360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24361 fi
24362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24363 ;;
24364 hppa*64*)
24365 shrext_cmds='.sl'
24366 hardcode_into_libs=yes
24367 dynamic_linker="$host_os dld.sl"
24368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24371 soname_spec='${libname}${release}${shared_ext}$major'
24372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24374 ;;
24375 *)
24376 shrext_cmds='.sl'
24377 dynamic_linker="$host_os dld.sl"
24378 shlibpath_var=SHLIB_PATH
24379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24381 soname_spec='${libname}${release}${shared_ext}$major'
24382 ;;
24383 esac
24384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24385 postinstall_cmds='chmod 555 $lib'
24386 ;;
24387
24388interix3*)
24389 version_type=linux
24390 need_lib_prefix=no
24391 need_version=no
24392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24393 soname_spec='${libname}${release}${shared_ext}$major'
24394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24395 shlibpath_var=LD_LIBRARY_PATH
24396 shlibpath_overrides_runpath=no
24397 hardcode_into_libs=yes
24398 ;;
24399
24400irix5* | irix6* | nonstopux*)
24401 case $host_os in
24402 nonstopux*) version_type=nonstopux ;;
24403 *)
24404 if test "$lt_cv_prog_gnu_ld" = yes; then
24405 version_type=linux
24406 else
24407 version_type=irix
24408 fi ;;
24409 esac
24410 need_lib_prefix=no
24411 need_version=no
24412 soname_spec='${libname}${release}${shared_ext}$major'
24413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24414 case $host_os in
24415 irix5* | nonstopux*)
24416 libsuff= shlibsuff=
24417 ;;
24418 *)
24419 case $LD in # libtool.m4 will add one of these switches to LD
24420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24421 libsuff= shlibsuff= libmagic=32-bit;;
24422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24423 libsuff=32 shlibsuff=N32 libmagic=N32;;
24424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24426 *) libsuff= shlibsuff= libmagic=never-match;;
24427 esac
24428 ;;
24429 esac
24430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24431 shlibpath_overrides_runpath=no
24432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24434 hardcode_into_libs=yes
24435 ;;
24436
24437# No shared lib support for Linux oldld, aout, or coff.
24438linux*oldld* | linux*aout* | linux*coff*)
24439 dynamic_linker=no
24440 ;;
24441
24442# This must be Linux ELF.
24443linux*)
24444 version_type=linux
24445 need_lib_prefix=no
24446 need_version=no
24447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24448 soname_spec='${libname}${release}${shared_ext}$major'
24449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24450 shlibpath_var=LD_LIBRARY_PATH
24451 shlibpath_overrides_runpath=no
24452 # This implies no fast_install, which is unacceptable.
24453 # Some rework will be needed to allow for fast_install
24454 # before this can be enabled.
24455 hardcode_into_libs=yes
24456
24457 # Append ld.so.conf contents to the search path
24458 if test -f /etc/ld.so.conf; then
24459 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' ' '`
24460 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24461 fi
24462
24463 # We used to test for /lib/ld.so.1 and disable shared libraries on
24464 # powerpc, because MkLinux only supported shared libraries with the
24465 # GNU dynamic linker. Since this was broken with cross compilers,
24466 # most powerpc-linux boxes support dynamic linking these days and
24467 # people can always --disable-shared, the test was removed, and we
24468 # assume the GNU/Linux dynamic linker is in use.
24469 dynamic_linker='GNU/Linux ld.so'
24470 ;;
24471
24472knetbsd*-gnu)
24473 version_type=linux
24474 need_lib_prefix=no
24475 need_version=no
24476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24477 soname_spec='${libname}${release}${shared_ext}$major'
24478 shlibpath_var=LD_LIBRARY_PATH
24479 shlibpath_overrides_runpath=no
24480 hardcode_into_libs=yes
24481 dynamic_linker='GNU ld.so'
24482 ;;
24483
24484netbsd*)
24485 version_type=sunos
24486 need_lib_prefix=no
24487 need_version=no
24488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24491 dynamic_linker='NetBSD (a.out) ld.so'
24492 else
24493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24494 soname_spec='${libname}${release}${shared_ext}$major'
24495 dynamic_linker='NetBSD ld.elf_so'
24496 fi
24497 shlibpath_var=LD_LIBRARY_PATH
24498 shlibpath_overrides_runpath=yes
24499 hardcode_into_libs=yes
24500 ;;
24501
24502newsos6)
24503 version_type=linux
24504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24505 shlibpath_var=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath=yes
24507 ;;
24508
24509nto-qnx*)
24510 version_type=linux
24511 need_lib_prefix=no
24512 need_version=no
24513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24514 soname_spec='${libname}${release}${shared_ext}$major'
24515 shlibpath_var=LD_LIBRARY_PATH
24516 shlibpath_overrides_runpath=yes
24517 ;;
24518
24519openbsd*)
24520 version_type=sunos
24521 sys_lib_dlsearch_path_spec="/usr/lib"
24522 need_lib_prefix=no
24523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24524 case $host_os in
24525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24526 *) need_version=no ;;
24527 esac
24528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24530 shlibpath_var=LD_LIBRARY_PATH
24531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24532 case $host_os in
24533 openbsd2.[89] | openbsd2.[89].*)
24534 shlibpath_overrides_runpath=no
24535 ;;
24536 *)
24537 shlibpath_overrides_runpath=yes
24538 ;;
24539 esac
24540 else
24541 shlibpath_overrides_runpath=yes
24542 fi
24543 ;;
24544
24545os2*)
24546 libname_spec='$name'
24547 shrext_cmds=".dll"
24548 need_lib_prefix=no
24549 library_names_spec='$libname${shared_ext} $libname.a'
24550 dynamic_linker='OS/2 ld.exe'
24551 shlibpath_var=LIBPATH
24552 ;;
24553
24554osf3* | osf4* | osf5*)
24555 version_type=osf
24556 need_lib_prefix=no
24557 need_version=no
24558 soname_spec='${libname}${release}${shared_ext}$major'
24559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24560 shlibpath_var=LD_LIBRARY_PATH
24561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24563 ;;
24564
24565solaris*)
24566 version_type=linux
24567 need_lib_prefix=no
24568 need_version=no
24569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24570 soname_spec='${libname}${release}${shared_ext}$major'
24571 shlibpath_var=LD_LIBRARY_PATH
24572 shlibpath_overrides_runpath=yes
24573 hardcode_into_libs=yes
24574 # ldd complains unless libraries are executable
24575 postinstall_cmds='chmod +x $lib'
24576 ;;
24577
24578sunos4*)
24579 version_type=sunos
24580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24582 shlibpath_var=LD_LIBRARY_PATH
24583 shlibpath_overrides_runpath=yes
24584 if test "$with_gnu_ld" = yes; then
24585 need_lib_prefix=no
24586 fi
24587 need_version=yes
24588 ;;
24589
24590sysv4 | sysv4.3*)
24591 version_type=linux
24592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24593 soname_spec='${libname}${release}${shared_ext}$major'
24594 shlibpath_var=LD_LIBRARY_PATH
24595 case $host_vendor in
24596 sni)
24597 shlibpath_overrides_runpath=no
24598 need_lib_prefix=no
24599 export_dynamic_flag_spec='${wl}-Blargedynsym'
24600 runpath_var=LD_RUN_PATH
24601 ;;
24602 siemens)
24603 need_lib_prefix=no
24604 ;;
24605 motorola)
24606 need_lib_prefix=no
24607 need_version=no
24608 shlibpath_overrides_runpath=no
24609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24610 ;;
24611 esac
24612 ;;
24613
24614sysv4*MP*)
24615 if test -d /usr/nec ;then
24616 version_type=linux
24617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24618 soname_spec='$libname${shared_ext}.$major'
24619 shlibpath_var=LD_LIBRARY_PATH
24620 fi
24621 ;;
24622
24623sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24624 version_type=freebsd-elf
24625 need_lib_prefix=no
24626 need_version=no
24627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24628 soname_spec='${libname}${release}${shared_ext}$major'
24629 shlibpath_var=LD_LIBRARY_PATH
24630 hardcode_into_libs=yes
24631 if test "$with_gnu_ld" = yes; then
24632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24633 shlibpath_overrides_runpath=no
24634 else
24635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24636 shlibpath_overrides_runpath=yes
24637 case $host_os in
24638 sco3.2v5*)
24639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24640 ;;
24641 esac
24642 fi
24643 sys_lib_dlsearch_path_spec='/usr/lib'
24644 ;;
24645
24646uts4*)
24647 version_type=linux
24648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24649 soname_spec='${libname}${release}${shared_ext}$major'
24650 shlibpath_var=LD_LIBRARY_PATH
24651 ;;
24652
24653*)
24654 dynamic_linker=no
24655 ;;
24656esac
24657{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24658echo "${ECHO_T}$dynamic_linker" >&6; }
24659test "$dynamic_linker" = no && can_build_shared=no
24660
24661variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24662if test "$GCC" = yes; then
24663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24664fi
24665
24666{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24667echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24668hardcode_action_GCJ=
24669if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24670 test -n "$runpath_var_GCJ" || \
24671 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24672
24673 # We can hardcode non-existant directories.
24674 if test "$hardcode_direct_GCJ" != no &&
24675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24676 # have to relink, otherwise we might link with an installed library
24677 # when we should be linking with a yet-to-be-installed one
24678 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24679 test "$hardcode_minus_L_GCJ" != no; then
24680 # Linking always hardcodes the temporary library directory.
24681 hardcode_action_GCJ=relink
24682 else
24683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24684 hardcode_action_GCJ=immediate
24685 fi
24686else
24687 # We cannot hardcode anything, or else we can only hardcode existing
24688 # directories.
24689 hardcode_action_GCJ=unsupported
24690fi
24691{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24692echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24693
24694if test "$hardcode_action_GCJ" = relink; then
24695 # Fast installation is not supported
24696 enable_fast_install=no
24697elif test "$shlibpath_overrides_runpath" = yes ||
24698 test "$enable_shared" = no; then
24699 # Fast installation is not necessary
24700 enable_fast_install=needless
24701fi
24702
24703
24704# The else clause should only fire when bootstrapping the
24705# libtool distribution, otherwise you forgot to ship ltmain.sh
24706# with your package, and you will get complaints that there are
24707# no rules to generate ltmain.sh.
24708if test -f "$ltmain"; then
24709 # See if we are running on zsh, and set the options which allow our commands through
24710 # without removal of \ escapes.
24711 if test -n "${ZSH_VERSION+set}" ; then
24712 setopt NO_GLOB_SUBST
24713 fi
24714 # Now quote all the things that may contain metacharacters while being
24715 # careful not to overquote the AC_SUBSTed values. We take copies of the
24716 # variables and quote the copies for generation of the libtool script.
24717 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24718 SED SHELL STRIP \
24719 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24720 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24721 deplibs_check_method reload_flag reload_cmds need_locks \
24722 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24723 lt_cv_sys_global_symbol_to_c_name_address \
24724 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24725 old_postinstall_cmds old_postuninstall_cmds \
24726 compiler_GCJ \
24727 CC_GCJ \
24728 LD_GCJ \
24729 lt_prog_compiler_wl_GCJ \
24730 lt_prog_compiler_pic_GCJ \
24731 lt_prog_compiler_static_GCJ \
24732 lt_prog_compiler_no_builtin_flag_GCJ \
24733 export_dynamic_flag_spec_GCJ \
24734 thread_safe_flag_spec_GCJ \
24735 whole_archive_flag_spec_GCJ \
24736 enable_shared_with_static_runtimes_GCJ \
24737 old_archive_cmds_GCJ \
24738 old_archive_from_new_cmds_GCJ \
24739 predep_objects_GCJ \
24740 postdep_objects_GCJ \
24741 predeps_GCJ \
24742 postdeps_GCJ \
24743 compiler_lib_search_path_GCJ \
24744 archive_cmds_GCJ \
24745 archive_expsym_cmds_GCJ \
24746 postinstall_cmds_GCJ \
24747 postuninstall_cmds_GCJ \
24748 old_archive_from_expsyms_cmds_GCJ \
24749 allow_undefined_flag_GCJ \
24750 no_undefined_flag_GCJ \
24751 export_symbols_cmds_GCJ \
24752 hardcode_libdir_flag_spec_GCJ \
24753 hardcode_libdir_flag_spec_ld_GCJ \
24754 hardcode_libdir_separator_GCJ \
24755 hardcode_automatic_GCJ \
24756 module_cmds_GCJ \
24757 module_expsym_cmds_GCJ \
24758 lt_cv_prog_compiler_c_o_GCJ \
24759 exclude_expsyms_GCJ \
24760 include_expsyms_GCJ; do
24761
24762 case $var in
24763 old_archive_cmds_GCJ | \
24764 old_archive_from_new_cmds_GCJ | \
24765 archive_cmds_GCJ | \
24766 archive_expsym_cmds_GCJ | \
24767 module_cmds_GCJ | \
24768 module_expsym_cmds_GCJ | \
24769 old_archive_from_expsyms_cmds_GCJ | \
24770 export_symbols_cmds_GCJ | \
24771 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24772 postinstall_cmds | postuninstall_cmds | \
24773 old_postinstall_cmds | old_postuninstall_cmds | \
24774 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24775 # Double-quote double-evaled strings.
24776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24777 ;;
24778 *)
24779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24780 ;;
24781 esac
24782 done
24783
24784 case $lt_echo in
24785 *'\$0 --fallback-echo"')
24786 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24787 ;;
24788 esac
24789
24790cfgfile="$ofile"
24791
24792 cat <<__EOF__ >> "$cfgfile"
24793# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24794
24795# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24796
24797# Shell to use when invoking shell scripts.
24798SHELL=$lt_SHELL
24799
24800# Whether or not to build shared libraries.
24801build_libtool_libs=$enable_shared
24802
24803# Whether or not to build static libraries.
24804build_old_libs=$enable_static
24805
24806# Whether or not to add -lc for building shared libraries.
24807build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24808
24809# Whether or not to disallow shared libs when runtime libs are static
24810allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24811
24812# Whether or not to optimize for fast installation.
24813fast_install=$enable_fast_install
24814
24815# The host system.
24816host_alias=$host_alias
24817host=$host
24818host_os=$host_os
24819
24820# The build system.
24821build_alias=$build_alias
24822build=$build
24823build_os=$build_os
24824
24825# An echo program that does not interpret backslashes.
24826echo=$lt_echo
24827
24828# The archiver.
24829AR=$lt_AR
24830AR_FLAGS=$lt_AR_FLAGS
24831
24832# A C compiler.
24833LTCC=$lt_LTCC
24834
24835# LTCC compiler flags.
24836LTCFLAGS=$lt_LTCFLAGS
24837
24838# A language-specific compiler.
24839CC=$lt_compiler_GCJ
24840
24841# Is the compiler the GNU C compiler?
24842with_gcc=$GCC_GCJ
24843
24844# An ERE matcher.
24845EGREP=$lt_EGREP
24846
24847# The linker used to build libraries.
24848LD=$lt_LD_GCJ
24849
24850# Whether we need hard or soft links.
24851LN_S=$lt_LN_S
24852
24853# A BSD-compatible nm program.
24854NM=$lt_NM
24855
24856# A symbol stripping program
24857STRIP=$lt_STRIP
24858
24859# Used to examine libraries when file_magic_cmd begins "file"
24860MAGIC_CMD=$MAGIC_CMD
24861
24862# Used on cygwin: DLL creation program.
24863DLLTOOL="$DLLTOOL"
24864
24865# Used on cygwin: object dumper.
24866OBJDUMP="$OBJDUMP"
24867
24868# Used on cygwin: assembler.
24869AS="$AS"
24870
24871# The name of the directory that contains temporary libtool files.
24872objdir=$objdir
24873
24874# How to create reloadable object files.
24875reload_flag=$lt_reload_flag
24876reload_cmds=$lt_reload_cmds
24877
24878# How to pass a linker flag through the compiler.
24879wl=$lt_lt_prog_compiler_wl_GCJ
24880
24881# Object file suffix (normally "o").
24882objext="$ac_objext"
24883
24884# Old archive suffix (normally "a").
24885libext="$libext"
24886
24887# Shared library suffix (normally ".so").
24888shrext_cmds='$shrext_cmds'
24889
24890# Executable file suffix (normally "").
24891exeext="$exeext"
24892
24893# Additional compiler flags for building library objects.
24894pic_flag=$lt_lt_prog_compiler_pic_GCJ
24895pic_mode=$pic_mode
24896
24897# What is the maximum length of a command?
24898max_cmd_len=$lt_cv_sys_max_cmd_len
24899
24900# Does compiler simultaneously support -c and -o options?
24901compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24902
24903# Must we lock files when doing compilation?
24904need_locks=$lt_need_locks
24905
24906# Do we need the lib prefix for modules?
24907need_lib_prefix=$need_lib_prefix
24908
24909# Do we need a version for libraries?
24910need_version=$need_version
24911
24912# Whether dlopen is supported.
24913dlopen_support=$enable_dlopen
24914
24915# Whether dlopen of programs is supported.
24916dlopen_self=$enable_dlopen_self
24917
24918# Whether dlopen of statically linked programs is supported.
24919dlopen_self_static=$enable_dlopen_self_static
24920
24921# Compiler flag to prevent dynamic linking.
24922link_static_flag=$lt_lt_prog_compiler_static_GCJ
24923
24924# Compiler flag to turn off builtin functions.
24925no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24926
24927# Compiler flag to allow reflexive dlopens.
24928export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24929
24930# Compiler flag to generate shared objects directly from archives.
24931whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24932
24933# Compiler flag to generate thread-safe objects.
24934thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24935
24936# Library versioning type.
24937version_type=$version_type
24938
24939# Format of library name prefix.
24940libname_spec=$lt_libname_spec
24941
24942# List of archive names. First name is the real one, the rest are links.
24943# The last name is the one that the linker finds with -lNAME.
24944library_names_spec=$lt_library_names_spec
24945
24946# The coded name of the library, if different from the real name.
24947soname_spec=$lt_soname_spec
24948
24949# Commands used to build and install an old-style archive.
24950RANLIB=$lt_RANLIB
24951old_archive_cmds=$lt_old_archive_cmds_GCJ
24952old_postinstall_cmds=$lt_old_postinstall_cmds
24953old_postuninstall_cmds=$lt_old_postuninstall_cmds
24954
24955# Create an old-style archive from a shared archive.
24956old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24957
24958# Create a temporary old-style archive to link instead of a shared archive.
24959old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24960
24961# Commands used to build and install a shared archive.
24962archive_cmds=$lt_archive_cmds_GCJ
24963archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24964postinstall_cmds=$lt_postinstall_cmds
24965postuninstall_cmds=$lt_postuninstall_cmds
24966
24967# Commands used to build a loadable module (assumed same as above if empty)
24968module_cmds=$lt_module_cmds_GCJ
24969module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24970
24971# Commands to strip libraries.
24972old_striplib=$lt_old_striplib
24973striplib=$lt_striplib
24974
24975# Dependencies to place before the objects being linked to create a
24976# shared library.
24977predep_objects=$lt_predep_objects_GCJ
24978
24979# Dependencies to place after the objects being linked to create a
24980# shared library.
24981postdep_objects=$lt_postdep_objects_GCJ
24982
24983# Dependencies to place before the objects being linked to create a
24984# shared library.
24985predeps=$lt_predeps_GCJ
24986
24987# Dependencies to place after the objects being linked to create a
24988# shared library.
24989postdeps=$lt_postdeps_GCJ
24990
24991# The library search path used internally by the compiler when linking
24992# a shared library.
24993compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24994
24995# Method to check whether dependent libraries are shared objects.
24996deplibs_check_method=$lt_deplibs_check_method
24997
24998# Command to use when deplibs_check_method == file_magic.
24999file_magic_cmd=$lt_file_magic_cmd
25000
25001# Flag that allows shared libraries with undefined symbols to be built.
25002allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25003
25004# Flag that forces no undefined symbols.
25005no_undefined_flag=$lt_no_undefined_flag_GCJ
25006
25007# Commands used to finish a libtool library installation in a directory.
25008finish_cmds=$lt_finish_cmds
25009
25010# Same as above, but a single script fragment to be evaled but not shown.
25011finish_eval=$lt_finish_eval
25012
25013# Take the output of nm and produce a listing of raw symbols and C names.
25014global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25015
25016# Transform the output of nm in a proper C declaration
25017global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25018
25019# Transform the output of nm in a C name address pair
25020global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25021
25022# This is the shared library runtime path variable.
25023runpath_var=$runpath_var
25024
25025# This is the shared library path variable.
25026shlibpath_var=$shlibpath_var
25027
25028# Is shlibpath searched before the hard-coded library search path?
25029shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25030
25031# How to hardcode a shared library path into an executable.
25032hardcode_action=$hardcode_action_GCJ
25033
25034# Whether we should hardcode library paths into libraries.
25035hardcode_into_libs=$hardcode_into_libs
25036
25037# Flag to hardcode \$libdir into a binary during linking.
25038# This must work even if \$libdir does not exist.
25039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25040
25041# If ld is used when linking, flag to hardcode \$libdir into
25042# a binary during linking. This must work even if \$libdir does
25043# not exist.
25044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25045
25046# Whether we need a single -rpath flag with a separated argument.
25047hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25048
25049# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25050# resulting binary.
25051hardcode_direct=$hardcode_direct_GCJ
25052
25053# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25054# resulting binary.
25055hardcode_minus_L=$hardcode_minus_L_GCJ
25056
25057# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25058# the resulting binary.
25059hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25060
25061# Set to yes if building a shared library automatically hardcodes DIR into the library
25062# and all subsequent libraries and executables linked against it.
25063hardcode_automatic=$hardcode_automatic_GCJ
25064
25065# Variables whose values should be saved in libtool wrapper scripts and
25066# restored at relink time.
25067variables_saved_for_relink="$variables_saved_for_relink"
25068
25069# Whether libtool must link a program against all its dependency libraries.
25070link_all_deplibs=$link_all_deplibs_GCJ
25071
25072# Compile-time system search path for libraries
25073sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25074
25075# Run-time system search path for libraries
25076sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25077
25078# Fix the shell variable \$srcfile for the compiler.
25079fix_srcfile_path="$fix_srcfile_path_GCJ"
25080
25081# Set to yes if exported symbols are required.
25082always_export_symbols=$always_export_symbols_GCJ
25083
25084# The commands to list exported symbols.
25085export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25086
25087# The commands to extract the exported symbol list from a shared archive.
25088extract_expsyms_cmds=$lt_extract_expsyms_cmds
25089
25090# Symbols that should not be listed in the preloaded symbols.
25091exclude_expsyms=$lt_exclude_expsyms_GCJ
25092
25093# Symbols that must always be exported.
25094include_expsyms=$lt_include_expsyms_GCJ
25095
25096# ### END LIBTOOL TAG CONFIG: $tagname
25097
25098__EOF__
25099
25100
25101else
25102 # If there is no Makefile yet, we rely on a make rule to execute
25103 # `config.status --recheck' to rerun these tests and create the
25104 # libtool script then.
25105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25106 if test -f "$ltmain_in"; then
25107 test -f Makefile && make "$ltmain"
25108 fi
25109fi
25110
25111
25112ac_ext=c
25113ac_cpp='$CPP $CPPFLAGS'
25114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25116ac_compiler_gnu=$ac_cv_c_compiler_gnu
25117
25118CC="$lt_save_CC"
25119
25120 else
25121 tagname=""
25122 fi
25123 ;;
25124
25125 RC)
25126 ac_ext=c
25127ac_cpp='$CPP $CPPFLAGS'
25128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25130ac_compiler_gnu=$ac_cv_c_compiler_gnu
25131
25132
25133# Source file extension for RC test sources.
25134ac_ext=rc
25135
25136# Object file extension for compiled RC test sources.
25137objext=o
25138objext_RC=$objext
25139
25140# Code to be used in simple compile tests
25141lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25142
25143# Code to be used in simple link tests
25144lt_simple_link_test_code="$lt_simple_compile_test_code"
25145
25146# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25147
25148# If no C compiler was specified, use CC.
25149LTCC=${LTCC-"$CC"}
25150
25151# If no C compiler flags were specified, use CFLAGS.
25152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25153
25154# Allow CC to be a program name with arguments.
25155compiler=$CC
25156
25157
25158# save warnings/boilerplate of simple test code
25159ac_outfile=conftest.$ac_objext
25160printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25162_lt_compiler_boilerplate=`cat conftest.err`
25163$rm conftest*
25164
25165ac_outfile=conftest.$ac_objext
25166printf "$lt_simple_link_test_code" >conftest.$ac_ext
25167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25168_lt_linker_boilerplate=`cat conftest.err`
25169$rm conftest*
25170
25171
25172# Allow CC to be a program name with arguments.
25173lt_save_CC="$CC"
25174CC=${RC-"windres"}
25175compiler=$CC
25176compiler_RC=$CC
25177for cc_temp in $compiler""; do
25178 case $cc_temp in
25179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25181 \-*) ;;
25182 *) break;;
25183 esac
25184done
25185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25186
25187lt_cv_prog_compiler_c_o_RC=yes
25188
25189# The else clause should only fire when bootstrapping the
25190# libtool distribution, otherwise you forgot to ship ltmain.sh
25191# with your package, and you will get complaints that there are
25192# no rules to generate ltmain.sh.
25193if test -f "$ltmain"; then
25194 # See if we are running on zsh, and set the options which allow our commands through
25195 # without removal of \ escapes.
25196 if test -n "${ZSH_VERSION+set}" ; then
25197 setopt NO_GLOB_SUBST
25198 fi
25199 # Now quote all the things that may contain metacharacters while being
25200 # careful not to overquote the AC_SUBSTed values. We take copies of the
25201 # variables and quote the copies for generation of the libtool script.
25202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25203 SED SHELL STRIP \
25204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25206 deplibs_check_method reload_flag reload_cmds need_locks \
25207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25208 lt_cv_sys_global_symbol_to_c_name_address \
25209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25210 old_postinstall_cmds old_postuninstall_cmds \
25211 compiler_RC \
25212 CC_RC \
25213 LD_RC \
25214 lt_prog_compiler_wl_RC \
25215 lt_prog_compiler_pic_RC \
25216 lt_prog_compiler_static_RC \
25217 lt_prog_compiler_no_builtin_flag_RC \
25218 export_dynamic_flag_spec_RC \
25219 thread_safe_flag_spec_RC \
25220 whole_archive_flag_spec_RC \
25221 enable_shared_with_static_runtimes_RC \
25222 old_archive_cmds_RC \
25223 old_archive_from_new_cmds_RC \
25224 predep_objects_RC \
25225 postdep_objects_RC \
25226 predeps_RC \
25227 postdeps_RC \
25228 compiler_lib_search_path_RC \
25229 archive_cmds_RC \
25230 archive_expsym_cmds_RC \
25231 postinstall_cmds_RC \
25232 postuninstall_cmds_RC \
25233 old_archive_from_expsyms_cmds_RC \
25234 allow_undefined_flag_RC \
25235 no_undefined_flag_RC \
25236 export_symbols_cmds_RC \
25237 hardcode_libdir_flag_spec_RC \
25238 hardcode_libdir_flag_spec_ld_RC \
25239 hardcode_libdir_separator_RC \
25240 hardcode_automatic_RC \
25241 module_cmds_RC \
25242 module_expsym_cmds_RC \
25243 lt_cv_prog_compiler_c_o_RC \
25244 exclude_expsyms_RC \
25245 include_expsyms_RC; do
25246
25247 case $var in
25248 old_archive_cmds_RC | \
25249 old_archive_from_new_cmds_RC | \
25250 archive_cmds_RC | \
25251 archive_expsym_cmds_RC | \
25252 module_cmds_RC | \
25253 module_expsym_cmds_RC | \
25254 old_archive_from_expsyms_cmds_RC | \
25255 export_symbols_cmds_RC | \
25256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25257 postinstall_cmds | postuninstall_cmds | \
25258 old_postinstall_cmds | old_postuninstall_cmds | \
25259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25260 # Double-quote double-evaled strings.
25261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25262 ;;
25263 *)
25264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25265 ;;
25266 esac
25267 done
25268
25269 case $lt_echo in
25270 *'\$0 --fallback-echo"')
25271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25272 ;;
25273 esac
25274
25275cfgfile="$ofile"
25276
25277 cat <<__EOF__ >> "$cfgfile"
25278# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25279
25280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25281
25282# Shell to use when invoking shell scripts.
25283SHELL=$lt_SHELL
25284
25285# Whether or not to build shared libraries.
25286build_libtool_libs=$enable_shared
25287
25288# Whether or not to build static libraries.
25289build_old_libs=$enable_static
25290
25291# Whether or not to add -lc for building shared libraries.
25292build_libtool_need_lc=$archive_cmds_need_lc_RC
25293
25294# Whether or not to disallow shared libs when runtime libs are static
25295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25296
25297# Whether or not to optimize for fast installation.
25298fast_install=$enable_fast_install
25299
25300# The host system.
25301host_alias=$host_alias
25302host=$host
25303host_os=$host_os
25304
25305# The build system.
25306build_alias=$build_alias
25307build=$build
25308build_os=$build_os
25309
25310# An echo program that does not interpret backslashes.
25311echo=$lt_echo
25312
25313# The archiver.
25314AR=$lt_AR
25315AR_FLAGS=$lt_AR_FLAGS
25316
25317# A C compiler.
25318LTCC=$lt_LTCC
25319
25320# LTCC compiler flags.
25321LTCFLAGS=$lt_LTCFLAGS
25322
25323# A language-specific compiler.
25324CC=$lt_compiler_RC
25325
25326# Is the compiler the GNU C compiler?
25327with_gcc=$GCC_RC
25328
25329# An ERE matcher.
25330EGREP=$lt_EGREP
25331
25332# The linker used to build libraries.
25333LD=$lt_LD_RC
25334
25335# Whether we need hard or soft links.
25336LN_S=$lt_LN_S
25337
25338# A BSD-compatible nm program.
25339NM=$lt_NM
25340
25341# A symbol stripping program
25342STRIP=$lt_STRIP
25343
25344# Used to examine libraries when file_magic_cmd begins "file"
25345MAGIC_CMD=$MAGIC_CMD
25346
25347# Used on cygwin: DLL creation program.
25348DLLTOOL="$DLLTOOL"
25349
25350# Used on cygwin: object dumper.
25351OBJDUMP="$OBJDUMP"
25352
25353# Used on cygwin: assembler.
25354AS="$AS"
25355
25356# The name of the directory that contains temporary libtool files.
25357objdir=$objdir
25358
25359# How to create reloadable object files.
25360reload_flag=$lt_reload_flag
25361reload_cmds=$lt_reload_cmds
25362
25363# How to pass a linker flag through the compiler.
25364wl=$lt_lt_prog_compiler_wl_RC
25365
25366# Object file suffix (normally "o").
25367objext="$ac_objext"
25368
25369# Old archive suffix (normally "a").
25370libext="$libext"
25371
25372# Shared library suffix (normally ".so").
25373shrext_cmds='$shrext_cmds'
25374
25375# Executable file suffix (normally "").
25376exeext="$exeext"
25377
25378# Additional compiler flags for building library objects.
25379pic_flag=$lt_lt_prog_compiler_pic_RC
25380pic_mode=$pic_mode
25381
25382# What is the maximum length of a command?
25383max_cmd_len=$lt_cv_sys_max_cmd_len
25384
25385# Does compiler simultaneously support -c and -o options?
25386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25387
25388# Must we lock files when doing compilation?
25389need_locks=$lt_need_locks
25390
25391# Do we need the lib prefix for modules?
25392need_lib_prefix=$need_lib_prefix
25393
25394# Do we need a version for libraries?
25395need_version=$need_version
25396
25397# Whether dlopen is supported.
25398dlopen_support=$enable_dlopen
25399
25400# Whether dlopen of programs is supported.
25401dlopen_self=$enable_dlopen_self
25402
25403# Whether dlopen of statically linked programs is supported.
25404dlopen_self_static=$enable_dlopen_self_static
25405
25406# Compiler flag to prevent dynamic linking.
25407link_static_flag=$lt_lt_prog_compiler_static_RC
25408
25409# Compiler flag to turn off builtin functions.
25410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25411
25412# Compiler flag to allow reflexive dlopens.
25413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25414
25415# Compiler flag to generate shared objects directly from archives.
25416whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25417
25418# Compiler flag to generate thread-safe objects.
25419thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25420
25421# Library versioning type.
25422version_type=$version_type
25423
25424# Format of library name prefix.
25425libname_spec=$lt_libname_spec
25426
25427# List of archive names. First name is the real one, the rest are links.
25428# The last name is the one that the linker finds with -lNAME.
25429library_names_spec=$lt_library_names_spec
25430
25431# The coded name of the library, if different from the real name.
25432soname_spec=$lt_soname_spec
25433
25434# Commands used to build and install an old-style archive.
25435RANLIB=$lt_RANLIB
25436old_archive_cmds=$lt_old_archive_cmds_RC
25437old_postinstall_cmds=$lt_old_postinstall_cmds
25438old_postuninstall_cmds=$lt_old_postuninstall_cmds
25439
25440# Create an old-style archive from a shared archive.
25441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25442
25443# Create a temporary old-style archive to link instead of a shared archive.
25444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25445
25446# Commands used to build and install a shared archive.
25447archive_cmds=$lt_archive_cmds_RC
25448archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25449postinstall_cmds=$lt_postinstall_cmds
25450postuninstall_cmds=$lt_postuninstall_cmds
25451
25452# Commands used to build a loadable module (assumed same as above if empty)
25453module_cmds=$lt_module_cmds_RC
25454module_expsym_cmds=$lt_module_expsym_cmds_RC
25455
25456# Commands to strip libraries.
25457old_striplib=$lt_old_striplib
25458striplib=$lt_striplib
25459
25460# Dependencies to place before the objects being linked to create a
25461# shared library.
25462predep_objects=$lt_predep_objects_RC
25463
25464# Dependencies to place after the objects being linked to create a
25465# shared library.
25466postdep_objects=$lt_postdep_objects_RC
25467
25468# Dependencies to place before the objects being linked to create a
25469# shared library.
25470predeps=$lt_predeps_RC
25471
25472# Dependencies to place after the objects being linked to create a
25473# shared library.
25474postdeps=$lt_postdeps_RC
25475
25476# The library search path used internally by the compiler when linking
25477# a shared library.
25478compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25479
25480# Method to check whether dependent libraries are shared objects.
25481deplibs_check_method=$lt_deplibs_check_method
25482
25483# Command to use when deplibs_check_method == file_magic.
25484file_magic_cmd=$lt_file_magic_cmd
25485
25486# Flag that allows shared libraries with undefined symbols to be built.
25487allow_undefined_flag=$lt_allow_undefined_flag_RC
25488
25489# Flag that forces no undefined symbols.
25490no_undefined_flag=$lt_no_undefined_flag_RC
25491
25492# Commands used to finish a libtool library installation in a directory.
25493finish_cmds=$lt_finish_cmds
25494
25495# Same as above, but a single script fragment to be evaled but not shown.
25496finish_eval=$lt_finish_eval
25497
25498# Take the output of nm and produce a listing of raw symbols and C names.
25499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25500
25501# Transform the output of nm in a proper C declaration
25502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25503
25504# Transform the output of nm in a C name address pair
25505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25506
25507# This is the shared library runtime path variable.
25508runpath_var=$runpath_var
25509
25510# This is the shared library path variable.
25511shlibpath_var=$shlibpath_var
25512
25513# Is shlibpath searched before the hard-coded library search path?
25514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25515
25516# How to hardcode a shared library path into an executable.
25517hardcode_action=$hardcode_action_RC
25518
25519# Whether we should hardcode library paths into libraries.
25520hardcode_into_libs=$hardcode_into_libs
25521
25522# Flag to hardcode \$libdir into a binary during linking.
25523# This must work even if \$libdir does not exist.
25524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25525
25526# If ld is used when linking, flag to hardcode \$libdir into
25527# a binary during linking. This must work even if \$libdir does
25528# not exist.
25529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25530
25531# Whether we need a single -rpath flag with a separated argument.
25532hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25533
25534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25535# resulting binary.
25536hardcode_direct=$hardcode_direct_RC
25537
25538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25539# resulting binary.
25540hardcode_minus_L=$hardcode_minus_L_RC
25541
25542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25543# the resulting binary.
25544hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25545
25546# Set to yes if building a shared library automatically hardcodes DIR into the library
25547# and all subsequent libraries and executables linked against it.
25548hardcode_automatic=$hardcode_automatic_RC
25549
25550# Variables whose values should be saved in libtool wrapper scripts and
25551# restored at relink time.
25552variables_saved_for_relink="$variables_saved_for_relink"
25553
25554# Whether libtool must link a program against all its dependency libraries.
25555link_all_deplibs=$link_all_deplibs_RC
25556
25557# Compile-time system search path for libraries
25558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25559
25560# Run-time system search path for libraries
25561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25562
25563# Fix the shell variable \$srcfile for the compiler.
25564fix_srcfile_path="$fix_srcfile_path_RC"
25565
25566# Set to yes if exported symbols are required.
25567always_export_symbols=$always_export_symbols_RC
25568
25569# The commands to list exported symbols.
25570export_symbols_cmds=$lt_export_symbols_cmds_RC
25571
25572# The commands to extract the exported symbol list from a shared archive.
25573extract_expsyms_cmds=$lt_extract_expsyms_cmds
25574
25575# Symbols that should not be listed in the preloaded symbols.
25576exclude_expsyms=$lt_exclude_expsyms_RC
25577
25578# Symbols that must always be exported.
25579include_expsyms=$lt_include_expsyms_RC
25580
25581# ### END LIBTOOL TAG CONFIG: $tagname
25582
25583__EOF__
25584
25585
25586else
25587 # If there is no Makefile yet, we rely on a make rule to execute
25588 # `config.status --recheck' to rerun these tests and create the
25589 # libtool script then.
25590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25591 if test -f "$ltmain_in"; then
25592 test -f Makefile && make "$ltmain"
25593 fi
25594fi
25595
25596
25597ac_ext=c
25598ac_cpp='$CPP $CPPFLAGS'
25599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25601ac_compiler_gnu=$ac_cv_c_compiler_gnu
25602
25603CC="$lt_save_CC"
25604
25605 ;;
25606
25607 *)
25608 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25609echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25610 { (exit 1); exit 1; }; }
25611 ;;
25612 esac
25613
25614 # Append the new tag name to the list of available tags.
25615 if test -n "$tagname" ; then
25616 available_tags="$available_tags $tagname"
25617 fi
25618 fi
25619 done
25620 IFS="$lt_save_ifs"
25621
25622 # Now substitute the updated list of available tags.
25623 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25624 mv "${ofile}T" "$ofile"
25625 chmod +x "$ofile"
25626 else
25627 rm -f "${ofile}T"
25628 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25629echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25630 { (exit 1); exit 1; }; }
25631 fi
25632fi
25633
25634
25635
25636# This can be used to rebuild libtool when needed
25637LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25638
25639# Always use our own libtool.
25640LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25641
25642# Prevent multiple expansion
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664if test "$lt_cv_dlopen_self" = "yes" ; then
25665
25666cat >>confdefs.h <<\_ACEOF
25667#define CAN_DLOPEN_SELF 1
25668_ACEOF
25669
25670fi
25671
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025672if test "$WITH_LLVMGCCDIR" = "default" ; then
25673 LLVMGCC="llvm-gcc${EXEEXT}"
25674 LLVMGXX="llvm-g++${EXEEXT}"
25675 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25676set dummy $LLVMGCC; ac_word=$2
25677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25679if test "${ac_cv_path_LLVMGCC+set}" = set; then
25680 echo $ECHO_N "(cached) $ECHO_C" >&6
25681else
25682 case $LLVMGCC in
25683 [\\/]* | ?:[\\/]*)
25684 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25685 ;;
25686 *)
25687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25688for as_dir in $PATH
25689do
25690 IFS=$as_save_IFS
25691 test -z "$as_dir" && as_dir=.
25692 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025694 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25696 break 2
25697 fi
25698done
25699done
25700IFS=$as_save_IFS
25701
25702 ;;
25703esac
25704fi
25705LLVMGCC=$ac_cv_path_LLVMGCC
25706if test -n "$LLVMGCC"; then
25707 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25708echo "${ECHO_T}$LLVMGCC" >&6; }
25709else
25710 { echo "$as_me:$LINENO: result: no" >&5
25711echo "${ECHO_T}no" >&6; }
25712fi
25713
25714
25715 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25716set dummy $LLVMGXX; ac_word=$2
25717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25719if test "${ac_cv_path_LLVMGXX+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25721else
25722 case $LLVMGXX in
25723 [\\/]* | ?:[\\/]*)
25724 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25725 ;;
25726 *)
25727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728for as_dir in $PATH
25729do
25730 IFS=$as_save_IFS
25731 test -z "$as_dir" && as_dir=.
25732 for ac_exec_ext in '' $ac_executable_extensions; do
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025734 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25736 break 2
25737 fi
25738done
25739done
25740IFS=$as_save_IFS
25741
25742 ;;
25743esac
25744fi
25745LLVMGXX=$ac_cv_path_LLVMGXX
25746if test -n "$LLVMGXX"; then
25747 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25748echo "${ECHO_T}$LLVMGXX" >&6; }
25749else
25750 { echo "$as_me:$LINENO: result: no" >&5
25751echo "${ECHO_T}no" >&6; }
25752fi
25753
25754
25755else
Devang Pateld84ba7b2007-12-04 22:54:47 +000025756 if test -z "$LLVMGCC"; then
25757 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25758 fi
25759 if test -z "$LLVMGXX"; then
25760 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25761 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025762 LLVMGCC=$LLVMGCC
25763
25764 LLVMGXX=$LLVMGXX
25765
25766fi
25767
25768{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25769echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25770
25771ICC=no
25772IXX=no
25773case $CC in
25774 icc*|icpc*)
25775 ICC=yes
25776 IXX=yes
25777 ;;
25778 *)
25779 ;;
25780esac
25781
25782if test "$GCC" != "yes" && test "$ICC" != "yes"
25783then
25784 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25785echo "$as_me: error: gcc|icc required but not found" >&2;}
25786 { (exit 1); exit 1; }; }
25787fi
25788
25789if test "$GXX" != "yes" && test "$IXX" != "yes"
25790then
25791 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25792echo "$as_me: error: g++|icc required but not found" >&2;}
25793 { (exit 1); exit 1; }; }
25794fi
25795
25796if test "$GCC" = "yes"
25797then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000025798 cat >conftest.$ac_ext <<_ACEOF
25799#if !defined(__GNUC__) || __GNUC__ < 3
25800#error Unsupported GCC version
25801#endif
25802
25803_ACEOF
25804rm -f conftest.$ac_objext
25805if { (ac_try="$ac_compile"
25806case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809esac
25810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_compile") 2>conftest.er1
25812 ac_status=$?
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest.$ac_objext; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000025821 :
25822else
25823 echo "$as_me: failed program was:" >&5
25824sed 's/^/| /' conftest.$ac_ext >&5
25825
25826 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025827echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25828 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000025829fi
25830
25831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025832fi
25833
25834if test -z "$llvm_cv_gnu_make_command"
25835then
25836 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25837echo "$as_me: error: GNU Make required but not found" >&2;}
25838 { (exit 1); exit 1; }; }
25839fi
25840
25841{ echo "$as_me:$LINENO: result: ok" >&5
25842echo "${ECHO_T}ok" >&6; }
25843
25844
25845
25846{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25847echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25848if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25850else
25851 ac_check_lib_save_LIBS=$LIBS
25852LIBS="-lelf $LIBS"
25853cat >conftest.$ac_ext <<_ACEOF
25854/* confdefs.h. */
25855_ACEOF
25856cat confdefs.h >>conftest.$ac_ext
25857cat >>conftest.$ac_ext <<_ACEOF
25858/* end confdefs.h. */
25859
25860/* Override any GCC internal prototype to avoid an error.
25861 Use char because int might match the return type of a GCC
25862 builtin and then its argument prototype would still apply. */
25863#ifdef __cplusplus
25864extern "C"
25865#endif
25866char elf_begin ();
25867int
25868main ()
25869{
25870return elf_begin ();
25871 ;
25872 return 0;
25873}
25874_ACEOF
25875rm -f conftest.$ac_objext conftest$ac_exeext
25876if { (ac_try="$ac_link"
25877case "(($ac_try" in
25878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879 *) ac_try_echo=$ac_try;;
25880esac
25881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882 (eval "$ac_link") 2>conftest.er1
25883 ac_status=$?
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025888 (exit $ac_status); } && {
25889 test -z "$ac_c_werror_flag" ||
25890 test ! -s conftest.err
25891 } && test -s conftest$ac_exeext &&
25892 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025893 ac_cv_lib_elf_elf_begin=yes
25894else
25895 echo "$as_me: failed program was:" >&5
25896sed 's/^/| /' conftest.$ac_ext >&5
25897
25898 ac_cv_lib_elf_elf_begin=no
25899fi
25900
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025902 conftest$ac_exeext conftest.$ac_ext
25903LIBS=$ac_check_lib_save_LIBS
25904fi
25905{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25906echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25907if test $ac_cv_lib_elf_elf_begin = yes; then
25908 cat >>confdefs.h <<_ACEOF
25909#define HAVE_LIBELF 1
25910_ACEOF
25911
25912 LIBS="-lelf $LIBS"
25913
25914fi
25915
25916
25917{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
25918echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25919if test "${ac_cv_lib_m_sin+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25921else
25922 ac_check_lib_save_LIBS=$LIBS
25923LIBS="-lm $LIBS"
25924cat >conftest.$ac_ext <<_ACEOF
25925/* confdefs.h. */
25926_ACEOF
25927cat confdefs.h >>conftest.$ac_ext
25928cat >>conftest.$ac_ext <<_ACEOF
25929/* end confdefs.h. */
25930
25931/* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25934#ifdef __cplusplus
25935extern "C"
25936#endif
25937char sin ();
25938int
25939main ()
25940{
25941return sin ();
25942 ;
25943 return 0;
25944}
25945_ACEOF
25946rm -f conftest.$ac_objext conftest$ac_exeext
25947if { (ac_try="$ac_link"
25948case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25951esac
25952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_link") 2>conftest.er1
25954 ac_status=$?
25955 grep -v '^ *+' conftest.er1 >conftest.err
25956 rm -f conftest.er1
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest$ac_exeext &&
25963 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025964 ac_cv_lib_m_sin=yes
25965else
25966 echo "$as_me: failed program was:" >&5
25967sed 's/^/| /' conftest.$ac_ext >&5
25968
25969 ac_cv_lib_m_sin=no
25970fi
25971
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000025972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025973 conftest$ac_exeext conftest.$ac_ext
25974LIBS=$ac_check_lib_save_LIBS
25975fi
25976{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25977echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25978if test $ac_cv_lib_m_sin = yes; then
25979 cat >>confdefs.h <<_ACEOF
25980#define HAVE_LIBM 1
25981_ACEOF
25982
25983 LIBS="-lm $LIBS"
25984
25985fi
25986
25987if test "$llvm_cv_os_type" = "MingW" ; then
25988
25989{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25990echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25991if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25993else
25994 ac_check_lib_save_LIBS=$LIBS
25995LIBS="-limagehlp $LIBS"
25996cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002
26003
26004int
26005main ()
26006{
26007return main ();
26008 ;
26009 return 0;
26010}
26011_ACEOF
26012rm -f conftest.$ac_objext conftest$ac_exeext
26013if { (ac_try="$ac_link"
26014case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017esac
26018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_link") 2>conftest.er1
26020 ac_status=$?
26021 grep -v '^ *+' conftest.er1 >conftest.err
26022 rm -f conftest.er1
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026025 (exit $ac_status); } && {
26026 test -z "$ac_c_werror_flag" ||
26027 test ! -s conftest.err
26028 } && test -s conftest$ac_exeext &&
26029 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026030 ac_cv_lib_imagehlp_main=yes
26031else
26032 echo "$as_me: failed program was:" >&5
26033sed 's/^/| /' conftest.$ac_ext >&5
26034
26035 ac_cv_lib_imagehlp_main=no
26036fi
26037
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026039 conftest$ac_exeext conftest.$ac_ext
26040LIBS=$ac_check_lib_save_LIBS
26041fi
26042{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26043echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26044if test $ac_cv_lib_imagehlp_main = yes; then
26045 cat >>confdefs.h <<_ACEOF
26046#define HAVE_LIBIMAGEHLP 1
26047_ACEOF
26048
26049 LIBS="-limagehlp $LIBS"
26050
26051fi
26052
26053
26054{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26055echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26056if test "${ac_cv_lib_psapi_main+set}" = set; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26058else
26059 ac_check_lib_save_LIBS=$LIBS
26060LIBS="-lpsapi $LIBS"
26061cat >conftest.$ac_ext <<_ACEOF
26062/* confdefs.h. */
26063_ACEOF
26064cat confdefs.h >>conftest.$ac_ext
26065cat >>conftest.$ac_ext <<_ACEOF
26066/* end confdefs.h. */
26067
26068
26069int
26070main ()
26071{
26072return main ();
26073 ;
26074 return 0;
26075}
26076_ACEOF
26077rm -f conftest.$ac_objext conftest$ac_exeext
26078if { (ac_try="$ac_link"
26079case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082esac
26083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084 (eval "$ac_link") 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026090 (exit $ac_status); } && {
26091 test -z "$ac_c_werror_flag" ||
26092 test ! -s conftest.err
26093 } && test -s conftest$ac_exeext &&
26094 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026095 ac_cv_lib_psapi_main=yes
26096else
26097 echo "$as_me: failed program was:" >&5
26098sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 ac_cv_lib_psapi_main=no
26101fi
26102
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026104 conftest$ac_exeext conftest.$ac_ext
26105LIBS=$ac_check_lib_save_LIBS
26106fi
26107{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26108echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26109if test $ac_cv_lib_psapi_main = yes; then
26110 cat >>confdefs.h <<_ACEOF
26111#define HAVE_LIBPSAPI 1
26112_ACEOF
26113
26114 LIBS="-lpsapi $LIBS"
26115
26116fi
26117
26118fi
26119
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026120{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26121echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26122if test "${ac_cv_search_dlopen+set}" = set; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26124else
26125 ac_func_search_save_LIBS=$LIBS
26126cat >conftest.$ac_ext <<_ACEOF
26127/* confdefs.h. */
26128_ACEOF
26129cat confdefs.h >>conftest.$ac_ext
26130cat >>conftest.$ac_ext <<_ACEOF
26131/* end confdefs.h. */
26132
26133/* Override any GCC internal prototype to avoid an error.
26134 Use char because int might match the return type of a GCC
26135 builtin and then its argument prototype would still apply. */
26136#ifdef __cplusplus
26137extern "C"
26138#endif
26139char dlopen ();
26140int
26141main ()
26142{
26143return dlopen ();
26144 ;
26145 return 0;
26146}
26147_ACEOF
26148for ac_lib in '' dl; do
26149 if test -z "$ac_lib"; then
26150 ac_res="none required"
26151 else
26152 ac_res=-l$ac_lib
26153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26154 fi
26155 rm -f conftest.$ac_objext conftest$ac_exeext
26156if { (ac_try="$ac_link"
26157case "(($ac_try" in
26158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159 *) ac_try_echo=$ac_try;;
26160esac
26161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162 (eval "$ac_link") 2>conftest.er1
26163 ac_status=$?
26164 grep -v '^ *+' conftest.er1 >conftest.err
26165 rm -f conftest.er1
26166 cat conftest.err >&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026168 (exit $ac_status); } && {
26169 test -z "$ac_c_werror_flag" ||
26170 test ! -s conftest.err
26171 } && test -s conftest$ac_exeext &&
26172 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026173 ac_cv_search_dlopen=$ac_res
26174else
26175 echo "$as_me: failed program was:" >&5
26176sed 's/^/| /' conftest.$ac_ext >&5
26177
26178
26179fi
26180
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026182 conftest$ac_exeext
26183 if test "${ac_cv_search_dlopen+set}" = set; then
26184 break
26185fi
26186done
26187if test "${ac_cv_search_dlopen+set}" = set; then
26188 :
26189else
26190 ac_cv_search_dlopen=no
26191fi
26192rm conftest.$ac_ext
26193LIBS=$ac_func_search_save_LIBS
26194fi
26195{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26196echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26197ac_res=$ac_cv_search_dlopen
26198if test "$ac_res" != no; then
26199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26200
26201cat >>confdefs.h <<\_ACEOF
26202#define HAVE_DLOPEN 1
26203_ACEOF
26204
26205else
26206 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26207echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26208fi
26209
26210
Nick Lewycky6c58a402009-04-13 04:26:27 +000026211{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26212echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26213if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000026214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215else
Nick Lewycky6c58a402009-04-13 04:26:27 +000026216 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000026217cat >conftest.$ac_ext <<_ACEOF
26218/* confdefs.h. */
26219_ACEOF
26220cat confdefs.h >>conftest.$ac_ext
26221cat >>conftest.$ac_ext <<_ACEOF
26222/* end confdefs.h. */
26223
26224/* Override any GCC internal prototype to avoid an error.
26225 Use char because int might match the return type of a GCC
26226 builtin and then its argument prototype would still apply. */
26227#ifdef __cplusplus
26228extern "C"
26229#endif
26230char ffi_call ();
26231int
26232main ()
26233{
26234return ffi_call ();
26235 ;
26236 return 0;
26237}
26238_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000026239for ac_lib in '' ffi; do
26240 if test -z "$ac_lib"; then
26241 ac_res="none required"
26242 else
26243 ac_res=-l$ac_lib
26244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26245 fi
26246 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000026247if { (ac_try="$ac_link"
26248case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26251esac
26252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253 (eval "$ac_link") 2>conftest.er1
26254 ac_status=$?
26255 grep -v '^ *+' conftest.er1 >conftest.err
26256 rm -f conftest.er1
26257 cat conftest.err >&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest$ac_exeext &&
26263 $as_test_x conftest$ac_exeext; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000026264 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000026265else
26266 echo "$as_me: failed program was:" >&5
26267sed 's/^/| /' conftest.$ac_ext >&5
26268
Nick Lewycky6c58a402009-04-13 04:26:27 +000026269
Nick Lewycky0235b622009-02-04 06:27:44 +000026270fi
26271
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Nick Lewycky6c58a402009-04-13 04:26:27 +000026273 conftest$ac_exeext
26274 if test "${ac_cv_search_ffi_call+set}" = set; then
26275 break
Nick Lewycky0235b622009-02-04 06:27:44 +000026276fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000026277done
26278if test "${ac_cv_search_ffi_call+set}" = set; then
26279 :
26280else
26281 ac_cv_search_ffi_call=no
26282fi
26283rm conftest.$ac_ext
26284LIBS=$ac_func_search_save_LIBS
26285fi
26286{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26287echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26288ac_res=$ac_cv_search_ffi_call
26289if test "$ac_res" != no; then
26290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26291
26292cat >>confdefs.h <<\_ACEOF
26293#define HAVE_FFI_CALL 1
26294_ACEOF
26295
Nick Lewycky0235b622009-02-04 06:27:44 +000026296else
26297 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26298echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26299fi
26300
26301
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026302{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26303echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26304if test "${ac_cv_search_mallinfo+set}" = set; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26306else
26307 ac_func_search_save_LIBS=$LIBS
26308cat >conftest.$ac_ext <<_ACEOF
26309/* confdefs.h. */
26310_ACEOF
26311cat confdefs.h >>conftest.$ac_ext
26312cat >>conftest.$ac_ext <<_ACEOF
26313/* end confdefs.h. */
26314
26315/* Override any GCC internal prototype to avoid an error.
26316 Use char because int might match the return type of a GCC
26317 builtin and then its argument prototype would still apply. */
26318#ifdef __cplusplus
26319extern "C"
26320#endif
26321char mallinfo ();
26322int
26323main ()
26324{
26325return mallinfo ();
26326 ;
26327 return 0;
26328}
26329_ACEOF
26330for ac_lib in '' malloc; do
26331 if test -z "$ac_lib"; then
26332 ac_res="none required"
26333 else
26334 ac_res=-l$ac_lib
26335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26336 fi
26337 rm -f conftest.$ac_objext conftest$ac_exeext
26338if { (ac_try="$ac_link"
26339case "(($ac_try" in
26340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26341 *) ac_try_echo=$ac_try;;
26342esac
26343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26344 (eval "$ac_link") 2>conftest.er1
26345 ac_status=$?
26346 grep -v '^ *+' conftest.er1 >conftest.err
26347 rm -f conftest.er1
26348 cat conftest.err >&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026350 (exit $ac_status); } && {
26351 test -z "$ac_c_werror_flag" ||
26352 test ! -s conftest.err
26353 } && test -s conftest$ac_exeext &&
26354 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026355 ac_cv_search_mallinfo=$ac_res
26356else
26357 echo "$as_me: failed program was:" >&5
26358sed 's/^/| /' conftest.$ac_ext >&5
26359
26360
26361fi
26362
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026364 conftest$ac_exeext
26365 if test "${ac_cv_search_mallinfo+set}" = set; then
26366 break
26367fi
26368done
26369if test "${ac_cv_search_mallinfo+set}" = set; then
26370 :
26371else
26372 ac_cv_search_mallinfo=no
26373fi
26374rm conftest.$ac_ext
26375LIBS=$ac_func_search_save_LIBS
26376fi
26377{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26378echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26379ac_res=$ac_cv_search_mallinfo
26380if test "$ac_res" != no; then
26381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26382
26383cat >>confdefs.h <<\_ACEOF
26384#define HAVE_MALLINFO 1
26385_ACEOF
26386
26387fi
26388
26389
26390if test "$ENABLE_THREADS" -eq 1 ; then
26391
26392{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26393echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26394if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26396else
26397 ac_check_lib_save_LIBS=$LIBS
26398LIBS="-lpthread $LIBS"
26399cat >conftest.$ac_ext <<_ACEOF
26400/* confdefs.h. */
26401_ACEOF
26402cat confdefs.h >>conftest.$ac_ext
26403cat >>conftest.$ac_ext <<_ACEOF
26404/* end confdefs.h. */
26405
26406/* Override any GCC internal prototype to avoid an error.
26407 Use char because int might match the return type of a GCC
26408 builtin and then its argument prototype would still apply. */
26409#ifdef __cplusplus
26410extern "C"
26411#endif
26412char pthread_mutex_init ();
26413int
26414main ()
26415{
26416return pthread_mutex_init ();
26417 ;
26418 return 0;
26419}
26420_ACEOF
26421rm -f conftest.$ac_objext conftest$ac_exeext
26422if { (ac_try="$ac_link"
26423case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26426esac
26427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26429 ac_status=$?
26430 grep -v '^ *+' conftest.er1 >conftest.err
26431 rm -f conftest.er1
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026439 ac_cv_lib_pthread_pthread_mutex_init=yes
26440else
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444 ac_cv_lib_pthread_pthread_mutex_init=no
26445fi
26446
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026448 conftest$ac_exeext conftest.$ac_ext
26449LIBS=$ac_check_lib_save_LIBS
26450fi
26451{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26452echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26453if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26454 cat >>confdefs.h <<_ACEOF
26455#define HAVE_LIBPTHREAD 1
26456_ACEOF
26457
26458 LIBS="-lpthread $LIBS"
26459
26460fi
26461
26462 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26463echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26464if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26466else
26467 ac_func_search_save_LIBS=$LIBS
26468cat >conftest.$ac_ext <<_ACEOF
26469/* confdefs.h. */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h. */
26474
26475/* Override any GCC internal prototype to avoid an error.
26476 Use char because int might match the return type of a GCC
26477 builtin and then its argument prototype would still apply. */
26478#ifdef __cplusplus
26479extern "C"
26480#endif
26481char pthread_mutex_lock ();
26482int
26483main ()
26484{
26485return pthread_mutex_lock ();
26486 ;
26487 return 0;
26488}
26489_ACEOF
26490for ac_lib in '' pthread; do
26491 if test -z "$ac_lib"; then
26492 ac_res="none required"
26493 else
26494 ac_res=-l$ac_lib
26495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26496 fi
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498if { (ac_try="$ac_link"
26499case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26502esac
26503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_link") 2>conftest.er1
26505 ac_status=$?
26506 grep -v '^ *+' conftest.er1 >conftest.err
26507 rm -f conftest.er1
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest$ac_exeext &&
26514 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026515 ac_cv_search_pthread_mutex_lock=$ac_res
26516else
26517 echo "$as_me: failed program was:" >&5
26518sed 's/^/| /' conftest.$ac_ext >&5
26519
26520
26521fi
26522
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026524 conftest$ac_exeext
26525 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26526 break
26527fi
26528done
26529if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26530 :
26531else
26532 ac_cv_search_pthread_mutex_lock=no
26533fi
26534rm conftest.$ac_ext
26535LIBS=$ac_func_search_save_LIBS
26536fi
26537{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26538echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26539ac_res=$ac_cv_search_pthread_mutex_lock
26540if test "$ac_res" != no; then
26541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26542
26543cat >>confdefs.h <<\_ACEOF
26544#define HAVE_PTHREAD_MUTEX_LOCK 1
26545_ACEOF
26546
26547fi
26548
26549fi
26550
26551
26552# Check whether --with-udis86 was given.
26553if test "${with_udis86+set}" = set; then
26554 withval=$with_udis86;
26555 USE_UDIS86=1
26556
26557 case "$withval" in
26558 /usr/lib|yes) ;;
26559 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26560 esac
26561
26562{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26563echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26564if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566else
26567 ac_check_lib_save_LIBS=$LIBS
26568LIBS="-ludis86 $LIBS"
26569cat >conftest.$ac_ext <<_ACEOF
26570/* confdefs.h. */
26571_ACEOF
26572cat confdefs.h >>conftest.$ac_ext
26573cat >>conftest.$ac_ext <<_ACEOF
26574/* end confdefs.h. */
26575
26576/* Override any GCC internal prototype to avoid an error.
26577 Use char because int might match the return type of a GCC
26578 builtin and then its argument prototype would still apply. */
26579#ifdef __cplusplus
26580extern "C"
26581#endif
26582char ud_init ();
26583int
26584main ()
26585{
26586return ud_init ();
26587 ;
26588 return 0;
26589}
26590_ACEOF
26591rm -f conftest.$ac_objext conftest$ac_exeext
26592if { (ac_try="$ac_link"
26593case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26596esac
26597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_link") 2>conftest.er1
26599 ac_status=$?
26600 grep -v '^ *+' conftest.er1 >conftest.err
26601 rm -f conftest.er1
26602 cat conftest.err >&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026604 (exit $ac_status); } && {
26605 test -z "$ac_c_werror_flag" ||
26606 test ! -s conftest.err
26607 } && test -s conftest$ac_exeext &&
26608 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026609 ac_cv_lib_udis86_ud_init=yes
26610else
26611 echo "$as_me: failed program was:" >&5
26612sed 's/^/| /' conftest.$ac_ext >&5
26613
26614 ac_cv_lib_udis86_ud_init=no
26615fi
26616
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026618 conftest$ac_exeext conftest.$ac_ext
26619LIBS=$ac_check_lib_save_LIBS
26620fi
26621{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26622echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26623if test $ac_cv_lib_udis86_ud_init = yes; then
26624 cat >>confdefs.h <<_ACEOF
26625#define HAVE_LIBUDIS86 1
26626_ACEOF
26627
26628 LIBS="-ludis86 $LIBS"
26629
26630else
26631
26632 echo "Error! You need to have libudis86 around."
26633 exit -1
26634
26635fi
26636
26637
26638else
26639 USE_UDIS86=0
26640
26641fi
26642
26643
26644cat >>confdefs.h <<_ACEOF
26645#define USE_UDIS86 $USE_UDIS86
26646_ACEOF
26647
26648
26649
26650
26651
26652
26653
26654
26655ac_header_dirent=no
26656for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26657 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26658{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26659echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26661 echo $ECHO_N "(cached) $ECHO_C" >&6
26662else
26663 cat >conftest.$ac_ext <<_ACEOF
26664/* confdefs.h. */
26665_ACEOF
26666cat confdefs.h >>conftest.$ac_ext
26667cat >>conftest.$ac_ext <<_ACEOF
26668/* end confdefs.h. */
26669#include <sys/types.h>
26670#include <$ac_hdr>
26671
26672int
26673main ()
26674{
26675if ((DIR *) 0)
26676return 0;
26677 ;
26678 return 0;
26679}
26680_ACEOF
26681rm -f conftest.$ac_objext
26682if { (ac_try="$ac_compile"
26683case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26686esac
26687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_compile") 2>conftest.er1
26689 ac_status=$?
26690 grep -v '^ *+' conftest.er1 >conftest.err
26691 rm -f conftest.er1
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026694 (exit $ac_status); } && {
26695 test -z "$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026698 eval "$as_ac_Header=yes"
26699else
26700 echo "$as_me: failed program was:" >&5
26701sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 eval "$as_ac_Header=no"
26704fi
26705
26706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26707fi
26708ac_res=`eval echo '${'$as_ac_Header'}'`
26709 { echo "$as_me:$LINENO: result: $ac_res" >&5
26710echo "${ECHO_T}$ac_res" >&6; }
26711if test `eval echo '${'$as_ac_Header'}'` = yes; then
26712 cat >>confdefs.h <<_ACEOF
26713#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26714_ACEOF
26715
26716ac_header_dirent=$ac_hdr; break
26717fi
26718
26719done
26720# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26721if test $ac_header_dirent = dirent.h; then
26722 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26723echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26724if test "${ac_cv_search_opendir+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26726else
26727 ac_func_search_save_LIBS=$LIBS
26728cat >conftest.$ac_ext <<_ACEOF
26729/* confdefs.h. */
26730_ACEOF
26731cat confdefs.h >>conftest.$ac_ext
26732cat >>conftest.$ac_ext <<_ACEOF
26733/* end confdefs.h. */
26734
26735/* Override any GCC internal prototype to avoid an error.
26736 Use char because int might match the return type of a GCC
26737 builtin and then its argument prototype would still apply. */
26738#ifdef __cplusplus
26739extern "C"
26740#endif
26741char opendir ();
26742int
26743main ()
26744{
26745return opendir ();
26746 ;
26747 return 0;
26748}
26749_ACEOF
26750for ac_lib in '' dir; do
26751 if test -z "$ac_lib"; then
26752 ac_res="none required"
26753 else
26754 ac_res=-l$ac_lib
26755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26756 fi
26757 rm -f conftest.$ac_objext conftest$ac_exeext
26758if { (ac_try="$ac_link"
26759case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26762esac
26763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_link") 2>conftest.er1
26765 ac_status=$?
26766 grep -v '^ *+' conftest.er1 >conftest.err
26767 rm -f conftest.er1
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest$ac_exeext &&
26774 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026775 ac_cv_search_opendir=$ac_res
26776else
26777 echo "$as_me: failed program was:" >&5
26778sed 's/^/| /' conftest.$ac_ext >&5
26779
26780
26781fi
26782
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026784 conftest$ac_exeext
26785 if test "${ac_cv_search_opendir+set}" = set; then
26786 break
26787fi
26788done
26789if test "${ac_cv_search_opendir+set}" = set; then
26790 :
26791else
26792 ac_cv_search_opendir=no
26793fi
26794rm conftest.$ac_ext
26795LIBS=$ac_func_search_save_LIBS
26796fi
26797{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26798echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26799ac_res=$ac_cv_search_opendir
26800if test "$ac_res" != no; then
26801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26802
26803fi
26804
26805else
26806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26807echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26808if test "${ac_cv_search_opendir+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26810else
26811 ac_func_search_save_LIBS=$LIBS
26812cat >conftest.$ac_ext <<_ACEOF
26813/* confdefs.h. */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h. */
26818
26819/* Override any GCC internal prototype to avoid an error.
26820 Use char because int might match the return type of a GCC
26821 builtin and then its argument prototype would still apply. */
26822#ifdef __cplusplus
26823extern "C"
26824#endif
26825char opendir ();
26826int
26827main ()
26828{
26829return opendir ();
26830 ;
26831 return 0;
26832}
26833_ACEOF
26834for ac_lib in '' x; do
26835 if test -z "$ac_lib"; then
26836 ac_res="none required"
26837 else
26838 ac_res=-l$ac_lib
26839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26840 fi
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842if { (ac_try="$ac_link"
26843case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26846esac
26847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848 (eval "$ac_link") 2>conftest.er1
26849 ac_status=$?
26850 grep -v '^ *+' conftest.er1 >conftest.err
26851 rm -f conftest.er1
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026854 (exit $ac_status); } && {
26855 test -z "$ac_c_werror_flag" ||
26856 test ! -s conftest.err
26857 } && test -s conftest$ac_exeext &&
26858 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026859 ac_cv_search_opendir=$ac_res
26860else
26861 echo "$as_me: failed program was:" >&5
26862sed 's/^/| /' conftest.$ac_ext >&5
26863
26864
26865fi
26866
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026868 conftest$ac_exeext
26869 if test "${ac_cv_search_opendir+set}" = set; then
26870 break
26871fi
26872done
26873if test "${ac_cv_search_opendir+set}" = set; then
26874 :
26875else
26876 ac_cv_search_opendir=no
26877fi
26878rm conftest.$ac_ext
26879LIBS=$ac_func_search_save_LIBS
26880fi
26881{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26882echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26883ac_res=$ac_cv_search_opendir
26884if test "$ac_res" != no; then
26885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26886
26887fi
26888
26889fi
26890
26891{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26892echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26893if test "${ac_cv_header_mmap_anon+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 ac_ext=c
26897ac_cpp='$CPP $CPPFLAGS'
26898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26900ac_compiler_gnu=$ac_cv_c_compiler_gnu
26901
26902 cat >conftest.$ac_ext <<_ACEOF
26903/* confdefs.h. */
26904_ACEOF
26905cat confdefs.h >>conftest.$ac_ext
26906cat >>conftest.$ac_ext <<_ACEOF
26907/* end confdefs.h. */
26908#include <sys/mman.h>
26909#include <unistd.h>
26910#include <fcntl.h>
26911int
26912main ()
26913{
26914mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26915 ;
26916 return 0;
26917}
26918_ACEOF
26919rm -f conftest.$ac_objext
26920if { (ac_try="$ac_compile"
26921case "(($ac_try" in
26922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26924esac
26925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_compile") 2>conftest.er1
26927 ac_status=$?
26928 grep -v '^ *+' conftest.er1 >conftest.err
26929 rm -f conftest.er1
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026932 (exit $ac_status); } && {
26933 test -z "$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26935 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026936 ac_cv_header_mmap_anon=yes
26937else
26938 echo "$as_me: failed program was:" >&5
26939sed 's/^/| /' conftest.$ac_ext >&5
26940
26941 ac_cv_header_mmap_anon=no
26942fi
26943
26944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26945 ac_ext=c
26946ac_cpp='$CPP $CPPFLAGS'
26947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26949ac_compiler_gnu=$ac_cv_c_compiler_gnu
26950
26951
26952fi
26953{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26954echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26955if test "$ac_cv_header_mmap_anon" = yes; then
26956
26957cat >>confdefs.h <<\_ACEOF
26958#define HAVE_MMAP_ANONYMOUS 1
26959_ACEOF
26960
26961fi
26962
26963{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26964echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26965if test "${ac_cv_header_stat_broken+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26967else
26968 cat >conftest.$ac_ext <<_ACEOF
26969/* confdefs.h. */
26970_ACEOF
26971cat confdefs.h >>conftest.$ac_ext
26972cat >>conftest.$ac_ext <<_ACEOF
26973/* end confdefs.h. */
26974#include <sys/types.h>
26975#include <sys/stat.h>
26976
26977#if defined S_ISBLK && defined S_IFDIR
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026978extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026979#endif
26980
26981#if defined S_ISBLK && defined S_IFCHR
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026982extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026983#endif
26984
26985#if defined S_ISLNK && defined S_IFREG
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026986extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026987#endif
26988
26989#if defined S_ISSOCK && defined S_IFREG
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026990extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026991#endif
26992
26993_ACEOF
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000026994rm -f conftest.$ac_objext
26995if { (ac_try="$ac_compile"
26996case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
26999esac
27000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_compile") 2>conftest.er1
27002 ac_status=$?
27003 grep -v '^ *+' conftest.er1 >conftest.err
27004 rm -f conftest.er1
27005 cat conftest.err >&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); } && {
27008 test -z "$ac_c_werror_flag" ||
27009 test ! -s conftest.err
27010 } && test -s conftest.$ac_objext; then
Tanya Lattner3fa4a442009-01-22 05:17:59 +000027011 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027012else
27013 echo "$as_me: failed program was:" >&5
27014sed 's/^/| /' conftest.$ac_ext >&5
Nick Lewycky5d713ec2009-01-20 00:52:24 +000027015
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027016 ac_cv_header_stat_broken=yes
27017fi
27018
27019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027020fi
27021{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27022echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27023if test $ac_cv_header_stat_broken = yes; then
27024
27025cat >>confdefs.h <<\_ACEOF
27026#define STAT_MACROS_BROKEN 1
27027_ACEOF
27028
27029fi
27030
27031{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27032echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27033if test "${ac_cv_header_stdc+set}" = set; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27035else
27036 cat >conftest.$ac_ext <<_ACEOF
27037/* confdefs.h. */
27038_ACEOF
27039cat confdefs.h >>conftest.$ac_ext
27040cat >>conftest.$ac_ext <<_ACEOF
27041/* end confdefs.h. */
27042#include <stdlib.h>
27043#include <stdarg.h>
27044#include <string.h>
27045#include <float.h>
27046
27047int
27048main ()
27049{
27050
27051 ;
27052 return 0;
27053}
27054_ACEOF
27055rm -f conftest.$ac_objext
27056if { (ac_try="$ac_compile"
27057case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27060esac
27061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_compile") 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027068 (exit $ac_status); } && {
27069 test -z "$ac_c_werror_flag" ||
27070 test ! -s conftest.err
27071 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027072 ac_cv_header_stdc=yes
27073else
27074 echo "$as_me: failed program was:" >&5
27075sed 's/^/| /' conftest.$ac_ext >&5
27076
27077 ac_cv_header_stdc=no
27078fi
27079
27080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081
27082if test $ac_cv_header_stdc = yes; then
27083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27084 cat >conftest.$ac_ext <<_ACEOF
27085/* confdefs.h. */
27086_ACEOF
27087cat confdefs.h >>conftest.$ac_ext
27088cat >>conftest.$ac_ext <<_ACEOF
27089/* end confdefs.h. */
27090#include <string.h>
27091
27092_ACEOF
27093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27094 $EGREP "memchr" >/dev/null 2>&1; then
27095 :
27096else
27097 ac_cv_header_stdc=no
27098fi
27099rm -f conftest*
27100
27101fi
27102
27103if test $ac_cv_header_stdc = yes; then
27104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27105 cat >conftest.$ac_ext <<_ACEOF
27106/* confdefs.h. */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h. */
27111#include <stdlib.h>
27112
27113_ACEOF
27114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27115 $EGREP "free" >/dev/null 2>&1; then
27116 :
27117else
27118 ac_cv_header_stdc=no
27119fi
27120rm -f conftest*
27121
27122fi
27123
27124if test $ac_cv_header_stdc = yes; then
27125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27126 if test "$cross_compiling" = yes; then
27127 :
27128else
27129 cat >conftest.$ac_ext <<_ACEOF
27130/* confdefs.h. */
27131_ACEOF
27132cat confdefs.h >>conftest.$ac_ext
27133cat >>conftest.$ac_ext <<_ACEOF
27134/* end confdefs.h. */
27135#include <ctype.h>
27136#include <stdlib.h>
27137#if ((' ' & 0x0FF) == 0x020)
27138# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27139# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27140#else
27141# define ISLOWER(c) \
27142 (('a' <= (c) && (c) <= 'i') \
27143 || ('j' <= (c) && (c) <= 'r') \
27144 || ('s' <= (c) && (c) <= 'z'))
27145# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27146#endif
27147
27148#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27149int
27150main ()
27151{
27152 int i;
27153 for (i = 0; i < 256; i++)
27154 if (XOR (islower (i), ISLOWER (i))
27155 || toupper (i) != TOUPPER (i))
27156 return 2;
27157 return 0;
27158}
27159_ACEOF
27160rm -f conftest$ac_exeext
27161if { (ac_try="$ac_link"
27162case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165esac
27166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27171 { (case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174esac
27175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_try") 2>&5
27177 ac_status=$?
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 :
27181else
27182 echo "$as_me: program exited with status $ac_status" >&5
27183echo "$as_me: failed program was:" >&5
27184sed 's/^/| /' conftest.$ac_ext >&5
27185
27186( exit $ac_status )
27187ac_cv_header_stdc=no
27188fi
27189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27190fi
27191
27192
27193fi
27194fi
27195{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27196echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27197if test $ac_cv_header_stdc = yes; then
27198
27199cat >>confdefs.h <<\_ACEOF
27200#define STDC_HEADERS 1
27201_ACEOF
27202
27203fi
27204
27205{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27206echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27207if test "${ac_cv_header_sys_wait_h+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210 cat >conftest.$ac_ext <<_ACEOF
27211/* confdefs.h. */
27212_ACEOF
27213cat confdefs.h >>conftest.$ac_ext
27214cat >>conftest.$ac_ext <<_ACEOF
27215/* end confdefs.h. */
27216#include <sys/types.h>
27217#include <sys/wait.h>
27218#ifndef WEXITSTATUS
27219# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27220#endif
27221#ifndef WIFEXITED
27222# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27223#endif
27224
27225int
27226main ()
27227{
27228 int s;
27229 wait (&s);
27230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27231 ;
27232 return 0;
27233}
27234_ACEOF
27235rm -f conftest.$ac_objext
27236if { (ac_try="$ac_compile"
27237case "(($ac_try" in
27238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239 *) ac_try_echo=$ac_try;;
27240esac
27241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242 (eval "$ac_compile") 2>conftest.er1
27243 ac_status=$?
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027248 (exit $ac_status); } && {
27249 test -z "$ac_c_werror_flag" ||
27250 test ! -s conftest.err
27251 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027252 ac_cv_header_sys_wait_h=yes
27253else
27254 echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257 ac_cv_header_sys_wait_h=no
27258fi
27259
27260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261fi
27262{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27263echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27264if test $ac_cv_header_sys_wait_h = yes; then
27265
27266cat >>confdefs.h <<\_ACEOF
27267#define HAVE_SYS_WAIT_H 1
27268_ACEOF
27269
27270fi
27271
27272{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27273echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27274if test "${ac_cv_header_time+set}" = set; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27276else
27277 cat >conftest.$ac_ext <<_ACEOF
27278/* confdefs.h. */
27279_ACEOF
27280cat confdefs.h >>conftest.$ac_ext
27281cat >>conftest.$ac_ext <<_ACEOF
27282/* end confdefs.h. */
27283#include <sys/types.h>
27284#include <sys/time.h>
27285#include <time.h>
27286
27287int
27288main ()
27289{
27290if ((struct tm *) 0)
27291return 0;
27292 ;
27293 return 0;
27294}
27295_ACEOF
27296rm -f conftest.$ac_objext
27297if { (ac_try="$ac_compile"
27298case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27301esac
27302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27303 (eval "$ac_compile") 2>conftest.er1
27304 ac_status=$?
27305 grep -v '^ *+' conftest.er1 >conftest.err
27306 rm -f conftest.er1
27307 cat conftest.err >&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027309 (exit $ac_status); } && {
27310 test -z "$ac_c_werror_flag" ||
27311 test ! -s conftest.err
27312 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027313 ac_cv_header_time=yes
27314else
27315 echo "$as_me: failed program was:" >&5
27316sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 ac_cv_header_time=no
27319fi
27320
27321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322fi
27323{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27324echo "${ECHO_T}$ac_cv_header_time" >&6; }
27325if test $ac_cv_header_time = yes; then
27326
27327cat >>confdefs.h <<\_ACEOF
27328#define TIME_WITH_SYS_TIME 1
27329_ACEOF
27330
27331fi
27332
27333
27334
27335
27336
27337
27338
27339
27340for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27341do
27342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348fi
27349ac_res=`eval echo '${'$as_ac_Header'}'`
27350 { echo "$as_me:$LINENO: result: $ac_res" >&5
27351echo "${ECHO_T}$ac_res" >&6; }
27352else
27353 # Is the header compilable?
27354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27356cat >conftest.$ac_ext <<_ACEOF
27357/* confdefs.h. */
27358_ACEOF
27359cat confdefs.h >>conftest.$ac_ext
27360cat >>conftest.$ac_ext <<_ACEOF
27361/* end confdefs.h. */
27362$ac_includes_default
27363#include <$ac_header>
27364_ACEOF
27365rm -f conftest.$ac_objext
27366if { (ac_try="$ac_compile"
27367case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27370esac
27371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_compile") 2>conftest.er1
27373 ac_status=$?
27374 grep -v '^ *+' conftest.er1 >conftest.err
27375 rm -f conftest.er1
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027378 (exit $ac_status); } && {
27379 test -z "$ac_c_werror_flag" ||
27380 test ! -s conftest.err
27381 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027382 ac_header_compiler=yes
27383else
27384 echo "$as_me: failed program was:" >&5
27385sed 's/^/| /' conftest.$ac_ext >&5
27386
27387 ac_header_compiler=no
27388fi
27389
27390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27392echo "${ECHO_T}$ac_header_compiler" >&6; }
27393
27394# Is the header present?
27395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27397cat >conftest.$ac_ext <<_ACEOF
27398/* confdefs.h. */
27399_ACEOF
27400cat confdefs.h >>conftest.$ac_ext
27401cat >>conftest.$ac_ext <<_ACEOF
27402/* end confdefs.h. */
27403#include <$ac_header>
27404_ACEOF
27405if { (ac_try="$ac_cpp conftest.$ac_ext"
27406case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27409esac
27410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27412 ac_status=$?
27413 grep -v '^ *+' conftest.er1 >conftest.err
27414 rm -f conftest.er1
27415 cat conftest.err >&5
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027417 (exit $ac_status); } >/dev/null && {
27418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27419 test ! -s conftest.err
27420 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027421 ac_header_preproc=yes
27422else
27423 echo "$as_me: failed program was:" >&5
27424sed 's/^/| /' conftest.$ac_ext >&5
27425
27426 ac_header_preproc=no
27427fi
27428
27429rm -f conftest.err conftest.$ac_ext
27430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27431echo "${ECHO_T}$ac_header_preproc" >&6; }
27432
27433# So? What about this header?
27434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27435 yes:no: )
27436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27440 ac_header_preproc=yes
27441 ;;
27442 no:yes:* )
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27455 ( cat <<\_ASBOX
27456## ----------------------------------- ##
27457## Report this to llvmbugs@cs.uiuc.edu ##
27458## ----------------------------------- ##
27459_ASBOX
27460 ) | sed "s/^/$as_me: WARNING: /" >&2
27461 ;;
27462esac
27463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27466 echo $ECHO_N "(cached) $ECHO_C" >&6
27467else
27468 eval "$as_ac_Header=\$ac_header_preproc"
27469fi
27470ac_res=`eval echo '${'$as_ac_Header'}'`
27471 { echo "$as_me:$LINENO: result: $ac_res" >&5
27472echo "${ECHO_T}$ac_res" >&6; }
27473
27474fi
27475if test `eval echo '${'$as_ac_Header'}'` = yes; then
27476 cat >>confdefs.h <<_ACEOF
27477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27478_ACEOF
27479
27480fi
27481
27482done
27483
27484
27485
27486
27487
27488
27489
27490for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27491do
27492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27498fi
27499ac_res=`eval echo '${'$as_ac_Header'}'`
27500 { echo "$as_me:$LINENO: result: $ac_res" >&5
27501echo "${ECHO_T}$ac_res" >&6; }
27502else
27503 # Is the header compilable?
27504{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27506cat >conftest.$ac_ext <<_ACEOF
27507/* confdefs.h. */
27508_ACEOF
27509cat confdefs.h >>conftest.$ac_ext
27510cat >>conftest.$ac_ext <<_ACEOF
27511/* end confdefs.h. */
27512$ac_includes_default
27513#include <$ac_header>
27514_ACEOF
27515rm -f conftest.$ac_objext
27516if { (ac_try="$ac_compile"
27517case "(($ac_try" in
27518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519 *) ac_try_echo=$ac_try;;
27520esac
27521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522 (eval "$ac_compile") 2>conftest.er1
27523 ac_status=$?
27524 grep -v '^ *+' conftest.er1 >conftest.err
27525 rm -f conftest.er1
27526 cat conftest.err >&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027528 (exit $ac_status); } && {
27529 test -z "$ac_c_werror_flag" ||
27530 test ! -s conftest.err
27531 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027532 ac_header_compiler=yes
27533else
27534 echo "$as_me: failed program was:" >&5
27535sed 's/^/| /' conftest.$ac_ext >&5
27536
27537 ac_header_compiler=no
27538fi
27539
27540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542echo "${ECHO_T}$ac_header_compiler" >&6; }
27543
27544# Is the header present?
27545{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27547cat >conftest.$ac_ext <<_ACEOF
27548/* confdefs.h. */
27549_ACEOF
27550cat confdefs.h >>conftest.$ac_ext
27551cat >>conftest.$ac_ext <<_ACEOF
27552/* end confdefs.h. */
27553#include <$ac_header>
27554_ACEOF
27555if { (ac_try="$ac_cpp conftest.$ac_ext"
27556case "(($ac_try" in
27557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558 *) ac_try_echo=$ac_try;;
27559esac
27560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27562 ac_status=$?
27563 grep -v '^ *+' conftest.er1 >conftest.err
27564 rm -f conftest.er1
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027567 (exit $ac_status); } >/dev/null && {
27568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27569 test ! -s conftest.err
27570 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027571 ac_header_preproc=yes
27572else
27573 echo "$as_me: failed program was:" >&5
27574sed 's/^/| /' conftest.$ac_ext >&5
27575
27576 ac_header_preproc=no
27577fi
27578
27579rm -f conftest.err conftest.$ac_ext
27580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27581echo "${ECHO_T}$ac_header_preproc" >&6; }
27582
27583# So? What about this header?
27584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27585 yes:no: )
27586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27590 ac_header_preproc=yes
27591 ;;
27592 no:yes:* )
27593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27605 ( cat <<\_ASBOX
27606## ----------------------------------- ##
27607## Report this to llvmbugs@cs.uiuc.edu ##
27608## ----------------------------------- ##
27609_ASBOX
27610 ) | sed "s/^/$as_me: WARNING: /" >&2
27611 ;;
27612esac
27613{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618 eval "$as_ac_Header=\$ac_header_preproc"
27619fi
27620ac_res=`eval echo '${'$as_ac_Header'}'`
27621 { echo "$as_me:$LINENO: result: $ac_res" >&5
27622echo "${ECHO_T}$ac_res" >&6; }
27623
27624fi
27625if test `eval echo '${'$as_ac_Header'}'` = yes; then
27626 cat >>confdefs.h <<_ACEOF
27627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27628_ACEOF
27629
27630fi
27631
27632done
27633
27634
Reid Spencer096a8142007-08-17 05:45:26 +000027635for ac_header in windows.h
27636do
27637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27642 echo $ECHO_N "(cached) $ECHO_C" >&6
27643fi
27644ac_res=`eval echo '${'$as_ac_Header'}'`
27645 { echo "$as_me:$LINENO: result: $ac_res" >&5
27646echo "${ECHO_T}$ac_res" >&6; }
27647else
27648 # Is the header compilable?
27649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27651cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657$ac_includes_default
27658#include <$ac_header>
27659_ACEOF
27660rm -f conftest.$ac_objext
27661if { (ac_try="$ac_compile"
27662case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27665esac
27666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_compile") 2>conftest.er1
27668 ac_status=$?
27669 grep -v '^ *+' conftest.er1 >conftest.err
27670 rm -f conftest.er1
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027673 (exit $ac_status); } && {
27674 test -z "$ac_c_werror_flag" ||
27675 test ! -s conftest.err
27676 } && test -s conftest.$ac_objext; then
Reid Spencer096a8142007-08-17 05:45:26 +000027677 ac_header_compiler=yes
27678else
27679 echo "$as_me: failed program was:" >&5
27680sed 's/^/| /' conftest.$ac_ext >&5
27681
27682 ac_header_compiler=no
27683fi
27684
27685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27687echo "${ECHO_T}$ac_header_compiler" >&6; }
27688
27689# Is the header present?
27690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27692cat >conftest.$ac_ext <<_ACEOF
27693/* confdefs.h. */
27694_ACEOF
27695cat confdefs.h >>conftest.$ac_ext
27696cat >>conftest.$ac_ext <<_ACEOF
27697/* end confdefs.h. */
27698#include <$ac_header>
27699_ACEOF
27700if { (ac_try="$ac_cpp conftest.$ac_ext"
27701case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704esac
27705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27707 ac_status=$?
27708 grep -v '^ *+' conftest.er1 >conftest.err
27709 rm -f conftest.er1
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027712 (exit $ac_status); } >/dev/null && {
27713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27714 test ! -s conftest.err
27715 }; then
Reid Spencer096a8142007-08-17 05:45:26 +000027716 ac_header_preproc=yes
27717else
27718 echo "$as_me: failed program was:" >&5
27719sed 's/^/| /' conftest.$ac_ext >&5
27720
27721 ac_header_preproc=no
27722fi
27723
27724rm -f conftest.err conftest.$ac_ext
27725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27726echo "${ECHO_T}$ac_header_preproc" >&6; }
27727
27728# So? What about this header?
27729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27730 yes:no: )
27731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27735 ac_header_preproc=yes
27736 ;;
27737 no:yes:* )
27738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27750 ( cat <<\_ASBOX
27751## ----------------------------------- ##
27752## Report this to llvmbugs@cs.uiuc.edu ##
27753## ----------------------------------- ##
27754_ASBOX
27755 ) | sed "s/^/$as_me: WARNING: /" >&2
27756 ;;
27757esac
27758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27761 echo $ECHO_N "(cached) $ECHO_C" >&6
27762else
27763 eval "$as_ac_Header=\$ac_header_preproc"
27764fi
27765ac_res=`eval echo '${'$as_ac_Header'}'`
27766 { echo "$as_me:$LINENO: result: $ac_res" >&5
27767echo "${ECHO_T}$ac_res" >&6; }
27768
27769fi
27770if test `eval echo '${'$as_ac_Header'}'` = yes; then
27771 cat >>confdefs.h <<_ACEOF
27772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27773_ACEOF
27774
27775fi
27776
27777done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027778
27779
27780
27781
Reid Spencer096a8142007-08-17 05:45:26 +000027782
27783for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027784do
27785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27791fi
27792ac_res=`eval echo '${'$as_ac_Header'}'`
27793 { echo "$as_me:$LINENO: result: $ac_res" >&5
27794echo "${ECHO_T}$ac_res" >&6; }
27795else
27796 # Is the header compilable?
27797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27799cat >conftest.$ac_ext <<_ACEOF
27800/* confdefs.h. */
27801_ACEOF
27802cat confdefs.h >>conftest.$ac_ext
27803cat >>conftest.$ac_ext <<_ACEOF
27804/* end confdefs.h. */
27805$ac_includes_default
27806#include <$ac_header>
27807_ACEOF
27808rm -f conftest.$ac_objext
27809if { (ac_try="$ac_compile"
27810case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27813esac
27814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815 (eval "$ac_compile") 2>conftest.er1
27816 ac_status=$?
27817 grep -v '^ *+' conftest.er1 >conftest.err
27818 rm -f conftest.er1
27819 cat conftest.err >&5
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027821 (exit $ac_status); } && {
27822 test -z "$ac_c_werror_flag" ||
27823 test ! -s conftest.err
27824 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027825 ac_header_compiler=yes
27826else
27827 echo "$as_me: failed program was:" >&5
27828sed 's/^/| /' conftest.$ac_ext >&5
27829
27830 ac_header_compiler=no
27831fi
27832
27833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27834{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27835echo "${ECHO_T}$ac_header_compiler" >&6; }
27836
27837# Is the header present?
27838{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27840cat >conftest.$ac_ext <<_ACEOF
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846#include <$ac_header>
27847_ACEOF
27848if { (ac_try="$ac_cpp conftest.$ac_ext"
27849case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27852esac
27853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27855 ac_status=$?
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027860 (exit $ac_status); } >/dev/null && {
27861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27862 test ! -s conftest.err
27863 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027864 ac_header_preproc=yes
27865else
27866 echo "$as_me: failed program was:" >&5
27867sed 's/^/| /' conftest.$ac_ext >&5
27868
27869 ac_header_preproc=no
27870fi
27871
27872rm -f conftest.err conftest.$ac_ext
27873{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27874echo "${ECHO_T}$ac_header_preproc" >&6; }
27875
27876# So? What about this header?
27877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27878 yes:no: )
27879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27883 ac_header_preproc=yes
27884 ;;
27885 no:yes:* )
27886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27898 ( cat <<\_ASBOX
27899## ----------------------------------- ##
27900## Report this to llvmbugs@cs.uiuc.edu ##
27901## ----------------------------------- ##
27902_ASBOX
27903 ) | sed "s/^/$as_me: WARNING: /" >&2
27904 ;;
27905esac
27906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909 echo $ECHO_N "(cached) $ECHO_C" >&6
27910else
27911 eval "$as_ac_Header=\$ac_header_preproc"
27912fi
27913ac_res=`eval echo '${'$as_ac_Header'}'`
27914 { echo "$as_me:$LINENO: result: $ac_res" >&5
27915echo "${ECHO_T}$ac_res" >&6; }
27916
27917fi
27918if test `eval echo '${'$as_ac_Header'}'` = yes; then
27919 cat >>confdefs.h <<_ACEOF
27920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27921_ACEOF
27922
27923fi
27924
27925done
27926
27927
27928
27929
27930for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27931do
27932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938fi
27939ac_res=`eval echo '${'$as_ac_Header'}'`
27940 { echo "$as_me:$LINENO: result: $ac_res" >&5
27941echo "${ECHO_T}$ac_res" >&6; }
27942else
27943 # Is the header compilable?
27944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27946cat >conftest.$ac_ext <<_ACEOF
27947/* confdefs.h. */
27948_ACEOF
27949cat confdefs.h >>conftest.$ac_ext
27950cat >>conftest.$ac_ext <<_ACEOF
27951/* end confdefs.h. */
27952$ac_includes_default
27953#include <$ac_header>
27954_ACEOF
27955rm -f conftest.$ac_objext
27956if { (ac_try="$ac_compile"
27957case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27960esac
27961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_compile") 2>conftest.er1
27963 ac_status=$?
27964 grep -v '^ *+' conftest.er1 >conftest.err
27965 rm -f conftest.er1
27966 cat conftest.err >&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000027968 (exit $ac_status); } && {
27969 test -z "$ac_c_werror_flag" ||
27970 test ! -s conftest.err
27971 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027972 ac_header_compiler=yes
27973else
27974 echo "$as_me: failed program was:" >&5
27975sed 's/^/| /' conftest.$ac_ext >&5
27976
27977 ac_header_compiler=no
27978fi
27979
27980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27982echo "${ECHO_T}$ac_header_compiler" >&6; }
27983
27984# Is the header present?
27985{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27987cat >conftest.$ac_ext <<_ACEOF
27988/* confdefs.h. */
27989_ACEOF
27990cat confdefs.h >>conftest.$ac_ext
27991cat >>conftest.$ac_ext <<_ACEOF
27992/* end confdefs.h. */
27993#include <$ac_header>
27994_ACEOF
27995if { (ac_try="$ac_cpp conftest.$ac_ext"
27996case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999esac
28000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28002 ac_status=$?
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
28005 cat conftest.err >&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028007 (exit $ac_status); } >/dev/null && {
28008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28010 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028011 ac_header_preproc=yes
28012else
28013 echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
28016 ac_header_preproc=no
28017fi
28018
28019rm -f conftest.err conftest.$ac_ext
28020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28021echo "${ECHO_T}$ac_header_preproc" >&6; }
28022
28023# So? What about this header?
28024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28025 yes:no: )
28026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28030 ac_header_preproc=yes
28031 ;;
28032 no:yes:* )
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28045 ( cat <<\_ASBOX
28046## ----------------------------------- ##
28047## Report this to llvmbugs@cs.uiuc.edu ##
28048## ----------------------------------- ##
28049_ASBOX
28050 ) | sed "s/^/$as_me: WARNING: /" >&2
28051 ;;
28052esac
28053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28056 echo $ECHO_N "(cached) $ECHO_C" >&6
28057else
28058 eval "$as_ac_Header=\$ac_header_preproc"
28059fi
28060ac_res=`eval echo '${'$as_ac_Header'}'`
28061 { echo "$as_me:$LINENO: result: $ac_res" >&5
28062echo "${ECHO_T}$ac_res" >&6; }
28063
28064fi
28065if test `eval echo '${'$as_ac_Header'}'` = yes; then
28066 cat >>confdefs.h <<_ACEOF
28067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28068_ACEOF
28069
28070fi
28071
28072done
28073
28074if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000028075
28076for ac_header in pthread.h
28077do
28078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028083 echo $ECHO_N "(cached) $ECHO_C" >&6
28084fi
Reid Spencer096a8142007-08-17 05:45:26 +000028085ac_res=`eval echo '${'$as_ac_Header'}'`
28086 { echo "$as_me:$LINENO: result: $ac_res" >&5
28087echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028088else
28089 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000028090{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028092cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h. */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h. */
28098$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000028099#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028100_ACEOF
28101rm -f conftest.$ac_objext
28102if { (ac_try="$ac_compile"
28103case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28106esac
28107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_compile") 2>conftest.er1
28109 ac_status=$?
28110 grep -v '^ *+' conftest.er1 >conftest.err
28111 rm -f conftest.er1
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028114 (exit $ac_status); } && {
28115 test -z "$ac_c_werror_flag" ||
28116 test ! -s conftest.err
28117 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028118 ac_header_compiler=yes
28119else
28120 echo "$as_me: failed program was:" >&5
28121sed 's/^/| /' conftest.$ac_ext >&5
28122
28123 ac_header_compiler=no
28124fi
28125
28126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28128echo "${ECHO_T}$ac_header_compiler" >&6; }
28129
28130# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000028131{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028133cat >conftest.$ac_ext <<_ACEOF
28134/* confdefs.h. */
28135_ACEOF
28136cat confdefs.h >>conftest.$ac_ext
28137cat >>conftest.$ac_ext <<_ACEOF
28138/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000028139#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028140_ACEOF
28141if { (ac_try="$ac_cpp conftest.$ac_ext"
28142case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28145esac
28146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28148 ac_status=$?
28149 grep -v '^ *+' conftest.er1 >conftest.err
28150 rm -f conftest.er1
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028153 (exit $ac_status); } >/dev/null && {
28154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28155 test ! -s conftest.err
28156 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028157 ac_header_preproc=yes
28158else
28159 echo "$as_me: failed program was:" >&5
28160sed 's/^/| /' conftest.$ac_ext >&5
28161
28162 ac_header_preproc=no
28163fi
28164
28165rm -f conftest.err conftest.$ac_ext
28166{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28167echo "${ECHO_T}$ac_header_preproc" >&6; }
28168
28169# So? What about this header?
28170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28171 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000028172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028176 ac_header_preproc=yes
28177 ;;
28178 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000028179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028191 ( cat <<\_ASBOX
28192## ----------------------------------- ##
28193## Report this to llvmbugs@cs.uiuc.edu ##
28194## ----------------------------------- ##
28195_ASBOX
28196 ) | sed "s/^/$as_me: WARNING: /" >&2
28197 ;;
28198esac
Reid Spencer096a8142007-08-17 05:45:26 +000028199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028202 echo $ECHO_N "(cached) $ECHO_C" >&6
28203else
Reid Spencer096a8142007-08-17 05:45:26 +000028204 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028205fi
Reid Spencer096a8142007-08-17 05:45:26 +000028206ac_res=`eval echo '${'$as_ac_Header'}'`
28207 { echo "$as_me:$LINENO: result: $ac_res" >&5
28208echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028209
28210fi
Reid Spencer096a8142007-08-17 05:45:26 +000028211if test `eval echo '${'$as_ac_Header'}'` = yes; then
28212 cat >>confdefs.h <<_ACEOF
28213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28214_ACEOF
28215 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028216
28217else
28218 HAVE_PTHREAD=0
28219
28220fi
28221
Reid Spencer096a8142007-08-17 05:45:26 +000028222done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028223
28224else
28225 HAVE_PTHREAD=0
28226
28227fi
28228
Nick Lewycky0235b622009-02-04 06:27:44 +000028229
28230
28231for ac_header in ffi.h ffi/ffi.h
28232do
28233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239fi
28240ac_res=`eval echo '${'$as_ac_Header'}'`
28241 { echo "$as_me:$LINENO: result: $ac_res" >&5
28242echo "${ECHO_T}$ac_res" >&6; }
28243else
28244 # Is the header compilable?
28245{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28247cat >conftest.$ac_ext <<_ACEOF
28248/* confdefs.h. */
28249_ACEOF
28250cat confdefs.h >>conftest.$ac_ext
28251cat >>conftest.$ac_ext <<_ACEOF
28252/* end confdefs.h. */
28253$ac_includes_default
28254#include <$ac_header>
28255_ACEOF
28256rm -f conftest.$ac_objext
28257if { (ac_try="$ac_compile"
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_compile") 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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028269 (exit $ac_status); } && {
28270 test -z "$ac_c_werror_flag" ||
28271 test ! -s conftest.err
28272 } && test -s conftest.$ac_objext; then
Nick Lewycky0235b622009-02-04 06:27:44 +000028273 ac_header_compiler=yes
28274else
28275 echo "$as_me: failed program was:" >&5
28276sed 's/^/| /' conftest.$ac_ext >&5
28277
28278 ac_header_compiler=no
28279fi
28280
28281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28283echo "${ECHO_T}$ac_header_compiler" >&6; }
28284
28285# Is the header present?
28286{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28288cat >conftest.$ac_ext <<_ACEOF
28289/* confdefs.h. */
28290_ACEOF
28291cat confdefs.h >>conftest.$ac_ext
28292cat >>conftest.$ac_ext <<_ACEOF
28293/* end confdefs.h. */
28294#include <$ac_header>
28295_ACEOF
28296if { (ac_try="$ac_cpp conftest.$ac_ext"
28297case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28300esac
28301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28303 ac_status=$?
28304 grep -v '^ *+' conftest.er1 >conftest.err
28305 rm -f conftest.er1
28306 cat conftest.err >&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028308 (exit $ac_status); } >/dev/null && {
28309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28310 test ! -s conftest.err
28311 }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000028312 ac_header_preproc=yes
28313else
28314 echo "$as_me: failed program was:" >&5
28315sed 's/^/| /' conftest.$ac_ext >&5
28316
28317 ac_header_preproc=no
28318fi
28319
28320rm -f conftest.err conftest.$ac_ext
28321{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28322echo "${ECHO_T}$ac_header_preproc" >&6; }
28323
28324# So? What about this header?
28325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28326 yes:no: )
28327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28331 ac_header_preproc=yes
28332 ;;
28333 no:yes:* )
28334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28346 ( cat <<\_ASBOX
28347## ----------------------------------- ##
28348## Report this to llvmbugs@cs.uiuc.edu ##
28349## ----------------------------------- ##
28350_ASBOX
28351 ) | sed "s/^/$as_me: WARNING: /" >&2
28352 ;;
28353esac
28354{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28358else
28359 eval "$as_ac_Header=\$ac_header_preproc"
28360fi
28361ac_res=`eval echo '${'$as_ac_Header'}'`
28362 { echo "$as_me:$LINENO: result: $ac_res" >&5
28363echo "${ECHO_T}$ac_res" >&6; }
28364
28365fi
28366if test `eval echo '${'$as_ac_Header'}'` = yes; then
28367 cat >>confdefs.h <<_ACEOF
28368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28369_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000028370
28371fi
28372
28373done
28374
Nick Lewycky0235b622009-02-04 06:27:44 +000028375
Nick Lewycky5d713ec2009-01-20 00:52:24 +000028376
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028377
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028378 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28379echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28380if test "${ac_cv_huge_val_sanity+set}" = set; then
28381 echo $ECHO_N "(cached) $ECHO_C" >&6
28382else
28383
28384 ac_ext=cpp
28385ac_cpp='$CXXCPP $CPPFLAGS'
28386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28389
28390 CXXFLAGS=-pedantic
28391 if test "$cross_compiling" = yes; then
28392 ac_cv_huge_val_sanity=yes
28393else
28394 cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <math.h>
28401int
28402main ()
28403{
28404double x = HUGE_VAL; return x != x;
28405 ;
28406 return 0;
28407}
28408_ACEOF
28409rm -f conftest$ac_exeext
28410if { (ac_try="$ac_link"
28411case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414esac
28415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_link") 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28423esac
28424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_huge_val_sanity=yes
28430else
28431 echo "$as_me: program exited with status $ac_status" >&5
28432echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
28435( exit $ac_status )
28436ac_cv_huge_val_sanity=no
28437fi
28438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28439fi
28440
28441
28442 ac_ext=c
28443ac_cpp='$CPP $CPPFLAGS'
28444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28446ac_compiler_gnu=$ac_cv_c_compiler_gnu
28447
28448
28449fi
28450{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28451echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28452 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28453
28454
28455{ echo "$as_me:$LINENO: checking for pid_t" >&5
28456echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28457if test "${ac_cv_type_pid_t+set}" = set; then
28458 echo $ECHO_N "(cached) $ECHO_C" >&6
28459else
28460 cat >conftest.$ac_ext <<_ACEOF
28461/* confdefs.h. */
28462_ACEOF
28463cat confdefs.h >>conftest.$ac_ext
28464cat >>conftest.$ac_ext <<_ACEOF
28465/* end confdefs.h. */
28466$ac_includes_default
28467typedef pid_t ac__type_new_;
28468int
28469main ()
28470{
28471if ((ac__type_new_ *) 0)
28472 return 0;
28473if (sizeof (ac__type_new_))
28474 return 0;
28475 ;
28476 return 0;
28477}
28478_ACEOF
28479rm -f conftest.$ac_objext
28480if { (ac_try="$ac_compile"
28481case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28484esac
28485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_compile") 2>conftest.er1
28487 ac_status=$?
28488 grep -v '^ *+' conftest.er1 >conftest.err
28489 rm -f conftest.er1
28490 cat conftest.err >&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028492 (exit $ac_status); } && {
28493 test -z "$ac_c_werror_flag" ||
28494 test ! -s conftest.err
28495 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028496 ac_cv_type_pid_t=yes
28497else
28498 echo "$as_me: failed program was:" >&5
28499sed 's/^/| /' conftest.$ac_ext >&5
28500
28501 ac_cv_type_pid_t=no
28502fi
28503
28504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505fi
28506{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28507echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28508if test $ac_cv_type_pid_t = yes; then
28509 :
28510else
28511
28512cat >>confdefs.h <<_ACEOF
28513#define pid_t int
28514_ACEOF
28515
28516fi
28517
28518{ echo "$as_me:$LINENO: checking for size_t" >&5
28519echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28520if test "${ac_cv_type_size_t+set}" = set; then
28521 echo $ECHO_N "(cached) $ECHO_C" >&6
28522else
28523 cat >conftest.$ac_ext <<_ACEOF
28524/* confdefs.h. */
28525_ACEOF
28526cat confdefs.h >>conftest.$ac_ext
28527cat >>conftest.$ac_ext <<_ACEOF
28528/* end confdefs.h. */
28529$ac_includes_default
28530typedef size_t ac__type_new_;
28531int
28532main ()
28533{
28534if ((ac__type_new_ *) 0)
28535 return 0;
28536if (sizeof (ac__type_new_))
28537 return 0;
28538 ;
28539 return 0;
28540}
28541_ACEOF
28542rm -f conftest.$ac_objext
28543if { (ac_try="$ac_compile"
28544case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28547esac
28548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_compile") 2>conftest.er1
28550 ac_status=$?
28551 grep -v '^ *+' conftest.er1 >conftest.err
28552 rm -f conftest.er1
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028555 (exit $ac_status); } && {
28556 test -z "$ac_c_werror_flag" ||
28557 test ! -s conftest.err
28558 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028559 ac_cv_type_size_t=yes
28560else
28561 echo "$as_me: failed program was:" >&5
28562sed 's/^/| /' conftest.$ac_ext >&5
28563
28564 ac_cv_type_size_t=no
28565fi
28566
28567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568fi
28569{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28570echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28571if test $ac_cv_type_size_t = yes; then
28572 :
28573else
28574
28575cat >>confdefs.h <<_ACEOF
28576#define size_t unsigned int
28577_ACEOF
28578
28579fi
28580
28581{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28582echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28583if test "${ac_cv_type_signal+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28585else
28586 cat >conftest.$ac_ext <<_ACEOF
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592#include <sys/types.h>
28593#include <signal.h>
28594
28595int
28596main ()
28597{
28598return *(signal (0, 0)) (0) == 1;
28599 ;
28600 return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext
28604if { (ac_try="$ac_compile"
28605case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
28611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028616 (exit $ac_status); } && {
28617 test -z "$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28619 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028620 ac_cv_type_signal=int
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_cv_type_signal=void
28626fi
28627
28628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629fi
28630{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28631echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28632
28633cat >>confdefs.h <<_ACEOF
28634#define RETSIGTYPE $ac_cv_type_signal
28635_ACEOF
28636
28637
28638{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28639echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28640if test "${ac_cv_struct_tm+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28642else
28643 cat >conftest.$ac_ext <<_ACEOF
28644/* confdefs.h. */
28645_ACEOF
28646cat confdefs.h >>conftest.$ac_ext
28647cat >>conftest.$ac_ext <<_ACEOF
28648/* end confdefs.h. */
28649#include <sys/types.h>
28650#include <time.h>
28651
28652int
28653main ()
28654{
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028655struct tm tm;
28656 int *p = &tm.tm_sec;
28657 return !p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028658 ;
28659 return 0;
28660}
28661_ACEOF
28662rm -f conftest.$ac_objext
28663if { (ac_try="$ac_compile"
28664case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_compile") 2>conftest.er1
28670 ac_status=$?
28671 grep -v '^ *+' conftest.er1 >conftest.err
28672 rm -f conftest.er1
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028675 (exit $ac_status); } && {
28676 test -z "$ac_c_werror_flag" ||
28677 test ! -s conftest.err
28678 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028679 ac_cv_struct_tm=time.h
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ac_cv_struct_tm=sys/time.h
28685fi
28686
28687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28688fi
28689{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28690echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28691if test $ac_cv_struct_tm = sys/time.h; then
28692
28693cat >>confdefs.h <<\_ACEOF
28694#define TM_IN_SYS_TIME 1
28695_ACEOF
28696
28697fi
28698
28699{ echo "$as_me:$LINENO: checking for int64_t" >&5
28700echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28701if test "${ac_cv_type_int64_t+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28703else
28704 cat >conftest.$ac_ext <<_ACEOF
28705/* confdefs.h. */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h. */
28710$ac_includes_default
28711typedef int64_t ac__type_new_;
28712int
28713main ()
28714{
28715if ((ac__type_new_ *) 0)
28716 return 0;
28717if (sizeof (ac__type_new_))
28718 return 0;
28719 ;
28720 return 0;
28721}
28722_ACEOF
28723rm -f conftest.$ac_objext
28724if { (ac_try="$ac_compile"
28725case "(($ac_try" in
28726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727 *) ac_try_echo=$ac_try;;
28728esac
28729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28730 (eval "$ac_compile") 2>conftest.er1
28731 ac_status=$?
28732 grep -v '^ *+' conftest.er1 >conftest.err
28733 rm -f conftest.er1
28734 cat conftest.err >&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028736 (exit $ac_status); } && {
28737 test -z "$ac_c_werror_flag" ||
28738 test ! -s conftest.err
28739 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028740 ac_cv_type_int64_t=yes
28741else
28742 echo "$as_me: failed program was:" >&5
28743sed 's/^/| /' conftest.$ac_ext >&5
28744
28745 ac_cv_type_int64_t=no
28746fi
28747
28748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749fi
28750{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28751echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28752if test $ac_cv_type_int64_t = yes; then
28753
28754cat >>confdefs.h <<_ACEOF
28755#define HAVE_INT64_T 1
28756_ACEOF
28757
28758
28759else
28760 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28761echo "$as_me: error: Type int64_t required but not found" >&2;}
28762 { (exit 1); exit 1; }; }
28763fi
28764
28765{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28766echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28767if test "${ac_cv_type_uint64_t+set}" = set; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28769else
28770 cat >conftest.$ac_ext <<_ACEOF
28771/* confdefs.h. */
28772_ACEOF
28773cat confdefs.h >>conftest.$ac_ext
28774cat >>conftest.$ac_ext <<_ACEOF
28775/* end confdefs.h. */
28776$ac_includes_default
28777typedef uint64_t ac__type_new_;
28778int
28779main ()
28780{
28781if ((ac__type_new_ *) 0)
28782 return 0;
28783if (sizeof (ac__type_new_))
28784 return 0;
28785 ;
28786 return 0;
28787}
28788_ACEOF
28789rm -f conftest.$ac_objext
28790if { (ac_try="$ac_compile"
28791case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28794esac
28795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28796 (eval "$ac_compile") 2>conftest.er1
28797 ac_status=$?
28798 grep -v '^ *+' conftest.er1 >conftest.err
28799 rm -f conftest.er1
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028802 (exit $ac_status); } && {
28803 test -z "$ac_c_werror_flag" ||
28804 test ! -s conftest.err
28805 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028806 ac_cv_type_uint64_t=yes
28807else
28808 echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 ac_cv_type_uint64_t=no
28812fi
28813
28814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28815fi
28816{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28817echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28818if test $ac_cv_type_uint64_t = yes; then
28819
28820cat >>confdefs.h <<_ACEOF
28821#define HAVE_UINT64_T 1
28822_ACEOF
28823
28824
28825else
28826 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28827echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28828if test "${ac_cv_type_u_int64_t+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831 cat >conftest.$ac_ext <<_ACEOF
28832/* confdefs.h. */
28833_ACEOF
28834cat confdefs.h >>conftest.$ac_ext
28835cat >>conftest.$ac_ext <<_ACEOF
28836/* end confdefs.h. */
28837$ac_includes_default
28838typedef u_int64_t ac__type_new_;
28839int
28840main ()
28841{
28842if ((ac__type_new_ *) 0)
28843 return 0;
28844if (sizeof (ac__type_new_))
28845 return 0;
28846 ;
28847 return 0;
28848}
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
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028863 (exit $ac_status); } && {
28864 test -z "$ac_c_werror_flag" ||
28865 test ! -s conftest.err
28866 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028867 ac_cv_type_u_int64_t=yes
28868else
28869 echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872 ac_cv_type_u_int64_t=no
28873fi
28874
28875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28876fi
28877{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28878echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28879if test $ac_cv_type_u_int64_t = yes; then
28880
28881cat >>confdefs.h <<_ACEOF
28882#define HAVE_U_INT64_T 1
28883_ACEOF
28884
28885
28886else
28887 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28888echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28889 { (exit 1); exit 1; }; }
28890fi
28891
28892fi
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28904do
28905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
28911 cat >conftest.$ac_ext <<_ACEOF
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
28917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28919#define $ac_func innocuous_$ac_func
28920
28921/* System header to define __stub macros and hopefully few prototypes,
28922 which can conflict with char $ac_func (); below.
28923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28924 <limits.h> exists even on freestanding compilers. */
28925
28926#ifdef __STDC__
28927# include <limits.h>
28928#else
28929# include <assert.h>
28930#endif
28931
28932#undef $ac_func
28933
28934/* Override any GCC internal prototype to avoid an error.
28935 Use char because int might match the return type of a GCC
28936 builtin and then its argument prototype would still apply. */
28937#ifdef __cplusplus
28938extern "C"
28939#endif
28940char $ac_func ();
28941/* The GNU C library defines this for functions which it implements
28942 to always fail with ENOSYS. Some functions are actually named
28943 something starting with __ and the normal name is an alias. */
28944#if defined __stub_$ac_func || defined __stub___$ac_func
28945choke me
28946#endif
28947
28948int
28949main ()
28950{
28951return $ac_func ();
28952 ;
28953 return 0;
28954}
28955_ACEOF
28956rm -f conftest.$ac_objext conftest$ac_exeext
28957if { (ac_try="$ac_link"
28958case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_link") 2>conftest.er1
28964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028969 (exit $ac_status); } && {
28970 test -z "$ac_c_werror_flag" ||
28971 test ! -s conftest.err
28972 } && test -s conftest$ac_exeext &&
28973 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028974 eval "$as_ac_var=yes"
28975else
28976 echo "$as_me: failed program was:" >&5
28977sed 's/^/| /' conftest.$ac_ext >&5
28978
28979 eval "$as_ac_var=no"
28980fi
28981
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028983 conftest$ac_exeext conftest.$ac_ext
28984fi
28985ac_res=`eval echo '${'$as_ac_var'}'`
28986 { echo "$as_me:$LINENO: result: $ac_res" >&5
28987echo "${ECHO_T}$ac_res" >&6; }
28988if test `eval echo '${'$as_ac_var'}'` = yes; then
28989 cat >>confdefs.h <<_ACEOF
28990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28991_ACEOF
28992
28993fi
28994done
28995
28996
28997
28998
28999
29000for ac_func in powf fmodf strtof round
29001do
29002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007else
29008 cat >conftest.$ac_ext <<_ACEOF
29009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
29014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29016#define $ac_func innocuous_$ac_func
29017
29018/* System header to define __stub macros and hopefully few prototypes,
29019 which can conflict with char $ac_func (); below.
29020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29021 <limits.h> exists even on freestanding compilers. */
29022
29023#ifdef __STDC__
29024# include <limits.h>
29025#else
29026# include <assert.h>
29027#endif
29028
29029#undef $ac_func
29030
29031/* Override any GCC internal prototype to avoid an error.
29032 Use char because int might match the return type of a GCC
29033 builtin and then its argument prototype would still apply. */
29034#ifdef __cplusplus
29035extern "C"
29036#endif
29037char $ac_func ();
29038/* The GNU C library defines this for functions which it implements
29039 to always fail with ENOSYS. Some functions are actually named
29040 something starting with __ and the normal name is an alias. */
29041#if defined __stub_$ac_func || defined __stub___$ac_func
29042choke me
29043#endif
29044
29045int
29046main ()
29047{
29048return $ac_func ();
29049 ;
29050 return 0;
29051}
29052_ACEOF
29053rm -f conftest.$ac_objext conftest$ac_exeext
29054if { (ac_try="$ac_link"
29055case "(($ac_try" in
29056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057 *) ac_try_echo=$ac_try;;
29058esac
29059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_link") 2>conftest.er1
29061 ac_status=$?
29062 grep -v '^ *+' conftest.er1 >conftest.err
29063 rm -f conftest.er1
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029066 (exit $ac_status); } && {
29067 test -z "$ac_c_werror_flag" ||
29068 test ! -s conftest.err
29069 } && test -s conftest$ac_exeext &&
29070 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029071 eval "$as_ac_var=yes"
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076 eval "$as_ac_var=no"
29077fi
29078
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029080 conftest$ac_exeext conftest.$ac_ext
29081fi
29082ac_res=`eval echo '${'$as_ac_var'}'`
29083 { echo "$as_me:$LINENO: result: $ac_res" >&5
29084echo "${ECHO_T}$ac_res" >&6; }
29085if test `eval echo '${'$as_ac_var'}'` = yes; then
29086 cat >>confdefs.h <<_ACEOF
29087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29088_ACEOF
29089
29090fi
29091done
29092
29093
29094
29095
29096
29097
29098for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29099do
29100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29105else
29106 cat >conftest.$ac_ext <<_ACEOF
29107/* confdefs.h. */
29108_ACEOF
29109cat confdefs.h >>conftest.$ac_ext
29110cat >>conftest.$ac_ext <<_ACEOF
29111/* end confdefs.h. */
29112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29114#define $ac_func innocuous_$ac_func
29115
29116/* System header to define __stub macros and hopefully few prototypes,
29117 which can conflict with char $ac_func (); below.
29118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29119 <limits.h> exists even on freestanding compilers. */
29120
29121#ifdef __STDC__
29122# include <limits.h>
29123#else
29124# include <assert.h>
29125#endif
29126
29127#undef $ac_func
29128
29129/* Override any GCC internal prototype to avoid an error.
29130 Use char because int might match the return type of a GCC
29131 builtin and then its argument prototype would still apply. */
29132#ifdef __cplusplus
29133extern "C"
29134#endif
29135char $ac_func ();
29136/* The GNU C library defines this for functions which it implements
29137 to always fail with ENOSYS. Some functions are actually named
29138 something starting with __ and the normal name is an alias. */
29139#if defined __stub_$ac_func || defined __stub___$ac_func
29140choke me
29141#endif
29142
29143int
29144main ()
29145{
29146return $ac_func ();
29147 ;
29148 return 0;
29149}
29150_ACEOF
29151rm -f conftest.$ac_objext conftest$ac_exeext
29152if { (ac_try="$ac_link"
29153case "(($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_link") 2>conftest.er1
29159 ac_status=$?
29160 grep -v '^ *+' conftest.er1 >conftest.err
29161 rm -f conftest.er1
29162 cat conftest.err >&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029164 (exit $ac_status); } && {
29165 test -z "$ac_c_werror_flag" ||
29166 test ! -s conftest.err
29167 } && test -s conftest$ac_exeext &&
29168 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029169 eval "$as_ac_var=yes"
29170else
29171 echo "$as_me: failed program was:" >&5
29172sed 's/^/| /' conftest.$ac_ext >&5
29173
29174 eval "$as_ac_var=no"
29175fi
29176
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029178 conftest$ac_exeext conftest.$ac_ext
29179fi
29180ac_res=`eval echo '${'$as_ac_var'}'`
29181 { echo "$as_me:$LINENO: result: $ac_res" >&5
29182echo "${ECHO_T}$ac_res" >&6; }
29183if test `eval echo '${'$as_ac_var'}'` = yes; then
29184 cat >>confdefs.h <<_ACEOF
29185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29186_ACEOF
29187
29188fi
29189done
29190
29191
29192
29193
29194for ac_func in isatty mkdtemp mkstemp
29195do
29196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29197{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29200 echo $ECHO_N "(cached) $ECHO_C" >&6
29201else
29202 cat >conftest.$ac_ext <<_ACEOF
29203/* confdefs.h. */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h. */
29208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29210#define $ac_func innocuous_$ac_func
29211
29212/* System header to define __stub macros and hopefully few prototypes,
29213 which can conflict with char $ac_func (); below.
29214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29215 <limits.h> exists even on freestanding compilers. */
29216
29217#ifdef __STDC__
29218# include <limits.h>
29219#else
29220# include <assert.h>
29221#endif
29222
29223#undef $ac_func
29224
29225/* Override any GCC internal prototype to avoid an error.
29226 Use char because int might match the return type of a GCC
29227 builtin and then its argument prototype would still apply. */
29228#ifdef __cplusplus
29229extern "C"
29230#endif
29231char $ac_func ();
29232/* The GNU C library defines this for functions which it implements
29233 to always fail with ENOSYS. Some functions are actually named
29234 something starting with __ and the normal name is an alias. */
29235#if defined __stub_$ac_func || defined __stub___$ac_func
29236choke me
29237#endif
29238
29239int
29240main ()
29241{
29242return $ac_func ();
29243 ;
29244 return 0;
29245}
29246_ACEOF
29247rm -f conftest.$ac_objext conftest$ac_exeext
29248if { (ac_try="$ac_link"
29249case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29252esac
29253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_link") 2>conftest.er1
29255 ac_status=$?
29256 grep -v '^ *+' conftest.er1 >conftest.err
29257 rm -f conftest.er1
29258 cat conftest.err >&5
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029260 (exit $ac_status); } && {
29261 test -z "$ac_c_werror_flag" ||
29262 test ! -s conftest.err
29263 } && test -s conftest$ac_exeext &&
29264 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029265 eval "$as_ac_var=yes"
29266else
29267 echo "$as_me: failed program was:" >&5
29268sed 's/^/| /' conftest.$ac_ext >&5
29269
29270 eval "$as_ac_var=no"
29271fi
29272
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029274 conftest$ac_exeext conftest.$ac_ext
29275fi
29276ac_res=`eval echo '${'$as_ac_var'}'`
29277 { echo "$as_me:$LINENO: result: $ac_res" >&5
29278echo "${ECHO_T}$ac_res" >&6; }
29279if test `eval echo '${'$as_ac_var'}'` = yes; then
29280 cat >>confdefs.h <<_ACEOF
29281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29282_ACEOF
29283
29284fi
29285done
29286
29287
29288
29289
29290
29291
29292
29293
29294for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29295do
29296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29300 echo $ECHO_N "(cached) $ECHO_C" >&6
29301else
29302 cat >conftest.$ac_ext <<_ACEOF
29303/* confdefs.h. */
29304_ACEOF
29305cat confdefs.h >>conftest.$ac_ext
29306cat >>conftest.$ac_ext <<_ACEOF
29307/* end confdefs.h. */
29308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29310#define $ac_func innocuous_$ac_func
29311
29312/* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char $ac_func (); below.
29314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315 <limits.h> exists even on freestanding compilers. */
29316
29317#ifdef __STDC__
29318# include <limits.h>
29319#else
29320# include <assert.h>
29321#endif
29322
29323#undef $ac_func
29324
29325/* Override any GCC internal prototype to avoid an error.
29326 Use char because int might match the return type of a GCC
29327 builtin and then its argument prototype would still apply. */
29328#ifdef __cplusplus
29329extern "C"
29330#endif
29331char $ac_func ();
29332/* The GNU C library defines this for functions which it implements
29333 to always fail with ENOSYS. Some functions are actually named
29334 something starting with __ and the normal name is an alias. */
29335#if defined __stub_$ac_func || defined __stub___$ac_func
29336choke me
29337#endif
29338
29339int
29340main ()
29341{
29342return $ac_func ();
29343 ;
29344 return 0;
29345}
29346_ACEOF
29347rm -f conftest.$ac_objext conftest$ac_exeext
29348if { (ac_try="$ac_link"
29349case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29352esac
29353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_link") 2>conftest.er1
29355 ac_status=$?
29356 grep -v '^ *+' conftest.er1 >conftest.err
29357 rm -f conftest.er1
29358 cat conftest.err >&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029360 (exit $ac_status); } && {
29361 test -z "$ac_c_werror_flag" ||
29362 test ! -s conftest.err
29363 } && test -s conftest$ac_exeext &&
29364 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029365 eval "$as_ac_var=yes"
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370 eval "$as_ac_var=no"
29371fi
29372
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029374 conftest$ac_exeext conftest.$ac_ext
29375fi
29376ac_res=`eval echo '${'$as_ac_var'}'`
29377 { echo "$as_me:$LINENO: result: $ac_res" >&5
29378echo "${ECHO_T}$ac_res" >&6; }
29379if test `eval echo '${'$as_ac_var'}'` = yes; then
29380 cat >>confdefs.h <<_ACEOF
29381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29382_ACEOF
29383
29384fi
29385done
29386
29387
29388
29389
29390
29391for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29392do
29393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29394{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29396if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399 cat >conftest.$ac_ext <<_ACEOF
29400/* confdefs.h. */
29401_ACEOF
29402cat confdefs.h >>conftest.$ac_ext
29403cat >>conftest.$ac_ext <<_ACEOF
29404/* end confdefs.h. */
29405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29407#define $ac_func innocuous_$ac_func
29408
29409/* System header to define __stub macros and hopefully few prototypes,
29410 which can conflict with char $ac_func (); below.
29411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29412 <limits.h> exists even on freestanding compilers. */
29413
29414#ifdef __STDC__
29415# include <limits.h>
29416#else
29417# include <assert.h>
29418#endif
29419
29420#undef $ac_func
29421
29422/* Override any GCC internal prototype to avoid an error.
29423 Use char because int might match the return type of a GCC
29424 builtin and then its argument prototype would still apply. */
29425#ifdef __cplusplus
29426extern "C"
29427#endif
29428char $ac_func ();
29429/* The GNU C library defines this for functions which it implements
29430 to always fail with ENOSYS. Some functions are actually named
29431 something starting with __ and the normal name is an alias. */
29432#if defined __stub_$ac_func || defined __stub___$ac_func
29433choke me
29434#endif
29435
29436int
29437main ()
29438{
29439return $ac_func ();
29440 ;
29441 return 0;
29442}
29443_ACEOF
29444rm -f conftest.$ac_objext conftest$ac_exeext
29445if { (ac_try="$ac_link"
29446case "(($ac_try" in
29447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448 *) ac_try_echo=$ac_try;;
29449esac
29450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451 (eval "$ac_link") 2>conftest.er1
29452 ac_status=$?
29453 grep -v '^ *+' conftest.er1 >conftest.err
29454 rm -f conftest.er1
29455 cat conftest.err >&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029457 (exit $ac_status); } && {
29458 test -z "$ac_c_werror_flag" ||
29459 test ! -s conftest.err
29460 } && test -s conftest$ac_exeext &&
29461 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029462 eval "$as_ac_var=yes"
29463else
29464 echo "$as_me: failed program was:" >&5
29465sed 's/^/| /' conftest.$ac_ext >&5
29466
29467 eval "$as_ac_var=no"
29468fi
29469
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029471 conftest$ac_exeext conftest.$ac_ext
29472fi
29473ac_res=`eval echo '${'$as_ac_var'}'`
29474 { echo "$as_me:$LINENO: result: $ac_res" >&5
29475echo "${ECHO_T}$ac_res" >&6; }
29476if test `eval echo '${'$as_ac_var'}'` = yes; then
29477 cat >>confdefs.h <<_ACEOF
29478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29479_ACEOF
29480
29481fi
29482done
29483
29484
29485
29486
29487
29488for ac_func in setjmp longjmp sigsetjmp siglongjmp
29489do
29490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29491{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29493if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29495else
29496 cat >conftest.$ac_ext <<_ACEOF
29497/* confdefs.h. */
29498_ACEOF
29499cat confdefs.h >>conftest.$ac_ext
29500cat >>conftest.$ac_ext <<_ACEOF
29501/* end confdefs.h. */
29502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29504#define $ac_func innocuous_$ac_func
29505
29506/* System header to define __stub macros and hopefully few prototypes,
29507 which can conflict with char $ac_func (); below.
29508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29509 <limits.h> exists even on freestanding compilers. */
29510
29511#ifdef __STDC__
29512# include <limits.h>
29513#else
29514# include <assert.h>
29515#endif
29516
29517#undef $ac_func
29518
29519/* Override any GCC internal prototype to avoid an error.
29520 Use char because int might match the return type of a GCC
29521 builtin and then its argument prototype would still apply. */
29522#ifdef __cplusplus
29523extern "C"
29524#endif
29525char $ac_func ();
29526/* The GNU C library defines this for functions which it implements
29527 to always fail with ENOSYS. Some functions are actually named
29528 something starting with __ and the normal name is an alias. */
29529#if defined __stub_$ac_func || defined __stub___$ac_func
29530choke me
29531#endif
29532
29533int
29534main ()
29535{
29536return $ac_func ();
29537 ;
29538 return 0;
29539}
29540_ACEOF
29541rm -f conftest.$ac_objext conftest$ac_exeext
29542if { (ac_try="$ac_link"
29543case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29546esac
29547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_link") 2>conftest.er1
29549 ac_status=$?
29550 grep -v '^ *+' conftest.er1 >conftest.err
29551 rm -f conftest.er1
29552 cat conftest.err >&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029554 (exit $ac_status); } && {
29555 test -z "$ac_c_werror_flag" ||
29556 test ! -s conftest.err
29557 } && test -s conftest$ac_exeext &&
29558 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029559 eval "$as_ac_var=yes"
29560else
29561 echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
29564 eval "$as_ac_var=no"
29565fi
29566
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029568 conftest$ac_exeext conftest.$ac_ext
29569fi
29570ac_res=`eval echo '${'$as_ac_var'}'`
29571 { echo "$as_me:$LINENO: result: $ac_res" >&5
29572echo "${ECHO_T}$ac_res" >&6; }
29573if test `eval echo '${'$as_ac_var'}'` = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29576_ACEOF
29577
29578fi
29579done
29580
29581{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29582echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29583if test "${llvm_cv_c_printf_a+set}" = set; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29585else
29586 ac_ext=c
29587ac_cpp='$CPP $CPPFLAGS'
29588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29590ac_compiler_gnu=$ac_cv_c_compiler_gnu
29591
29592 if test "$cross_compiling" = yes; then
29593 llvmac_cv_c_printf_a=no
29594else
29595 cat >conftest.$ac_ext <<_ACEOF
29596
29597 /* confdefs.h. */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h. */
29602
29603#include <stdio.h>
29604#include <stdlib.h>
29605
29606int
29607main ()
29608{
29609
29610volatile double A, B;
29611char Buffer[100];
29612A = 1;
29613A /= 10.0;
29614sprintf(Buffer, "%a", A);
29615B = atof(Buffer);
29616if (A != B)
29617 return (1);
29618if (A != 0x1.999999999999ap-4)
29619 return (1);
29620return (0);
29621 ;
29622 return 0;
29623}
29624_ACEOF
29625rm -f conftest$ac_exeext
29626if { (ac_try="$ac_link"
29627case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630esac
29631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_link") 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29639esac
29640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; }; then
29645 llvm_cv_c_printf_a=yes
29646else
29647 echo "$as_me: program exited with status $ac_status" >&5
29648echo "$as_me: failed program was:" >&5
29649sed 's/^/| /' conftest.$ac_ext >&5
29650
29651( exit $ac_status )
29652llvmac_cv_c_printf_a=no
29653fi
29654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29655fi
29656
29657
29658 ac_ext=c
29659ac_cpp='$CPP $CPPFLAGS'
29660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29662ac_compiler_gnu=$ac_cv_c_compiler_gnu
29663
29664fi
29665{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29666echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29667 if test "$llvm_cv_c_printf_a" = "yes"; then
29668
29669cat >>confdefs.h <<\_ACEOF
29670#define HAVE_PRINTF_A 1
29671_ACEOF
29672
29673 fi
29674
29675# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29676# for constant arguments. Useless!
29677{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29678echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29679if test "${ac_cv_working_alloca_h+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29681else
29682 cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688#include <alloca.h>
29689int
29690main ()
29691{
29692char *p = (char *) alloca (2 * sizeof (int));
29693 if (p) return 0;
29694 ;
29695 return 0;
29696}
29697_ACEOF
29698rm -f conftest.$ac_objext conftest$ac_exeext
29699if { (ac_try="$ac_link"
29700case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_link") 2>conftest.er1
29706 ac_status=$?
29707 grep -v '^ *+' conftest.er1 >conftest.err
29708 rm -f conftest.er1
29709 cat conftest.err >&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029711 (exit $ac_status); } && {
29712 test -z "$ac_c_werror_flag" ||
29713 test ! -s conftest.err
29714 } && test -s conftest$ac_exeext &&
29715 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029716 ac_cv_working_alloca_h=yes
29717else
29718 echo "$as_me: failed program was:" >&5
29719sed 's/^/| /' conftest.$ac_ext >&5
29720
29721 ac_cv_working_alloca_h=no
29722fi
29723
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029725 conftest$ac_exeext conftest.$ac_ext
29726fi
29727{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29728echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29729if test $ac_cv_working_alloca_h = yes; then
29730
29731cat >>confdefs.h <<\_ACEOF
29732#define HAVE_ALLOCA_H 1
29733_ACEOF
29734
29735fi
29736
29737{ echo "$as_me:$LINENO: checking for alloca" >&5
29738echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29739if test "${ac_cv_func_alloca_works+set}" = set; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
29741else
29742 cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748#ifdef __GNUC__
29749# define alloca __builtin_alloca
29750#else
29751# ifdef _MSC_VER
29752# include <malloc.h>
29753# define alloca _alloca
29754# else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029755# ifdef HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029756# include <alloca.h>
29757# else
29758# ifdef _AIX
29759 #pragma alloca
29760# else
29761# ifndef alloca /* predefined by HP cc +Olibcalls */
29762char *alloca ();
29763# endif
29764# endif
29765# endif
29766# endif
29767#endif
29768
29769int
29770main ()
29771{
29772char *p = (char *) alloca (1);
29773 if (p) return 0;
29774 ;
29775 return 0;
29776}
29777_ACEOF
29778rm -f conftest.$ac_objext conftest$ac_exeext
29779if { (ac_try="$ac_link"
29780case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29783esac
29784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_link") 2>conftest.er1
29786 ac_status=$?
29787 grep -v '^ *+' conftest.er1 >conftest.err
29788 rm -f conftest.er1
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029791 (exit $ac_status); } && {
29792 test -z "$ac_c_werror_flag" ||
29793 test ! -s conftest.err
29794 } && test -s conftest$ac_exeext &&
29795 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029796 ac_cv_func_alloca_works=yes
29797else
29798 echo "$as_me: failed program was:" >&5
29799sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 ac_cv_func_alloca_works=no
29802fi
29803
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029805 conftest$ac_exeext conftest.$ac_ext
29806fi
29807{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29808echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29809
29810if test $ac_cv_func_alloca_works = yes; then
29811
29812cat >>confdefs.h <<\_ACEOF
29813#define HAVE_ALLOCA 1
29814_ACEOF
29815
29816else
29817 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29818# that cause trouble. Some versions do not even contain alloca or
29819# contain a buggy version. If you still want to use their alloca,
29820# use ar to extract alloca.o from them instead of compiling alloca.c.
29821
29822ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29823
29824cat >>confdefs.h <<\_ACEOF
29825#define C_ALLOCA 1
29826_ACEOF
29827
29828
29829{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29830echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29831if test "${ac_cv_os_cray+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833else
29834 cat >conftest.$ac_ext <<_ACEOF
29835/* confdefs.h. */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h. */
29840#if defined CRAY && ! defined CRAY2
29841webecray
29842#else
29843wenotbecray
29844#endif
29845
29846_ACEOF
29847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29848 $EGREP "webecray" >/dev/null 2>&1; then
29849 ac_cv_os_cray=yes
29850else
29851 ac_cv_os_cray=no
29852fi
29853rm -f conftest*
29854
29855fi
29856{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29857echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29858if test $ac_cv_os_cray = yes; then
29859 for ac_func in _getb67 GETB67 getb67; do
29860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29861{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865else
29866 cat >conftest.$ac_ext <<_ACEOF
29867/* confdefs.h. */
29868_ACEOF
29869cat confdefs.h >>conftest.$ac_ext
29870cat >>conftest.$ac_ext <<_ACEOF
29871/* end confdefs.h. */
29872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29874#define $ac_func innocuous_$ac_func
29875
29876/* System header to define __stub macros and hopefully few prototypes,
29877 which can conflict with char $ac_func (); below.
29878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29879 <limits.h> exists even on freestanding compilers. */
29880
29881#ifdef __STDC__
29882# include <limits.h>
29883#else
29884# include <assert.h>
29885#endif
29886
29887#undef $ac_func
29888
29889/* Override any GCC internal prototype to avoid an error.
29890 Use char because int might match the return type of a GCC
29891 builtin and then its argument prototype would still apply. */
29892#ifdef __cplusplus
29893extern "C"
29894#endif
29895char $ac_func ();
29896/* The GNU C library defines this for functions which it implements
29897 to always fail with ENOSYS. Some functions are actually named
29898 something starting with __ and the normal name is an alias. */
29899#if defined __stub_$ac_func || defined __stub___$ac_func
29900choke me
29901#endif
29902
29903int
29904main ()
29905{
29906return $ac_func ();
29907 ;
29908 return 0;
29909}
29910_ACEOF
29911rm -f conftest.$ac_objext conftest$ac_exeext
29912if { (ac_try="$ac_link"
29913case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_link") 2>conftest.er1
29919 ac_status=$?
29920 grep -v '^ *+' conftest.er1 >conftest.err
29921 rm -f conftest.er1
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029924 (exit $ac_status); } && {
29925 test -z "$ac_c_werror_flag" ||
29926 test ! -s conftest.err
29927 } && test -s conftest$ac_exeext &&
29928 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029929 eval "$as_ac_var=yes"
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934 eval "$as_ac_var=no"
29935fi
29936
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029938 conftest$ac_exeext conftest.$ac_ext
29939fi
29940ac_res=`eval echo '${'$as_ac_var'}'`
29941 { echo "$as_me:$LINENO: result: $ac_res" >&5
29942echo "${ECHO_T}$ac_res" >&6; }
29943if test `eval echo '${'$as_ac_var'}'` = yes; then
29944
29945cat >>confdefs.h <<_ACEOF
29946#define CRAY_STACKSEG_END $ac_func
29947_ACEOF
29948
29949 break
29950fi
29951
29952 done
29953fi
29954
29955{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29956echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29957if test "${ac_cv_c_stack_direction+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29959else
29960 if test "$cross_compiling" = yes; then
29961 ac_cv_c_stack_direction=0
29962else
29963 cat >conftest.$ac_ext <<_ACEOF
29964/* confdefs.h. */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h. */
29969$ac_includes_default
29970int
29971find_stack_direction ()
29972{
29973 static char *addr = 0;
29974 auto char dummy;
29975 if (addr == 0)
29976 {
29977 addr = &dummy;
29978 return find_stack_direction ();
29979 }
29980 else
29981 return (&dummy > addr) ? 1 : -1;
29982}
29983
29984int
29985main ()
29986{
29987 return find_stack_direction () < 0;
29988}
29989_ACEOF
29990rm -f conftest$ac_exeext
29991if { (ac_try="$ac_link"
29992case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29995esac
29996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_link") 2>&5
29998 ac_status=$?
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30001 { (case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30004esac
30005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_try") 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_c_stack_direction=1
30011else
30012 echo "$as_me: program exited with status $ac_status" >&5
30013echo "$as_me: failed program was:" >&5
30014sed 's/^/| /' conftest.$ac_ext >&5
30015
30016( exit $ac_status )
30017ac_cv_c_stack_direction=-1
30018fi
30019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30020fi
30021
30022
30023fi
30024{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30025echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30026
30027cat >>confdefs.h <<_ACEOF
30028#define STACK_DIRECTION $ac_cv_c_stack_direction
30029_ACEOF
30030
30031
30032fi
30033
30034
30035{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30036echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30037if test "${ac_cv_func_rand48+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30039else
30040 ac_ext=cpp
30041ac_cpp='$CXXCPP $CPPFLAGS'
30042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30045
30046 cat >conftest.$ac_ext <<_ACEOF
30047/* confdefs.h. */
30048_ACEOF
30049cat confdefs.h >>conftest.$ac_ext
30050cat >>conftest.$ac_ext <<_ACEOF
30051/* end confdefs.h. */
30052#include <stdlib.h>
30053int
30054main ()
30055{
30056srand48(0);lrand48();drand48();
30057 ;
30058 return 0;
30059}
30060_ACEOF
30061rm -f conftest.$ac_objext
30062if { (ac_try="$ac_compile"
30063case "(($ac_try" in
30064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065 *) ac_try_echo=$ac_try;;
30066esac
30067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068 (eval "$ac_compile") 2>conftest.er1
30069 ac_status=$?
30070 grep -v '^ *+' conftest.er1 >conftest.err
30071 rm -f conftest.er1
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030074 (exit $ac_status); } && {
30075 test -z "$ac_cxx_werror_flag" ||
30076 test ! -s conftest.err
30077 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030078 ac_cv_func_rand48=yes
30079else
30080 echo "$as_me: failed program was:" >&5
30081sed 's/^/| /' conftest.$ac_ext >&5
30082
30083 ac_cv_func_rand48=no
30084fi
30085
30086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30087 ac_ext=c
30088ac_cpp='$CPP $CPPFLAGS'
30089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30091ac_compiler_gnu=$ac_cv_c_compiler_gnu
30092
30093fi
30094{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30095echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30096
30097if test "$ac_cv_func_rand48" = "yes" ; then
30098
30099cat >>confdefs.h <<\_ACEOF
30100#define HAVE_RAND48 1
30101_ACEOF
30102
30103fi
30104
30105
30106{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30107echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30108if test "${ac_cv_cxx_namespaces+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30110else
30111 ac_ext=cpp
30112ac_cpp='$CXXCPP $CPPFLAGS'
30113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30116
30117 cat >conftest.$ac_ext <<_ACEOF
30118/* confdefs.h. */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h. */
30123namespace Outer { namespace Inner { int i = 0; }}
30124int
30125main ()
30126{
30127using namespace Outer::Inner; return i;
30128 ;
30129 return 0;
30130}
30131_ACEOF
30132rm -f conftest.$ac_objext
30133if { (ac_try="$ac_compile"
30134case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_compile") 2>conftest.er1
30140 ac_status=$?
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030145 (exit $ac_status); } && {
30146 test -z "$ac_cxx_werror_flag" ||
30147 test ! -s conftest.err
30148 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030149 ac_cv_cxx_namespaces=yes
30150else
30151 echo "$as_me: failed program was:" >&5
30152sed 's/^/| /' conftest.$ac_ext >&5
30153
30154 ac_cv_cxx_namespaces=no
30155fi
30156
30157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30158 ac_ext=c
30159ac_cpp='$CPP $CPPFLAGS'
30160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162ac_compiler_gnu=$ac_cv_c_compiler_gnu
30163
30164
30165fi
30166{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30167echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30168if test "$ac_cv_cxx_namespaces" = yes; then
30169
30170cat >>confdefs.h <<\_ACEOF
30171#define HAVE_NAMESPACES
30172_ACEOF
30173
30174fi
30175
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030176{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30177echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30178if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30180else
30181
30182 ac_ext=cpp
30183ac_cpp='$CXXCPP $CPPFLAGS'
30184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30187
30188 cat >conftest.$ac_ext <<_ACEOF
30189/* confdefs.h. */
30190_ACEOF
30191cat confdefs.h >>conftest.$ac_ext
30192cat >>conftest.$ac_ext <<_ACEOF
30193/* end confdefs.h. */
30194#include <iterator>
30195#ifdef HAVE_NAMESPACES
30196using namespace std;
30197#endif
30198int
30199main ()
30200{
30201iterator<int,int,int> t; return 0;
30202 ;
30203 return 0;
30204}
30205_ACEOF
30206rm -f conftest.$ac_objext
30207if { (ac_try="$ac_compile"
30208case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_compile") 2>conftest.er1
30214 ac_status=$?
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030219 (exit $ac_status); } && {
30220 test -z "$ac_cxx_werror_flag" ||
30221 test ! -s conftest.err
30222 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030223 ac_cv_cxx_have_std_iterator=yes
30224else
30225 echo "$as_me: failed program was:" >&5
30226sed 's/^/| /' conftest.$ac_ext >&5
30227
30228 ac_cv_cxx_have_std_iterator=no
30229fi
30230
30231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30232 ac_ext=c
30233ac_cpp='$CPP $CPPFLAGS'
30234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30236ac_compiler_gnu=$ac_cv_c_compiler_gnu
30237
30238
30239fi
30240{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30241echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30242if test "$ac_cv_cxx_have_std_iterator" = yes
30243then
30244
30245cat >>confdefs.h <<\_ACEOF
30246#define HAVE_STD_ITERATOR 1
30247_ACEOF
30248
30249else
30250
30251cat >>confdefs.h <<\_ACEOF
30252#define HAVE_STD_ITERATOR 0
30253_ACEOF
30254
30255fi
30256
30257{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30258echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30259if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30260 echo $ECHO_N "(cached) $ECHO_C" >&6
30261else
30262
30263 ac_ext=cpp
30264ac_cpp='$CXXCPP $CPPFLAGS'
30265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30268
30269 cat >conftest.$ac_ext <<_ACEOF
30270/* confdefs.h. */
30271_ACEOF
30272cat confdefs.h >>conftest.$ac_ext
30273cat >>conftest.$ac_ext <<_ACEOF
30274/* end confdefs.h. */
30275#include <iterator>
30276#ifdef HAVE_NAMESPACES
30277using namespace std;
30278#endif
30279int
30280main ()
30281{
30282bidirectional_iterator<int,int> t; return 0;
30283 ;
30284 return 0;
30285}
30286_ACEOF
30287rm -f conftest.$ac_objext
30288if { (ac_try="$ac_compile"
30289case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30292esac
30293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_compile") 2>conftest.er1
30295 ac_status=$?
30296 grep -v '^ *+' conftest.er1 >conftest.err
30297 rm -f conftest.er1
30298 cat conftest.err >&5
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030300 (exit $ac_status); } && {
30301 test -z "$ac_cxx_werror_flag" ||
30302 test ! -s conftest.err
30303 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030304 ac_cv_cxx_have_bi_iterator=yes
30305else
30306 echo "$as_me: failed program was:" >&5
30307sed 's/^/| /' conftest.$ac_ext >&5
30308
30309 ac_cv_cxx_have_bi_iterator=no
30310fi
30311
30312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30313 ac_ext=c
30314ac_cpp='$CPP $CPPFLAGS'
30315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30317ac_compiler_gnu=$ac_cv_c_compiler_gnu
30318
30319
30320fi
30321{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30322echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30323if test "$ac_cv_cxx_have_bi_iterator" = yes
30324then
30325
30326cat >>confdefs.h <<\_ACEOF
30327#define HAVE_BI_ITERATOR 1
30328_ACEOF
30329
30330else
30331
30332cat >>confdefs.h <<\_ACEOF
30333#define HAVE_BI_ITERATOR 0
30334_ACEOF
30335
30336fi
30337
30338{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30339echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30340if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343
30344 ac_ext=cpp
30345ac_cpp='$CXXCPP $CPPFLAGS'
30346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30349
30350 cat >conftest.$ac_ext <<_ACEOF
30351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
30356#include <iterator>
30357#ifdef HAVE_NAMESPACES
30358using namespace std;
30359#endif
30360int
30361main ()
30362{
30363forward_iterator<int,int> t; return 0;
30364 ;
30365 return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (ac_try="$ac_compile"
30370case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_compile") 2>conftest.er1
30376 ac_status=$?
30377 grep -v '^ *+' conftest.er1 >conftest.err
30378 rm -f conftest.er1
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030381 (exit $ac_status); } && {
30382 test -z "$ac_cxx_werror_flag" ||
30383 test ! -s conftest.err
30384 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030385 ac_cv_cxx_have_fwd_iterator=yes
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390 ac_cv_cxx_have_fwd_iterator=no
30391fi
30392
30393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30394 ac_ext=c
30395ac_cpp='$CPP $CPPFLAGS'
30396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30398ac_compiler_gnu=$ac_cv_c_compiler_gnu
30399
30400
30401fi
30402{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30403echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30404if test "$ac_cv_cxx_have_fwd_iterator" = yes
30405then
30406
30407cat >>confdefs.h <<\_ACEOF
30408#define HAVE_FWD_ITERATOR 1
30409_ACEOF
30410
30411else
30412
30413cat >>confdefs.h <<\_ACEOF
30414#define HAVE_FWD_ITERATOR 0
30415_ACEOF
30416
30417fi
30418
30419
30420{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30421echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30422if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425 ac_ext=cpp
30426ac_cpp='$CXXCPP $CPPFLAGS'
30427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30430
30431 cat >conftest.$ac_ext <<_ACEOF
30432/* confdefs.h. */
30433_ACEOF
30434cat confdefs.h >>conftest.$ac_ext
30435cat >>conftest.$ac_ext <<_ACEOF
30436/* end confdefs.h. */
30437#include <math.h>
30438int
30439main ()
30440{
30441float f; isnan(f);
30442 ;
30443 return 0;
30444}
30445_ACEOF
30446rm -f conftest.$ac_objext
30447if { (ac_try="$ac_compile"
30448case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451esac
30452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_compile") 2>conftest.er1
30454 ac_status=$?
30455 grep -v '^ *+' conftest.er1 >conftest.err
30456 rm -f conftest.er1
30457 cat conftest.err >&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030459 (exit $ac_status); } && {
30460 test -z "$ac_cxx_werror_flag" ||
30461 test ! -s conftest.err
30462 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030463 ac_cv_func_isnan_in_math_h=yes
30464else
30465 echo "$as_me: failed program was:" >&5
30466sed 's/^/| /' conftest.$ac_ext >&5
30467
30468 ac_cv_func_isnan_in_math_h=no
30469fi
30470
30471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30472 ac_ext=c
30473ac_cpp='$CPP $CPPFLAGS'
30474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30476ac_compiler_gnu=$ac_cv_c_compiler_gnu
30477
30478fi
30479{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30480echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30481
30482
30483if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30484
30485cat >>confdefs.h <<\_ACEOF
30486#define HAVE_ISNAN_IN_MATH_H 1
30487_ACEOF
30488
30489fi
30490
30491{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30492echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30493if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495else
30496 ac_ext=cpp
30497ac_cpp='$CXXCPP $CPPFLAGS'
30498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30501
30502 cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h. */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h. */
30508#include <cmath>
30509int
30510main ()
30511{
30512float f; isnan(f);
30513 ;
30514 return 0;
30515}
30516_ACEOF
30517rm -f conftest.$ac_objext
30518if { (ac_try="$ac_compile"
30519case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30522esac
30523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_compile") 2>conftest.er1
30525 ac_status=$?
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030530 (exit $ac_status); } && {
30531 test -z "$ac_cxx_werror_flag" ||
30532 test ! -s conftest.err
30533 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030534 ac_cv_func_isnan_in_cmath=yes
30535else
30536 echo "$as_me: failed program was:" >&5
30537sed 's/^/| /' conftest.$ac_ext >&5
30538
30539 ac_cv_func_isnan_in_cmath=no
30540fi
30541
30542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30543 ac_ext=c
30544ac_cpp='$CPP $CPPFLAGS'
30545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30547ac_compiler_gnu=$ac_cv_c_compiler_gnu
30548
30549fi
30550{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30551echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30552
30553if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30554
30555cat >>confdefs.h <<\_ACEOF
30556#define HAVE_ISNAN_IN_CMATH 1
30557_ACEOF
30558
30559fi
30560
30561{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30562echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30563if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30564 echo $ECHO_N "(cached) $ECHO_C" >&6
30565else
30566 ac_ext=cpp
30567ac_cpp='$CXXCPP $CPPFLAGS'
30568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30571
30572 cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h. */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h. */
30578#include <cmath>
30579int
30580main ()
30581{
30582float f; std::isnan(f);
30583 ;
30584 return 0;
30585}
30586_ACEOF
30587rm -f conftest.$ac_objext
30588if { (ac_try="$ac_compile"
30589case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30592esac
30593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_compile") 2>conftest.er1
30595 ac_status=$?
30596 grep -v '^ *+' conftest.er1 >conftest.err
30597 rm -f conftest.er1
30598 cat conftest.err >&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030600 (exit $ac_status); } && {
30601 test -z "$ac_cxx_werror_flag" ||
30602 test ! -s conftest.err
30603 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030604 ac_cv_func_std_isnan_in_cmath=yes
30605else
30606 echo "$as_me: failed program was:" >&5
30607sed 's/^/| /' conftest.$ac_ext >&5
30608
30609 ac_cv_func_std_isnan_in_cmath=no
30610fi
30611
30612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 ac_ext=c
30614ac_cpp='$CPP $CPPFLAGS'
30615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30617ac_compiler_gnu=$ac_cv_c_compiler_gnu
30618
30619fi
30620{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30621echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30622
30623if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30624
30625cat >>confdefs.h <<\_ACEOF
30626#define HAVE_STD_ISNAN_IN_CMATH 1
30627_ACEOF
30628
30629fi
30630
30631
30632{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30633echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30634if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636else
30637 ac_ext=cpp
30638ac_cpp='$CXXCPP $CPPFLAGS'
30639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30642
30643 cat >conftest.$ac_ext <<_ACEOF
30644/* confdefs.h. */
30645_ACEOF
30646cat confdefs.h >>conftest.$ac_ext
30647cat >>conftest.$ac_ext <<_ACEOF
30648/* end confdefs.h. */
30649#include <math.h>
30650int
30651main ()
30652{
30653float f; isinf(f);
30654 ;
30655 return 0;
30656}
30657_ACEOF
30658rm -f conftest.$ac_objext
30659if { (ac_try="$ac_compile"
30660case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663esac
30664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_compile") 2>conftest.er1
30666 ac_status=$?
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030671 (exit $ac_status); } && {
30672 test -z "$ac_cxx_werror_flag" ||
30673 test ! -s conftest.err
30674 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030675 ac_cv_func_isinf_in_math_h=yes
30676else
30677 echo "$as_me: failed program was:" >&5
30678sed 's/^/| /' conftest.$ac_ext >&5
30679
30680 ac_cv_func_isinf_in_math_h=no
30681fi
30682
30683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30684 ac_ext=c
30685ac_cpp='$CPP $CPPFLAGS'
30686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30688ac_compiler_gnu=$ac_cv_c_compiler_gnu
30689
30690fi
30691{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30692echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30693
30694if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30695
30696cat >>confdefs.h <<\_ACEOF
30697#define HAVE_ISINF_IN_MATH_H 1
30698_ACEOF
30699
30700fi
30701
30702{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30703echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30704if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707 ac_ext=cpp
30708ac_cpp='$CXXCPP $CPPFLAGS'
30709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30712
30713 cat >conftest.$ac_ext <<_ACEOF
30714/* confdefs.h. */
30715_ACEOF
30716cat confdefs.h >>conftest.$ac_ext
30717cat >>conftest.$ac_ext <<_ACEOF
30718/* end confdefs.h. */
30719#include <cmath>
30720int
30721main ()
30722{
30723float f; isinf(f);
30724 ;
30725 return 0;
30726}
30727_ACEOF
30728rm -f conftest.$ac_objext
30729if { (ac_try="$ac_compile"
30730case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30733esac
30734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_compile") 2>conftest.er1
30736 ac_status=$?
30737 grep -v '^ *+' conftest.er1 >conftest.err
30738 rm -f conftest.er1
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030741 (exit $ac_status); } && {
30742 test -z "$ac_cxx_werror_flag" ||
30743 test ! -s conftest.err
30744 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030745 ac_cv_func_isinf_in_cmath=yes
30746else
30747 echo "$as_me: failed program was:" >&5
30748sed 's/^/| /' conftest.$ac_ext >&5
30749
30750 ac_cv_func_isinf_in_cmath=no
30751fi
30752
30753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30754 ac_ext=c
30755ac_cpp='$CPP $CPPFLAGS'
30756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30758ac_compiler_gnu=$ac_cv_c_compiler_gnu
30759
30760fi
30761{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30762echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30763
30764if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30765
30766cat >>confdefs.h <<\_ACEOF
30767#define HAVE_ISINF_IN_CMATH 1
30768_ACEOF
30769
30770fi
30771
30772{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30773echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30774if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30776else
30777 ac_ext=cpp
30778ac_cpp='$CXXCPP $CPPFLAGS'
30779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30782
30783 cat >conftest.$ac_ext <<_ACEOF
30784/* confdefs.h. */
30785_ACEOF
30786cat confdefs.h >>conftest.$ac_ext
30787cat >>conftest.$ac_ext <<_ACEOF
30788/* end confdefs.h. */
30789#include <cmath>
30790int
30791main ()
30792{
30793float f; std::isinf(f)}
30794 ;
30795 return 0;
30796}
30797_ACEOF
30798rm -f conftest.$ac_objext
30799if { (ac_try="$ac_compile"
30800case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803esac
30804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030811 (exit $ac_status); } && {
30812 test -z "$ac_cxx_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030815 ac_cv_func_std_isinf_in_cmath=yes
30816else
30817 echo "$as_me: failed program was:" >&5
30818sed 's/^/| /' conftest.$ac_ext >&5
30819
30820 ac_cv_func_std_isinf_in_cmath=no
30821fi
30822
30823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30824 ac_ext=c
30825ac_cpp='$CPP $CPPFLAGS'
30826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30828ac_compiler_gnu=$ac_cv_c_compiler_gnu
30829
30830fi
30831{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30832echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
30833
30834if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30835
30836cat >>confdefs.h <<\_ACEOF
30837#define HAVE_STD_ISINF_IN_CMATH 1
30838_ACEOF
30839
30840fi
30841
30842{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30843echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
30844if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30846else
30847 ac_ext=cpp
30848ac_cpp='$CXXCPP $CPPFLAGS'
30849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30852
30853 cat >conftest.$ac_ext <<_ACEOF
30854/* confdefs.h. */
30855_ACEOF
30856cat confdefs.h >>conftest.$ac_ext
30857cat >>conftest.$ac_ext <<_ACEOF
30858/* end confdefs.h. */
30859#include <ieeefp.h>
30860int
30861main ()
30862{
30863float f; finite(f);
30864 ;
30865 return 0;
30866}
30867_ACEOF
30868rm -f conftest.$ac_objext
30869if { (ac_try="$ac_compile"
30870case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_compile") 2>conftest.er1
30876 ac_status=$?
30877 grep -v '^ *+' conftest.er1 >conftest.err
30878 rm -f conftest.er1
30879 cat conftest.err >&5
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030881 (exit $ac_status); } && {
30882 test -z "$ac_cxx_werror_flag" ||
30883 test ! -s conftest.err
30884 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030885 ac_cv_func_finite_in_ieeefp_h=yes
30886else
30887 echo "$as_me: failed program was:" >&5
30888sed 's/^/| /' conftest.$ac_ext >&5
30889
30890 ac_cv_func_finite_in_ieeefp_h=no
30891fi
30892
30893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30894 ac_ext=c
30895ac_cpp='$CPP $CPPFLAGS'
30896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30898ac_compiler_gnu=$ac_cv_c_compiler_gnu
30899
30900fi
30901{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30902echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
30903
30904if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30905
30906cat >>confdefs.h <<\_ACEOF
30907#define HAVE_FINITE_IN_IEEEFP_H 1
30908_ACEOF
30909
30910fi
30911
30912
30913
30914if test "$llvm_cv_platform_type" = "Unix" ; then
30915
30916
30917for ac_header in stdlib.h unistd.h
30918do
30919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925fi
30926ac_res=`eval echo '${'$as_ac_Header'}'`
30927 { echo "$as_me:$LINENO: result: $ac_res" >&5
30928echo "${ECHO_T}$ac_res" >&6; }
30929else
30930 # Is the header compilable?
30931{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30933cat >conftest.$ac_ext <<_ACEOF
30934/* confdefs.h. */
30935_ACEOF
30936cat confdefs.h >>conftest.$ac_ext
30937cat >>conftest.$ac_ext <<_ACEOF
30938/* end confdefs.h. */
30939$ac_includes_default
30940#include <$ac_header>
30941_ACEOF
30942rm -f conftest.$ac_objext
30943if { (ac_try="$ac_compile"
30944case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30947esac
30948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_compile") 2>conftest.er1
30950 ac_status=$?
30951 grep -v '^ *+' conftest.er1 >conftest.err
30952 rm -f conftest.er1
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030955 (exit $ac_status); } && {
30956 test -z "$ac_c_werror_flag" ||
30957 test ! -s conftest.err
30958 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030959 ac_header_compiler=yes
30960else
30961 echo "$as_me: failed program was:" >&5
30962sed 's/^/| /' conftest.$ac_ext >&5
30963
30964 ac_header_compiler=no
30965fi
30966
30967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30968{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30969echo "${ECHO_T}$ac_header_compiler" >&6; }
30970
30971# Is the header present?
30972{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30974cat >conftest.$ac_ext <<_ACEOF
30975/* confdefs.h. */
30976_ACEOF
30977cat confdefs.h >>conftest.$ac_ext
30978cat >>conftest.$ac_ext <<_ACEOF
30979/* end confdefs.h. */
30980#include <$ac_header>
30981_ACEOF
30982if { (ac_try="$ac_cpp conftest.$ac_ext"
30983case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30986esac
30987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30989 ac_status=$?
30990 grep -v '^ *+' conftest.er1 >conftest.err
30991 rm -f conftest.er1
30992 cat conftest.err >&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000030994 (exit $ac_status); } >/dev/null && {
30995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30996 test ! -s conftest.err
30997 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030998 ac_header_preproc=yes
30999else
31000 echo "$as_me: failed program was:" >&5
31001sed 's/^/| /' conftest.$ac_ext >&5
31002
31003 ac_header_preproc=no
31004fi
31005
31006rm -f conftest.err conftest.$ac_ext
31007{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31008echo "${ECHO_T}$ac_header_preproc" >&6; }
31009
31010# So? What about this header?
31011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31012 yes:no: )
31013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31017 ac_header_preproc=yes
31018 ;;
31019 no:yes:* )
31020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31032 ( cat <<\_ASBOX
31033## ----------------------------------- ##
31034## Report this to llvmbugs@cs.uiuc.edu ##
31035## ----------------------------------- ##
31036_ASBOX
31037 ) | sed "s/^/$as_me: WARNING: /" >&2
31038 ;;
31039esac
31040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 eval "$as_ac_Header=\$ac_header_preproc"
31046fi
31047ac_res=`eval echo '${'$as_ac_Header'}'`
31048 { echo "$as_me:$LINENO: result: $ac_res" >&5
31049echo "${ECHO_T}$ac_res" >&6; }
31050
31051fi
31052if test `eval echo '${'$as_ac_Header'}'` = yes; then
31053 cat >>confdefs.h <<_ACEOF
31054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31055_ACEOF
31056
31057fi
31058
31059done
31060
31061
31062for ac_func in getpagesize
31063do
31064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31065{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31068 echo $ECHO_N "(cached) $ECHO_C" >&6
31069else
31070 cat >conftest.$ac_ext <<_ACEOF
31071/* confdefs.h. */
31072_ACEOF
31073cat confdefs.h >>conftest.$ac_ext
31074cat >>conftest.$ac_ext <<_ACEOF
31075/* end confdefs.h. */
31076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31078#define $ac_func innocuous_$ac_func
31079
31080/* System header to define __stub macros and hopefully few prototypes,
31081 which can conflict with char $ac_func (); below.
31082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31083 <limits.h> exists even on freestanding compilers. */
31084
31085#ifdef __STDC__
31086# include <limits.h>
31087#else
31088# include <assert.h>
31089#endif
31090
31091#undef $ac_func
31092
31093/* Override any GCC internal prototype to avoid an error.
31094 Use char because int might match the return type of a GCC
31095 builtin and then its argument prototype would still apply. */
31096#ifdef __cplusplus
31097extern "C"
31098#endif
31099char $ac_func ();
31100/* The GNU C library defines this for functions which it implements
31101 to always fail with ENOSYS. Some functions are actually named
31102 something starting with __ and the normal name is an alias. */
31103#if defined __stub_$ac_func || defined __stub___$ac_func
31104choke me
31105#endif
31106
31107int
31108main ()
31109{
31110return $ac_func ();
31111 ;
31112 return 0;
31113}
31114_ACEOF
31115rm -f conftest.$ac_objext conftest$ac_exeext
31116if { (ac_try="$ac_link"
31117case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_link") 2>conftest.er1
31123 ac_status=$?
31124 grep -v '^ *+' conftest.er1 >conftest.err
31125 rm -f conftest.er1
31126 cat conftest.err >&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031128 (exit $ac_status); } && {
31129 test -z "$ac_c_werror_flag" ||
31130 test ! -s conftest.err
31131 } && test -s conftest$ac_exeext &&
31132 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031133 eval "$as_ac_var=yes"
31134else
31135 echo "$as_me: failed program was:" >&5
31136sed 's/^/| /' conftest.$ac_ext >&5
31137
31138 eval "$as_ac_var=no"
31139fi
31140
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031142 conftest$ac_exeext conftest.$ac_ext
31143fi
31144ac_res=`eval echo '${'$as_ac_var'}'`
31145 { echo "$as_me:$LINENO: result: $ac_res" >&5
31146echo "${ECHO_T}$ac_res" >&6; }
31147if test `eval echo '${'$as_ac_var'}'` = yes; then
31148 cat >>confdefs.h <<_ACEOF
31149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31150_ACEOF
31151
31152fi
31153done
31154
31155{ echo "$as_me:$LINENO: checking for working mmap" >&5
31156echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31157if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31159else
31160 if test "$cross_compiling" = yes; then
31161 ac_cv_func_mmap_fixed_mapped=no
31162else
31163 cat >conftest.$ac_ext <<_ACEOF
31164/* confdefs.h. */
31165_ACEOF
31166cat confdefs.h >>conftest.$ac_ext
31167cat >>conftest.$ac_ext <<_ACEOF
31168/* end confdefs.h. */
31169$ac_includes_default
31170/* malloc might have been renamed as rpl_malloc. */
31171#undef malloc
31172
31173/* Thanks to Mike Haertel and Jim Avera for this test.
31174 Here is a matrix of mmap possibilities:
31175 mmap private not fixed
31176 mmap private fixed at somewhere currently unmapped
31177 mmap private fixed at somewhere already mapped
31178 mmap shared not fixed
31179 mmap shared fixed at somewhere currently unmapped
31180 mmap shared fixed at somewhere already mapped
31181 For private mappings, we should verify that changes cannot be read()
31182 back from the file, nor mmap's back from the file at a different
31183 address. (There have been systems where private was not correctly
31184 implemented like the infamous i386 svr4.0, and systems where the
31185 VM page cache was not coherent with the file system buffer cache
31186 like early versions of FreeBSD and possibly contemporary NetBSD.)
31187 For shared mappings, we should conversely verify that changes get
31188 propagated back to all the places they're supposed to be.
31189
31190 Grep wants private fixed already mapped.
31191 The main things grep needs to know about mmap are:
31192 * does it exist and is it safe to write into the mmap'd area
31193 * how to use it (BSD variants) */
31194
31195#include <fcntl.h>
31196#include <sys/mman.h>
31197
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031198#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031199char *malloc ();
31200#endif
31201
31202/* This mess was copied from the GNU getpagesize.h. */
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031203#ifndef HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031204/* Assume that all systems that can run configure have sys/param.h. */
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031205# ifndef HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031206# define HAVE_SYS_PARAM_H 1
31207# endif
31208
31209# ifdef _SC_PAGESIZE
31210# define getpagesize() sysconf(_SC_PAGESIZE)
31211# else /* no _SC_PAGESIZE */
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031212# ifdef HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031213# include <sys/param.h>
31214# ifdef EXEC_PAGESIZE
31215# define getpagesize() EXEC_PAGESIZE
31216# else /* no EXEC_PAGESIZE */
31217# ifdef NBPG
31218# define getpagesize() NBPG * CLSIZE
31219# ifndef CLSIZE
31220# define CLSIZE 1
31221# endif /* no CLSIZE */
31222# else /* no NBPG */
31223# ifdef NBPC
31224# define getpagesize() NBPC
31225# else /* no NBPC */
31226# ifdef PAGESIZE
31227# define getpagesize() PAGESIZE
31228# endif /* PAGESIZE */
31229# endif /* no NBPC */
31230# endif /* no NBPG */
31231# endif /* no EXEC_PAGESIZE */
31232# else /* no HAVE_SYS_PARAM_H */
31233# define getpagesize() 8192 /* punt totally */
31234# endif /* no HAVE_SYS_PARAM_H */
31235# endif /* no _SC_PAGESIZE */
31236
31237#endif /* no HAVE_GETPAGESIZE */
31238
31239int
31240main ()
31241{
31242 char *data, *data2, *data3;
31243 int i, pagesize;
31244 int fd;
31245
31246 pagesize = getpagesize ();
31247
31248 /* First, make a file with some known garbage in it. */
31249 data = (char *) malloc (pagesize);
31250 if (!data)
31251 return 1;
31252 for (i = 0; i < pagesize; ++i)
31253 *(data + i) = rand ();
31254 umask (0);
31255 fd = creat ("conftest.mmap", 0600);
31256 if (fd < 0)
31257 return 1;
31258 if (write (fd, data, pagesize) != pagesize)
31259 return 1;
31260 close (fd);
31261
31262 /* Next, try to mmap the file at a fixed address which already has
31263 something else allocated at it. If we can, also make sure that
31264 we see the same garbage. */
31265 fd = open ("conftest.mmap", O_RDWR);
31266 if (fd < 0)
31267 return 1;
31268 data2 = (char *) malloc (2 * pagesize);
31269 if (!data2)
31270 return 1;
31271 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31272 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31273 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31274 return 1;
31275 for (i = 0; i < pagesize; ++i)
31276 if (*(data + i) != *(data2 + i))
31277 return 1;
31278
31279 /* Finally, make sure that changes to the mapped area do not
31280 percolate back to the file as seen by read(). (This is a bug on
31281 some variants of i386 svr4.0.) */
31282 for (i = 0; i < pagesize; ++i)
31283 *(data2 + i) = *(data2 + i) + 1;
31284 data3 = (char *) malloc (pagesize);
31285 if (!data3)
31286 return 1;
31287 if (read (fd, data3, pagesize) != pagesize)
31288 return 1;
31289 for (i = 0; i < pagesize; ++i)
31290 if (*(data + i) != *(data3 + i))
31291 return 1;
31292 close (fd);
31293 return 0;
31294}
31295_ACEOF
31296rm -f conftest$ac_exeext
31297if { (ac_try="$ac_link"
31298case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_link") 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31307 { (case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31310esac
31311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_try") 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; }; then
31316 ac_cv_func_mmap_fixed_mapped=yes
31317else
31318 echo "$as_me: program exited with status $ac_status" >&5
31319echo "$as_me: failed program was:" >&5
31320sed 's/^/| /' conftest.$ac_ext >&5
31321
31322( exit $ac_status )
31323ac_cv_func_mmap_fixed_mapped=no
31324fi
31325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31326fi
31327
31328
31329fi
31330{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31331echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31332if test $ac_cv_func_mmap_fixed_mapped = yes; then
31333
31334cat >>confdefs.h <<\_ACEOF
31335#define HAVE_MMAP 1
31336_ACEOF
31337
31338fi
31339rm -f conftest.mmap
31340
31341 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31342echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31343if test "${ac_cv_func_mmap_file+set}" = set; then
31344 echo $ECHO_N "(cached) $ECHO_C" >&6
31345else
31346 ac_ext=c
31347ac_cpp='$CPP $CPPFLAGS'
31348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31350ac_compiler_gnu=$ac_cv_c_compiler_gnu
31351
31352 if test "$cross_compiling" = yes; then
31353 ac_cv_func_mmap_file=no
31354else
31355 cat >conftest.$ac_ext <<_ACEOF
31356
31357 /* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362
31363#include <sys/types.h>
31364#include <sys/mman.h>
31365#include <fcntl.h>
31366
31367int
31368main ()
31369{
31370
31371 int fd;
31372 fd = creat ("foo",0777);
31373 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31374 unlink ("foo");
31375 return (fd != (int) MAP_FAILED);
31376 ;
31377 return 0;
31378}
31379_ACEOF
31380rm -f conftest$ac_exeext
31381if { (ac_try="$ac_link"
31382case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31385esac
31386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_link") 2>&5
31388 ac_status=$?
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394esac
31395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 ac_cv_func_mmap_file=yes
31401else
31402 echo "$as_me: program exited with status $ac_status" >&5
31403echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
31406( exit $ac_status )
31407ac_cv_func_mmap_file=no
31408fi
31409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31410fi
31411
31412
31413 ac_ext=c
31414ac_cpp='$CPP $CPPFLAGS'
31415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417ac_compiler_gnu=$ac_cv_c_compiler_gnu
31418
31419
31420fi
31421{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31422echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31423if test "$ac_cv_func_mmap_file" = yes; then
31424
31425cat >>confdefs.h <<\_ACEOF
31426#define HAVE_MMAP_FILE
31427_ACEOF
31428
31429 MMAP_FILE=yes
31430
31431fi
31432
31433 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31434echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31435if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31436 echo $ECHO_N "(cached) $ECHO_C" >&6
31437else
31438 if test "$llvm_cv_os_type" = "Interix" ; then
31439 ac_cv_need_dev_zero_for_mmap=yes
31440 else
31441 ac_cv_need_dev_zero_for_mmap=no
31442 fi
31443
31444fi
31445{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31446echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31447if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31448
31449cat >>confdefs.h <<\_ACEOF
31450#define NEED_DEV_ZERO_FOR_MMAP 1
31451_ACEOF
31452
31453fi
31454
31455 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31456 then
31457 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31458echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31459 fi
31460 if test "$ac_cv_func_mmap_file" = "no"
31461 then
31462 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31463echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31464 fi
31465fi
31466
31467
Reid Spencer59c09b32007-07-30 20:13:24 +000031468
31469for ac_func in __dso_handle
31470do
31471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31475 echo $ECHO_N "(cached) $ECHO_C" >&6
31476else
31477 cat >conftest.$ac_ext <<_ACEOF
31478/* confdefs.h. */
31479_ACEOF
31480cat confdefs.h >>conftest.$ac_ext
31481cat >>conftest.$ac_ext <<_ACEOF
31482/* end confdefs.h. */
31483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31485#define $ac_func innocuous_$ac_func
31486
31487/* System header to define __stub macros and hopefully few prototypes,
31488 which can conflict with char $ac_func (); below.
31489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490 <limits.h> exists even on freestanding compilers. */
31491
31492#ifdef __STDC__
31493# include <limits.h>
31494#else
31495# include <assert.h>
31496#endif
31497
31498#undef $ac_func
31499
31500/* Override any GCC internal prototype to avoid an error.
31501 Use char because int might match the return type of a GCC
31502 builtin and then its argument prototype would still apply. */
31503#ifdef __cplusplus
31504extern "C"
31505#endif
31506char $ac_func ();
31507/* The GNU C library defines this for functions which it implements
31508 to always fail with ENOSYS. Some functions are actually named
31509 something starting with __ and the normal name is an alias. */
31510#if defined __stub_$ac_func || defined __stub___$ac_func
31511choke me
31512#endif
31513
31514int
31515main ()
31516{
31517return $ac_func ();
31518 ;
31519 return 0;
31520}
31521_ACEOF
31522rm -f conftest.$ac_objext conftest$ac_exeext
31523if { (ac_try="$ac_link"
31524case "(($ac_try" in
31525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526 *) ac_try_echo=$ac_try;;
31527esac
31528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529 (eval "$ac_link") 2>conftest.er1
31530 ac_status=$?
31531 grep -v '^ *+' conftest.er1 >conftest.err
31532 rm -f conftest.er1
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031535 (exit $ac_status); } && {
31536 test -z "$ac_c_werror_flag" ||
31537 test ! -s conftest.err
31538 } && test -s conftest$ac_exeext &&
31539 $as_test_x conftest$ac_exeext; then
Reid Spencer59c09b32007-07-30 20:13:24 +000031540 eval "$as_ac_var=yes"
31541else
31542 echo "$as_me: failed program was:" >&5
31543sed 's/^/| /' conftest.$ac_ext >&5
31544
31545 eval "$as_ac_var=no"
31546fi
31547
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer59c09b32007-07-30 20:13:24 +000031549 conftest$ac_exeext conftest.$ac_ext
31550fi
31551ac_res=`eval echo '${'$as_ac_var'}'`
31552 { echo "$as_me:$LINENO: result: $ac_res" >&5
31553echo "${ECHO_T}$ac_res" >&6; }
31554if test `eval echo '${'$as_ac_var'}'` = yes; then
31555 cat >>confdefs.h <<_ACEOF
31556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31557_ACEOF
31558
31559fi
31560done
31561
31562
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031563{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31564echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31565if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31567else
31568 llvm_cv_llvmgcc_sanity="no"
31569if test -x "$LLVMGCC" ; then
31570 cp /dev/null conftest.c
31571 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31572 grep 'target datalayout =' > /dev/null 2>&1
31573 if test $? -eq 0 ; then
31574 llvm_cv_llvmgcc_sanity="yes"
31575 fi
31576 rm conftest.c
31577fi
31578fi
31579{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31580echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31581
31582if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31583 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31584echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31585 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31586 LLVMCC1=$llvmcc1path
31587
31588 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31589 LLVMCC1PLUS=$llvmcc1pluspath
31590
31591 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31592 LLVMGCCDIR=$llvmgccdir
31593
31594 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31595 LLVMGCCLIBEXEC=$llvmgcclibexec
31596
31597 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31598 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31599 LLVMGCC_VERSION=$llvmgccversion
31600
31601 LLVMGCC_MAJVERS=$llvmgccmajvers
31602
Tanya Lattner9894c2c2008-10-07 22:21:03 +000031603 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031604 LLVMGCC_LANGS=$llvmgcclangs
31605
31606 { echo "$as_me:$LINENO: result: ok" >&5
31607echo "${ECHO_T}ok" >&6; }
31608fi
31609
31610SHLIBEXT=$libltdl_cv_shlibext
31611
31612
31613# Translate the various configuration directories and other basic
31614# information into substitutions that will end up in Makefile.config.in
31615# that these configured values can be used by the makefiles
31616if test "${prefix}" = "NONE" ; then
31617 prefix="/usr/local"
31618fi
31619eval LLVM_PREFIX="${prefix}";
31620eval LLVM_BINDIR="${prefix}/bin";
31621eval LLVM_LIBDIR="${prefix}/lib";
31622eval LLVM_DATADIR="${prefix}/share/llvm";
31623eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31624eval LLVM_ETCDIR="${prefix}/etc/llvm";
31625eval LLVM_INCLUDEDIR="${prefix}/include";
31626eval LLVM_INFODIR="${prefix}/info";
31627eval LLVM_MANDIR="${prefix}/man";
31628LLVM_CONFIGTIME=`date`
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640# Place the various directores into the config.h file as #defines so that we
31641# can know about the installation paths within LLVM.
31642
31643cat >>confdefs.h <<_ACEOF
31644#define LLVM_PREFIX "$LLVM_PREFIX"
31645_ACEOF
31646
31647
31648cat >>confdefs.h <<_ACEOF
31649#define LLVM_BINDIR "$LLVM_BINDIR"
31650_ACEOF
31651
31652
31653cat >>confdefs.h <<_ACEOF
31654#define LLVM_LIBDIR "$LLVM_LIBDIR"
31655_ACEOF
31656
31657
31658cat >>confdefs.h <<_ACEOF
31659#define LLVM_DATADIR "$LLVM_DATADIR"
31660_ACEOF
31661
31662
31663cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000031664#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031665_ACEOF
31666
31667
31668cat >>confdefs.h <<_ACEOF
31669#define LLVM_ETCDIR "$LLVM_ETCDIR"
31670_ACEOF
31671
31672
31673cat >>confdefs.h <<_ACEOF
31674#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31675_ACEOF
31676
31677
31678cat >>confdefs.h <<_ACEOF
31679#define LLVM_INFODIR "$LLVM_INFODIR"
31680_ACEOF
31681
31682
31683cat >>confdefs.h <<_ACEOF
31684#define LLVM_MANDIR "$LLVM_MANDIR"
31685_ACEOF
31686
31687
31688cat >>confdefs.h <<_ACEOF
31689#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31690_ACEOF
31691
31692
Eric Christopher8b274472007-12-01 00:34:39 +000031693cat >>confdefs.h <<_ACEOF
31694#define LLVM_HOSTTRIPLE "$host"
31695_ACEOF
31696
31697
Gordon Henriksen016ec472007-10-02 09:50:32 +000031698# Determine which bindings to build.
31699if test "$BINDINGS_TO_BUILD" = auto ; then
31700 BINDINGS_TO_BUILD=""
31701 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31702 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31703 fi
31704fi
31705BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31706
31707
31708# This isn't really configurey, but it avoids having to repeat the list in
31709# other files.
31710ALL_BINDINGS=ocaml
31711
31712
Gordon Henriksen058a4c62007-10-02 16:42:22 +000031713# Do any work necessary to ensure that bindings have what they need.
31714binding_prereqs_failed=0
31715for a_binding in $BINDINGS_TO_BUILD ; do
31716 case "$a_binding" in
31717 ocaml)
31718 if test "x$OCAMLC" = x ; then
31719 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31720echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31721 binding_prereqs_failed=1
31722 fi
31723 if test "x$OCAMLDEP" = x ; then
31724 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31725echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31726 binding_prereqs_failed=1
31727 fi
31728 if test "x$OCAMLOPT" = x ; then
31729 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31730echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31731 fi
31732 if test "x$with_ocaml_libdir" != xauto ; then
31733 OCAML_LIBDIR=$with_ocaml_libdir
31734
31735 else
31736 ocaml_stdlib="`"$OCAMLC" -where`"
31737 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31738 then
31739 # ocaml stdlib is beneath our prefix; use stdlib
31740 OCAML_LIBDIR=$ocaml_stdlib
31741
31742 else
31743 # ocaml stdlib is outside our prefix; use libdir/ocaml
31744 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31745
31746 fi
31747 fi
31748 ;;
31749 esac
31750done
31751if test "$binding_prereqs_failed" = 1 ; then
31752 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31753echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31754 { (exit 1); exit 1; }; }
31755fi
31756
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000031757{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
31758echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
31759if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
31760 echo $ECHO_N "(cached) $ECHO_C" >&6
31761else
31762 ac_ext=cpp
31763ac_cpp='$CXXCPP $CPPFLAGS'
31764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31767
31768 oldcxxflags="$CXXFLAGS"
31769 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
31770 cat >conftest.$ac_ext <<_ACEOF
31771/* confdefs.h. */
31772_ACEOF
31773cat confdefs.h >>conftest.$ac_ext
31774cat >>conftest.$ac_ext <<_ACEOF
31775/* end confdefs.h. */
31776
31777int
31778main ()
31779{
31780
31781 ;
31782 return 0;
31783}
31784_ACEOF
31785rm -f conftest.$ac_objext
31786if { (ac_try="$ac_compile"
31787case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790esac
31791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_compile") 2>conftest.er1
31793 ac_status=$?
31794 grep -v '^ *+' conftest.er1 >conftest.err
31795 rm -f conftest.er1
31796 cat conftest.err >&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031798 (exit $ac_status); } && {
31799 test -z "$ac_cxx_werror_flag" ||
31800 test ! -s conftest.err
31801 } && test -s conftest.$ac_objext; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000031802 llvm_cv_cxx_visibility_inlines_hidden=yes
31803else
31804 echo "$as_me: failed program was:" >&5
31805sed 's/^/| /' conftest.$ac_ext >&5
31806
31807 llvm_cv_cxx_visibility_inlines_hidden=no
31808fi
31809
31810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811 CXXFLAGS="$oldcxxflags"
31812 ac_ext=c
31813ac_cpp='$CPP $CPPFLAGS'
31814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31816ac_compiler_gnu=$ac_cv_c_compiler_gnu
31817
31818
31819fi
31820{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
31821echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
31822if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
31823 ENABLE_VISIBILITY_INLINES_HIDDEN=1
31824
31825else
31826 ENABLE_VISIBILITY_INLINES_HIDDEN=0
31827
31828fi
31829
Gordon Henriksen058a4c62007-10-02 16:42:22 +000031830
Nick Lewycky6eab6652009-03-05 08:20:44 +000031831if test "$llvm_cv_link_use_r" = "yes" ; then
31832 RPATH="-Wl,-R"
31833else
31834 RPATH="-Wl,-rpath"
31835fi
31836
31837
31838if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
31839 RDYNAMIC="-Wl,-export-dynamic"
31840else
31841 RDYNAMIC=""
31842fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000031843
31844
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031845
31846ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31847
31848ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31849
Anton Korobeynikov5124f282008-05-29 17:41:34 +000031850ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031851
31852
31853ac_config_files="$ac_config_files Makefile.config"
31854
31855
31856ac_config_files="$ac_config_files llvm.spec"
31857
31858
31859ac_config_files="$ac_config_files docs/doxygen.cfg"
31860
31861
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000031862ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
31863
31864
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031865ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31866
31867
31868ac_config_commands="$ac_config_commands setup"
31869
31870ac_config_commands="$ac_config_commands Makefile"
31871
31872
31873ac_config_commands="$ac_config_commands Makefile.common"
31874
31875
31876ac_config_commands="$ac_config_commands examples/Makefile"
31877
31878
31879ac_config_commands="$ac_config_commands lib/Makefile"
31880
31881
31882ac_config_commands="$ac_config_commands runtime/Makefile"
31883
31884
31885ac_config_commands="$ac_config_commands test/Makefile"
31886
31887
31888ac_config_commands="$ac_config_commands test/Makefile.tests"
31889
31890
Bill Wendling9b9833f2009-01-04 23:12:30 +000031891ac_config_commands="$ac_config_commands unittests/Makefile"
31892
31893
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031894ac_config_commands="$ac_config_commands tools/Makefile"
31895
31896
31897ac_config_commands="$ac_config_commands utils/Makefile"
31898
31899
31900ac_config_commands="$ac_config_commands projects/Makefile"
31901
31902
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000031903ac_config_commands="$ac_config_commands bindings/Makefile"
31904
31905
31906ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
31907
31908
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031909
31910cat >confcache <<\_ACEOF
31911# This file is a shell script that caches the results of configure
31912# tests run on this system so they can be shared between configure
31913# scripts and configure runs, see configure's option --config-cache.
31914# It is not useful on other systems. If it contains results you don't
31915# want to keep, you may remove or edit it.
31916#
31917# config.status only pays attention to the cache file if you give it
31918# the --recheck option to rerun configure.
31919#
31920# `ac_cv_env_foo' variables (set or unset) will be overridden when
31921# loading this file, other *unset* `ac_cv_foo' will be assigned the
31922# following values.
31923
31924_ACEOF
31925
31926# The following way of writing the cache mishandles newlines in values,
31927# but we know of no workaround that is simple, portable, and efficient.
31928# So, we kill variables containing newlines.
31929# Ultrix sh set writes to stderr and can't be redirected directly,
31930# and sets the high bit in the cache file unless we assign to the vars.
31931(
31932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31933 eval ac_val=\$$ac_var
31934 case $ac_val in #(
31935 *${as_nl}*)
31936 case $ac_var in #(
31937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31938echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31939 esac
31940 case $ac_var in #(
31941 _ | IFS | as_nl) ;; #(
31942 *) $as_unset $ac_var ;;
31943 esac ;;
31944 esac
31945 done
31946
31947 (set) 2>&1 |
31948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31949 *${as_nl}ac_space=\ *)
31950 # `set' does not quote correctly, so add quotes (double-quote
31951 # substitution turns \\\\ into \\, and sed turns \\ into \).
31952 sed -n \
31953 "s/'/'\\\\''/g;
31954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31955 ;; #(
31956 *)
31957 # `set' quotes correctly as required by POSIX, so do not add quotes.
31958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31959 ;;
31960 esac |
31961 sort
31962) |
31963 sed '
31964 /^ac_cv_env_/b end
31965 t clear
31966 :clear
31967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31968 t end
31969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31970 :end' >>confcache
31971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31972 if test -w "$cache_file"; then
31973 test "x$cache_file" != "x/dev/null" &&
31974 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31975echo "$as_me: updating cache $cache_file" >&6;}
31976 cat confcache >$cache_file
31977 else
31978 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31979echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31980 fi
31981fi
31982rm -f confcache
31983
31984test "x$prefix" = xNONE && prefix=$ac_default_prefix
31985# Let make expand exec_prefix.
31986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31987
31988DEFS=-DHAVE_CONFIG_H
31989
31990ac_libobjs=
31991ac_ltlibobjs=
31992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31993 # 1. Remove the extension, and $U if already installed.
31994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31995 ac_i=`echo "$ac_i" | sed "$ac_script"`
31996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31997 # will be set to the directory where LIBOBJS objects are built.
31998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32000done
32001LIBOBJS=$ac_libobjs
32002
32003LTLIBOBJS=$ac_ltlibobjs
32004
32005
32006if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32007 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32008Usually this means the macro was only invoked conditionally." >&5
32009echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32010Usually this means the macro was only invoked conditionally." >&2;}
32011 { (exit 1); exit 1; }; }
32012fi
32013if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32014 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32015Usually this means the macro was only invoked conditionally." >&5
32016echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32017Usually this means the macro was only invoked conditionally." >&2;}
32018 { (exit 1); exit 1; }; }
32019fi
32020
32021: ${CONFIG_STATUS=./config.status}
32022ac_clean_files_save=$ac_clean_files
32023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32024{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32025echo "$as_me: creating $CONFIG_STATUS" >&6;}
32026cat >$CONFIG_STATUS <<_ACEOF
32027#! $SHELL
32028# Generated by $as_me.
32029# Run this file to recreate the current configuration.
32030# Compiler output produced by configure, useful for debugging
32031# configure, is in config.log if it exists.
32032
32033debug=false
32034ac_cs_recheck=false
32035ac_cs_silent=false
32036SHELL=\${CONFIG_SHELL-$SHELL}
32037_ACEOF
32038
32039cat >>$CONFIG_STATUS <<\_ACEOF
32040## --------------------- ##
32041## M4sh Initialization. ##
32042## --------------------- ##
32043
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032044# Be more Bourne compatible
32045DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032046if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32047 emulate sh
32048 NULLCMD=:
32049 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32050 # is contrary to our usage. Disable this feature.
32051 alias -g '${1+"$@"}'='"$@"'
32052 setopt NO_GLOB_SUBST
32053else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032054 case `(set -o) 2>/dev/null` in
32055 *posix*) set -o posix ;;
32056esac
32057
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032058fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032059
32060
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032061
32062
32063# PATH needs CR
32064# Avoid depending upon Character Ranges.
32065as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32066as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32067as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32068as_cr_digits='0123456789'
32069as_cr_alnum=$as_cr_Letters$as_cr_digits
32070
32071# The user is always right.
32072if test "${PATH_SEPARATOR+set}" != set; then
32073 echo "#! /bin/sh" >conf$$.sh
32074 echo "exit 0" >>conf$$.sh
32075 chmod +x conf$$.sh
32076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32077 PATH_SEPARATOR=';'
32078 else
32079 PATH_SEPARATOR=:
32080 fi
32081 rm -f conf$$.sh
32082fi
32083
32084# Support unset when possible.
32085if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32086 as_unset=unset
32087else
32088 as_unset=false
32089fi
32090
32091
32092# IFS
32093# We need space, tab and new line, in precisely that order. Quoting is
32094# there to prevent editors from complaining about space-tab.
32095# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32096# splitting by setting IFS to empty value.)
32097as_nl='
32098'
32099IFS=" "" $as_nl"
32100
32101# Find who we are. Look in the path if we contain no directory separator.
32102case $0 in
32103 *[\\/]* ) as_myself=$0 ;;
32104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105for as_dir in $PATH
32106do
32107 IFS=$as_save_IFS
32108 test -z "$as_dir" && as_dir=.
32109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32110done
32111IFS=$as_save_IFS
32112
32113 ;;
32114esac
32115# We did not find ourselves, most probably we were run as `sh COMMAND'
32116# in which case we are not to be found in the path.
32117if test "x$as_myself" = x; then
32118 as_myself=$0
32119fi
32120if test ! -f "$as_myself"; then
32121 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32122 { (exit 1); exit 1; }
32123fi
32124
32125# Work around bugs in pre-3.0 UWIN ksh.
32126for as_var in ENV MAIL MAILPATH
32127do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32128done
32129PS1='$ '
32130PS2='> '
32131PS4='+ '
32132
32133# NLS nuisances.
32134for as_var in \
32135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32137 LC_TELEPHONE LC_TIME
32138do
32139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32140 eval $as_var=C; export $as_var
32141 else
32142 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32143 fi
32144done
32145
32146# Required to use basename.
32147if expr a : '\(a\)' >/dev/null 2>&1 &&
32148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32149 as_expr=expr
32150else
32151 as_expr=false
32152fi
32153
32154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32155 as_basename=basename
32156else
32157 as_basename=false
32158fi
32159
32160
32161# Name of the executable.
32162as_me=`$as_basename -- "$0" ||
32163$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32164 X"$0" : 'X\(//\)$' \| \
32165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32166echo X/"$0" |
32167 sed '/^.*\/\([^/][^/]*\)\/*$/{
32168 s//\1/
32169 q
32170 }
32171 /^X\/\(\/\/\)$/{
32172 s//\1/
32173 q
32174 }
32175 /^X\/\(\/\).*/{
32176 s//\1/
32177 q
32178 }
32179 s/.*/./; q'`
32180
32181# CDPATH.
32182$as_unset CDPATH
32183
32184
32185
32186 as_lineno_1=$LINENO
32187 as_lineno_2=$LINENO
32188 test "x$as_lineno_1" != "x$as_lineno_2" &&
32189 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32190
32191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32192 # uniformly replaced by the line number. The first 'sed' inserts a
32193 # line-number line after each line using $LINENO; the second 'sed'
32194 # does the real work. The second script uses 'N' to pair each
32195 # line-number line with the line containing $LINENO, and appends
32196 # trailing '-' during substitution so that $LINENO is not a special
32197 # case at line end.
32198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32199 # scripts with optimization help from Paolo Bonzini. Blame Lee
32200 # E. McMahon (1931-1989) for sed's syntax. :-)
32201 sed -n '
32202 p
32203 /[$]LINENO/=
32204 ' <$as_myself |
32205 sed '
32206 s/[$]LINENO.*/&-/
32207 t lineno
32208 b
32209 :lineno
32210 N
32211 :loop
32212 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32213 t loop
32214 s/-\n.*//
32215 ' >$as_me.lineno &&
32216 chmod +x "$as_me.lineno" ||
32217 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32218 { (exit 1); exit 1; }; }
32219
32220 # Don't try to exec as it changes $[0], causing all sort of problems
32221 # (the dirname of $[0] is not the place where we might find the
32222 # original and so on. Autoconf is especially sensitive to this).
32223 . "./$as_me.lineno"
32224 # Exit status is that of the last command.
32225 exit
32226}
32227
32228
32229if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32230 as_dirname=dirname
32231else
32232 as_dirname=false
32233fi
32234
32235ECHO_C= ECHO_N= ECHO_T=
32236case `echo -n x` in
32237-n*)
32238 case `echo 'x\c'` in
32239 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32240 *) ECHO_C='\c';;
32241 esac;;
32242*)
32243 ECHO_N='-n';;
32244esac
32245
32246if expr a : '\(a\)' >/dev/null 2>&1 &&
32247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32248 as_expr=expr
32249else
32250 as_expr=false
32251fi
32252
32253rm -f conf$$ conf$$.exe conf$$.file
32254if test -d conf$$.dir; then
32255 rm -f conf$$.dir/conf$$.file
32256else
32257 rm -f conf$$.dir
32258 mkdir conf$$.dir
32259fi
32260echo >conf$$.file
32261if ln -s conf$$.file conf$$ 2>/dev/null; then
32262 as_ln_s='ln -s'
32263 # ... but there are two gotchas:
32264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32266 # In both cases, we have to default to `cp -p'.
32267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32268 as_ln_s='cp -p'
32269elif ln conf$$.file conf$$ 2>/dev/null; then
32270 as_ln_s=ln
32271else
32272 as_ln_s='cp -p'
32273fi
32274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32275rmdir conf$$.dir 2>/dev/null
32276
32277if mkdir -p . 2>/dev/null; then
32278 as_mkdir_p=:
32279else
32280 test -d ./-p && rmdir ./-p
32281 as_mkdir_p=false
32282fi
32283
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032284if test -x / >/dev/null 2>&1; then
32285 as_test_x='test -x'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032286else
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032287 if ls -dL / >/dev/null 2>&1; then
32288 as_ls_L_option=L
32289 else
32290 as_ls_L_option=
32291 fi
32292 as_test_x='
32293 eval sh -c '\''
32294 if test -d "$1"; then
32295 test -d "$1/.";
32296 else
32297 case $1 in
32298 -*)set "./$1";;
32299 esac;
32300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32301 ???[sx]*):;;*)false;;esac;fi
32302 '\'' sh
32303 '
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032304fi
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032305as_executable_p=$as_test_x
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032306
32307# Sed expression to map a string onto a valid CPP name.
32308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32309
32310# Sed expression to map a string onto a valid variable name.
32311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32312
32313
32314exec 6>&1
32315
32316# Save the log message, to keep $[0] and so on meaningful, and to
32317# report actual input values of CONFIG_FILES etc. instead of their
32318# values after options handling.
32319ac_log="
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032320This file was extended by llvm $as_me 2.6svn, which was
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032321generated by GNU Autoconf 2.61. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032322
32323 CONFIG_FILES = $CONFIG_FILES
32324 CONFIG_HEADERS = $CONFIG_HEADERS
32325 CONFIG_LINKS = $CONFIG_LINKS
32326 CONFIG_COMMANDS = $CONFIG_COMMANDS
32327 $ $0 $@
32328
32329on `(hostname || uname -n) 2>/dev/null | sed 1q`
32330"
32331
32332_ACEOF
32333
32334cat >>$CONFIG_STATUS <<_ACEOF
32335# Files that config.status was made for.
32336config_files="$ac_config_files"
32337config_headers="$ac_config_headers"
32338config_commands="$ac_config_commands"
32339
32340_ACEOF
32341
32342cat >>$CONFIG_STATUS <<\_ACEOF
32343ac_cs_usage="\
32344\`$as_me' instantiates files from templates according to the
32345current configuration.
32346
32347Usage: $0 [OPTIONS] [FILE]...
32348
32349 -h, --help print this help, then exit
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032350 -V, --version print version number and configuration settings, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032351 -q, --quiet do not print progress messages
32352 -d, --debug don't remove temporary files
32353 --recheck update $as_me by reconfiguring in the same conditions
32354 --file=FILE[:TEMPLATE]
32355 instantiate the configuration file FILE
32356 --header=FILE[:TEMPLATE]
32357 instantiate the configuration header FILE
32358
32359Configuration files:
32360$config_files
32361
32362Configuration headers:
32363$config_headers
32364
32365Configuration commands:
32366$config_commands
32367
32368Report bugs to <bug-autoconf@gnu.org>."
32369
32370_ACEOF
32371cat >>$CONFIG_STATUS <<_ACEOF
32372ac_cs_version="\\
Tanya Lattner3fa4a442009-01-22 05:17:59 +000032373llvm config.status 2.6svn
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032374configured by $0, generated by GNU Autoconf 2.61,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032375 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32376
32377Copyright (C) 2006 Free Software Foundation, Inc.
32378This config.status script is free software; the Free Software Foundation
32379gives unlimited permission to copy, distribute and modify it."
32380
32381ac_pwd='$ac_pwd'
32382srcdir='$srcdir'
32383INSTALL='$INSTALL'
32384_ACEOF
32385
32386cat >>$CONFIG_STATUS <<\_ACEOF
32387# If no file are specified by the user, then we need to provide default
32388# value. By we need to know if files were specified by the user.
32389ac_need_defaults=:
32390while test $# != 0
32391do
32392 case $1 in
32393 --*=*)
32394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32396 ac_shift=:
32397 ;;
32398 *)
32399 ac_option=$1
32400 ac_optarg=$2
32401 ac_shift=shift
32402 ;;
32403 esac
32404
32405 case $ac_option in
32406 # Handling of the options.
32407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32408 ac_cs_recheck=: ;;
32409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32410 echo "$ac_cs_version"; exit ;;
32411 --debug | --debu | --deb | --de | --d | -d )
32412 debug=: ;;
32413 --file | --fil | --fi | --f )
32414 $ac_shift
32415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32416 ac_need_defaults=false;;
32417 --header | --heade | --head | --hea )
32418 $ac_shift
32419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32420 ac_need_defaults=false;;
32421 --he | --h)
32422 # Conflict between --help and --header
32423 { echo "$as_me: error: ambiguous option: $1
32424Try \`$0 --help' for more information." >&2
32425 { (exit 1); exit 1; }; };;
32426 --help | --hel | -h )
32427 echo "$ac_cs_usage"; exit ;;
32428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32430 ac_cs_silent=: ;;
32431
32432 # This is an error.
32433 -*) { echo "$as_me: error: unrecognized option: $1
32434Try \`$0 --help' for more information." >&2
32435 { (exit 1); exit 1; }; } ;;
32436
32437 *) ac_config_targets="$ac_config_targets $1"
32438 ac_need_defaults=false ;;
32439
32440 esac
32441 shift
32442done
32443
32444ac_configure_extra_args=
32445
32446if $ac_cs_silent; then
32447 exec 6>/dev/null
32448 ac_configure_extra_args="$ac_configure_extra_args --silent"
32449fi
32450
32451_ACEOF
32452cat >>$CONFIG_STATUS <<_ACEOF
32453if \$ac_cs_recheck; then
32454 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32455 CONFIG_SHELL=$SHELL
32456 export CONFIG_SHELL
32457 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32458fi
32459
32460_ACEOF
32461cat >>$CONFIG_STATUS <<\_ACEOF
32462exec 5>>config.log
32463{
32464 echo
32465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32466## Running $as_me. ##
32467_ASBOX
32468 echo "$ac_log"
32469} >&5
32470
32471_ACEOF
32472cat >>$CONFIG_STATUS <<_ACEOF
32473#
32474# INIT-COMMANDS
32475#
32476llvm_src="${srcdir}"
32477
32478_ACEOF
32479
32480cat >>$CONFIG_STATUS <<\_ACEOF
32481
32482# Handling of arguments.
32483for ac_config_target in $ac_config_targets
32484do
32485 case $ac_config_target in
32486 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32487 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000032488 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032489 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32490 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32491 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000032492 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032493 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32494 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32495 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32496 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32497 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32498 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32499 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32500 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32501 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000032502 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032503 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32504 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32505 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000032506 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32507 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032508
32509 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32510echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32511 { (exit 1); exit 1; }; };;
32512 esac
32513done
32514
32515
32516# If the user did not use the arguments to specify the items to instantiate,
32517# then the envvar interface is used. Set only those that are not.
32518# We use the long form for the default assignment because of an extremely
32519# bizarre bug on SunOS 4.1.3.
32520if $ac_need_defaults; then
32521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32524fi
32525
32526# Have a temporary directory for convenience. Make it in the build tree
32527# simply because there is no reason against having it here, and in addition,
32528# creating and moving files from /tmp can sometimes cause problems.
32529# Hook for its removal unless debugging.
32530# Note that there is a small window in which the directory will not be cleaned:
32531# after its creation but before its name has been assigned to `$tmp'.
32532$debug ||
32533{
32534 tmp=
32535 trap 'exit_status=$?
32536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32537' 0
32538 trap '{ (exit 1); exit 1; }' 1 2 13 15
32539}
32540# Create a (secure) tmp directory for tmp files.
32541
32542{
32543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32544 test -n "$tmp" && test -d "$tmp"
32545} ||
32546{
32547 tmp=./conf$$-$RANDOM
32548 (umask 077 && mkdir "$tmp")
32549} ||
32550{
32551 echo "$me: cannot create a temporary directory in ." >&2
32552 { (exit 1); exit 1; }
32553}
32554
32555#
32556# Set up the sed scripts for CONFIG_FILES section.
32557#
32558
32559# No need to generate the scripts if there are no CONFIG_FILES.
32560# This happens for instance when ./config.status config.h
32561if test -n "$CONFIG_FILES"; then
32562
32563_ACEOF
32564
32565
32566
32567ac_delim='%!_!# '
32568for ac_last_try in false false false false false :; do
32569 cat >conf$$subs.sed <<_ACEOF
32570SHELL!$SHELL$ac_delim
32571PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32572PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32573PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32574PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32575PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32576PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32577exec_prefix!$exec_prefix$ac_delim
32578prefix!$prefix$ac_delim
32579program_transform_name!$program_transform_name$ac_delim
32580bindir!$bindir$ac_delim
32581sbindir!$sbindir$ac_delim
32582libexecdir!$libexecdir$ac_delim
32583datarootdir!$datarootdir$ac_delim
32584datadir!$datadir$ac_delim
32585sysconfdir!$sysconfdir$ac_delim
32586sharedstatedir!$sharedstatedir$ac_delim
32587localstatedir!$localstatedir$ac_delim
32588includedir!$includedir$ac_delim
32589oldincludedir!$oldincludedir$ac_delim
32590docdir!$docdir$ac_delim
32591infodir!$infodir$ac_delim
32592htmldir!$htmldir$ac_delim
32593dvidir!$dvidir$ac_delim
32594pdfdir!$pdfdir$ac_delim
32595psdir!$psdir$ac_delim
32596libdir!$libdir$ac_delim
32597localedir!$localedir$ac_delim
32598mandir!$mandir$ac_delim
32599DEFS!$DEFS$ac_delim
32600ECHO_C!$ECHO_C$ac_delim
32601ECHO_N!$ECHO_N$ac_delim
32602ECHO_T!$ECHO_T$ac_delim
32603LIBS!$LIBS$ac_delim
32604build_alias!$build_alias$ac_delim
32605host_alias!$host_alias$ac_delim
32606target_alias!$target_alias$ac_delim
32607LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32608subdirs!$subdirs$ac_delim
32609build!$build$ac_delim
32610build_cpu!$build_cpu$ac_delim
32611build_vendor!$build_vendor$ac_delim
32612build_os!$build_os$ac_delim
32613host!$host$ac_delim
32614host_cpu!$host_cpu$ac_delim
32615host_vendor!$host_vendor$ac_delim
32616host_os!$host_os$ac_delim
32617target!$target$ac_delim
32618target_cpu!$target_cpu$ac_delim
32619target_vendor!$target_vendor$ac_delim
32620target_os!$target_os$ac_delim
32621OS!$OS$ac_delim
32622LINKALL!$LINKALL$ac_delim
32623NOLINKALL!$NOLINKALL$ac_delim
32624LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32625LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendling025cce52009-03-12 04:10:09 +000032626ARCH!$ARCH$ac_delim
32627ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032628CC!$CC$ac_delim
32629CFLAGS!$CFLAGS$ac_delim
32630LDFLAGS!$LDFLAGS$ac_delim
32631CPPFLAGS!$CPPFLAGS$ac_delim
32632ac_ct_CC!$ac_ct_CC$ac_delim
32633EXEEXT!$EXEEXT$ac_delim
32634OBJEXT!$OBJEXT$ac_delim
32635CPP!$CPP$ac_delim
32636GREP!$GREP$ac_delim
32637EGREP!$EGREP$ac_delim
32638LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32639BUILD_CC!$BUILD_CC$ac_delim
32640BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000032641BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032642CVSBUILD!$CVSBUILD$ac_delim
32643ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000032644ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032645DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32646ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32647EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32648DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32649JIT!$JIT$ac_delim
32650TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32651ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32652ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32653ENABLE_PIC!$ENABLE_PIC$ac_delim
32654TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32655ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32656EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000032657BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032658CXX!$CXX$ac_delim
32659CXXFLAGS!$CXXFLAGS$ac_delim
32660ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewycky912c4622009-02-21 22:38:49 +000032661NM!$NM$ac_delim
32662ifGNUmake!$ifGNUmake$ac_delim
32663LN_S!$LN_S$ac_delim
32664CMP!$CMP$ac_delim
32665CP!$CP$ac_delim
32666DATE!$DATE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032667_ACEOF
32668
32669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32670 break
32671 elif $ac_last_try; then
32672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32673echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32674 { (exit 1); exit 1; }; }
32675 else
32676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32677 fi
32678done
32679
32680ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32681if test -n "$ac_eof"; then
32682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32683 ac_eof=`expr $ac_eof + 1`
32684fi
32685
32686cat >>$CONFIG_STATUS <<_ACEOF
32687cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32689_ACEOF
32690sed '
32691s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32692s/^/s,@/; s/!/@,|#_!!_#|/
32693:n
32694t n
32695s/'"$ac_delim"'$/,g/; t
32696s/$/\\/; p
32697N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32698' >>$CONFIG_STATUS <conf$$subs.sed
32699rm -f conf$$subs.sed
32700cat >>$CONFIG_STATUS <<_ACEOF
32701CEOF$ac_eof
32702_ACEOF
32703
32704
32705ac_delim='%!_!# '
32706for ac_last_try in false false false false false :; do
32707 cat >conf$$subs.sed <<_ACEOF
David Greene19b1cbd2009-04-17 14:50:39 +000032708FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032709MKDIR!$MKDIR$ac_delim
32710MV!$MV$ac_delim
32711RANLIB!$RANLIB$ac_delim
32712RM!$RM$ac_delim
32713SED!$SED$ac_delim
32714TAR!$TAR$ac_delim
32715BINPWD!$BINPWD$ac_delim
32716GRAPHVIZ!$GRAPHVIZ$ac_delim
32717DOT!$DOT$ac_delim
32718GV!$GV$ac_delim
32719DOTTY!$DOTTY$ac_delim
32720PERL!$PERL$ac_delim
32721HAVE_PERL!$HAVE_PERL$ac_delim
32722INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32723INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32724INSTALL_DATA!$INSTALL_DATA$ac_delim
32725BZIP2!$BZIP2$ac_delim
32726DOXYGEN!$DOXYGEN$ac_delim
32727GROFF!$GROFF$ac_delim
32728GZIP!$GZIP$ac_delim
32729POD2HTML!$POD2HTML$ac_delim
32730POD2MAN!$POD2MAN$ac_delim
32731RUNTEST!$RUNTEST$ac_delim
32732TCLSH!$TCLSH$ac_delim
32733ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000032734OCAMLC!$OCAMLC$ac_delim
32735OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000032736OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000032737OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000032738GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032739INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32740INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32741CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32742CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32743LIBADD_DL!$LIBADD_DL$ac_delim
32744ECHO!$ECHO$ac_delim
32745AR!$AR$ac_delim
32746STRIP!$STRIP$ac_delim
32747CXXCPP!$CXXCPP$ac_delim
32748F77!$F77$ac_delim
32749FFLAGS!$FFLAGS$ac_delim
32750ac_ct_F77!$ac_ct_F77$ac_delim
32751LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032752LLVMGCC!$LLVMGCC$ac_delim
32753LLVMGXX!$LLVMGXX$ac_delim
32754USE_UDIS86!$USE_UDIS86$ac_delim
32755HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32756HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32757ALLOCA!$ALLOCA$ac_delim
32758MMAP_FILE!$MMAP_FILE$ac_delim
32759LLVMCC1!$LLVMCC1$ac_delim
32760LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32761LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32762LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32763LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32764LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32765LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32766SHLIBEXT!$SHLIBEXT$ac_delim
32767LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32768LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32769LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32770LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32771LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32772LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32773LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32774LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32775LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32776LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000032777BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32778ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000032779OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000032780ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000032781RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000032782RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032783LIBOBJS!$LIBOBJS$ac_delim
32784LTLIBOBJS!$LTLIBOBJS$ac_delim
32785_ACEOF
32786
David Greene19b1cbd2009-04-17 14:50:39 +000032787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032788 break
32789 elif $ac_last_try; then
32790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32791echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32792 { (exit 1); exit 1; }; }
32793 else
32794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32795 fi
32796done
32797
32798ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32799if test -n "$ac_eof"; then
32800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32801 ac_eof=`expr $ac_eof + 1`
32802fi
32803
32804cat >>$CONFIG_STATUS <<_ACEOF
32805cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32807_ACEOF
32808sed '
32809s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32810s/^/s,@/; s/!/@,|#_!!_#|/
32811:n
32812t n
32813s/'"$ac_delim"'$/,g/; t
32814s/$/\\/; p
32815N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32816' >>$CONFIG_STATUS <conf$$subs.sed
32817rm -f conf$$subs.sed
32818cat >>$CONFIG_STATUS <<_ACEOF
32819:end
32820s/|#_!!_#|//g
32821CEOF$ac_eof
32822_ACEOF
32823
32824
32825# VPATH may cause trouble with some makes, so we remove $(srcdir),
32826# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32827# trailing colons and then remove the whole line if VPATH becomes empty
32828# (actually we leave an empty line to preserve line numbers).
32829if test "x$srcdir" = x.; then
32830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32831s/:*\$(srcdir):*/:/
32832s/:*\${srcdir}:*/:/
32833s/:*@srcdir@:*/:/
32834s/^\([^=]*=[ ]*\):*/\1/
32835s/:*$//
32836s/^[^=]*=[ ]*$//
32837}'
32838fi
32839
32840cat >>$CONFIG_STATUS <<\_ACEOF
32841fi # test -n "$CONFIG_FILES"
32842
32843
32844for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32845do
32846 case $ac_tag in
32847 :[FHLC]) ac_mode=$ac_tag; continue;;
32848 esac
32849 case $ac_mode$ac_tag in
32850 :[FHL]*:*);;
32851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32852echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32853 { (exit 1); exit 1; }; };;
32854 :[FH]-) ac_tag=-:-;;
32855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32856 esac
32857 ac_save_IFS=$IFS
32858 IFS=:
32859 set x $ac_tag
32860 IFS=$ac_save_IFS
32861 shift
32862 ac_file=$1
32863 shift
32864
32865 case $ac_mode in
32866 :L) ac_source=$1;;
32867 :[FH])
32868 ac_file_inputs=
32869 for ac_f
32870 do
32871 case $ac_f in
32872 -) ac_f="$tmp/stdin";;
32873 *) # Look for the file first in the build tree, then in the source tree
32874 # (if the path is not absolute). The absolute path cannot be DOS-style,
32875 # because $ac_f cannot contain `:'.
32876 test -f "$ac_f" ||
32877 case $ac_f in
32878 [\\/$]*) false;;
32879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32880 esac ||
32881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32882echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32883 { (exit 1); exit 1; }; };;
32884 esac
32885 ac_file_inputs="$ac_file_inputs $ac_f"
32886 done
32887
32888 # Let's still pretend it is `configure' which instantiates (i.e., don't
32889 # use $as_me), people would be surprised to read:
32890 # /* config.h. Generated by config.status. */
32891 configure_input="Generated from "`IFS=:
32892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32893 if test x"$ac_file" != x-; then
32894 configure_input="$ac_file. $configure_input"
32895 { echo "$as_me:$LINENO: creating $ac_file" >&5
32896echo "$as_me: creating $ac_file" >&6;}
32897 fi
32898
32899 case $ac_tag in
32900 *:-:* | *:-) cat >"$tmp/stdin";;
32901 esac
32902 ;;
32903 esac
32904
32905 ac_dir=`$as_dirname -- "$ac_file" ||
32906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32907 X"$ac_file" : 'X\(//\)[^/]' \| \
32908 X"$ac_file" : 'X\(//\)$' \| \
32909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32910echo X"$ac_file" |
32911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32912 s//\1/
32913 q
32914 }
32915 /^X\(\/\/\)[^/].*/{
32916 s//\1/
32917 q
32918 }
32919 /^X\(\/\/\)$/{
32920 s//\1/
32921 q
32922 }
32923 /^X\(\/\).*/{
32924 s//\1/
32925 q
32926 }
32927 s/.*/./; q'`
32928 { as_dir="$ac_dir"
32929 case $as_dir in #(
32930 -*) as_dir=./$as_dir;;
32931 esac
32932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32933 as_dirs=
32934 while :; do
32935 case $as_dir in #(
32936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32937 *) as_qdir=$as_dir;;
32938 esac
32939 as_dirs="'$as_qdir' $as_dirs"
32940 as_dir=`$as_dirname -- "$as_dir" ||
32941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32942 X"$as_dir" : 'X\(//\)[^/]' \| \
32943 X"$as_dir" : 'X\(//\)$' \| \
32944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32945echo X"$as_dir" |
32946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32947 s//\1/
32948 q
32949 }
32950 /^X\(\/\/\)[^/].*/{
32951 s//\1/
32952 q
32953 }
32954 /^X\(\/\/\)$/{
32955 s//\1/
32956 q
32957 }
32958 /^X\(\/\).*/{
32959 s//\1/
32960 q
32961 }
32962 s/.*/./; q'`
32963 test -d "$as_dir" && break
32964 done
32965 test -z "$as_dirs" || eval "mkdir $as_dirs"
32966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32967echo "$as_me: error: cannot create directory $as_dir" >&2;}
32968 { (exit 1); exit 1; }; }; }
32969 ac_builddir=.
32970
32971case "$ac_dir" in
32972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32973*)
32974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32975 # A ".." for each directory in $ac_dir_suffix.
32976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32977 case $ac_top_builddir_sub in
32978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32980 esac ;;
32981esac
32982ac_abs_top_builddir=$ac_pwd
32983ac_abs_builddir=$ac_pwd$ac_dir_suffix
32984# for backward compatibility:
32985ac_top_builddir=$ac_top_build_prefix
32986
32987case $srcdir in
32988 .) # We are building in place.
32989 ac_srcdir=.
32990 ac_top_srcdir=$ac_top_builddir_sub
32991 ac_abs_top_srcdir=$ac_pwd ;;
32992 [\\/]* | ?:[\\/]* ) # Absolute name.
32993 ac_srcdir=$srcdir$ac_dir_suffix;
32994 ac_top_srcdir=$srcdir
32995 ac_abs_top_srcdir=$srcdir ;;
32996 *) # Relative name.
32997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32998 ac_top_srcdir=$ac_top_build_prefix$srcdir
32999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33000esac
33001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33002
33003
33004 case $ac_mode in
33005 :F)
33006 #
33007 # CONFIG_FILE
33008 #
33009
33010 case $INSTALL in
33011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33013 esac
33014_ACEOF
33015
33016cat >>$CONFIG_STATUS <<\_ACEOF
33017# If the template does not know about datarootdir, expand it.
33018# FIXME: This hack should be removed a few years after 2.60.
33019ac_datarootdir_hack=; ac_datarootdir_seen=
33020
33021case `sed -n '/datarootdir/ {
33022 p
33023 q
33024}
33025/@datadir@/p
33026/@docdir@/p
33027/@infodir@/p
33028/@localedir@/p
33029/@mandir@/p
33030' $ac_file_inputs` in
33031*datarootdir*) ac_datarootdir_seen=yes;;
33032*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33034echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33035_ACEOF
33036cat >>$CONFIG_STATUS <<_ACEOF
33037 ac_datarootdir_hack='
33038 s&@datadir@&$datadir&g
33039 s&@docdir@&$docdir&g
33040 s&@infodir@&$infodir&g
33041 s&@localedir@&$localedir&g
33042 s&@mandir@&$mandir&g
33043 s&\\\${datarootdir}&$datarootdir&g' ;;
33044esac
33045_ACEOF
33046
33047# Neutralize VPATH when `$srcdir' = `.'.
33048# Shell code in configure.ac might set extrasub.
33049# FIXME: do we really want to maintain this feature?
33050cat >>$CONFIG_STATUS <<_ACEOF
33051 sed "$ac_vpsub
33052$extrasub
33053_ACEOF
33054cat >>$CONFIG_STATUS <<\_ACEOF
33055:t
33056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33057s&@configure_input@&$configure_input&;t t
33058s&@top_builddir@&$ac_top_builddir_sub&;t t
33059s&@srcdir@&$ac_srcdir&;t t
33060s&@abs_srcdir@&$ac_abs_srcdir&;t t
33061s&@top_srcdir@&$ac_top_srcdir&;t t
33062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33063s&@builddir@&$ac_builddir&;t t
33064s&@abs_builddir@&$ac_abs_builddir&;t t
33065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33066s&@INSTALL@&$ac_INSTALL&;t t
33067$ac_datarootdir_hack
33068" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33069
33070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33074which seems to be undefined. Please make sure it is defined." >&5
33075echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33076which seems to be undefined. Please make sure it is defined." >&2;}
33077
33078 rm -f "$tmp/stdin"
33079 case $ac_file in
33080 -) cat "$tmp/out"; rm -f "$tmp/out";;
33081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33082 esac
33083 ;;
33084 :H)
33085 #
33086 # CONFIG_HEADER
33087 #
33088_ACEOF
33089
33090# Transform confdefs.h into a sed script `conftest.defines', that
33091# substitutes the proper values into config.h.in to produce config.h.
33092rm -f conftest.defines conftest.tail
33093# First, append a space to every undef/define line, to ease matching.
33094echo 's/$/ /' >conftest.defines
33095# Then, protect against being on the right side of a sed subst, or in
33096# an unquoted here document, in config.status. If some macros were
33097# called several times there might be several #defines for the same
33098# symbol, which is useless. But do not sort them, since the last
33099# AC_DEFINE must be honored.
33100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33101# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33102# NAME is the cpp macro being defined, VALUE is the value it is being given.
33103# PARAMS is the parameter list in the macro definition--in most cases, it's
33104# just an empty string.
33105ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33106ac_dB='\\)[ (].*,\\1define\\2'
33107ac_dC=' '
33108ac_dD=' ,'
33109
33110uniq confdefs.h |
33111 sed -n '
33112 t rset
33113 :rset
33114 s/^[ ]*#[ ]*define[ ][ ]*//
33115 t ok
33116 d
33117 :ok
33118 s/[\\&,]/\\&/g
33119 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33120 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33121 ' >>conftest.defines
33122
33123# Remove the space that was appended to ease matching.
33124# Then replace #undef with comments. This is necessary, for
33125# example, in the case of _POSIX_SOURCE, which is predefined and required
33126# on some systems where configure will not decide to define it.
33127# (The regexp can be short, since the line contains either #define or #undef.)
33128echo 's/ $//
33129s,^[ #]*u.*,/* & */,' >>conftest.defines
33130
33131# Break up conftest.defines:
33132ac_max_sed_lines=50
33133
33134# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33135# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33136# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33137# et cetera.
33138ac_in='$ac_file_inputs'
33139ac_out='"$tmp/out1"'
33140ac_nxt='"$tmp/out2"'
33141
33142while :
33143do
33144 # Write a here document:
33145 cat >>$CONFIG_STATUS <<_ACEOF
33146 # First, check the format of the line:
33147 cat >"\$tmp/defines.sed" <<\\CEOF
33148/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33149/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33150b
33151:def
33152_ACEOF
33153 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33154 echo 'CEOF
33155 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33156 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33157 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33158 grep . conftest.tail >/dev/null || break
33159 rm -f conftest.defines
33160 mv conftest.tail conftest.defines
33161done
33162rm -f conftest.defines conftest.tail
33163
33164echo "ac_result=$ac_in" >>$CONFIG_STATUS
33165cat >>$CONFIG_STATUS <<\_ACEOF
33166 if test x"$ac_file" != x-; then
33167 echo "/* $configure_input */" >"$tmp/config.h"
33168 cat "$ac_result" >>"$tmp/config.h"
33169 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33171echo "$as_me: $ac_file is unchanged" >&6;}
33172 else
33173 rm -f $ac_file
33174 mv "$tmp/config.h" $ac_file
33175 fi
33176 else
33177 echo "/* $configure_input */"
33178 cat "$ac_result"
33179 fi
33180 rm -f "$tmp/out12"
33181 ;;
33182
33183 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33184echo "$as_me: executing $ac_file commands" >&6;}
33185 ;;
33186 esac
33187
33188
33189 case $ac_file$ac_mode in
33190 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33191 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33192 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33193 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33194 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33195 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33196 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33197 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33198 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33199 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33200 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33201 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33202 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33203 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000033204 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
33205 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033206 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33207 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33208 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33209 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33210 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33211 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000033212 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33213 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33214 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33215 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033216
33217 esac
33218done # for ac_tag
33219
33220
33221{ (exit 0); exit 0; }
33222_ACEOF
33223chmod +x $CONFIG_STATUS
33224ac_clean_files=$ac_clean_files_save
33225
33226
33227# configure is writing to config.log, and then calls config.status.
33228# config.status does its own redirection, appending to config.log.
33229# Unfortunately, on DOS this fails, as config.log is still kept open
33230# by configure, so config.status won't be able to write to it; its
33231# output is simply discarded. So we exec the FD to /dev/null,
33232# effectively closing config.log, so it can be properly (re)opened and
33233# appended to by config.status. When coming back to configure, we
33234# need to make the FD available again.
33235if test "$no_create" != yes; then
33236 ac_cs_success=:
33237 ac_config_status_args=
33238 test "$silent" = yes &&
33239 ac_config_status_args="$ac_config_status_args --quiet"
33240 exec 5>/dev/null
33241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33242 exec 5>>config.log
33243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33244 # would make configure fail if this is the last instruction.
33245 $ac_cs_success || { (exit 1); exit 1; }
33246fi
33247
33248#
33249# CONFIG_SUBDIRS section.
33250#
33251if test "$no_recursion" != yes; then
33252
33253 # Remove --cache-file and --srcdir arguments so they do not pile up.
33254 ac_sub_configure_args=
33255 ac_prev=
33256 eval "set x $ac_configure_args"
33257 shift
33258 for ac_arg
33259 do
33260 if test -n "$ac_prev"; then
33261 ac_prev=
33262 continue
33263 fi
33264 case $ac_arg in
33265 -cache-file | --cache-file | --cache-fil | --cache-fi \
33266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33267 ac_prev=cache_file ;;
33268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33270 | --c=*)
33271 ;;
33272 --config-cache | -C)
33273 ;;
33274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33275 ac_prev=srcdir ;;
33276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33277 ;;
33278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33279 ac_prev=prefix ;;
33280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33281 ;;
33282 *)
33283 case $ac_arg in
33284 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33285 esac
33286 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33287 esac
33288 done
33289
33290 # Always prepend --prefix to ensure using the same prefix
33291 # in subdir configurations.
33292 ac_arg="--prefix=$prefix"
33293 case $ac_arg in
33294 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33295 esac
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000033296 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33297
33298 # Pass --silent
33299 if test "$silent" = yes; then
33300 ac_sub_configure_args="--silent $ac_sub_configure_args"
33301 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033302
33303 ac_popdir=`pwd`
33304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33305
33306 # Do not complain, so a configure script can configure whichever
33307 # parts of a large source tree are present.
33308 test -d "$srcdir/$ac_dir" || continue
33309
33310 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33311 echo "$as_me:$LINENO: $ac_msg" >&5
33312 echo "$ac_msg" >&6
33313 { as_dir="$ac_dir"
33314 case $as_dir in #(
33315 -*) as_dir=./$as_dir;;
33316 esac
33317 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33318 as_dirs=
33319 while :; do
33320 case $as_dir in #(
33321 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33322 *) as_qdir=$as_dir;;
33323 esac
33324 as_dirs="'$as_qdir' $as_dirs"
33325 as_dir=`$as_dirname -- "$as_dir" ||
33326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33327 X"$as_dir" : 'X\(//\)[^/]' \| \
33328 X"$as_dir" : 'X\(//\)$' \| \
33329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33330echo X"$as_dir" |
33331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33332 s//\1/
33333 q
33334 }
33335 /^X\(\/\/\)[^/].*/{
33336 s//\1/
33337 q
33338 }
33339 /^X\(\/\/\)$/{
33340 s//\1/
33341 q
33342 }
33343 /^X\(\/\).*/{
33344 s//\1/
33345 q
33346 }
33347 s/.*/./; q'`
33348 test -d "$as_dir" && break
33349 done
33350 test -z "$as_dirs" || eval "mkdir $as_dirs"
33351 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33352echo "$as_me: error: cannot create directory $as_dir" >&2;}
33353 { (exit 1); exit 1; }; }; }
33354 ac_builddir=.
33355
33356case "$ac_dir" in
33357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33358*)
33359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33360 # A ".." for each directory in $ac_dir_suffix.
33361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33362 case $ac_top_builddir_sub in
33363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33365 esac ;;
33366esac
33367ac_abs_top_builddir=$ac_pwd
33368ac_abs_builddir=$ac_pwd$ac_dir_suffix
33369# for backward compatibility:
33370ac_top_builddir=$ac_top_build_prefix
33371
33372case $srcdir in
33373 .) # We are building in place.
33374 ac_srcdir=.
33375 ac_top_srcdir=$ac_top_builddir_sub
33376 ac_abs_top_srcdir=$ac_pwd ;;
33377 [\\/]* | ?:[\\/]* ) # Absolute name.
33378 ac_srcdir=$srcdir$ac_dir_suffix;
33379 ac_top_srcdir=$srcdir
33380 ac_abs_top_srcdir=$srcdir ;;
33381 *) # Relative name.
33382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33383 ac_top_srcdir=$ac_top_build_prefix$srcdir
33384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33385esac
33386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33387
33388
33389 cd "$ac_dir"
33390
33391 # Check for guested configure; otherwise get Cygnus style configure.
33392 if test -f "$ac_srcdir/configure.gnu"; then
33393 ac_sub_configure=$ac_srcdir/configure.gnu
33394 elif test -f "$ac_srcdir/configure"; then
33395 ac_sub_configure=$ac_srcdir/configure
33396 elif test -f "$ac_srcdir/configure.in"; then
33397 # This should be Cygnus configure.
33398 ac_sub_configure=$ac_aux_dir/configure
33399 else
33400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33401echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33402 ac_sub_configure=
33403 fi
33404
33405 # The recursion is here.
33406 if test -n "$ac_sub_configure"; then
33407 # Make the cache file name correct relative to the subdirectory.
33408 case $cache_file in
33409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33410 *) # Relative name.
33411 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33412 esac
33413
33414 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33415echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33416 # The eval makes quoting arguments work.
33417 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33418 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33420echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33421 { (exit 1); exit 1; }; }
33422 fi
33423
33424 cd "$ac_popdir"
33425 done
33426fi
33427