blob: bdd613bc2726c1ee61669de163ef8c5e1e19f04c [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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#
12# Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
571$*
572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
616 IFS="$lt_save_ifs"
617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerd08ddae2007-09-14 01:24:13 +0000718PACKAGE_VERSION='2.2svn'
719PACKAGE_STRING='llvm 2.2svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
835DEBUG_RUNTIME
836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
840ENABLE_PIC
841TARGETS_TO_BUILD
842ENABLE_CBE_PRINTF_A
843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000888OCAMLDEP
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000902LLVMGCC
903LLVMGXX
904USE_UDIS86
905HAVE_PTHREAD
906HUGE_VAL_SANITY
907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
912LLVMGCCLIBEXEC
913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
915LLVMGCC_LANGS
916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000929OCAML_LIBDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000930LIBOBJS
931LTLIBOBJS'
932ac_subst_files=''
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
944YACC
945YFLAGS
946CXXCPP
947F77
948FFLAGS'
949ac_subdirs_all='projects/sample
950projects/privbracket
951projects/llvm-stacker
952projects/llvm-test
953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
958projects/poolalloc
959projects/llvm-kernel'
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
1344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1349do
1350 eval ac_val=\$$ac_var
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402echo X"$0" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1431fi
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001461\`configure' configures llvm 2.2svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001527 short | recursive ) echo "Configuration of llvm 2.2svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-optimized
1535 --enable-assertions
1536 --enable-expensive-checks
1537
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1543 is NO)
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001552 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001554 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001557 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
1559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
1565 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001566 --with-ocaml-libdir Specify install location for ocaml bindings (default
1567 is stdlib)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001568 --with-tclinclude directory where tcl headers are
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-tags[=TAGS] include additional configurations [automatic]
1573 --with-udis86=<path> Use udis86 external x86 disassembler library
1574
1575Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 CXX C++ compiler command
1584 CXXFLAGS C++ compiler flags
1585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
1590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
1593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
1597Report bugs to <llvmbugs@cs.uiuc.edu>.
1598_ACEOF
1599ac_status=$?
1600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1606 ac_builddir=.
1607
1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
1623
1624case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637esac
1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653fi
1654
1655test -n "$ac_init_help" && exit $ac_status
1656if $ac_init_version; then
1657 cat <<\_ACEOF
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001658llvm configure 2.2svn
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001659generated by GNU Autoconf 2.60
1660
1661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665
1666Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1667_ACEOF
1668 exit
1669fi
1670cat >config.log <<_ACEOF
1671This file contains any messages produced by compilers while
1672running configure, to aid debugging if configure makes a mistake.
1673
Tanya Lattnerd08ddae2007-09-14 01:24:13 +00001674It was created by llvm $as_me 2.2svn, which was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001675generated by GNU Autoconf 2.60. Invocation command line was
1676
1677 $ $0 $@
1678
1679_ACEOF
1680exec 5>>config.log
1681{
1682cat <<_ASUNAME
1683## --------- ##
1684## Platform. ##
1685## --------- ##
1686
1687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695
1696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703
1704_ASUNAME
1705
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712done
1713IFS=$as_save_IFS
1714
1715} >&5
1716
1717cat >&5 <<_ACEOF
1718
1719
1720## ----------- ##
1721## Core tests. ##
1722## ----------- ##
1723
1724_ACEOF
1725
1726
1727# Keep a trace of the command line.
1728# Strip out --no-create and --no-recursion so they do not pile up.
1729# Strip out --silent because we don't want to record it for future runs.
1730# Also quote any args containing shell meta-characters.
1731# Make two passes to allow for proper duplicate-argument suppression.
1732ac_configure_args=
1733ac_configure_args0=
1734ac_configure_args1=
1735ac_must_keep_next=false
1736for ac_pass in 1 2
1737do
1738 for ac_arg
1739 do
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
1745 *\'*)
1746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 2)
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1754 else
1755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1763 ;;
1764 -* ) ac_must_keep_next=true ;;
1765 esac
1766 fi
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 ;;
1769 esac
1770 done
1771done
1772$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774
1775# When interrupted or exit'd, cleanup temporary files, and complete
1776# config.log. We remove comments because anyway the quotes in there
1777# would cause problems or look ugly.
1778# WARNING: Use '\'' to represent an apostrophe within the trap.
1779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1782 {
1783 echo
1784
1785 cat <<\_ASBOX
1786## ---------------- ##
1787## Cache variables. ##
1788## ---------------- ##
1789_ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
1792(
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1814 *)
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ;;
1817 esac |
1818 sort
1819)
1820 echo
1821
1822 cat <<\_ASBOX
1823## ----------------- ##
1824## Output variables. ##
1825## ----------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840## ------------------- ##
1841## File substitutions. ##
1842## ------------------- ##
1843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1854 fi
1855
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858## ----------- ##
1859## confdefs.h. ##
1860## ----------- ##
1861_ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1873' 0
1874for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876done
1877ac_signal=0
1878
1879# confdefs.h avoids OS command line length limits that DEFS can exceed.
1880rm -f -r conftest* confdefs.h
1881
1882# Predefined preprocessor variables.
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_NAME "$PACKAGE_NAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_VERSION "$PACKAGE_VERSION"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_STRING "$PACKAGE_STRING"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906_ACEOF
1907
1908
1909# Let the site file select an alternate cache file if it wants to.
1910# Prefer explicitly selected file to automatically selected ones.
1911if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
1918fi
1919shift
1920for ac_site_file
1921do
1922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1939 esac
1940 fi
1941else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
1950for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987done
1988if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
2028LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2029
2030
2031
2032
2033
2034
2035
2036ac_aux_dir=
2037for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
2042 elif test -f "$ac_dir/install.sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
2046 elif test -f "$ac_dir/shtool"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
2053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2055 { (exit 1); exit 1; }; }
2056fi
2057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
2066
2067
2068if test ${srcdir} != "." ; then
2069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2071echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074fi
2075
2076for i in `ls ${srcdir}/projects`
2077do
2078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
2080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
2082 ;;
2083 privbracket) subdirs="$subdirs projects/privbracket"
2084 ;;
2085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2086 ;;
2087 llvm-test) subdirs="$subdirs projects/llvm-test"
2088 ;;
2089 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2090;;
2091 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2092 ;;
2093 llvm-java) subdirs="$subdirs projects/llvm-java"
2094 ;;
2095 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2096 ;;
2097 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2098 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002099 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002100 ;;
2101 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2102 ;;
2103 *)
2104 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2105echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2106 ;;
2107 esac
2108 fi
2109done
2110
2111
2112# Make sure we can run config.sub.
2113$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2116 { (exit 1); exit 1; }; }
2117
2118{ echo "$as_me:$LINENO: checking build system type" >&5
2119echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2120if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 ac_build_alias=$build_alias
2124test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126test "x$ac_build_alias" = x &&
2127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
2130ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2134
2135fi
2136{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137echo "${ECHO_T}$ac_cv_build" >&6; }
2138case $ac_cv_build in
2139*-*-*) ;;
2140*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143esac
2144build=$ac_cv_build
2145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_build
2147shift
2148build_cpu=$1
2149build_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153build_os=$*
2154IFS=$ac_save_IFS
2155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2156
2157
2158{ echo "$as_me:$LINENO: checking host system type" >&5
2159echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2160if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2170fi
2171
2172fi
2173{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174echo "${ECHO_T}$ac_cv_host" >&6; }
2175case $ac_cv_host in
2176*-*-*) ;;
2177*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180esac
2181host=$ac_cv_host
2182ac_save_IFS=$IFS; IFS='-'
2183set x $ac_cv_host
2184shift
2185host_cpu=$1
2186host_vendor=$2
2187shift; shift
2188# Remember, the first character of IFS is used to create $*,
2189# except with old shells:
2190host_os=$*
2191IFS=$ac_save_IFS
2192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2193
2194
2195{ echo "$as_me:$LINENO: checking target system type" >&5
2196echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2197if test "${ac_cv_target+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200 if test "x$target_alias" = x; then
2201 ac_cv_target=$ac_cv_host
2202else
2203 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2204 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2205echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2206 { (exit 1); exit 1; }; }
2207fi
2208
2209fi
2210{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2211echo "${ECHO_T}$ac_cv_target" >&6; }
2212case $ac_cv_target in
2213*-*-*) ;;
2214*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2215echo "$as_me: error: invalid value of canonical target" >&2;}
2216 { (exit 1); exit 1; }; };;
2217esac
2218target=$ac_cv_target
2219ac_save_IFS=$IFS; IFS='-'
2220set x $ac_cv_target
2221shift
2222target_cpu=$1
2223target_vendor=$2
2224shift; shift
2225# Remember, the first character of IFS is used to create $*,
2226# except with old shells:
2227target_os=$*
2228IFS=$ac_save_IFS
2229case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2230
2231
2232# The aliases save the names the user supplied, while $host etc.
2233# will get canonicalized.
2234test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2238
2239{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2240echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2241if test "${llvm_cv_os_type+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244 case $host in
2245 *-*-aix*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="AIX"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-irix*)
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="IRIX"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-cygwin*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="Cygwin"
2259 llvm_cv_platform_type="Unix" ;;
2260 *-*-darwin*)
2261 llvm_cv_link_all_option="-Wl,-all_load"
2262 llvm_cv_link_all_option="-Wl,-noall_load"
2263 llvm_cv_os_type="Darwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-freebsd*)
2266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268 llvm_cv_os_type="FreeBSD"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-openbsd*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="OpenBSD"
2274 llvm_cv_platform_type="Unix" ;;
2275 *-*-netbsd*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="NetBSD"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-hpux*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="HP-UX"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-interix*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Interix"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-linux*)
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="Linux"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-solaris*)
2296 llvm_cv_link_all_option="-Wl,-z,allextract"
2297 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2298 llvm_cv_os_type="SunOS"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-win32*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="Win32"
2304 llvm_cv_platform_type="Win32" ;;
2305 *-*-mingw*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="MingW"
2309 llvm_cv_platform_type="Win32" ;;
2310 *)
2311 llvm_cv_link_all_option=""
2312 llvm_cv_no_link_all_option=""
2313 llvm_cv_os_type="Unknown"
2314 llvm_cv_platform_type="Unknown" ;;
2315esac
2316fi
2317{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2318echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2319
2320if test "$llvm_cv_os_type" = "Unknown" ; then
2321 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2322echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2323 { (exit 1); exit 1; }; }
2324fi
2325
2326OS=$llvm_cv_os_type
2327
2328
2329LINKALL=$llvm_cv_link_all_option
2330
2331NOLINKALL=$llvm_cv_no_link_all_option
2332
2333
2334case $llvm_cv_platform_type in
2335 Unix)
2336
2337cat >>confdefs.h <<\_ACEOF
2338#define LLVM_ON_UNIX 1
2339_ACEOF
2340
2341 LLVM_ON_UNIX=1
2342
2343 LLVM_ON_WIN32=0
2344
2345 ;;
2346 Win32)
2347
2348cat >>confdefs.h <<\_ACEOF
2349#define LLVM_ON_WIN32 1
2350_ACEOF
2351
2352 LLVM_ON_UNIX=0
2353
2354 LLVM_ON_WIN32=1
2355
2356 ;;
2357esac
2358
2359{ echo "$as_me:$LINENO: checking target architecture" >&5
2360echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2361if test "${llvm_cv_target_arch+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 case $target in
2365 i?86-*) llvm_cv_target_arch="x86" ;;
2366 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2367 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2368 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2369 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2370 ia64-*) llvm_cv_target_arch="IA64" ;;
2371 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002372 mips-*) llvm_cv_target_arch="Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002373 *) llvm_cv_target_arch="Unknown" ;;
2374esac
2375fi
2376{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2377echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2378
2379if test "$llvm_cv_target_arch" = "Unknown" ; then
2380 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2381echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2382fi
2383
2384ARCH=$llvm_cv_target_arch
2385
2386
2387ac_ext=c
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415done
2416IFS=$as_save_IFS
2417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
2424else
2425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
2427fi
2428
2429
2430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
2464else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
2467fi
2468
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
2474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
2484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491set dummy ${ac_tool_prefix}cc; ac_word=$2
2492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
2513IFS=$as_save_IFS
2514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
2521else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
2524fi
2525
2526
2527 fi
2528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
2532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557done
2558IFS=$as_save_IFS
2559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
2578else
2579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610done
2611done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
2620else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
2623fi
2624
2625
2626 test -n "$CC" && break
2627 done
2628fi
2629if test -z "$CC"; then
2630 ac_ct_CC=$CC
2631 for ac_prog in cl.exe
2632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
2635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
2664else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
2667fi
2668
2669
2670 test -n "$ac_ct_CC" && break
2671done
2672
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
2688fi
2689
2690fi
2691
2692
2693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2698
2699# Provide some information about the compiler.
2700echo "$as_me:$LINENO: checking for C compiler version" >&5
2701ac_compiler=`set X $ac_compile; echo $2`
2702{ (ac_try="$ac_compiler --version >&5"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732
2733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
2739
2740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
2749ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
2753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
2765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
2775if { (ac_try="$ac_link_default"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
2790for ac_file in $ac_files
2791do
2792 test -f "$ac_file" || continue
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 ;;
2796 [ab].out )
2797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
2800 *.* )
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
2810 break;;
2811 * )
2812 break;;
2813 esac
2814done
2815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
2817else
2818 echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2826fi
2827
2828ac_exeext=$ac_cv_exeext
2829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
2831
2832# Check that the compiler produces executables we can run. If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868ac_clean_files=$ac_clean_files_save
2869# Check that the compiler produces executables we can run. If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
2892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 break;;
2898 * ) break;;
2899 esac
2900done
2901else
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2907fi
2908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
2916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927
2928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
2956 echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
2968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
2970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
2972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h. */
2983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030else
3031 echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 ac_compiler_gnu=no
3035fi
3036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040fi
3041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043GCC=`test $ac_compiler_gnu = yes && echo yes`
3044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
3046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 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
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
3221fi
3222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224fi
3225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3241 fi
3242else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3247 fi
3248fi
3249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 ac_cv_prog_cc_c89=no
3255ac_save_CC=$CC
3256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
3294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
3299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
3313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315do
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361done
3362rm -f conftest.$ac_ext
3363CC=$ac_save_CC
3364
3365fi
3366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
3374 *)
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378esac
3379
3380
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3398fi
3399if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 do
3406 ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426 Syntax error
3427_ACEOF
3428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
3447else
3448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451 :
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 # Broken: fails on valid input.
3457continue
3458fi
3459
3460rm -f conftest.err conftest.$ac_ext
3461
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
3470#include <ac_nonexistent.h>
3471_ACEOF
3472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496continue
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
3505
3506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512 break
3513fi
3514
3515 done
3516 ac_cv_prog_CPP=$CPP
3517
3518fi
3519 CPP=$ac_cv_prog_CPP
3520else
3521 ac_cv_prog_CPP=$CPP
3522fi
3523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
3525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
3547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
3566else
3567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570 :
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 # Broken: fails on valid input.
3576continue
3577fi
3578
3579rm -f conftest.err conftest.$ac_ext
3580
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
3591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3615continue
3616else
3617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
3624
3625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
3630if $ac_preproc_ok; then
3631 :
3632else
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3638fi
3639
3640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652 # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 ac_path_GREP_found=false
3659# Loop through the user's path and test for each of PROGNAME-LIST
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3690 fi
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
3697
3698 $ac_path_GREP_found && break 3
3699 done
3700done
3701
3702done
3703IFS=$as_save_IFS
3704
3705
3706fi
3707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
3715else
3716 ac_cv_path_GREP=$GREP
3717fi
3718
3719
3720fi
3721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3724
3725
3726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
3734 # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 ac_path_EGREP_found=false
3741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757 ac_count=0
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 while :
3760 do
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3772 fi
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
3779
3780 $ac_path_EGREP_found && break 3
3781 done
3782done
3783
3784done
3785IFS=$as_save_IFS
3786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3795fi
3796
3797else
3798 ac_cv_path_EGREP=$EGREP
3799fi
3800
3801
3802 fi
3803fi
3804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3807
3808
3809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
3825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
3832_ACEOF
3833rm -f conftest.$ac_objext
3834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_header_stdc=no
3873fi
3874
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
3885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3890 :
3891else
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3911 :
3912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3922 :
3923else
3924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930#include <ctype.h>
3931#include <stdlib.h>
3932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
3936# define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3951 return 2;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest$ac_exeext
3956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 :
3976else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_header_stdc=no
3983fi
3984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985fi
3986
3987
3988fi
3989fi
3990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992if test $ac_cv_header_stdc = yes; then
3993
3994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
3997
3998fi
3999
4000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079_ACEOF
4080
4081fi
4082
4083done
4084
4085
4086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098#include <sys/types.h>
4099#include <sys/param.h>
4100
4101int
4102main ()
4103{
4104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
4107
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153#include <sys/types.h>
4154#include <sys/param.h>
4155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161#endif
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4202else
4203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230int
4231main ()
4232{
4233 _ascii (); _ebcdic ();
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4281 fi
4282fi
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287
4288fi
4289
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
4292 cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
4303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4305 {
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
4311
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4337else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
4344fi
4345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346fi
4347
4348
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4358 ;;
4359 no)
4360 ENDIAN=little
4361 ;;
4362 *)
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368esac
4369
4370
4371if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4373
4374
4375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382else
4383 ac_build_prefix=${build_alias}-
4384
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
4387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
4416else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
4419fi
4420
4421
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
4425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
4454else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
4457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
4463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471 ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4482 fi
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487done
4488done
4489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501 fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
4509else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
4512fi
4513
4514
4515 fi
4516 fi
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4539 fi
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549ac_build_exeext=$BUILD_EXEEXT
4550
4551else
4552 LLVM_CROSS_COMPILING=0
4553
4554fi
4555
4556if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4557 cvsbuild="yes"
4558 optimize="no"
4559 CVSBUILD=CVSBUILD=1
4560
4561else
4562 cvsbuild="no"
4563 optimize="yes"
4564fi
4565
4566
4567# Check whether --enable-optimized was given.
4568if test "${enable_optimized+set}" = set; then
4569 enableval=$enable_optimized;
4570else
4571 enableval=$optimize
4572fi
4573
4574if test ${enableval} = "no" ; then
4575 ENABLE_OPTIMIZED=
4576
4577else
4578 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4579
4580fi
4581
4582# Check whether --enable-assertions was given.
4583if test "${enable_assertions+set}" = set; then
4584 enableval=$enable_assertions;
4585else
4586 enableval="yes"
4587fi
4588
4589if test ${enableval} = "yes" ; then
4590 DISABLE_ASSERTIONS=
4591
4592else
4593 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4594
4595fi
4596
4597# Check whether --enable-expensive-checks was given.
4598if test "${enable_expensive_checks+set}" = set; then
4599 enableval=$enable_expensive_checks;
4600else
4601 enableval="no"
4602fi
4603
4604if test ${enableval} = "yes" ; then
4605 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4606
4607 EXPENSIVE_CHECKS=yes
4608
4609else
4610 ENABLE_EXPENSIVE_CHECKS=
4611
4612 EXPENSIVE_CHECKS=no
4613
4614fi
4615
4616# Check whether --enable-debug-runtime was given.
4617if test "${enable_debug_runtime+set}" = set; then
4618 enableval=$enable_debug_runtime;
4619else
4620 enableval=no
4621fi
4622
4623if test ${enableval} = "no" ; then
4624 DEBUG_RUNTIME=
4625
4626else
4627 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4628
4629fi
4630
4631# Check whether --enable-jit was given.
4632if test "${enable_jit+set}" = set; then
4633 enableval=$enable_jit;
4634else
4635 enableval=default
4636fi
4637
4638if test ${enableval} = "no"
4639then
4640 JIT=
4641
4642else
4643 case "$llvm_cv_target_arch" in
4644 x86) TARGET_HAS_JIT=1
4645 ;;
4646 Sparc) TARGET_HAS_JIT=0
4647 ;;
4648 PowerPC) TARGET_HAS_JIT=1
4649 ;;
4650 x86_64) TARGET_HAS_JIT=1
4651 ;;
4652 Alpha) TARGET_HAS_JIT=1
4653 ;;
4654 IA64) TARGET_HAS_JIT=0
4655 ;;
4656 ARM) TARGET_HAS_JIT=0
4657 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004658 Mips) TARGET_HAS_JIT=0
4659 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004660 *) TARGET_HAS_JIT=0
4661 ;;
4662 esac
4663fi
4664
4665# Check whether --enable-doxygen was given.
4666if test "${enable_doxygen+set}" = set; then
4667 enableval=$enable_doxygen;
4668else
4669 enableval=default
4670fi
4671
4672case "$enableval" in
4673 yes) ENABLE_DOXYGEN=1
4674 ;;
4675 no) ENABLE_DOXYGEN=0
4676 ;;
4677 default) ENABLE_DOXYGEN=0
4678 ;;
4679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4680echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682esac
4683
4684# Check whether --enable-threads was given.
4685if test "${enable_threads+set}" = set; then
4686 enableval=$enable_threads;
4687else
4688 enableval=default
4689fi
4690
4691case "$enableval" in
4692 yes) ENABLE_THREADS=1
4693 ;;
4694 no) ENABLE_THREADS=0
4695 ;;
4696 default) ENABLE_THREADS=1
4697 ;;
4698 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4699echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4700 { (exit 1); exit 1; }; } ;;
4701esac
4702
4703cat >>confdefs.h <<_ACEOF
4704#define ENABLE_THREADS $ENABLE_THREADS
4705_ACEOF
4706
4707
4708# Check whether --enable-pic was given.
4709if test "${enable_pic+set}" = set; then
4710 enableval=$enable_pic;
4711else
4712 enableval=default
4713fi
4714
4715case "$enableval" in
4716 yes) ENABLE_PIC=1
4717 ;;
4718 no) ENABLE_PIC=0
4719 ;;
4720 default) ENABLE_PIC=0
4721 ;;
4722 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4723echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4724 { (exit 1); exit 1; }; } ;;
4725esac
4726
4727cat >>confdefs.h <<_ACEOF
4728#define ENABLE_PIC $ENABLE_PIC
4729_ACEOF
4730
4731
4732TARGETS_TO_BUILD=""
4733# Check whether --enable-targets was given.
4734if test "${enable_targets+set}" = set; then
4735 enableval=$enable_targets;
4736else
4737 enableval=all
4738fi
4739
4740case "$enableval" in
Tanya Lattner81915b12007-08-29 16:38:16 +00004741 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004742 host-only)
4743 case "$llvm_cv_target_arch" in
4744 x86) TARGETS_TO_BUILD="X86" ;;
4745 x86_64) TARGETS_TO_BUILD="X86" ;;
4746 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4747 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4748 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4749 IA64) TARGETS_TO_BUILD="IA64" ;;
4750 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004751 Mips) TARGETS_TO_BUILD="Mips" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004752 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4753echo "$as_me: error: Can not set target to build" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4756 ;;
4757 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4758 case "$a_target" in
4759 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4760 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4761 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4762 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4763 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4764 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4765 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004766 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004767 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4768echo "$as_me: error: Unrecognized target $a_target" >&2;}
4769 { (exit 1); exit 1; }; } ;;
4770 esac
4771 done
4772 ;;
4773esac
4774TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4775TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4776
4777
4778# Check whether --enable-cbe-printf-a was given.
4779if test "${enable_cbe_printf_a+set}" = set; then
4780 enableval=$enable_cbe_printf_a;
4781else
4782 enableval=default
4783fi
4784
4785case "$enableval" in
4786 yes) ENABLE_CBE_PRINTF_A=1
4787 ;;
4788 no) ENABLE_CBE_PRINTF_A=0
4789 ;;
4790 default) ENABLE_CBE_PRINTF_A=1
4791 ;;
4792 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4793echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4794 { (exit 1); exit 1; }; } ;;
4795esac
4796
4797cat >>confdefs.h <<_ACEOF
4798#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4799_ACEOF
4800
4801
4802
4803# Check whether --with-llvmgccdir was given.
4804if test "${with_llvmgccdir+set}" = set; then
4805 withval=$with_llvmgccdir;
4806else
4807 withval=default
4808fi
4809
4810case "$withval" in
4811 default) WITH_LLVMGCCDIR=default ;;
4812 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4813 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4814echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4815 { (exit 1); exit 1; }; } ;;
4816esac
4817
4818
4819# Check whether --with-extra-options was given.
4820if test "${with_extra_options+set}" = set; then
4821 withval=$with_extra_options;
4822else
4823 withval=default
4824fi
4825
4826case "$withval" in
4827 default) EXTRA_OPTIONS= ;;
4828 *) EXTRA_OPTIONS=$withval ;;
4829esac
4830EXTRA_OPTIONS=$EXTRA_OPTIONS
4831
4832
Gordon Henriksen016ec472007-10-02 09:50:32 +00004833# Check whether --enable-bindings was given.
4834if test "${enable_bindings+set}" = set; then
4835 enableval=$enable_bindings;
4836else
4837 enableval=default
4838fi
4839
4840BINDINGS_TO_BUILD=""
4841case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00004842 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00004843 all ) BINDINGS_TO_BUILD="ocaml" ;;
4844 none | no) BINDINGS_TO_BUILD="" ;;
4845 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4846 case "$a_binding" in
4847 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4848 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4849echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4851 esac
4852 done
4853 ;;
4854esac
4855
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004856
Gordon Henriksen058a4c62007-10-02 16:42:22 +00004857# Check whether --with-ocaml-libdir was given.
4858if test "${with_ocaml_libdir+set}" = set; then
4859 withval=$with_ocaml_libdir;
4860else
4861 withval=auto
4862fi
4863
4864case "$withval" in
4865 auto) with_ocaml_libdir="$withval" ;;
4866 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4867 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4868echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4870esac
4871
4872
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004873ac_ext=c
4874ac_cpp='$CPP $CPPFLAGS'
4875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4879echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4880# On Suns, sometimes $CPP names a directory.
4881if test -n "$CPP" && test -d "$CPP"; then
4882 CPP=
4883fi
4884if test -z "$CPP"; then
4885 if test "${ac_cv_prog_CPP+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 # Double quotes because CPP needs to be expanded
4889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4890 do
4891 ac_preproc_ok=false
4892for ac_c_preproc_warn_flag in '' yes
4893do
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
4898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
4906#ifdef __STDC__
4907# include <limits.h>
4908#else
4909# include <assert.h>
4910#endif
4911 Syntax error
4912_ACEOF
4913if { (ac_try="$ac_cpp conftest.$ac_ext"
4914case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917esac
4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null; then
4926 if test -s conftest.err; then
4927 ac_cpp_err=$ac_c_preproc_warn_flag
4928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929 else
4930 ac_cpp_err=
4931 fi
4932else
4933 ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
4936 :
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 # Broken: fails on valid input.
4942continue
4943fi
4944
4945rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955#include <ac_nonexistent.h>
4956_ACEOF
4957if { (ac_try="$ac_cpp conftest.$ac_ext"
4958case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961esac
4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null; then
4970 if test -s conftest.err; then
4971 ac_cpp_err=$ac_c_preproc_warn_flag
4972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4973 else
4974 ac_cpp_err=
4975 fi
4976else
4977 ac_cpp_err=yes
4978fi
4979if test -z "$ac_cpp_err"; then
4980 # Broken: success on invalid input.
4981continue
4982else
4983 echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 # Passes both tests.
4987ac_preproc_ok=:
4988break
4989fi
4990
4991rm -f conftest.err conftest.$ac_ext
4992
4993done
4994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995rm -f conftest.err conftest.$ac_ext
4996if $ac_preproc_ok; then
4997 break
4998fi
4999
5000 done
5001 ac_cv_prog_CPP=$CPP
5002
5003fi
5004 CPP=$ac_cv_prog_CPP
5005else
5006 ac_cv_prog_CPP=$CPP
5007fi
5008{ echo "$as_me:$LINENO: result: $CPP" >&5
5009echo "${ECHO_T}$CPP" >&6; }
5010ac_preproc_ok=false
5011for ac_c_preproc_warn_flag in '' yes
5012do
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
5025#ifdef __STDC__
5026# include <limits.h>
5027#else
5028# include <assert.h>
5029#endif
5030 Syntax error
5031_ACEOF
5032if { (ac_try="$ac_cpp conftest.$ac_ext"
5033case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5048 else
5049 ac_cpp_err=
5050 fi
5051else
5052 ac_cpp_err=yes
5053fi
5054if test -z "$ac_cpp_err"; then
5055 :
5056else
5057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 # Broken: fails on valid input.
5061continue
5062fi
5063
5064rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h. */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h. */
5074#include <ac_nonexistent.h>
5075_ACEOF
5076if { (ac_try="$ac_cpp conftest.$ac_ext"
5077case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080esac
5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5094 fi
5095else
5096 ac_cpp_err=yes
5097fi
5098if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5100continue
5101else
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 # Passes both tests.
5106ac_preproc_ok=:
5107break
5108fi
5109
5110rm -f conftest.err conftest.$ac_ext
5111
5112done
5113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114rm -f conftest.err conftest.$ac_ext
5115if $ac_preproc_ok; then
5116 :
5117else
5118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5119See \`config.log' for more details." >&5
5120echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5121See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5123fi
5124
5125ac_ext=c
5126ac_cpp='$CPP $CPPFLAGS'
5127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136if test -n "$ac_tool_prefix"; then
5137 for ac_prog in gcc
5138 do
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143if test "${ac_cv_prog_CC+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161done
5162IFS=$as_save_IFS
5163
5164fi
5165fi
5166CC=$ac_cv_prog_CC
5167if test -n "$CC"; then
5168 { echo "$as_me:$LINENO: result: $CC" >&5
5169echo "${ECHO_T}$CC" >&6; }
5170else
5171 { echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6; }
5173fi
5174
5175
5176 test -n "$CC" && break
5177 done
5178fi
5179if test -z "$CC"; then
5180 ac_ct_CC=$CC
5181 for ac_prog in gcc
5182do
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184set dummy $ac_prog; ac_word=$2
5185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_ac_ct_CC="$ac_prog"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206IFS=$as_save_IFS
5207
5208fi
5209fi
5210ac_ct_CC=$ac_cv_prog_ac_ct_CC
5211if test -n "$ac_ct_CC"; then
5212 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5213echo "${ECHO_T}$ac_ct_CC" >&6; }
5214else
5215 { echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6; }
5217fi
5218
5219
5220 test -n "$ac_ct_CC" && break
5221done
5222
5223 if test "x$ac_ct_CC" = x; then
5224 CC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5229whose name does not start with the host triplet. If you think this
5230configuration is useful to you, please write to autoconf@gnu.org." >&5
5231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5232whose name does not start with the host triplet. If you think this
5233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5234ac_tool_warned=yes ;;
5235esac
5236 CC=$ac_ct_CC
5237 fi
5238fi
5239
5240
5241test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5242See \`config.log' for more details." >&5
5243echo "$as_me: error: no acceptable C compiler found in \$PATH
5244See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5246
5247# Provide some information about the compiler.
5248echo "$as_me:$LINENO: checking for C compiler version" >&5
5249ac_compiler=`set X $ac_compile; echo $2`
5250{ (ac_try="$ac_compiler --version >&5"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compiler --version >&5") 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260{ (ac_try="$ac_compiler -v >&5"
5261case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264esac
5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compiler -v >&5") 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }
5270{ (ac_try="$ac_compiler -V >&5"
5271case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274esac
5275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compiler -V >&5") 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280
5281{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5282echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5283if test "${ac_cv_c_compiler_gnu+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292
5293int
5294main ()
5295{
5296#ifndef __GNUC__
5297 choke me
5298#endif
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_try") 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (case "(($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_try") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_compiler_gnu=yes
5339else
5340 echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_compiler_gnu=no
5344fi
5345
5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347ac_cv_c_compiler_gnu=$ac_compiler_gnu
5348
5349fi
5350{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5351echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5352GCC=`test $ac_compiler_gnu = yes && echo yes`
5353ac_test_CFLAGS=${CFLAGS+set}
5354ac_save_CFLAGS=$CFLAGS
5355{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5356echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5357if test "${ac_cv_prog_cc_g+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360 ac_save_c_werror_flag=$ac_c_werror_flag
5361 ac_c_werror_flag=yes
5362 ac_cv_prog_cc_g=no
5363 CFLAGS="-g"
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext
5380if { (ac_try="$ac_compile"
5381case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397esac
5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_try") 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_prog_cc_g=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 CFLAGS=""
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425
5426int
5427main ()
5428{
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 :
5469else
5470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_c_werror_flag=$ac_save_c_werror_flag
5474 CFLAGS="-g"
5475 cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
5481
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (ac_try="$ac_compile"
5492case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5505 { (case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_try") 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_prog_cc_g=yes
5525else
5526 echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529
5530fi
5531
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_c_werror_flag=$ac_save_c_werror_flag
5540fi
5541{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5542echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5543if test "$ac_test_CFLAGS" = set; then
5544 CFLAGS=$ac_save_CFLAGS
5545elif test $ac_cv_prog_cc_g = yes; then
5546 if test "$GCC" = yes; then
5547 CFLAGS="-g -O2"
5548 else
5549 CFLAGS="-g"
5550 fi
5551else
5552 if test "$GCC" = yes; then
5553 CFLAGS="-O2"
5554 else
5555 CFLAGS=
5556 fi
5557fi
5558{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5559echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5560if test "${ac_cv_prog_cc_c89+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 ac_cv_prog_cc_c89=no
5564ac_save_CC=$CC
5565cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h. */
5571#include <stdarg.h>
5572#include <stdio.h>
5573#include <sys/types.h>
5574#include <sys/stat.h>
5575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5576struct buf { int x; };
5577FILE * (*rcsopen) (struct buf *, struct stat *, int);
5578static char *e (p, i)
5579 char **p;
5580 int i;
5581{
5582 return p[i];
5583}
5584static char *f (char * (*g) (char **, int), char **p, ...)
5585{
5586 char *s;
5587 va_list v;
5588 va_start (v,p);
5589 s = g (p, va_arg (v,int));
5590 va_end (v);
5591 return s;
5592}
5593
5594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5595 function prototypes and stuff, but not '\xHH' hex character constants.
5596 These don't provoke an error unfortunately, instead are silently treated
5597 as 'x'. The following induces an error, until -std is added to get
5598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5599 array size at least. It's necessary to write '\x00'==0 to get something
5600 that's true only with -std. */
5601int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5602
5603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5604 inside strings and character constants. */
5605#define FOO(x) 'x'
5606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5607
5608int test (int i, double x);
5609struct s1 {int (*f) (int a);};
5610struct s2 {int (*f) (double a);};
5611int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5612int argc;
5613char **argv;
5614int
5615main ()
5616{
5617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5624do
5625 CC="$ac_save_CC $ac_arg"
5626 rm -f conftest.$ac_objext
5627if { (ac_try="$ac_compile"
5628case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631esac
5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_try") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_prog_cc_c89=$ac_arg
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665
5666fi
5667
5668rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5670done
5671rm -f conftest.$ac_ext
5672CC=$ac_save_CC
5673
5674fi
5675# AC_CACHE_VAL
5676case "x$ac_cv_prog_cc_c89" in
5677 x)
5678 { echo "$as_me:$LINENO: result: none needed" >&5
5679echo "${ECHO_T}none needed" >&6; } ;;
5680 xno)
5681 { echo "$as_me:$LINENO: result: unsupported" >&5
5682echo "${ECHO_T}unsupported" >&6; } ;;
5683 *)
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5686echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5687esac
5688
5689
5690ac_ext=c
5691ac_cpp='$CPP $CPPFLAGS'
5692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695
5696ac_ext=cpp
5697ac_cpp='$CXXCPP $CPPFLAGS'
5698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701if test -z "$CXX"; then
5702 if test -n "$CCC"; then
5703 CXX=$CCC
5704 else
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in g++
5707 do
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712if test "${ac_cv_prog_CXX+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 if test -n "$CXX"; then
5716 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735CXX=$ac_cv_prog_CXX
5736if test -n "$CXX"; then
5737 { echo "$as_me:$LINENO: result: $CXX" >&5
5738echo "${ECHO_T}$CXX" >&6; }
5739else
5740 { echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6; }
5742fi
5743
5744
5745 test -n "$CXX" && break
5746 done
5747fi
5748if test -z "$CXX"; then
5749 ac_ct_CXX=$CXX
5750 for ac_prog in g++
5751do
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753set dummy $ac_prog; ac_word=$2
5754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 if test -n "$ac_ct_CXX"; then
5760 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_CXX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5780if test -n "$ac_ct_CXX"; then
5781 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5782echo "${ECHO_T}$ac_ct_CXX" >&6; }
5783else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
5786fi
5787
5788
5789 test -n "$ac_ct_CXX" && break
5790done
5791
5792 if test "x$ac_ct_CXX" = x; then
5793 CXX="g++"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796yes:)
5797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5798whose name does not start with the host triplet. If you think this
5799configuration is useful to you, please write to autoconf@gnu.org." >&5
5800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5801whose name does not start with the host triplet. If you think this
5802configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5803ac_tool_warned=yes ;;
5804esac
5805 CXX=$ac_ct_CXX
5806 fi
5807fi
5808
5809 fi
5810fi
5811# Provide some information about the compiler.
5812echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5813ac_compiler=`set X $ac_compile; echo $2`
5814{ (ac_try="$ac_compiler --version >&5"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compiler --version >&5") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }
5824{ (ac_try="$ac_compiler -v >&5"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compiler -v >&5") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }
5834{ (ac_try="$ac_compiler -V >&5"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compiler -V >&5") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }
5844
5845{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5846echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5847if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856
5857int
5858main ()
5859{
5860#ifndef __GNUC__
5861 choke me
5862#endif
5863
5864 ;
5865 return 0;
5866}
5867_ACEOF
5868rm -f conftest.$ac_objext
5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_compiler_gnu=yes
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_compiler_gnu=no
5908fi
5909
5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5912
5913fi
5914{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5915echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5916GXX=`test $ac_compiler_gnu = yes && echo yes`
5917ac_test_CXXFLAGS=${CXXFLAGS+set}
5918ac_save_CXXFLAGS=$CXXFLAGS
5919{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5921if test "${ac_cv_prog_cxx_g+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5925 ac_cxx_werror_flag=yes
5926 ac_cv_prog_cxx_g=no
5927 CXXFLAGS="-g"
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (ac_try="$ac_compile"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_prog_cxx_g=yes
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 CXXFLAGS=""
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989
5990int
5991main ()
5992{
5993
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 :
6033else
6034 echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6038 CXXFLAGS="-g"
6039 cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
6045
6046int
6047main ()
6048{
6049
6050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext
6055if { (ac_try="$ac_compile"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072esac
6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_prog_cxx_g=yes
6089else
6090 echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093
6094fi
6095
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6104fi
6105{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6106echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6107if test "$ac_test_CXXFLAGS" = set; then
6108 CXXFLAGS=$ac_save_CXXFLAGS
6109elif test $ac_cv_prog_cxx_g = yes; then
6110 if test "$GXX" = yes; then
6111 CXXFLAGS="-g -O2"
6112 else
6113 CXXFLAGS="-g"
6114 fi
6115else
6116 if test "$GXX" = yes; then
6117 CXXFLAGS="-O2"
6118 else
6119 CXXFLAGS=
6120 fi
6121fi
6122ac_ext=c
6123ac_cpp='$CPP $CPPFLAGS'
6124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128{ echo "$as_me:$LINENO: checking " >&5
6129echo $ECHO_N "checking ... $ECHO_C" >&6; }
6130if test "${ac_cv_has_flex+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133 for ac_prog in flex lex
6134do
6135 # Extract the first word of "$ac_prog", so it can be a program name with args.
6136set dummy $ac_prog; ac_word=$2
6137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139if test "${ac_cv_prog_LEX+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 if test -n "$LEX"; then
6143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_LEX="$ac_prog"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162LEX=$ac_cv_prog_LEX
6163if test -n "$LEX"; then
6164 { echo "$as_me:$LINENO: result: $LEX" >&5
6165echo "${ECHO_T}$LEX" >&6; }
6166else
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169fi
6170
6171
6172 test -n "$LEX" && break
6173done
6174test -n "$LEX" || LEX=":"
6175
6176if test -z "$LEXLIB"
6177then
6178 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6179echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6180if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183 ac_check_lib_save_LIBS=$LIBS
6184LIBS="-lfl $LIBS"
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191
6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6195#ifdef __cplusplus
6196extern "C"
6197#endif
6198char yywrap ();
6199int
6200main ()
6201{
6202return yywrap ();
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (ac_try="$ac_link"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_fl_yywrap=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_lib_fl_yywrap=no
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251LIBS=$ac_check_lib_save_LIBS
6252fi
6253{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6254echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6255if test $ac_cv_lib_fl_yywrap = yes; then
6256 LEXLIB="-lfl"
6257else
6258 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6259echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6260if test "${ac_cv_lib_l_yywrap+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ll $LIBS"
6265cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272/* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6275#ifdef __cplusplus
6276extern "C"
6277#endif
6278char yywrap ();
6279int
6280main ()
6281{
6282return yywrap ();
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_link") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest$ac_exeext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_l_yywrap=yes
6322else
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_lib_l_yywrap=no
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6331LIBS=$ac_check_lib_save_LIBS
6332fi
6333{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6334echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6335if test $ac_cv_lib_l_yywrap = yes; then
6336 LEXLIB="-ll"
6337fi
6338
6339fi
6340
6341fi
6342
6343if test "x$LEX" != "x:"; then
6344 { echo "$as_me:$LINENO: checking lex output file root" >&5
6345echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6346if test "${ac_cv_prog_lex_root+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349 # The minimal lex program is just a single line: %%. But some broken lexes
6350# (Solaris, I think it was) want two %% lines, so accommodate them.
6351cat >conftest.l <<_ACEOF
6352%%
6353%%
6354_ACEOF
6355{ (ac_try="$LEX conftest.l"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$LEX conftest.l") 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365if test -f lex.yy.c; then
6366 ac_cv_prog_lex_root=lex.yy
6367elif test -f lexyy.c; then
6368 ac_cv_prog_lex_root=lexyy
6369else
6370 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6371echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6372 { (exit 1); exit 1; }; }
6373fi
6374fi
6375{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6376echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6377rm -f conftest.l
6378LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6379
6380{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6381echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6382if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 # POSIX says lex can declare yytext either as a pointer or an array; the
6386# default is implementation-dependent. Figure out which it is, since
6387# not all implementations provide the %pointer and %array declarations.
6388ac_cv_prog_lex_yytext_pointer=no
6389echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6390ac_save_LIBS=$LIBS
6391LIBS="$LIBS $LEXLIB"
6392cat >conftest.$ac_ext <<_ACEOF
6393`cat $LEX_OUTPUT_ROOT.c`
6394_ACEOF
6395rm -f conftest.$ac_objext conftest$ac_exeext
6396if { (ac_try="$ac_link"
6397case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_prog_lex_yytext_pointer=yes
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439LIBS=$ac_save_LIBS
6440rm -f "${LEX_OUTPUT_ROOT}.c"
6441
6442fi
6443{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6444echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6445if test $ac_cv_prog_lex_yytext_pointer = yes; then
6446
6447cat >>confdefs.h <<\_ACEOF
6448#define YYTEXT_POINTER 1
6449_ACEOF
6450
6451fi
6452
6453fi
6454
6455fi
6456{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6457echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6458if test "$LEX" != "flex"; then
6459 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6460echo "$as_me: error: flex not found but required" >&2;}
6461 { (exit 1); exit 1; }; }
6462else
6463 FLEX=flex
6464
6465fi
6466
6467{ echo "$as_me:$LINENO: checking " >&5
6468echo $ECHO_N "checking ... $ECHO_C" >&6; }
6469if test "${llvm_cv_has_bison+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 for ac_prog in 'bison -y' byacc
6473do
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475set dummy $ac_prog; 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_prog_YACC+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 if test -n "$YACC"; then
6482 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6483else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_YACC="$ac_prog"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497IFS=$as_save_IFS
6498
6499fi
6500fi
6501YACC=$ac_cv_prog_YACC
6502if test -n "$YACC"; then
6503 { echo "$as_me:$LINENO: result: $YACC" >&5
6504echo "${ECHO_T}$YACC" >&6; }
6505else
6506 { echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6; }
6508fi
6509
6510
6511 test -n "$YACC" && break
6512done
6513test -n "$YACC" || YACC="yacc"
6514
6515fi
6516{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6517echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6518if test "$YACC" != "bison -y"; then
6519
6520 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6521echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6522else
6523 BISON=bison
6524
6525fi
6526
6527{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6528echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6529if test "${lt_cv_path_NM+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532 if test -n "$NM"; then
6533 # Let the user override the test.
6534 lt_cv_path_NM="$NM"
6535else
6536 lt_nm_to_check="${ac_tool_prefix}nm"
6537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6538 lt_nm_to_check="$lt_nm_to_check nm"
6539 fi
6540 for lt_tmp_nm in $lt_nm_to_check; do
6541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6543 IFS="$lt_save_ifs"
6544 test -z "$ac_dir" && ac_dir=.
6545 tmp_nm="$ac_dir/$lt_tmp_nm"
6546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6547 # Check to see if the nm accepts a BSD-compat flag.
6548 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6549 # nm: unknown option "B" ignored
6550 # Tru64's nm complains that /dev/null is an invalid object file
6551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6552 */dev/null* | *'Invalid file or object type'*)
6553 lt_cv_path_NM="$tmp_nm -B"
6554 break
6555 ;;
6556 *)
6557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6558 */dev/null*)
6559 lt_cv_path_NM="$tmp_nm -p"
6560 break
6561 ;;
6562 *)
6563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6564 continue # so that we can try to find one that supports BSD flags
6565 ;;
6566 esac
6567 ;;
6568 esac
6569 fi
6570 done
6571 IFS="$lt_save_ifs"
6572 done
6573 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6574fi
6575fi
6576{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6577echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6578NM="$lt_cv_path_NM"
6579
6580
6581
6582{ echo "$as_me:$LINENO: checking for GNU make" >&5
6583echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6584if test "${llvm_cv_gnu_make_command+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 llvm_cv_gnu_make_command=''
6588 for a in "$MAKE" make gmake gnumake ; do
6589 if test -z "$a" ; then continue ; fi ;
6590 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6591 then
6592 llvm_cv_gnu_make_command=$a ;
6593 break;
6594 fi
6595 done
6596fi
6597{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6598echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6599 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6600 ifGNUmake='' ;
6601 else
6602 ifGNUmake='#' ;
6603 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6604echo "${ECHO_T}\"Not found\"" >&6; };
6605 fi
6606
6607
6608{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6609echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6610LN_S=$as_ln_s
6611if test "$LN_S" = "ln -s"; then
6612 { echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6616echo "${ECHO_T}no, using $LN_S" >&6; }
6617fi
6618
6619# Extract the first word of "cmp", so it can be a program name with args.
6620set dummy cmp; ac_word=$2
6621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623if test "${ac_cv_path_CMP+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 case $CMP in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6629 ;;
6630 *)
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6647 ;;
6648esac
6649fi
6650CMP=$ac_cv_path_CMP
6651if test -n "$CMP"; then
6652 { echo "$as_me:$LINENO: result: $CMP" >&5
6653echo "${ECHO_T}$CMP" >&6; }
6654else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6; }
6657fi
6658
6659
6660# Extract the first word of "cp", so it can be a program name with args.
6661set dummy cp; ac_word=$2
6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_path_CP+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 case $CP in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6670 ;;
6671 *)
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6688 ;;
6689esac
6690fi
6691CP=$ac_cv_path_CP
6692if test -n "$CP"; then
6693 { echo "$as_me:$LINENO: result: $CP" >&5
6694echo "${ECHO_T}$CP" >&6; }
6695else
6696 { echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6; }
6698fi
6699
6700
6701# Extract the first word of "date", so it can be a program name with args.
6702set dummy date; ac_word=$2
6703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705if test "${ac_cv_path_DATE+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708 case $DATE in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6711 ;;
6712 *)
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724done
6725done
6726IFS=$as_save_IFS
6727
6728 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6729 ;;
6730esac
6731fi
6732DATE=$ac_cv_path_DATE
6733if test -n "$DATE"; then
6734 { echo "$as_me:$LINENO: result: $DATE" >&5
6735echo "${ECHO_T}$DATE" >&6; }
6736else
6737 { echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6; }
6739fi
6740
6741
6742# Extract the first word of "find", so it can be a program name with args.
6743set dummy find; ac_word=$2
6744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746if test "${ac_cv_path_FIND+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749 case $FIND in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6752 ;;
6753 *)
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765done
6766done
6767IFS=$as_save_IFS
6768
6769 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6770 ;;
6771esac
6772fi
6773FIND=$ac_cv_path_FIND
6774if test -n "$FIND"; then
6775 { echo "$as_me:$LINENO: result: $FIND" >&5
6776echo "${ECHO_T}$FIND" >&6; }
6777else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
6780fi
6781
6782
6783# Extract the first word of "grep", so it can be a program name with args.
6784set dummy grep; ac_word=$2
6785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_GREP+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 case $GREP in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807done
6808IFS=$as_save_IFS
6809
6810 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6811 ;;
6812esac
6813fi
6814GREP=$ac_cv_path_GREP
6815if test -n "$GREP"; then
6816 { echo "$as_me:$LINENO: result: $GREP" >&5
6817echo "${ECHO_T}$GREP" >&6; }
6818else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824# Extract the first word of "mkdir", so it can be a program name with args.
6825set dummy mkdir; ac_word=$2
6826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828if test "${ac_cv_path_MKDIR+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831 case $MKDIR in
6832 [\\/]* | ?:[\\/]*)
6833 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6834 ;;
6835 *)
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848done
6849IFS=$as_save_IFS
6850
6851 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6852 ;;
6853esac
6854fi
6855MKDIR=$ac_cv_path_MKDIR
6856if test -n "$MKDIR"; then
6857 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6858echo "${ECHO_T}$MKDIR" >&6; }
6859else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864
6865# Extract the first word of "mv", so it can be a program name with args.
6866set dummy mv; ac_word=$2
6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_MV+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 case $MV in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890IFS=$as_save_IFS
6891
6892 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6893 ;;
6894esac
6895fi
6896MV=$ac_cv_path_MV
6897if test -n "$MV"; then
6898 { echo "$as_me:$LINENO: result: $MV" >&5
6899echo "${ECHO_T}$MV" >&6; }
6900else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
6903fi
6904
6905
6906if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911if test "${ac_cv_prog_RANLIB+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 if test -n "$RANLIB"; then
6915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934RANLIB=$ac_cv_prog_RANLIB
6935if test -n "$RANLIB"; then
6936 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6937echo "${ECHO_T}$RANLIB" >&6; }
6938else
6939 { echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6; }
6941fi
6942
6943
6944fi
6945if test -z "$ac_cv_prog_RANLIB"; then
6946 ac_ct_RANLIB=$RANLIB
6947 # Extract the first word of "ranlib", so it can be a program name with args.
6948set dummy ranlib; ac_word=$2
6949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954 if test -n "$ac_ct_RANLIB"; then
6955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6956else
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_RANLIB="ranlib"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970IFS=$as_save_IFS
6971
6972fi
6973fi
6974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975if test -n "$ac_ct_RANLIB"; then
6976 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6977echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6978else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
6981fi
6982
6983 if test "x$ac_ct_RANLIB" = x; then
6984 RANLIB=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987yes:)
6988{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6989whose name does not start with the host triplet. If you think this
6990configuration is useful to you, please write to autoconf@gnu.org." >&5
6991echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6992whose name does not start with the host triplet. If you think this
6993configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996 RANLIB=$ac_ct_RANLIB
6997 fi
6998else
6999 RANLIB="$ac_cv_prog_RANLIB"
7000fi
7001
7002# Extract the first word of "rm", so it can be a program name with args.
7003set dummy rm; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_path_RM+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 case $RM in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7030 ;;
7031esac
7032fi
7033RM=$ac_cv_path_RM
7034if test -n "$RM"; then
7035 { echo "$as_me:$LINENO: result: $RM" >&5
7036echo "${ECHO_T}$RM" >&6; }
7037else
7038 { echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6; }
7040fi
7041
7042
7043# Extract the first word of "sed", so it can be a program name with args.
7044set dummy sed; ac_word=$2
7045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047if test "${ac_cv_path_SED+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 case $SED in
7051 [\\/]* | ?:[\\/]*)
7052 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7053 ;;
7054 *)
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066done
7067done
7068IFS=$as_save_IFS
7069
7070 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7071 ;;
7072esac
7073fi
7074SED=$ac_cv_path_SED
7075if test -n "$SED"; then
7076 { echo "$as_me:$LINENO: result: $SED" >&5
7077echo "${ECHO_T}$SED" >&6; }
7078else
7079 { echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6; }
7081fi
7082
7083
7084# Extract the first word of "tar", so it can be a program name with args.
7085set dummy tar; ac_word=$2
7086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088if test "${ac_cv_path_TAR+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 case $TAR in
7092 [\\/]* | ?:[\\/]*)
7093 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7094 ;;
7095 *)
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107done
7108done
7109IFS=$as_save_IFS
7110
7111 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7112 ;;
7113esac
7114fi
7115TAR=$ac_cv_path_TAR
7116if test -n "$TAR"; then
7117 { echo "$as_me:$LINENO: result: $TAR" >&5
7118echo "${ECHO_T}$TAR" >&6; }
7119else
7120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125# Extract the first word of "pwd", so it can be a program name with args.
7126set dummy pwd; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_BINPWD+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $BINPWD in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7153 ;;
7154esac
7155fi
7156BINPWD=$ac_cv_path_BINPWD
7157if test -n "$BINPWD"; then
7158 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7159echo "${ECHO_T}$BINPWD" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166
7167# Extract the first word of "Graphviz", so it can be a program name with args.
7168set dummy Graphviz; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $GRAPHVIZ in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7195 ;;
7196esac
7197fi
7198GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7199if test -n "$GRAPHVIZ"; then
7200 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7201echo "${ECHO_T}$GRAPHVIZ" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208if test "$GRAPHVIZ" != "echo Graphviz" ; then
7209
7210cat >>confdefs.h <<\_ACEOF
7211#define HAVE_GRAPHVIZ 1
7212_ACEOF
7213
7214 if test "$llvm_cv_os_type" = "MingW" ; then
7215 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216 fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7220_ACEOF
7221
7222fi
7223# Extract the first word of "dot", so it can be a program name with args.
7224set dummy dot; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_path_DOT+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 case $DOT in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7233 ;;
7234 *)
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7251 ;;
7252esac
7253fi
7254DOT=$ac_cv_path_DOT
7255if test -n "$DOT"; then
7256 { echo "$as_me:$LINENO: result: $DOT" >&5
7257echo "${ECHO_T}$DOT" >&6; }
7258else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6; }
7261fi
7262
7263
7264if test "$DOT" != "echo dot" ; then
7265
7266cat >>confdefs.h <<\_ACEOF
7267#define HAVE_DOT 1
7268_ACEOF
7269
7270 if test "$llvm_cv_os_type" = "MingW" ; then
7271 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7272 fi
7273
7274cat >>confdefs.h <<_ACEOF
7275#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7276_ACEOF
7277
7278fi
7279for ac_prog in gv gsview32
7280do
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282set dummy $ac_prog; ac_word=$2
7283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285if test "${ac_cv_path_GV+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 case $GV in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7291 ;;
7292 *)
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306IFS=$as_save_IFS
7307
7308 ;;
7309esac
7310fi
7311GV=$ac_cv_path_GV
7312if test -n "$GV"; then
7313 { echo "$as_me:$LINENO: result: $GV" >&5
7314echo "${ECHO_T}$GV" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321 test -n "$GV" && break
7322done
7323test -n "$GV" || GV="echo gv"
7324
7325if test "$GV" != "echo gv" ; then
7326
7327cat >>confdefs.h <<\_ACEOF
7328#define HAVE_GV 1
7329_ACEOF
7330
7331 if test "$llvm_cv_os_type" = "MingW" ; then
7332 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333 fi
7334
7335cat >>confdefs.h <<_ACEOF
7336#define LLVM_PATH_GV "$GV${EXEEXT}"
7337_ACEOF
7338
7339fi
7340# Extract the first word of "dotty", so it can be a program name with args.
7341set dummy dotty; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_DOTTY+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 case $DOTTY in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7368 ;;
7369esac
7370fi
7371DOTTY=$ac_cv_path_DOTTY
7372if test -n "$DOTTY"; then
7373 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7374echo "${ECHO_T}$DOTTY" >&6; }
7375else
7376 { echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6; }
7378fi
7379
7380
7381if test "$DOTTY" != "echo dotty" ; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define HAVE_DOTTY 1
7385_ACEOF
7386
7387 if test "$llvm_cv_os_type" = "MingW" ; then
7388 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7389 fi
7390
7391cat >>confdefs.h <<_ACEOF
7392#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7393_ACEOF
7394
7395fi
7396
7397
7398# Extract the first word of "perl", so it can be a program name with args.
7399set dummy perl; ac_word=$2
7400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_PERL+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405 case $PERL in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7408 ;;
7409 *)
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423IFS=$as_save_IFS
7424
7425 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7426 ;;
7427esac
7428fi
7429PERL=$ac_cv_path_PERL
7430if test -n "$PERL"; then
7431 { echo "$as_me:$LINENO: result: $PERL" >&5
7432echo "${ECHO_T}$PERL" >&6; }
7433else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6; }
7436fi
7437
7438
7439if test "$PERL" != "none"; then
7440 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7441echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7442 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7443 { echo "$as_me:$LINENO: result: yes" >&5
7444echo "${ECHO_T}yes" >&6; }
7445 else
7446 PERL=none
7447 { echo "$as_me:$LINENO: result: not found" >&5
7448echo "${ECHO_T}not found" >&6; }
7449 fi
7450fi
7451
7452
7453if test x"$PERL" = xnone; then
7454 HAVE_PERL=0
7455
7456 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7457echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7458 { (exit 1); exit 1; }; }
7459else
7460 HAVE_PERL=1
7461
7462fi
7463
7464# Find a good install program. We prefer a C program (faster),
7465# so one script is as good as another. But avoid the broken or
7466# incompatible versions:
7467# SysV /etc/install, /usr/sbin/install
7468# SunOS /usr/etc/install
7469# IRIX /sbin/install
7470# AIX /bin/install
7471# AmigaOS /C/install, which installs bootblocks on floppy discs
7472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7475# OS/2's system install, which has a completely different semantic
7476# ./install, which can be erroneously created by make from ./install.sh.
7477{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7478echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7479if test -z "$INSTALL"; then
7480if test "${ac_cv_path_install+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 # Account for people who put trailing slashes in PATH elements.
7489case $as_dir/ in
7490 ./ | .// | /cC/* | \
7491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7493 /usr/ucb/* ) ;;
7494 *)
7495 # OSF1 and SCO ODT 3.0 have their own names for install.
7496 # Don't use installbsd from OSF since it installs stuff as root
7497 # by default.
7498 for ac_prog in ginstall scoinst install; do
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7501 if test $ac_prog = install &&
7502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7503 # AIX install. It has an incompatible calling convention.
7504 :
7505 elif test $ac_prog = install &&
7506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7507 # program-specific install script used by HP pwplus--don't use.
7508 :
7509 else
7510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7511 break 3
7512 fi
7513 fi
7514 done
7515 done
7516 ;;
7517esac
7518done
7519IFS=$as_save_IFS
7520
7521
7522fi
7523 if test "${ac_cv_path_install+set}" = set; then
7524 INSTALL=$ac_cv_path_install
7525 else
7526 # As a last resort, use the slow shell script. Don't cache a
7527 # value for INSTALL within a source directory, because that will
7528 # break other packages using the cache if that directory is
7529 # removed, or if the value is a relative name.
7530 INSTALL=$ac_install_sh
7531 fi
7532fi
7533{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7534echo "${ECHO_T}$INSTALL" >&6; }
7535
7536# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7537# It thinks the first close brace ends the variable substitution.
7538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7539
7540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7541
7542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7543
7544
7545# Extract the first word of "bzip2", so it can be a program name with args.
7546set dummy bzip2; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_BZIP2+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 case $BZIP2 in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7555 ;;
7556 *)
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7573 ;;
7574esac
7575fi
7576BZIP2=$ac_cv_path_BZIP2
7577if test -n "$BZIP2"; then
7578 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7579echo "${ECHO_T}$BZIP2" >&6; }
7580else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
7583fi
7584
7585
7586# Extract the first word of "doxygen", so it can be a program name with args.
7587set dummy doxygen; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_DOXYGEN+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $DOXYGEN in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7614 ;;
7615esac
7616fi
7617DOXYGEN=$ac_cv_path_DOXYGEN
7618if test -n "$DOXYGEN"; then
7619 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7620echo "${ECHO_T}$DOXYGEN" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627# Extract the first word of "groff", so it can be a program name with args.
7628set dummy groff; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_GROFF+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 case $GROFF in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651done
7652IFS=$as_save_IFS
7653
7654 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7655 ;;
7656esac
7657fi
7658GROFF=$ac_cv_path_GROFF
7659if test -n "$GROFF"; then
7660 { echo "$as_me:$LINENO: result: $GROFF" >&5
7661echo "${ECHO_T}$GROFF" >&6; }
7662else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668# Extract the first word of "gzip", so it can be a program name with args.
7669set dummy gzip; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_GZIP+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $GZIP in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7696 ;;
7697esac
7698fi
7699GZIP=$ac_cv_path_GZIP
7700if test -n "$GZIP"; then
7701 { echo "$as_me:$LINENO: result: $GZIP" >&5
7702echo "${ECHO_T}$GZIP" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709# Extract the first word of "pod2html", so it can be a program name with args.
7710set dummy pod2html; ac_word=$2
7711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713if test "${ac_cv_path_POD2HTML+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 case $POD2HTML in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732done
7733done
7734IFS=$as_save_IFS
7735
7736 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7737 ;;
7738esac
7739fi
7740POD2HTML=$ac_cv_path_POD2HTML
7741if test -n "$POD2HTML"; then
7742 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7743echo "${ECHO_T}$POD2HTML" >&6; }
7744else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749
7750# Extract the first word of "pod2man", so it can be a program name with args.
7751set dummy pod2man; ac_word=$2
7752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754if test "${ac_cv_path_POD2MAN+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 case $POD2MAN in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775IFS=$as_save_IFS
7776
7777 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7778 ;;
7779esac
7780fi
7781POD2MAN=$ac_cv_path_POD2MAN
7782if test -n "$POD2MAN"; then
7783 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7784echo "${ECHO_T}$POD2MAN" >&6; }
7785else
7786 { echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6; }
7788fi
7789
7790
7791# Extract the first word of "runtest", so it can be a program name with args.
7792set dummy runtest; ac_word=$2
7793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795if test "${ac_cv_path_RUNTEST+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 case $RUNTEST in
7799 [\\/]* | ?:[\\/]*)
7800 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7801 ;;
7802 *)
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815done
7816IFS=$as_save_IFS
7817
7818 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7819 ;;
7820esac
7821fi
7822RUNTEST=$ac_cv_path_RUNTEST
7823if test -n "$RUNTEST"; then
7824 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7825echo "${ECHO_T}$RUNTEST" >&6; }
7826else
7827 { echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6; }
7829fi
7830
7831
7832
7833no_itcl=true
7834{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7835echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7836
7837# Check whether --with-tclinclude was given.
7838if test "${with_tclinclude+set}" = set; then
7839 withval=$with_tclinclude; with_tclinclude=${withval}
7840else
7841 with_tclinclude=''
7842fi
7843
7844if test "${ac_cv_path_tclsh+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847
7848if test x"${with_tclinclude}" != x ; then
7849 if test -f ${with_tclinclude}/tclsh ; then
7850 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7851 elif test -f ${with_tclinclude}/src/tclsh ; then
7852 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7853 else
7854 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7855echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7856 { (exit 1); exit 1; }; }
7857 fi
7858fi
7859
7860if test x"${ac_cv_path_tclsh}" = x ; then
7861 { echo "$as_me:$LINENO: result: none" >&5
7862echo "${ECHO_T}none" >&6; }
7863 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
7864do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866set dummy $ac_prog; ac_word=$2
7867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_path_TCLSH+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 case $TCLSH in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889done
7890IFS=$as_save_IFS
7891
7892 ;;
7893esac
7894fi
7895TCLSH=$ac_cv_path_TCLSH
7896if test -n "$TCLSH"; then
7897 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7898echo "${ECHO_T}$TCLSH" >&6; }
7899else
7900 { echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6; }
7902fi
7903
7904
7905 test -n "$TCLSH" && break
7906done
7907
7908 if test x"${TCLSH}" = x ; then
7909 ac_cv_path_tclsh='';
7910 else
7911 ac_cv_path_tclsh="${TCLSH}";
7912 fi
7913else
7914 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7915echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7916 TCLSH="${ac_cv_path_tclsh}"
7917
7918fi
7919
7920fi
7921
7922# Extract the first word of "zip", so it can be a program name with args.
7923set dummy zip; ac_word=$2
7924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926if test "${ac_cv_path_ZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 case $ZIP in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947IFS=$as_save_IFS
7948
7949 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7950 ;;
7951esac
7952fi
7953ZIP=$ac_cv_path_ZIP
7954if test -n "$ZIP"; then
7955 { echo "$as_me:$LINENO: result: $ZIP" >&5
7956echo "${ECHO_T}$ZIP" >&6; }
7957else
7958 { echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6; }
7960fi
7961
7962
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007963# Extract the first word of "ocamlc", so it can be a program name with args.
7964set dummy ocamlc; ac_word=$2
7965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7967if test "${ac_cv_path_OCAMLC+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970 case $OCAMLC in
7971 [\\/]* | ?:[\\/]*)
7972 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7973 ;;
7974 *)
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986done
7987done
7988IFS=$as_save_IFS
7989
7990 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7991 ;;
7992esac
7993fi
7994OCAMLC=$ac_cv_path_OCAMLC
7995if test -n "$OCAMLC"; then
7996 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7997echo "${ECHO_T}$OCAMLC" >&6; }
7998else
7999 { echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6; }
8001fi
8002
8003
8004# Extract the first word of "ocamlopt", so it can be a program name with args.
8005set dummy ocamlopt; ac_word=$2
8006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 case $OCAMLOPT in
8012 [\\/]* | ?:[\\/]*)
8013 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8014 ;;
8015 *)
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029IFS=$as_save_IFS
8030
8031 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8032 ;;
8033esac
8034fi
8035OCAMLOPT=$ac_cv_path_OCAMLOPT
8036if test -n "$OCAMLOPT"; then
8037 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8038echo "${ECHO_T}$OCAMLOPT" >&6; }
8039else
8040 { echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6; }
8042fi
8043
8044
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008045# Extract the first word of "ocamldep", so it can be a program name with args.
8046set dummy ocamldep; ac_word=$2
8047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 case $OCAMLDEP in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8055 ;;
8056 *)
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070IFS=$as_save_IFS
8071
8072 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8073 ;;
8074esac
8075fi
8076OCAMLDEP=$ac_cv_path_OCAMLDEP
8077if test -n "$OCAMLDEP"; then
8078 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8079echo "${ECHO_T}$OCAMLDEP" >&6; }
8080else
8081 { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
8083fi
8084
8085
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008086
8087{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8088echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8089if test "${llvm_cv_link_use_r+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 ac_ext=c
8093ac_cpp='$CPP $CPPFLAGS'
8094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098 oldcflags="$CFLAGS"
8099 CFLAGS="$CFLAGS -Wl,-R."
8100 cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
8106
8107int
8108main ()
8109{
8110int main() { return 0; }
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
8116if { (ac_try="$ac_link"
8117case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 llvm_cv_link_use_r=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 llvm_cv_link_use_r=no
8155fi
8156
8157rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 CFLAGS="$oldcflags"
8160 ac_ext=c
8161ac_cpp='$CPP $CPPFLAGS'
8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165
8166
8167fi
8168{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8169echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8170if test "$llvm_cv_link_use_r" = yes ; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define HAVE_LINK_R 1
8174_ACEOF
8175
8176 fi
8177
8178
8179
8180
8181{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8182echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8183if test "${ac_cv_c_const+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192
8193int
8194main ()
8195{
8196/* FIXME: Include the comments suggested by Paul. */
8197#ifndef __cplusplus
8198 /* Ultrix mips cc rejects this. */
8199 typedef int charset[2];
8200 const charset x;
8201 /* SunOS 4.1.1 cc rejects this. */
8202 char const *const *ccp;
8203 char **p;
8204 /* NEC SVR4.0.2 mips cc rejects this. */
8205 struct point {int x, y;};
8206 static struct point const zero = {0,0};
8207 /* AIX XL C 1.02.0.0 rejects this.
8208 It does not let you subtract one const X* pointer from another in
8209 an arm of an if-expression whose if-part is not a constant
8210 expression */
8211 const char *g = "string";
8212 ccp = &g + (g ? g-g : 0);
8213 /* HPUX 7.0 cc rejects these. */
8214 ++ccp;
8215 p = (char**) ccp;
8216 ccp = (char const *const *) p;
8217 { /* SCO 3.2v4 cc rejects this. */
8218 char *t;
8219 char const *s = 0 ? (char *) 0 : (char const *) 0;
8220
8221 *t++ = 0;
8222 if (s) return 0;
8223 }
8224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8225 int x[] = {25, 17};
8226 const int *foo = &x[0];
8227 ++foo;
8228 }
8229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8230 typedef const int *iptr;
8231 iptr p = 0;
8232 ++p;
8233 }
8234 { /* AIX XL C 1.02.0.0 rejects this saying
8235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8236 struct s { int j; const int *ap[3]; };
8237 struct s *b; b->j = 5;
8238 }
8239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8240 const int foo = 10;
8241 if (!foo) return 0;
8242 }
8243 return !x[0] && !zero.x;
8244#endif
8245
8246 ;
8247 return 0;
8248}
8249_ACEOF
8250rm -f conftest.$ac_objext
8251if { (ac_try="$ac_compile"
8252case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
8279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_c_const=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_c_const=no
8290fi
8291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8295echo "${ECHO_T}$ac_cv_c_const" >&6; }
8296if test $ac_cv_c_const = no; then
8297
8298cat >>confdefs.h <<\_ACEOF
8299#define const
8300_ACEOF
8301
8302fi
8303
8304
8305
8306
8307
8308
8309ac_header_dirent=no
8310for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8312{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8313echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323#include <sys/types.h>
8324#include <$ac_hdr>
8325
8326int
8327main ()
8328{
8329if ((DIR *) 0)
8330return 0;
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext
8336if { (ac_try="$ac_compile"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353esac
8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363esac
8364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 eval "$as_ac_Header=yes"
8370else
8371 echo "$as_me: failed program was:" >&5
8372sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 eval "$as_ac_Header=no"
8375fi
8376
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378fi
8379ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381echo "${ECHO_T}$ac_res" >&6; }
8382if test `eval echo '${'$as_ac_Header'}'` = yes; then
8383 cat >>confdefs.h <<_ACEOF
8384#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8385_ACEOF
8386
8387ac_header_dirent=$ac_hdr; break
8388fi
8389
8390done
8391# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8392if test $ac_header_dirent = dirent.h; then
8393 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8394echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8395if test "${ac_cv_search_opendir+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 ac_func_search_save_LIBS=$LIBS
8399cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405
8406/* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8409#ifdef __cplusplus
8410extern "C"
8411#endif
8412char opendir ();
8413int
8414main ()
8415{
8416return opendir ();
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421for ac_lib in '' dir; do
8422 if test -z "$ac_lib"; then
8423 ac_res="none required"
8424 else
8425 ac_res=-l$ac_lib
8426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8427 fi
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (ac_try="$ac_link"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456esac
8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_search_opendir=$ac_res
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468fi
8469
8470rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext
8472 if test "${ac_cv_search_opendir+set}" = set; then
8473 break
8474fi
8475done
8476if test "${ac_cv_search_opendir+set}" = set; then
8477 :
8478else
8479 ac_cv_search_opendir=no
8480fi
8481rm conftest.$ac_ext
8482LIBS=$ac_func_search_save_LIBS
8483fi
8484{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8485echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8486ac_res=$ac_cv_search_opendir
8487if test "$ac_res" != no; then
8488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8489
8490fi
8491
8492else
8493 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8495if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498 ac_func_search_save_LIBS=$LIBS
8499cat >conftest.$ac_ext <<_ACEOF
8500/* confdefs.h. */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h. */
8505
8506/* Override any GCC internal prototype to avoid an error.
8507 Use char because int might match the return type of a GCC
8508 builtin and then its argument prototype would still apply. */
8509#ifdef __cplusplus
8510extern "C"
8511#endif
8512char opendir ();
8513int
8514main ()
8515{
8516return opendir ();
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521for ac_lib in '' x; do
8522 if test -z "$ac_lib"; then
8523 ac_res="none required"
8524 else
8525 ac_res=-l$ac_lib
8526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8527 fi
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (ac_try="$ac_link"
8530case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_link") 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_search_opendir=$ac_res
8563else
8564 echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567
8568fi
8569
8570rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext
8572 if test "${ac_cv_search_opendir+set}" = set; then
8573 break
8574fi
8575done
8576if test "${ac_cv_search_opendir+set}" = set; then
8577 :
8578else
8579 ac_cv_search_opendir=no
8580fi
8581rm conftest.$ac_ext
8582LIBS=$ac_func_search_save_LIBS
8583fi
8584{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8585echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8586ac_res=$ac_cv_search_opendir
8587if test "$ac_res" != no; then
8588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8589
8590fi
8591
8592fi
8593
8594
8595for ac_header in dlfcn.h
8596do
8597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603fi
8604ac_res=`eval echo '${'$as_ac_Header'}'`
8605 { echo "$as_me:$LINENO: result: $ac_res" >&5
8606echo "${ECHO_T}$ac_res" >&6; }
8607else
8608 # Is the header compilable?
8609{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617$ac_includes_default
8618#include <$ac_header>
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (ac_try="$ac_compile"
8622case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648esac
8649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_try") 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8655else
8656 echo "$as_me: failed program was:" >&5
8657sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 ac_header_compiler=no
8660fi
8661
8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664echo "${ECHO_T}$ac_header_compiler" >&6; }
8665
8666# Is the header present?
8667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8669cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675#include <$ac_header>
8676_ACEOF
8677if { (ac_try="$ac_cpp conftest.$ac_ext"
8678case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681esac
8682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8695 fi
8696else
8697 ac_cpp_err=yes
8698fi
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_preproc=no
8706fi
8707
8708rm -f conftest.err conftest.$ac_ext
8709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8710echo "${ECHO_T}$ac_header_preproc" >&6; }
8711
8712# So? What about this header?
8713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8714 yes:no: )
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8719 ac_header_preproc=yes
8720 ;;
8721 no:yes:* )
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8734 ( cat <<\_ASBOX
8735## ----------------------------------- ##
8736## Report this to llvmbugs@cs.uiuc.edu ##
8737## ----------------------------------- ##
8738_ASBOX
8739 ) | sed "s/^/$as_me: WARNING: /" >&2
8740 ;;
8741esac
8742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746else
8747 eval "$as_ac_Header=\$ac_header_preproc"
8748fi
8749ac_res=`eval echo '${'$as_ac_Header'}'`
8750 { echo "$as_me:$LINENO: result: $ac_res" >&5
8751echo "${ECHO_T}$ac_res" >&6; }
8752
8753fi
8754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
8758
8759fi
8760
8761done
8762
8763# Check whether --enable-ltdl-install was given.
8764if test "${enable_ltdl_install+set}" = set; then
8765 enableval=$enable_ltdl_install;
8766fi
8767
8768
8769
8770
8771if test x"${enable_ltdl_install-no}" != xno; then
8772 INSTALL_LTDL_TRUE=
8773 INSTALL_LTDL_FALSE='#'
8774else
8775 INSTALL_LTDL_TRUE='#'
8776 INSTALL_LTDL_FALSE=
8777fi
8778
8779
8780
8781if test x"${enable_ltdl_convenience-no}" != xno; then
8782 CONVENIENCE_LTDL_TRUE=
8783 CONVENIENCE_LTDL_FALSE='#'
8784else
8785 CONVENIENCE_LTDL_TRUE='#'
8786 CONVENIENCE_LTDL_FALSE=
8787fi
8788
8789
8790{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8791echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8792library_names_spec=
8793libname_spec='lib$name'
8794soname_spec=
8795shrext_cmds=".so"
8796postinstall_cmds=
8797postuninstall_cmds=
8798finish_cmds=
8799finish_eval=
8800shlibpath_var=
8801shlibpath_overrides_runpath=unknown
8802version_type=none
8803dynamic_linker="$host_os ld.so"
8804sys_lib_dlsearch_path_spec="/lib /usr/lib"
8805if test "$GCC" = yes; then
8806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8808 # if the path contains ";" then we assume it to be the separator
8809 # otherwise default to the standard path separator (i.e. ":") - it is
8810 # assumed that no part of a normal pathname contains ";" but that should
8811 # okay in the real world where ";" in dirpaths is itself problematic.
8812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8813 else
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8815 fi
8816else
8817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8818fi
8819need_lib_prefix=unknown
8820hardcode_into_libs=no
8821
8822# when you set need_version to no, make sure it does not cause -set_version
8823# flags to be left without arguments
8824need_version=unknown
8825
8826case $host_os in
8827aix3*)
8828 version_type=linux
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8830 shlibpath_var=LIBPATH
8831
8832 # AIX 3 has no versioning support, so we append a major version to the name.
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 ;;
8835
8836aix4* | aix5*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 hardcode_into_libs=yes
8841 if test "$host_cpu" = ia64; then
8842 # AIX 5 supports IA64
8843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 else
8846 # With GCC up to 2.95.x, collect2 would create an import file
8847 # for dependence libraries. The import file would start with
8848 # the line `#! .'. This would cause the generated library to
8849 # depend on `.', always an invalid library. This was fixed in
8850 # development snapshots of GCC prior to 3.0.
8851 case $host_os in
8852 aix4 | aix4.[01] | aix4.[01].*)
8853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8854 echo ' yes '
8855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8856 :
8857 else
8858 can_build_shared=no
8859 fi
8860 ;;
8861 esac
8862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8863 # soname into executable. Probably we can add versioning support to
8864 # collect2, so additional links can be useful in future.
8865 if test "$aix_use_runtimelinking" = yes; then
8866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8867 # instead of lib<name>.a to let people know that these are not
8868 # typical AIX shared libraries.
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 else
8871 # We preserve .a as extension for shared libraries through AIX4.2
8872 # and later when we are not doing run time linking.
8873 library_names_spec='${libname}${release}.a $libname.a'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 fi
8876 shlibpath_var=LIBPATH
8877 fi
8878 ;;
8879
8880amigaos*)
8881 library_names_spec='$libname.ixlibrary $libname.a'
8882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8883 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'
8884 ;;
8885
8886beos*)
8887 library_names_spec='${libname}${shared_ext}'
8888 dynamic_linker="$host_os ld.so"
8889 shlibpath_var=LIBRARY_PATH
8890 ;;
8891
8892bsdi[45]*)
8893 version_type=linux
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8901 # the default ld.so.conf also contains /usr/contrib/lib and
8902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8903 # libtool to hard-code these into programs
8904 ;;
8905
8906cygwin* | mingw* | pw32*)
8907 version_type=windows
8908 shrext_cmds=".dll"
8909 need_version=no
8910 need_lib_prefix=no
8911
8912 case $GCC,$host_os in
8913 yes,cygwin* | yes,mingw* | yes,pw32*)
8914 library_names_spec='$libname.dll.a'
8915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8916 postinstall_cmds='base_file=`basename \${file}`~
8917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8918 dldir=$destdir/`dirname \$dlpath`~
8919 test -d \$dldir || mkdir -p \$dldir~
8920 $install_prog $dir/$dlname \$dldir/$dlname~
8921 chmod a+x \$dldir/$dlname'
8922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8923 dlpath=$dir/\$dldll~
8924 $rm \$dlpath'
8925 shlibpath_overrides_runpath=yes
8926
8927 case $host_os in
8928 cygwin*)
8929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8932 ;;
8933 mingw*)
8934 # MinGW DLLs use traditional 'lib' prefix
8935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8938 # It is most probably a Windows format PATH printed by
8939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8940 # path with ; separators, and with drive letters. We can handle the
8941 # drive letters (cygwin fileutils understands them), so leave them,
8942 # especially as we might pass files found there to a mingw objdump,
8943 # which wouldn't understand a cygwinified path. Ahh.
8944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8945 else
8946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8947 fi
8948 ;;
8949 pw32*)
8950 # pw32 DLLs use 'pw' prefix rather than 'lib'
8951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8952 ;;
8953 esac
8954 ;;
8955
8956 *)
8957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8958 ;;
8959 esac
8960 dynamic_linker='Win32 ld.exe'
8961 # FIXME: first we should search . and the directory the executable is in
8962 shlibpath_var=PATH
8963 ;;
8964
8965darwin* | rhapsody*)
8966 dynamic_linker="$host_os dyld"
8967 version_type=darwin
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8971 soname_spec='${libname}${release}${major}$shared_ext'
8972 shlibpath_overrides_runpath=yes
8973 shlibpath_var=DYLD_LIBRARY_PATH
8974 shrext_cmds='.dylib'
8975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8976 if test "$GCC" = yes; then
8977 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"`
8978 else
8979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8980 fi
8981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8982 ;;
8983
8984dgux*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 ;;
8992
8993freebsd1*)
8994 dynamic_linker=no
8995 ;;
8996
8997kfreebsd*-gnu)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='GNU ld.so'
9007 ;;
9008
9009freebsd* | dragonfly*)
9010 # DragonFly does not have aout. When/if they implement a new
9011 # versioning mechanism, adjust this.
9012 if test -x /usr/bin/objformat; then
9013 objformat=`/usr/bin/objformat`
9014 else
9015 case $host_os in
9016 freebsd[123]*) objformat=aout ;;
9017 *) objformat=elf ;;
9018 esac
9019 fi
9020 version_type=freebsd-$objformat
9021 case $version_type in
9022 freebsd-elf*)
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024 need_version=no
9025 need_lib_prefix=no
9026 ;;
9027 freebsd-*)
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9029 need_version=yes
9030 ;;
9031 esac
9032 shlibpath_var=LD_LIBRARY_PATH
9033 case $host_os in
9034 freebsd2*)
9035 shlibpath_overrides_runpath=yes
9036 ;;
9037 freebsd3.[01]* | freebsdelf3.[01]*)
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 ;;
9041 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9042 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 ;;
9046 freebsd*) # from 4.6 on
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 ;;
9050 esac
9051 ;;
9052
9053gnu*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 hardcode_into_libs=yes
9061 ;;
9062
9063hpux9* | hpux10* | hpux11*)
9064 # Give a soname corresponding to the major version so that dld.sl refuses to
9065 # link against other versions.
9066 version_type=sunos
9067 need_lib_prefix=no
9068 need_version=no
9069 case $host_cpu in
9070 ia64*)
9071 shrext_cmds='.so'
9072 hardcode_into_libs=yes
9073 dynamic_linker="$host_os dld.so"
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 if test "X$HPUX_IA64_MODE" = X32; then
9079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9080 else
9081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9082 fi
9083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9084 ;;
9085 hppa*64*)
9086 shrext_cmds='.sl'
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.sl"
9089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9095 ;;
9096 *)
9097 shrext_cmds='.sl'
9098 dynamic_linker="$host_os dld.sl"
9099 shlibpath_var=SHLIB_PATH
9100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 ;;
9104 esac
9105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9106 postinstall_cmds='chmod 555 $lib'
9107 ;;
9108
9109interix3*)
9110 version_type=linux
9111 need_lib_prefix=no
9112 need_version=no
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 hardcode_into_libs=yes
9119 ;;
9120
9121irix5* | irix6* | nonstopux*)
9122 case $host_os in
9123 nonstopux*) version_type=nonstopux ;;
9124 *)
9125 if test "$lt_cv_prog_gnu_ld" = yes; then
9126 version_type=linux
9127 else
9128 version_type=irix
9129 fi ;;
9130 esac
9131 need_lib_prefix=no
9132 need_version=no
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9135 case $host_os in
9136 irix5* | nonstopux*)
9137 libsuff= shlibsuff=
9138 ;;
9139 *)
9140 case $LD in # libtool.m4 will add one of these switches to LD
9141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9142 libsuff= shlibsuff= libmagic=32-bit;;
9143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9144 libsuff=32 shlibsuff=N32 libmagic=N32;;
9145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9146 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9147 *) libsuff= shlibsuff= libmagic=never-match;;
9148 esac
9149 ;;
9150 esac
9151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9152 shlibpath_overrides_runpath=no
9153 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9154 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9155 hardcode_into_libs=yes
9156 ;;
9157
9158# No shared lib support for Linux oldld, aout, or coff.
9159linux*oldld* | linux*aout* | linux*coff*)
9160 dynamic_linker=no
9161 ;;
9162
9163# This must be Linux ELF.
9164linux*)
9165 version_type=linux
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=no
9173 # This implies no fast_install, which is unacceptable.
9174 # Some rework will be needed to allow for fast_install
9175 # before this can be enabled.
9176 hardcode_into_libs=yes
9177
9178 # Append ld.so.conf contents to the search path
9179 if test -f /etc/ld.so.conf; then
9180 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' ' '`
9181 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9182 fi
9183
9184 # We used to test for /lib/ld.so.1 and disable shared libraries on
9185 # powerpc, because MkLinux only supported shared libraries with the
9186 # GNU dynamic linker. Since this was broken with cross compilers,
9187 # most powerpc-linux boxes support dynamic linking these days and
9188 # people can always --disable-shared, the test was removed, and we
9189 # assume the GNU/Linux dynamic linker is in use.
9190 dynamic_linker='GNU/Linux ld.so'
9191 ;;
9192
9193knetbsd*-gnu)
9194 version_type=linux
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='GNU ld.so'
9203 ;;
9204
9205netbsd*)
9206 version_type=sunos
9207 need_lib_prefix=no
9208 need_version=no
9209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9212 dynamic_linker='NetBSD (a.out) ld.so'
9213 else
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 dynamic_linker='NetBSD ld.elf_so'
9217 fi
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 ;;
9222
9223newsos6)
9224 version_type=linux
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9228 ;;
9229
9230nto-qnx*)
9231 version_type=linux
9232 need_lib_prefix=no
9233 need_version=no
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 ;;
9239
9240openbsd*)
9241 version_type=sunos
9242 sys_lib_dlsearch_path_spec="/usr/lib"
9243 need_lib_prefix=no
9244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9245 case $host_os in
9246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9247 *) need_version=no ;;
9248 esac
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9253 case $host_os in
9254 openbsd2.[89] | openbsd2.[89].*)
9255 shlibpath_overrides_runpath=no
9256 ;;
9257 *)
9258 shlibpath_overrides_runpath=yes
9259 ;;
9260 esac
9261 else
9262 shlibpath_overrides_runpath=yes
9263 fi
9264 ;;
9265
9266os2*)
9267 libname_spec='$name'
9268 shrext_cmds=".dll"
9269 need_lib_prefix=no
9270 library_names_spec='$libname${shared_ext} $libname.a'
9271 dynamic_linker='OS/2 ld.exe'
9272 shlibpath_var=LIBPATH
9273 ;;
9274
9275osf3* | osf4* | osf5*)
9276 version_type=osf
9277 need_lib_prefix=no
9278 need_version=no
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9284 ;;
9285
9286solaris*)
9287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 shlibpath_overrides_runpath=yes
9294 hardcode_into_libs=yes
9295 # ldd complains unless libraries are executable
9296 postinstall_cmds='chmod +x $lib'
9297 ;;
9298
9299sunos4*)
9300 version_type=sunos
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 if test "$with_gnu_ld" = yes; then
9306 need_lib_prefix=no
9307 fi
9308 need_version=yes
9309 ;;
9310
9311sysv4 | sysv4.3*)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 case $host_vendor in
9317 sni)
9318 shlibpath_overrides_runpath=no
9319 need_lib_prefix=no
9320 export_dynamic_flag_spec='${wl}-Blargedynsym'
9321 runpath_var=LD_RUN_PATH
9322 ;;
9323 siemens)
9324 need_lib_prefix=no
9325 ;;
9326 motorola)
9327 need_lib_prefix=no
9328 need_version=no
9329 shlibpath_overrides_runpath=no
9330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9331 ;;
9332 esac
9333 ;;
9334
9335sysv4*MP*)
9336 if test -d /usr/nec ;then
9337 version_type=linux
9338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9339 soname_spec='$libname${shared_ext}.$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 fi
9342 ;;
9343
9344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9345 version_type=freebsd-elf
9346 need_lib_prefix=no
9347 need_version=no
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 hardcode_into_libs=yes
9352 if test "$with_gnu_ld" = yes; then
9353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9354 shlibpath_overrides_runpath=no
9355 else
9356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9357 shlibpath_overrides_runpath=yes
9358 case $host_os in
9359 sco3.2v5*)
9360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9361 ;;
9362 esac
9363 fi
9364 sys_lib_dlsearch_path_spec='/usr/lib'
9365 ;;
9366
9367uts4*)
9368 version_type=linux
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 ;;
9373
9374*)
9375 dynamic_linker=no
9376 ;;
9377esac
9378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9379echo "${ECHO_T}$dynamic_linker" >&6; }
9380test "$dynamic_linker" = no && can_build_shared=no
9381
9382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9383if test "$GCC" = yes; then
9384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9385fi
9386
9387
9388{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9389echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9390if test "${libltdl_cv_shlibext+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393
9394module=yes
9395eval libltdl_cv_shlibext=$shrext_cmds
9396
9397fi
9398{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9399echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9400if test -n "$libltdl_cv_shlibext"; then
9401
9402cat >>confdefs.h <<_ACEOF
9403#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9404_ACEOF
9405
9406fi
9407
9408
9409{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9410echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9411if test "${libltdl_cv_shlibpath_var+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414 libltdl_cv_shlibpath_var="$shlibpath_var"
9415fi
9416{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9417echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9418if test -n "$libltdl_cv_shlibpath_var"; then
9419
9420cat >>confdefs.h <<_ACEOF
9421#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9422_ACEOF
9423
9424fi
9425
9426
9427{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9428echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9429if test "${libltdl_cv_sys_search_path+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9433fi
9434{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9435echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9436if test -n "$libltdl_cv_sys_search_path"; then
9437 sys_search_path=
9438 for dir in $libltdl_cv_sys_search_path; do
9439 if test -z "$sys_search_path"; then
9440 sys_search_path="$dir"
9441 else
9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9443 fi
9444 done
9445
9446cat >>confdefs.h <<_ACEOF
9447#define LTDL_SYSSEARCHPATH "$sys_search_path"
9448_ACEOF
9449
9450fi
9451
9452{ echo "$as_me:$LINENO: checking for objdir" >&5
9453echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9454if test "${libltdl_cv_objdir+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 libltdl_cv_objdir="$objdir"
9458 if test -n "$objdir"; then
9459 :
9460 else
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464 libltdl_cv_objdir=.libs
9465 else
9466 # MS-DOS does not allow filenames that begin with a dot.
9467 libltdl_cv_objdir=_libs
9468 fi
9469 rmdir .libs 2>/dev/null
9470 fi
9471
9472fi
9473{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9474echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9475
9476cat >>confdefs.h <<_ACEOF
9477#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9478_ACEOF
9479
9480
9481
9482
9483
9484
9485# Check for command to grab the raw symbol name followed by C symbol from nm.
9486{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9487echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9488if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490else
9491
9492# These are sane defaults that work on at least a few old systems.
9493# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9494
9495# Character class describing NM global symbol codes.
9496symcode='[BCDEGRST]'
9497
9498# Regexp to match symbols that can be accessed directly from C.
9499sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9500
9501# Transform an extracted symbol line into a proper C declaration
9502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9503
9504# Transform an extracted symbol line into symbol name and symbol address
9505lt_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'"
9506
9507# Define system-specific variables.
9508case $host_os in
9509aix*)
9510 symcode='[BCDT]'
9511 ;;
9512cygwin* | mingw* | pw32*)
9513 symcode='[ABCDGISTW]'
9514 ;;
9515hpux*) # Its linker distinguishes data from code symbols
9516 if test "$host_cpu" = ia64; then
9517 symcode='[ABCDEGRST]'
9518 fi
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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'"
9521 ;;
9522linux*)
9523 if test "$host_cpu" = ia64; then
9524 symcode='[ABCDGIRSTW]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 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'"
9527 fi
9528 ;;
9529irix* | nonstopux*)
9530 symcode='[BCDEGRST]'
9531 ;;
9532osf*)
9533 symcode='[BCDEGQRST]'
9534 ;;
9535solaris*)
9536 symcode='[BDRT]'
9537 ;;
9538sco3.2v5*)
9539 symcode='[DT]'
9540 ;;
9541sysv4.2uw2*)
9542 symcode='[DT]'
9543 ;;
9544sysv5* | sco5v6* | unixware* | OpenUNIX*)
9545 symcode='[ABDT]'
9546 ;;
9547sysv4)
9548 symcode='[DFNSTU]'
9549 ;;
9550esac
9551
9552# Handle CRLF in mingw tool chain
9553opt_cr=
9554case $build_os in
9555mingw*)
9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9557 ;;
9558esac
9559
9560# If we're using GNU nm, then use its standard symbol codes.
9561case `$NM -V 2>&1` in
9562*GNU* | *'with BFD'*)
9563 symcode='[ABCDGIRSTW]' ;;
9564esac
9565
9566# Try without a prefix undercore, then with it.
9567for ac_symprfx in "" "_"; do
9568
9569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9570 symxfrm="\\1 $ac_symprfx\\2 \\2"
9571
9572 # Write the raw and C identifiers.
9573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9574
9575 # Check to see that the pipe works correctly.
9576 pipe_works=no
9577
9578 rm -f conftest*
9579 cat > conftest.$ac_ext <<EOF
9580#ifdef __cplusplus
9581extern "C" {
9582#endif
9583char nm_test_var;
9584void nm_test_func(){}
9585#ifdef __cplusplus
9586}
9587#endif
9588int main(){nm_test_var='a';nm_test_func();return(0);}
9589EOF
9590
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; then
9596 # Now try to grab the symbols.
9597 nlist=conftest.nm
9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && test -s "$nlist"; then
9603 # Try sorting and uniquifying the output.
9604 if sort "$nlist" | uniq > "$nlist"T; then
9605 mv -f "$nlist"T "$nlist"
9606 else
9607 rm -f "$nlist"T
9608 fi
9609
9610 # Make sure that we snagged all the symbols we need.
9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9613 cat <<EOF > conftest.$ac_ext
9614#ifdef __cplusplus
9615extern "C" {
9616#endif
9617
9618EOF
9619 # Now generate the symbol file.
9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9621
9622 cat <<EOF >> conftest.$ac_ext
9623#if defined (__STDC__) && __STDC__
9624# define lt_ptr_t void *
9625#else
9626# define lt_ptr_t char *
9627# define const
9628#endif
9629
9630/* The mapping between symbol names and symbols. */
9631const struct {
9632 const char *name;
9633 lt_ptr_t address;
9634}
9635lt_preloaded_symbols[] =
9636{
9637EOF
9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9639 cat <<\EOF >> conftest.$ac_ext
9640 {0, (lt_ptr_t) 0}
9641};
9642
9643#ifdef __cplusplus
9644}
9645#endif
9646EOF
9647 # Now try linking the two files.
9648 mv conftest.$ac_objext conftstm.$ac_objext
9649 lt_save_LIBS="$LIBS"
9650 lt_save_CFLAGS="$CFLAGS"
9651 LIBS="conftstm.$ac_objext"
9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9658 pipe_works=yes
9659 fi
9660 LIBS="$lt_save_LIBS"
9661 CFLAGS="$lt_save_CFLAGS"
9662 else
9663 echo "cannot find nm_test_func in $nlist" >&5
9664 fi
9665 else
9666 echo "cannot find nm_test_var in $nlist" >&5
9667 fi
9668 else
9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9670 fi
9671 else
9672 echo "$progname: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 fi
9675 rm -f conftest* conftst*
9676
9677 # Do not use the global_symbol_pipe unless it works.
9678 if test "$pipe_works" = yes; then
9679 break
9680 else
9681 lt_cv_sys_global_symbol_pipe=
9682 fi
9683done
9684
9685fi
9686
9687if test -z "$lt_cv_sys_global_symbol_pipe"; then
9688 lt_cv_sys_global_symbol_to_cdecl=
9689fi
9690if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9691 { echo "$as_me:$LINENO: result: failed" >&5
9692echo "${ECHO_T}failed" >&6; }
9693else
9694 { echo "$as_me:$LINENO: result: ok" >&5
9695echo "${ECHO_T}ok" >&6; }
9696fi
9697
9698
9699{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9700echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9701if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9705 libltdl_cv_preloaded_symbols=yes
9706 else
9707 libltdl_cv_preloaded_symbols=no
9708 fi
9709
9710fi
9711{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9712echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9713if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9714
9715cat >>confdefs.h <<\_ACEOF
9716#define HAVE_PRELOADED_SYMBOLS 1
9717_ACEOF
9718
9719fi
9720
9721LIBADD_DL=
9722
9723ac_ext=c
9724ac_cpp='$CPP $CPPFLAGS'
9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9727ac_compiler_gnu=$ac_cv_c_compiler_gnu
9728
9729
9730{ echo "$as_me:$LINENO: checking for shl_load" >&5
9731echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 cat >conftest.$ac_ext <<_ACEOF
9736/* confdefs.h. */
9737_ACEOF
9738cat confdefs.h >>conftest.$ac_ext
9739cat >>conftest.$ac_ext <<_ACEOF
9740/* end confdefs.h. */
9741/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743#define shl_load innocuous_shl_load
9744
9745/* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9749
9750#ifdef __STDC__
9751# include <limits.h>
9752#else
9753# include <assert.h>
9754#endif
9755
9756#undef shl_load
9757
9758/* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761#ifdef __cplusplus
9762extern "C"
9763#endif
9764char shl_load ();
9765/* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768#if defined __stub_shl_load || defined __stub___shl_load
9769choke me
9770#endif
9771
9772int
9773main ()
9774{
9775return shl_load ();
9776 ;
9777 return 0;
9778}
9779_ACEOF
9780rm -f conftest.$ac_objext conftest$ac_exeext
9781if { (ac_try="$ac_link"
9782case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_shl_load=yes
9815else
9816 echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 ac_cv_func_shl_load=no
9820fi
9821
9822rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824fi
9825{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9826echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9827if test $ac_cv_func_shl_load = yes; then
9828
9829cat >>confdefs.h <<\_ACEOF
9830#define HAVE_SHL_LOAD 1
9831_ACEOF
9832
9833else
9834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9836if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839 ac_check_lib_save_LIBS=$LIBS
9840LIBS="-ldld $LIBS"
9841cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847
9848/* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851#ifdef __cplusplus
9852extern "C"
9853#endif
9854char shl_load ();
9855int
9856main ()
9857{
9858return shl_load ();
9859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_shl_load=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_cv_lib_dld_shl_load=no
9903fi
9904
9905rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907LIBS=$ac_check_lib_save_LIBS
9908fi
9909{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9910echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9911if test $ac_cv_lib_dld_shl_load = yes; then
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define HAVE_SHL_LOAD 1
9915_ACEOF
9916
9917 LIBADD_DL="$LIBADD_DL -ldld"
9918else
9919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9920echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9921if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 ac_check_lib_save_LIBS=$LIBS
9925LIBS="-ldl $LIBS"
9926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932
9933/* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936#ifdef __cplusplus
9937extern "C"
9938#endif
9939char dlopen ();
9940int
9941main ()
9942{
9943return dlopen ();
9944 ;
9945 return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext conftest$ac_exeext
9949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dl_dlopen=yes
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_cv_lib_dl_dlopen=no
9988fi
9989
9990rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992LIBS=$ac_check_lib_save_LIBS
9993fi
9994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996if test $ac_cv_lib_dl_dlopen = yes; then
9997
9998cat >>confdefs.h <<\_ACEOF
9999#define HAVE_LIBDL 1
10000_ACEOF
10001
10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10003else
10004 cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h. */
10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */
10010#if HAVE_DLFCN_H
10011# include <dlfcn.h>
10012#endif
10013
10014int
10015main ()
10016{
10017dlopen(0, 0);
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext conftest$ac_exeext
10023if { (ac_try="$ac_link"
10024case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056
10057cat >>confdefs.h <<\_ACEOF
10058#define HAVE_LIBDL 1
10059_ACEOF
10060 libltdl_cv_func_dlopen="yes"
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070 ac_check_lib_save_LIBS=$LIBS
10071LIBS="-lsvld $LIBS"
10072cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
10078
10079/* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10082#ifdef __cplusplus
10083extern "C"
10084#endif
10085char dlopen ();
10086int
10087main ()
10088{
10089return dlopen ();
10090 ;
10091 return 0;
10092}
10093_ACEOF
10094rm -f conftest.$ac_objext conftest$ac_exeext
10095if { (ac_try="$ac_link"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122esac
10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_svld_dlopen=yes
10129else
10130 echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_svld_dlopen=no
10134fi
10135
10136rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS
10139fi
10140{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10142if test $ac_cv_lib_svld_dlopen = yes; then
10143
10144cat >>confdefs.h <<\_ACEOF
10145#define HAVE_LIBDL 1
10146_ACEOF
10147
10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10149else
10150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10152if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldld $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163
10164/* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167#ifdef __cplusplus
10168extern "C"
10169#endif
10170char dld_link ();
10171int
10172main ()
10173{
10174return dld_link ();
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_dld_link=yes
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_cv_lib_dld_dld_link=no
10219fi
10220
10221rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
10225{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10226echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10227if test $ac_cv_lib_dld_dld_link = yes; then
10228
10229cat >>confdefs.h <<\_ACEOF
10230#define HAVE_DLD 1
10231_ACEOF
10232
10233 LIBADD_DL="$LIBADD_DL -ldld"
10234else
10235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10236echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10237if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10248#define _dyld_func_lookup innocuous__dyld_func_lookup
10249
10250/* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char _dyld_func_lookup (); below.
10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10253 <limits.h> exists even on freestanding compilers. */
10254
10255#ifdef __STDC__
10256# include <limits.h>
10257#else
10258# include <assert.h>
10259#endif
10260
10261#undef _dyld_func_lookup
10262
10263/* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266#ifdef __cplusplus
10267extern "C"
10268#endif
10269char _dyld_func_lookup ();
10270/* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10274choke me
10275#endif
10276
10277int
10278main ()
10279{
10280return _dyld_func_lookup ();
10281 ;
10282 return 0;
10283}
10284_ACEOF
10285rm -f conftest.$ac_objext conftest$ac_exeext
10286if { (ac_try="$ac_link"
10287case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290esac
10291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313esac
10314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_func__dyld_func_lookup=yes
10320else
10321 echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_cv_func__dyld_func_lookup=no
10325fi
10326
10327rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329fi
10330{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10331echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10332if test $ac_cv_func__dyld_func_lookup = yes; then
10333
10334cat >>confdefs.h <<\_ACEOF
10335#define HAVE_DYLD 1
10336_ACEOF
10337
10338fi
10339
10340
10341fi
10342
10343
10344fi
10345
10346
10347fi
10348
10349rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360
10361if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10362then
10363 lt_save_LIBS="$LIBS"
10364 LIBS="$LIBS $LIBADD_DL"
10365
10366for ac_func in dlerror
10367do
10368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373else
10374 cat >conftest.$ac_ext <<_ACEOF
10375/* confdefs.h. */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h. */
10380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382#define $ac_func innocuous_$ac_func
10383
10384/* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10388
10389#ifdef __STDC__
10390# include <limits.h>
10391#else
10392# include <assert.h>
10393#endif
10394
10395#undef $ac_func
10396
10397/* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10400#ifdef __cplusplus
10401extern "C"
10402#endif
10403char $ac_func ();
10404/* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407#if defined __stub_$ac_func || defined __stub___$ac_func
10408choke me
10409#endif
10410
10411int
10412main ()
10413{
10414return $ac_func ();
10415 ;
10416 return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
10420if { (ac_try="$ac_link"
10421case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447esac
10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10454else
10455 echo "$as_me: failed program was:" >&5
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 eval "$as_ac_var=no"
10459fi
10460
10461rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463fi
10464ac_res=`eval echo '${'$as_ac_var'}'`
10465 { echo "$as_me:$LINENO: result: $ac_res" >&5
10466echo "${ECHO_T}$ac_res" >&6; }
10467if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10470_ACEOF
10471
10472fi
10473done
10474
10475 LIBS="$lt_save_LIBS"
10476fi
10477ac_ext=c
10478ac_cpp='$CPP $CPPFLAGS'
10479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10481ac_compiler_gnu=$ac_cv_c_compiler_gnu
10482
10483
10484
10485{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10486echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10487if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 ac_cv_sys_symbol_underscore=no
10491 cat > conftest.$ac_ext <<EOF
10492void nm_test_func(){}
10493int main(){nm_test_func;return 0;}
10494EOF
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; then
10500 # Now try to grab the symbols.
10501 ac_nlist=conftest.nm
10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s "$ac_nlist"; then
10507 # See whether the symbols have a leading underscore.
10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10509 ac_cv_sys_symbol_underscore=yes
10510 else
10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10512 :
10513 else
10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10515 fi
10516 fi
10517 else
10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519 fi
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.c >&5
10523 fi
10524 rm -rf conftest*
10525
10526fi
10527{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10528echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10529
10530
10531if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10532 if test x"$libltdl_cv_func_dlopen" = xyes ||
10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10535echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10536if test "${libltdl_cv_need_uscore+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 libltdl_cv_need_uscore=unknown
10540 save_LIBS="$LIBS"
10541 LIBS="$LIBS $LIBADD_DL"
10542 if test "$cross_compiling" = yes; then :
10543 libltdl_cv_need_uscore=cross
10544else
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
Gordon Henriksen058a4c62007-10-02 16:42:22 +000010548#line 10548 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010549#include "confdefs.h"
10550
10551#if HAVE_DLFCN_H
10552#include <dlfcn.h>
10553#endif
10554
10555#include <stdio.h>
10556
10557#ifdef RTLD_GLOBAL
10558# define LT_DLGLOBAL RTLD_GLOBAL
10559#else
10560# ifdef DL_GLOBAL
10561# define LT_DLGLOBAL DL_GLOBAL
10562# else
10563# define LT_DLGLOBAL 0
10564# endif
10565#endif
10566
10567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569#ifndef LT_DLLAZY_OR_NOW
10570# ifdef RTLD_LAZY
10571# define LT_DLLAZY_OR_NOW RTLD_LAZY
10572# else
10573# ifdef DL_LAZY
10574# define LT_DLLAZY_OR_NOW DL_LAZY
10575# else
10576# ifdef RTLD_NOW
10577# define LT_DLLAZY_OR_NOW RTLD_NOW
10578# else
10579# ifdef DL_NOW
10580# define LT_DLLAZY_OR_NOW DL_NOW
10581# else
10582# define LT_DLLAZY_OR_NOW 0
10583# endif
10584# endif
10585# endif
10586# endif
10587#endif
10588
10589#ifdef __cplusplus
10590extern "C" void exit (int);
10591#endif
10592
10593void fnord() { int i=42;}
10594int main ()
10595{
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10598
10599 if (self)
10600 {
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10604 }
10605 else
10606 puts (dlerror ());
10607
10608 exit (status);
10609}
10610EOF
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10617 lt_status=$?
10618 case x$lt_status in
10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10621 x$lt_dlunknown|x*) ;;
10622 esac
10623 else :
10624 # compilation failed
10625
10626 fi
10627fi
10628rm -fr conftest*
10629
10630 LIBS="$save_LIBS"
10631
10632fi
10633{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10634echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10635 fi
10636fi
10637
10638if test x"$libltdl_cv_need_uscore" = xyes; then
10639
10640cat >>confdefs.h <<\_ACEOF
10641#define NEED_USCORE 1
10642_ACEOF
10643
10644fi
10645
10646
10647{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10648echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10649if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 # PORTME does your system automatically load deplibs for dlopen?
10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10654 # For now, we just catch OSes we know something about -- in the
10655 # future, we'll try test this programmatically.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10657 case "$host_os" in
10658 aix3*|aix4.1.*|aix4.2.*)
10659 # Unknown whether this is true for these versions of AIX, but
10660 # we want this `case' here to explicitly catch those versions.
10661 libltdl_cv_sys_dlopen_deplibs=unknown
10662 ;;
10663 aix[45]*)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10665 ;;
10666 darwin*)
10667 # Assuming the user has installed a libdl from somewhere, this is true
10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10669 libltdl_cv_sys_dlopen_deplibs=yes
10670 ;;
10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10672 # GNU and its variants, using gnu ld.so (Glibc)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 hpux10*|hpux11*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 interix*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10680 ;;
10681 irix[12345]*|irix6.[01]*)
10682 # Catch all versions of IRIX before 6.2, and indicate that we don't
10683 # know how it worked for any of those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10685 ;;
10686 irix*)
10687 # The case above catches anything before 6.2, and it's known that
10688 # at 6.2 and later dlopen does load deplibs.
10689 libltdl_cv_sys_dlopen_deplibs=yes
10690 ;;
10691 netbsd*)
10692 libltdl_cv_sys_dlopen_deplibs=yes
10693 ;;
10694 openbsd*)
10695 libltdl_cv_sys_dlopen_deplibs=yes
10696 ;;
10697 osf[1234]*)
10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10699 # it did *not* use an RPATH in a shared library to find objects the
10700 # library depends on, so we explictly say `no'.
10701 libltdl_cv_sys_dlopen_deplibs=no
10702 ;;
10703 osf5.0|osf5.0a|osf5.1)
10704 # dlopen *does* load deplibs and with the right loader patch applied
10705 # it even uses RPATH in a shared library to search for shared objects
10706 # that the library depends on, but there's no easy way to know if that
10707 # patch is installed. Since this is the case, all we can really
10708 # say is unknown -- it depends on the patch being installed. If
10709 # it is, this changes to `yes'. Without it, it would be `no'.
10710 libltdl_cv_sys_dlopen_deplibs=unknown
10711 ;;
10712 osf*)
10713 # the two cases above should catch all versions of osf <= 5.1. Read
10714 # the comments above for what we know about them.
10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10716 # is used to find them so we can finally say `yes'.
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 solaris*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10724 ;;
10725 esac
10726
10727fi
10728{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10729echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10730if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10731
10732cat >>confdefs.h <<\_ACEOF
10733#define LTDL_DLOPEN_DEPLIBS 1
10734_ACEOF
10735
10736fi
10737
10738
10739for ac_header in argz.h
10740do
10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747fi
10748ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750echo "${ECHO_T}$ac_res" >&6; }
10751else
10752 # Is the header compilable?
10753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761$ac_includes_default
10762#include <$ac_header>
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (ac_try="$ac_compile"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_header_compiler=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_header_compiler=no
10804fi
10805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10808echo "${ECHO_T}$ac_header_compiler" >&6; }
10809
10810# Is the header present?
10811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819#include <$ac_header>
10820_ACEOF
10821if { (ac_try="$ac_cpp conftest.$ac_ext"
10822case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 else
10838 ac_cpp_err=
10839 fi
10840else
10841 ac_cpp_err=yes
10842fi
10843if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 ac_header_preproc=no
10850fi
10851
10852rm -f conftest.err conftest.$ac_ext
10853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854echo "${ECHO_T}$ac_header_preproc" >&6; }
10855
10856# So? What about this header?
10857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 yes:no: )
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10863 ac_header_preproc=yes
10864 ;;
10865 no:yes:* )
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10878 ( cat <<\_ASBOX
10879## ----------------------------------- ##
10880## Report this to llvmbugs@cs.uiuc.edu ##
10881## ----------------------------------- ##
10882_ASBOX
10883 ) | sed "s/^/$as_me: WARNING: /" >&2
10884 ;;
10885esac
10886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 eval "$as_ac_Header=\$ac_header_preproc"
10892fi
10893ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895echo "${ECHO_T}$ac_res" >&6; }
10896
10897fi
10898if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901_ACEOF
10902
10903fi
10904
10905done
10906
10907
10908{ echo "$as_me:$LINENO: checking for error_t" >&5
10909echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10910if test "${ac_cv_type_error_t+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919#if HAVE_ARGZ_H
10920# include <argz.h>
10921#endif
10922
10923typedef error_t ac__type_new_;
10924int
10925main ()
10926{
10927if ((ac__type_new_ *) 0)
10928 return 0;
10929if (sizeof (ac__type_new_))
10930 return 0;
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (ac_try="$ac_compile"
10937case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940esac
10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_type_error_t=yes
10970else
10971 echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 ac_cv_type_error_t=no
10975fi
10976
10977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978fi
10979{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10980echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10981if test $ac_cv_type_error_t = yes; then
10982
10983cat >>confdefs.h <<_ACEOF
10984#define HAVE_ERROR_T 1
10985_ACEOF
10986
10987
10988else
10989
10990cat >>confdefs.h <<\_ACEOF
10991#define error_t int
10992_ACEOF
10993
10994fi
10995
10996
10997
10998
10999
11000
11001
11002for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11003do
11004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 cat >conftest.$ac_ext <<_ACEOF
11011/* confdefs.h. */
11012_ACEOF
11013cat confdefs.h >>conftest.$ac_ext
11014cat >>conftest.$ac_ext <<_ACEOF
11015/* end confdefs.h. */
11016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11018#define $ac_func innocuous_$ac_func
11019
11020/* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func (); below.
11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11023 <limits.h> exists even on freestanding compilers. */
11024
11025#ifdef __STDC__
11026# include <limits.h>
11027#else
11028# include <assert.h>
11029#endif
11030
11031#undef $ac_func
11032
11033/* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036#ifdef __cplusplus
11037extern "C"
11038#endif
11039char $ac_func ();
11040/* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043#if defined __stub_$ac_func || defined __stub___$ac_func
11044choke me
11045#endif
11046
11047int
11048main ()
11049{
11050return $ac_func ();
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext conftest$ac_exeext
11056if { (ac_try="$ac_link"
11057case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060esac
11061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 eval "$as_ac_var=yes"
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 eval "$as_ac_var=no"
11095fi
11096
11097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099fi
11100ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102echo "${ECHO_T}$ac_res" >&6; }
11103if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106_ACEOF
11107
11108fi
11109done
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11139 stdio.h unistd.h
11140do
11141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147fi
11148ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150echo "${ECHO_T}$ac_res" >&6; }
11151else
11152 # Is the header compilable?
11153{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161$ac_includes_default
11162#include <$ac_header>
11163_ACEOF
11164rm -f conftest.$ac_objext
11165if { (ac_try="$ac_compile"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_compile") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_try") 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192esac
11193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_try") 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_header_compiler=yes
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_compiler=no
11204fi
11205
11206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208echo "${ECHO_T}$ac_header_compiler" >&6; }
11209
11210# Is the header present?
11211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219#include <$ac_header>
11220_ACEOF
11221if { (ac_try="$ac_cpp conftest.$ac_ext"
11222case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev/null; then
11234 if test -s conftest.err; then
11235 ac_cpp_err=$ac_c_preproc_warn_flag
11236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11237 else
11238 ac_cpp_err=
11239 fi
11240else
11241 ac_cpp_err=yes
11242fi
11243if test -z "$ac_cpp_err"; then
11244 ac_header_preproc=yes
11245else
11246 echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 ac_header_preproc=no
11250fi
11251
11252rm -f conftest.err conftest.$ac_ext
11253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254echo "${ECHO_T}$ac_header_preproc" >&6; }
11255
11256# So? What about this header?
11257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 yes:no: )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11264 ;;
11265 no:yes:* )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278 ( cat <<\_ASBOX
11279## ----------------------------------- ##
11280## Report this to llvmbugs@cs.uiuc.edu ##
11281## ----------------------------------- ##
11282_ASBOX
11283 ) | sed "s/^/$as_me: WARNING: /" >&2
11284 ;;
11285esac
11286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 eval "$as_ac_Header=\$ac_header_preproc"
11292fi
11293ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295echo "${ECHO_T}$ac_res" >&6; }
11296
11297fi
11298if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301_ACEOF
11302
11303fi
11304
11305done
11306
11307
11308
11309
11310
11311for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11312do
11313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319fi
11320ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322echo "${ECHO_T}$ac_res" >&6; }
11323else
11324 # Is the header compilable?
11325{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333$ac_includes_default
11334#include <$ac_header>
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (ac_try="$ac_compile"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_header_compiler=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_header_compiler=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380echo "${ECHO_T}$ac_header_compiler" >&6; }
11381
11382# Is the header present?
11383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
11391#include <$ac_header>
11392_ACEOF
11393if { (ac_try="$ac_cpp conftest.$ac_ext"
11394case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } >/dev/null; then
11406 if test -s conftest.err; then
11407 ac_cpp_err=$ac_c_preproc_warn_flag
11408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11409 else
11410 ac_cpp_err=
11411 fi
11412else
11413 ac_cpp_err=yes
11414fi
11415if test -z "$ac_cpp_err"; then
11416 ac_header_preproc=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_header_preproc=no
11422fi
11423
11424rm -f conftest.err conftest.$ac_ext
11425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426echo "${ECHO_T}$ac_header_preproc" >&6; }
11427
11428# So? What about this header?
11429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430 yes:no: )
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435 ac_header_preproc=yes
11436 ;;
11437 no:yes:* )
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450 ( cat <<\_ASBOX
11451## ----------------------------------- ##
11452## Report this to llvmbugs@cs.uiuc.edu ##
11453## ----------------------------------- ##
11454_ASBOX
11455 ) | sed "s/^/$as_me: WARNING: /" >&2
11456 ;;
11457esac
11458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462else
11463 eval "$as_ac_Header=\$ac_header_preproc"
11464fi
11465ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467echo "${ECHO_T}$ac_res" >&6; }
11468
11469fi
11470if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473_ACEOF
11474
11475fi
11476
11477done
11478
11479
11480
11481for ac_header in string.h strings.h
11482do
11483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489fi
11490ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492echo "${ECHO_T}$ac_res" >&6; }
11493else
11494 # Is the header compilable?
11495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503$ac_includes_default
11504#include <$ac_header>
11505_ACEOF
11506rm -f conftest.$ac_objext
11507if { (ac_try="$ac_compile"
11508case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511esac
11512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534esac
11535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_header_compiler=yes
11541else
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 ac_header_compiler=no
11546fi
11547
11548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550echo "${ECHO_T}$ac_header_compiler" >&6; }
11551
11552# Is the header present?
11553{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561#include <$ac_header>
11562_ACEOF
11563if { (ac_try="$ac_cpp conftest.$ac_ext"
11564case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null; then
11576 if test -s conftest.err; then
11577 ac_cpp_err=$ac_c_preproc_warn_flag
11578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11579 else
11580 ac_cpp_err=
11581 fi
11582else
11583 ac_cpp_err=yes
11584fi
11585if test -z "$ac_cpp_err"; then
11586 ac_header_preproc=yes
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ac_header_preproc=no
11592fi
11593
11594rm -f conftest.err conftest.$ac_ext
11595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596echo "${ECHO_T}$ac_header_preproc" >&6; }
11597
11598# So? What about this header?
11599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600 yes:no: )
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11606 ;;
11607 no:yes:* )
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11620 ( cat <<\_ASBOX
11621## ----------------------------------- ##
11622## Report this to llvmbugs@cs.uiuc.edu ##
11623## ----------------------------------- ##
11624_ASBOX
11625 ) | sed "s/^/$as_me: WARNING: /" >&2
11626 ;;
11627esac
11628{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 eval "$as_ac_Header=\$ac_header_preproc"
11634fi
11635ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637echo "${ECHO_T}$ac_res" >&6; }
11638
11639fi
11640if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643_ACEOF
11644 break
11645fi
11646
11647done
11648
11649
11650
11651
11652for ac_func in strchr index
11653do
11654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668#define $ac_func innocuous_$ac_func
11669
11670/* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11674
11675#ifdef __STDC__
11676# include <limits.h>
11677#else
11678# include <assert.h>
11679#endif
11680
11681#undef $ac_func
11682
11683/* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686#ifdef __cplusplus
11687extern "C"
11688#endif
11689char $ac_func ();
11690/* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693#if defined __stub_$ac_func || defined __stub___$ac_func
11694choke me
11695#endif
11696
11697int
11698main ()
11699{
11700return $ac_func ();
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext conftest$ac_exeext
11706if { (ac_try="$ac_link"
11707case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723esac
11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733esac
11734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 eval "$as_ac_var=yes"
11740else
11741 echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 eval "$as_ac_var=no"
11745fi
11746
11747rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749fi
11750ac_res=`eval echo '${'$as_ac_var'}'`
11751 { echo "$as_me:$LINENO: result: $ac_res" >&5
11752echo "${ECHO_T}$ac_res" >&6; }
11753if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756_ACEOF
11757 break
11758fi
11759done
11760
11761
11762
11763for ac_func in strrchr rindex
11764do
11765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779#define $ac_func innocuous_$ac_func
11780
11781/* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11785
11786#ifdef __STDC__
11787# include <limits.h>
11788#else
11789# include <assert.h>
11790#endif
11791
11792#undef $ac_func
11793
11794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char $ac_func ();
11801/* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804#if defined __stub_$ac_func || defined __stub___$ac_func
11805choke me
11806#endif
11807
11808int
11809main ()
11810{
11811return $ac_func ();
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext conftest$ac_exeext
11817if { (ac_try="$ac_link"
11818case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 eval "$as_ac_var=no"
11856fi
11857
11858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860fi
11861ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863echo "${ECHO_T}$ac_res" >&6; }
11864if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867_ACEOF
11868 break
11869fi
11870done
11871
11872
11873
11874for ac_func in memcpy bcopy
11875do
11876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890#define $ac_func innocuous_$ac_func
11891
11892/* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11896
11897#ifdef __STDC__
11898# include <limits.h>
11899#else
11900# include <assert.h>
11901#endif
11902
11903#undef $ac_func
11904
11905/* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908#ifdef __cplusplus
11909extern "C"
11910#endif
11911char $ac_func ();
11912/* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
11915#if defined __stub_$ac_func || defined __stub___$ac_func
11916choke me
11917#endif
11918
11919int
11920main ()
11921{
11922return $ac_func ();
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (ac_try="$ac_link"
11929case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 eval "$as_ac_var=no"
11967fi
11968
11969rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971fi
11972ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974echo "${ECHO_T}$ac_res" >&6; }
11975if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978_ACEOF
11979 break
11980fi
11981done
11982
11983
11984
11985for ac_func in memmove strcmp
11986do
11987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
11993 cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12001#define $ac_func innocuous_$ac_func
12002
12003/* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func (); below.
12005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 <limits.h> exists even on freestanding compilers. */
12007
12008#ifdef __STDC__
12009# include <limits.h>
12010#else
12011# include <assert.h>
12012#endif
12013
12014#undef $ac_func
12015
12016/* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12019#ifdef __cplusplus
12020extern "C"
12021#endif
12022char $ac_func ();
12023/* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026#if defined __stub_$ac_func || defined __stub___$ac_func
12027choke me
12028#endif
12029
12030int
12031main ()
12032{
12033return $ac_func ();
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext conftest$ac_exeext
12039if { (ac_try="$ac_link"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056esac
12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 eval "$as_ac_var=yes"
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
12077 eval "$as_ac_var=no"
12078fi
12079
12080rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082fi
12083ac_res=`eval echo '${'$as_ac_var'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085echo "${ECHO_T}$ac_res" >&6; }
12086if test `eval echo '${'$as_ac_var'}'` = yes; then
12087 cat >>confdefs.h <<_ACEOF
12088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089_ACEOF
12090
12091fi
12092done
12093
12094
12095
12096
12097for ac_func in closedir opendir readdir
12098do
12099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113#define $ac_func innocuous_$ac_func
12114
12115/* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12119
12120#ifdef __STDC__
12121# include <limits.h>
12122#else
12123# include <assert.h>
12124#endif
12125
12126#undef $ac_func
12127
12128/* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131#ifdef __cplusplus
12132extern "C"
12133#endif
12134char $ac_func ();
12135/* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
12138#if defined __stub_$ac_func || defined __stub___$ac_func
12139choke me
12140#endif
12141
12142int
12143main ()
12144{
12145return $ac_func ();
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
12151if { (ac_try="$ac_link"
12152case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155esac
12156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 eval "$as_ac_var=no"
12190fi
12191
12192rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194fi
12195ac_res=`eval echo '${'$as_ac_var'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197echo "${ECHO_T}$ac_res" >&6; }
12198if test `eval echo '${'$as_ac_var'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201_ACEOF
12202
12203fi
12204done
12205
12206
12207# Check whether --enable-shared was given.
12208if test "${enable_shared+set}" = set; then
12209 enableval=$enable_shared; p=${PACKAGE-default}
12210 case $enableval in
12211 yes) enable_shared=yes ;;
12212 no) enable_shared=no ;;
12213 *)
12214 enable_shared=no
12215 # Look at the argument we got. We use all the common list separators.
12216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12217 for pkg in $enableval; do
12218 IFS="$lt_save_ifs"
12219 if test "X$pkg" = "X$p"; then
12220 enable_shared=yes
12221 fi
12222 done
12223 IFS="$lt_save_ifs"
12224 ;;
12225 esac
12226else
12227 enable_shared=yes
12228fi
12229
12230
12231# Check whether --enable-static was given.
12232if test "${enable_static+set}" = set; then
12233 enableval=$enable_static; p=${PACKAGE-default}
12234 case $enableval in
12235 yes) enable_static=yes ;;
12236 no) enable_static=no ;;
12237 *)
12238 enable_static=no
12239 # Look at the argument we got. We use all the common list separators.
12240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12241 for pkg in $enableval; do
12242 IFS="$lt_save_ifs"
12243 if test "X$pkg" = "X$p"; then
12244 enable_static=yes
12245 fi
12246 done
12247 IFS="$lt_save_ifs"
12248 ;;
12249 esac
12250else
12251 enable_static=yes
12252fi
12253
12254
12255# Check whether --enable-fast-install was given.
12256if test "${enable_fast_install+set}" = set; then
12257 enableval=$enable_fast_install; p=${PACKAGE-default}
12258 case $enableval in
12259 yes) enable_fast_install=yes ;;
12260 no) enable_fast_install=no ;;
12261 *)
12262 enable_fast_install=no
12263 # Look at the argument we got. We use all the common list separators.
12264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12265 for pkg in $enableval; do
12266 IFS="$lt_save_ifs"
12267 if test "X$pkg" = "X$p"; then
12268 enable_fast_install=yes
12269 fi
12270 done
12271 IFS="$lt_save_ifs"
12272 ;;
12273 esac
12274else
12275 enable_fast_install=yes
12276fi
12277
12278
12279{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12280echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12281if test "${lt_cv_path_SED+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 # Loop through the user's path and test for sed and gsed.
12285# Then use that list of sed's as ones to test for truncation.
12286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287for as_dir in $PATH
12288do
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for lt_ac_prog in sed gsed; do
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12294 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12295 fi
12296 done
12297 done
12298done
12299lt_ac_max=0
12300lt_ac_count=0
12301# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12302# along with /bin/sed that truncates output.
12303for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12304 test ! -f $lt_ac_sed && continue
12305 cat /dev/null > conftest.in
12306 lt_ac_count=0
12307 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12308 # Check for GNU sed and select it if it is found.
12309 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12310 lt_cv_path_SED=$lt_ac_sed
12311 break
12312 fi
12313 while true; do
12314 cat conftest.in conftest.in >conftest.tmp
12315 mv conftest.tmp conftest.in
12316 cp conftest.in conftest.nl
12317 echo >>conftest.nl
12318 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12319 cmp -s conftest.out conftest.nl || break
12320 # 10000 chars as input seems more than enough
12321 test $lt_ac_count -gt 10 && break
12322 lt_ac_count=`expr $lt_ac_count + 1`
12323 if test $lt_ac_count -gt $lt_ac_max; then
12324 lt_ac_max=$lt_ac_count
12325 lt_cv_path_SED=$lt_ac_sed
12326 fi
12327 done
12328done
12329
12330fi
12331
12332SED=$lt_cv_path_SED
12333{ echo "$as_me:$LINENO: result: $SED" >&5
12334echo "${ECHO_T}$SED" >&6; }
12335
12336
12337# Check whether --with-gnu-ld was given.
12338if test "${with_gnu_ld+set}" = set; then
12339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12340else
12341 with_gnu_ld=no
12342fi
12343
12344ac_prog=ld
12345if test "$GCC" = yes; then
12346 # Check if gcc -print-prog-name=ld gives a path.
12347 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12348echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12349 case $host in
12350 *-*-mingw*)
12351 # gcc leaves a trailing carriage return which upsets mingw
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12353 *)
12354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12355 esac
12356 case $ac_prog in
12357 # Accept absolute paths.
12358 [\\/]* | ?:[\\/]*)
12359 re_direlt='/[^/][^/]*/\.\./'
12360 # Canonicalize the pathname of ld
12361 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12363 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12364 done
12365 test -z "$LD" && LD="$ac_prog"
12366 ;;
12367 "")
12368 # If it fails, then pretend we aren't using GCC.
12369 ac_prog=ld
12370 ;;
12371 *)
12372 # If it is relative, then search for the first ld in PATH.
12373 with_gnu_ld=unknown
12374 ;;
12375 esac
12376elif test "$with_gnu_ld" = yes; then
12377 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12378echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12379else
12380 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12381echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12382fi
12383if test "${lt_cv_path_LD+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386 if test -z "$LD"; then
12387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12388 for ac_dir in $PATH; do
12389 IFS="$lt_save_ifs"
12390 test -z "$ac_dir" && ac_dir=.
12391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12392 lt_cv_path_LD="$ac_dir/$ac_prog"
12393 # Check to see if the program is GNU ld. I'd rather use --version,
12394 # but apparently some variants of GNU ld only accept -v.
12395 # Break only if it was the GNU/non-GNU ld that we prefer.
12396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12397 *GNU* | *'with BFD'*)
12398 test "$with_gnu_ld" != no && break
12399 ;;
12400 *)
12401 test "$with_gnu_ld" != yes && break
12402 ;;
12403 esac
12404 fi
12405 done
12406 IFS="$lt_save_ifs"
12407else
12408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12409fi
12410fi
12411
12412LD="$lt_cv_path_LD"
12413if test -n "$LD"; then
12414 { echo "$as_me:$LINENO: result: $LD" >&5
12415echo "${ECHO_T}$LD" >&6; }
12416else
12417 { echo "$as_me:$LINENO: result: no" >&5
12418echo "${ECHO_T}no" >&6; }
12419fi
12420test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12421echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12422 { (exit 1); exit 1; }; }
12423{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12424echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12425if test "${lt_cv_prog_gnu_ld+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
12428 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12429case `$LD -v 2>&1 </dev/null` in
12430*GNU* | *'with BFD'*)
12431 lt_cv_prog_gnu_ld=yes
12432 ;;
12433*)
12434 lt_cv_prog_gnu_ld=no
12435 ;;
12436esac
12437fi
12438{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12439echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12440with_gnu_ld=$lt_cv_prog_gnu_ld
12441
12442
12443{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12444echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12445if test "${lt_cv_ld_reload_flag+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
12448 lt_cv_ld_reload_flag='-r'
12449fi
12450{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12451echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12452reload_flag=$lt_cv_ld_reload_flag
12453case $reload_flag in
12454"" | " "*) ;;
12455*) reload_flag=" $reload_flag" ;;
12456esac
12457reload_cmds='$LD$reload_flag -o $output$reload_objs'
12458case $host_os in
12459 darwin*)
12460 if test "$GCC" = yes; then
12461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12462 else
12463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12464 fi
12465 ;;
12466esac
12467
12468{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12469echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12470if test "${lt_cv_deplibs_check_method+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 lt_cv_file_magic_cmd='$MAGIC_CMD'
12474lt_cv_file_magic_test_file=
12475lt_cv_deplibs_check_method='unknown'
12476# Need to set the preceding variable on all platforms that support
12477# interlibrary dependencies.
12478# 'none' -- dependencies not supported.
12479# `unknown' -- same as none, but documents that we really don't know.
12480# 'pass_all' -- all dependencies passed with no checks.
12481# 'test_compile' -- check by making test program.
12482# 'file_magic [[regex]]' -- check by looking for files in library path
12483# which responds to the $file_magic_cmd with a given extended regex.
12484# If you have `file' or equivalent on your system and you're not sure
12485# whether `pass_all' will *always* work, you probably want this one.
12486
12487case $host_os in
12488aix4* | aix5*)
12489 lt_cv_deplibs_check_method=pass_all
12490 ;;
12491
12492beos*)
12493 lt_cv_deplibs_check_method=pass_all
12494 ;;
12495
12496bsdi[45]*)
12497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12498 lt_cv_file_magic_cmd='/usr/bin/file -L'
12499 lt_cv_file_magic_test_file=/shlib/libc.so
12500 ;;
12501
12502cygwin*)
12503 # func_win32_libid is a shell function defined in ltmain.sh
12504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12505 lt_cv_file_magic_cmd='func_win32_libid'
12506 ;;
12507
12508mingw* | pw32*)
12509 # Base MSYS/MinGW do not provide the 'file' command needed by
12510 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12511 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12512 lt_cv_file_magic_cmd='$OBJDUMP -f'
12513 ;;
12514
12515darwin* | rhapsody*)
12516 lt_cv_deplibs_check_method=pass_all
12517 ;;
12518
12519freebsd* | kfreebsd*-gnu | dragonfly*)
12520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12521 case $host_cpu in
12522 i*86 )
12523 # Not sure whether the presence of OpenBSD here was a mistake.
12524 # Let's accept both of them until this is cleared up.
12525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12526 lt_cv_file_magic_cmd=/usr/bin/file
12527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12528 ;;
12529 esac
12530 else
12531 lt_cv_deplibs_check_method=pass_all
12532 fi
12533 ;;
12534
12535gnu*)
12536 lt_cv_deplibs_check_method=pass_all
12537 ;;
12538
12539hpux10.20* | hpux11*)
12540 lt_cv_file_magic_cmd=/usr/bin/file
12541 case $host_cpu in
12542 ia64*)
12543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12545 ;;
12546 hppa*64*)
12547 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]'
12548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12549 ;;
12550 *)
12551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12553 ;;
12554 esac
12555 ;;
12556
12557interix3*)
12558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12560 ;;
12561
12562irix5* | irix6* | nonstopux*)
12563 case $LD in
12564 *-32|*"-32 ") libmagic=32-bit;;
12565 *-n32|*"-n32 ") libmagic=N32;;
12566 *-64|*"-64 ") libmagic=64-bit;;
12567 *) libmagic=never-match;;
12568 esac
12569 lt_cv_deplibs_check_method=pass_all
12570 ;;
12571
12572# This must be Linux ELF.
12573linux*)
12574 lt_cv_deplibs_check_method=pass_all
12575 ;;
12576
12577netbsd*)
12578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12580 else
12581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12582 fi
12583 ;;
12584
12585newos6*)
12586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12587 lt_cv_file_magic_cmd=/usr/bin/file
12588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12589 ;;
12590
12591nto-qnx*)
12592 lt_cv_deplibs_check_method=unknown
12593 ;;
12594
12595openbsd*)
12596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12598 else
12599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12600 fi
12601 ;;
12602
12603osf3* | osf4* | osf5*)
12604 lt_cv_deplibs_check_method=pass_all
12605 ;;
12606
12607solaris*)
12608 lt_cv_deplibs_check_method=pass_all
12609 ;;
12610
12611sysv4 | sysv4.3*)
12612 case $host_vendor in
12613 motorola)
12614 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]'
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12616 ;;
12617 ncr)
12618 lt_cv_deplibs_check_method=pass_all
12619 ;;
12620 sequent)
12621 lt_cv_file_magic_cmd='/bin/file'
12622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12623 ;;
12624 sni)
12625 lt_cv_file_magic_cmd='/bin/file'
12626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12627 lt_cv_file_magic_test_file=/lib/libc.so
12628 ;;
12629 siemens)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
12632 pc)
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
12635 esac
12636 ;;
12637
12638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12639 lt_cv_deplibs_check_method=pass_all
12640 ;;
12641esac
12642
12643fi
12644{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12645echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12646file_magic_cmd=$lt_cv_file_magic_cmd
12647deplibs_check_method=$lt_cv_deplibs_check_method
12648test -z "$deplibs_check_method" && deplibs_check_method=unknown
12649
12650
12651
12652# If no C compiler was specified, use CC.
12653LTCC=${LTCC-"$CC"}
12654
12655# If no C compiler flags were specified, use CFLAGS.
12656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12657
12658# Allow CC to be a program name with arguments.
12659compiler=$CC
12660
12661# Check whether --enable-libtool-lock was given.
12662if test "${enable_libtool_lock+set}" = set; then
12663 enableval=$enable_libtool_lock;
12664fi
12665
12666test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12667
12668# Some flags need to be propagated to the compiler or linker for good
12669# libtool support.
12670case $host in
12671ia64-*-hpux*)
12672 # Find out which ABI we are using.
12673 echo 'int i;' > conftest.$ac_ext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; then
12679 case `/usr/bin/file conftest.$ac_objext` in
12680 *ELF-32*)
12681 HPUX_IA64_MODE="32"
12682 ;;
12683 *ELF-64*)
12684 HPUX_IA64_MODE="64"
12685 ;;
12686 esac
12687 fi
12688 rm -rf conftest*
12689 ;;
12690*-*-irix6*)
12691 # Find out which ABI we are using.
Gordon Henriksen058a4c62007-10-02 16:42:22 +000012692 echo '#line 12692 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; then
12698 if test "$lt_cv_prog_gnu_ld" = yes; then
12699 case `/usr/bin/file conftest.$ac_objext` in
12700 *32-bit*)
12701 LD="${LD-ld} -melf32bsmip"
12702 ;;
12703 *N32*)
12704 LD="${LD-ld} -melf32bmipn32"
12705 ;;
12706 *64-bit*)
12707 LD="${LD-ld} -melf64bmip"
12708 ;;
12709 esac
12710 else
12711 case `/usr/bin/file conftest.$ac_objext` in
12712 *32-bit*)
12713 LD="${LD-ld} -32"
12714 ;;
12715 *N32*)
12716 LD="${LD-ld} -n32"
12717 ;;
12718 *64-bit*)
12719 LD="${LD-ld} -64"
12720 ;;
12721 esac
12722 fi
12723 fi
12724 rm -rf conftest*
12725 ;;
12726
12727x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12728 # Find out which ABI we are using.
12729 echo 'int i;' > conftest.$ac_ext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; then
12735 case `/usr/bin/file conftest.o` in
12736 *32-bit*)
12737 case $host in
12738 x86_64-*linux*)
12739 LD="${LD-ld} -m elf_i386"
12740 ;;
12741 ppc64-*linux*|powerpc64-*linux*)
12742 LD="${LD-ld} -m elf32ppclinux"
12743 ;;
12744 s390x-*linux*)
12745 LD="${LD-ld} -m elf_s390"
12746 ;;
12747 sparc64-*linux*)
12748 LD="${LD-ld} -m elf32_sparc"
12749 ;;
12750 esac
12751 ;;
12752 *64-bit*)
12753 case $host in
12754 x86_64-*linux*)
12755 LD="${LD-ld} -m elf_x86_64"
12756 ;;
12757 ppc*-*linux*|powerpc*-*linux*)
12758 LD="${LD-ld} -m elf64ppc"
12759 ;;
12760 s390*-*linux*)
12761 LD="${LD-ld} -m elf64_s390"
12762 ;;
12763 sparc*-*linux*)
12764 LD="${LD-ld} -m elf64_sparc"
12765 ;;
12766 esac
12767 ;;
12768 esac
12769 fi
12770 rm -rf conftest*
12771 ;;
12772
12773*-*-sco3.2v5*)
12774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12775 SAVE_CFLAGS="$CFLAGS"
12776 CFLAGS="$CFLAGS -belf"
12777 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12778echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12779if test "${lt_cv_cc_needs_belf+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 ac_ext=c
12783ac_cpp='$CPP $CPPFLAGS'
12784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12786ac_compiler_gnu=$ac_cv_c_compiler_gnu
12787
12788 cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794
12795int
12796main ()
12797{
12798
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (ac_try="$ac_link"
12805case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821esac
12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 lt_cv_cc_needs_belf=yes
12838else
12839 echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 lt_cv_cc_needs_belf=no
12843fi
12844
12845rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 ac_ext=c
12848ac_cpp='$CPP $CPPFLAGS'
12849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852
12853fi
12854{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12855echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12858 CFLAGS="$SAVE_CFLAGS"
12859 fi
12860 ;;
12861sparc*-*solaris*)
12862 # Find out which ABI we are using.
12863 echo 'int i;' > conftest.$ac_ext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; then
12869 case `/usr/bin/file conftest.o` in
12870 *64-bit*)
12871 case $lt_cv_prog_gnu_ld in
12872 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12873 *) LD="${LD-ld} -64" ;;
12874 esac
12875 ;;
12876 esac
12877 fi
12878 rm -rf conftest*
12879 ;;
12880
12881
12882esac
12883
12884need_locks="$enable_libtool_lock"
12885
12886
12887
12888
12889if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12891 (test "X$CXX" != "Xg++"))) ; then
12892 ac_ext=cpp
12893ac_cpp='$CXXCPP $CPPFLAGS'
12894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12897{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12899if test -z "$CXXCPP"; then
12900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903 # Double quotes because CXXCPP needs to be expanded
12904 for CXXCPP in "$CXX -E" "/lib/cpp"
12905 do
12906 ac_preproc_ok=false
12907for ac_cxx_preproc_warn_flag in '' yes
12908do
12909 # Use a header file that comes with gcc, so configuring glibc
12910 # with a fresh cross-compiler works.
12911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 # <limits.h> exists even on freestanding compilers.
12913 # On the NeXT, cc -E runs the code through the compiler's parser,
12914 # not just through cpp. "Syntax error" is here to catch this case.
12915 cat >conftest.$ac_ext <<_ACEOF
12916/* confdefs.h. */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h. */
12921#ifdef __STDC__
12922# include <limits.h>
12923#else
12924# include <assert.h>
12925#endif
12926 Syntax error
12927_ACEOF
12928if { (ac_try="$ac_cpp conftest.$ac_ext"
12929case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_cxx_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12944 else
12945 ac_cpp_err=
12946 fi
12947else
12948 ac_cpp_err=yes
12949fi
12950if test -z "$ac_cpp_err"; then
12951 :
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 # Broken: fails on valid input.
12957continue
12958fi
12959
12960rm -f conftest.err conftest.$ac_ext
12961
12962 # OK, works on sane cases. Now check whether nonexistent headers
12963 # can be detected and how.
12964 cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970#include <ac_nonexistent.h>
12971_ACEOF
12972if { (ac_try="$ac_cpp conftest.$ac_ext"
12973case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
12977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } >/dev/null; then
12985 if test -s conftest.err; then
12986 ac_cpp_err=$ac_cxx_preproc_warn_flag
12987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12988 else
12989 ac_cpp_err=
12990 fi
12991else
12992 ac_cpp_err=yes
12993fi
12994if test -z "$ac_cpp_err"; then
12995 # Broken: success on invalid input.
12996continue
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 # Passes both tests.
13002ac_preproc_ok=:
13003break
13004fi
13005
13006rm -f conftest.err conftest.$ac_ext
13007
13008done
13009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13010rm -f conftest.err conftest.$ac_ext
13011if $ac_preproc_ok; then
13012 break
13013fi
13014
13015 done
13016 ac_cv_prog_CXXCPP=$CXXCPP
13017
13018fi
13019 CXXCPP=$ac_cv_prog_CXXCPP
13020else
13021 ac_cv_prog_CXXCPP=$CXXCPP
13022fi
13023{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13024echo "${ECHO_T}$CXXCPP" >&6; }
13025ac_preproc_ok=false
13026for ac_cxx_preproc_warn_flag in '' yes
13027do
13028 # Use a header file that comes with gcc, so configuring glibc
13029 # with a fresh cross-compiler works.
13030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 # <limits.h> exists even on freestanding compilers.
13032 # On the NeXT, cc -E runs the code through the compiler's parser,
13033 # not just through cpp. "Syntax error" is here to catch this case.
13034 cat >conftest.$ac_ext <<_ACEOF
13035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040#ifdef __STDC__
13041# include <limits.h>
13042#else
13043# include <assert.h>
13044#endif
13045 Syntax error
13046_ACEOF
13047if { (ac_try="$ac_cpp conftest.$ac_ext"
13048case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } >/dev/null; then
13060 if test -s conftest.err; then
13061 ac_cpp_err=$ac_cxx_preproc_warn_flag
13062 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13063 else
13064 ac_cpp_err=
13065 fi
13066else
13067 ac_cpp_err=yes
13068fi
13069if test -z "$ac_cpp_err"; then
13070 :
13071else
13072 echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 # Broken: fails on valid input.
13076continue
13077fi
13078
13079rm -f conftest.err conftest.$ac_ext
13080
13081 # OK, works on sane cases. Now check whether nonexistent headers
13082 # can be detected and how.
13083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089#include <ac_nonexistent.h>
13090_ACEOF
13091if { (ac_try="$ac_cpp conftest.$ac_ext"
13092case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev/null; then
13104 if test -s conftest.err; then
13105 ac_cpp_err=$ac_cxx_preproc_warn_flag
13106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13107 else
13108 ac_cpp_err=
13109 fi
13110else
13111 ac_cpp_err=yes
13112fi
13113if test -z "$ac_cpp_err"; then
13114 # Broken: success on invalid input.
13115continue
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 # Passes both tests.
13121ac_preproc_ok=:
13122break
13123fi
13124
13125rm -f conftest.err conftest.$ac_ext
13126
13127done
13128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13129rm -f conftest.err conftest.$ac_ext
13130if $ac_preproc_ok; then
13131 :
13132else
13133 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134See \`config.log' for more details." >&5
13135echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13136See \`config.log' for more details." >&2;}
13137 { (exit 1); exit 1; }; }
13138fi
13139
13140ac_ext=cpp
13141ac_cpp='$CXXCPP $CPPFLAGS'
13142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13145
13146fi
13147
13148
13149ac_ext=f
13150ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13151ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13153if test -n "$ac_tool_prefix"; then
13154 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13155 do
13156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13160if test "${ac_cv_prog_F77+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 if test -n "$F77"; then
13164 ac_cv_prog_F77="$F77" # Let the user override the test.
13165else
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13173 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177done
13178done
13179IFS=$as_save_IFS
13180
13181fi
13182fi
13183F77=$ac_cv_prog_F77
13184if test -n "$F77"; then
13185 { echo "$as_me:$LINENO: result: $F77" >&5
13186echo "${ECHO_T}$F77" >&6; }
13187else
13188 { echo "$as_me:$LINENO: result: no" >&5
13189echo "${ECHO_T}no" >&6; }
13190fi
13191
13192
13193 test -n "$F77" && break
13194 done
13195fi
13196if test -z "$F77"; then
13197 ac_ct_F77=$F77
13198 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13199do
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201set dummy $ac_prog; ac_word=$2
13202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 if test -n "$ac_ct_F77"; then
13208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_prog_ac_ct_F77="$ac_prog"
13218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222done
13223IFS=$as_save_IFS
13224
13225fi
13226fi
13227ac_ct_F77=$ac_cv_prog_ac_ct_F77
13228if test -n "$ac_ct_F77"; then
13229 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13230echo "${ECHO_T}$ac_ct_F77" >&6; }
13231else
13232 { echo "$as_me:$LINENO: result: no" >&5
13233echo "${ECHO_T}no" >&6; }
13234fi
13235
13236
13237 test -n "$ac_ct_F77" && break
13238done
13239
13240 if test "x$ac_ct_F77" = x; then
13241 F77=""
13242 else
13243 case $cross_compiling:$ac_tool_warned in
13244yes:)
13245{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13246whose name does not start with the host triplet. If you think this
13247configuration is useful to you, please write to autoconf@gnu.org." >&5
13248echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13249whose name does not start with the host triplet. If you think this
13250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13251ac_tool_warned=yes ;;
13252esac
13253 F77=$ac_ct_F77
13254 fi
13255fi
13256
13257
13258# Provide some information about the compiler.
13259echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13260ac_compiler=`set X $ac_compile; echo $2`
13261{ (ac_try="$ac_compiler --version >&5"
13262case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13265esac
13266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_compiler --version >&5") 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }
13271{ (ac_try="$ac_compiler -v >&5"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compiler -v >&5") 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }
13281{ (ac_try="$ac_compiler -V >&5"
13282case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compiler -V >&5") 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }
13291rm -f a.out
13292
13293# If we don't use `.F' as extension, the preprocessor is not run on the
13294# input file. (Note that this only needs to work for GNU compilers.)
13295ac_save_ext=$ac_ext
13296ac_ext=F
13297{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13298echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13299if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301else
13302 cat >conftest.$ac_ext <<_ACEOF
13303 program main
13304#ifndef __GNUC__
13305 choke me
13306#endif
13307
13308 end
13309_ACEOF
13310rm -f conftest.$ac_objext
13311if { (ac_try="$ac_compile"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_compiler_gnu=yes
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_compiler_gnu=no
13350fi
13351
13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13354
13355fi
13356{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13357echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13358ac_ext=$ac_save_ext
13359ac_test_FFLAGS=${FFLAGS+set}
13360ac_save_FFLAGS=$FFLAGS
13361FFLAGS=
13362{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13363echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13364if test "${ac_cv_prog_f77_g+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 FFLAGS=-g
13368cat >conftest.$ac_ext <<_ACEOF
13369 program main
13370
13371 end
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (ac_try="$ac_compile"
13375case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378esac
13379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_compile") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_prog_f77_g=yes
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_prog_f77_g=no
13413fi
13414
13415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13416
13417fi
13418{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13419echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13420if test "$ac_test_FFLAGS" = set; then
13421 FFLAGS=$ac_save_FFLAGS
13422elif test $ac_cv_prog_f77_g = yes; then
13423 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13424 FFLAGS="-g -O2"
13425 else
13426 FFLAGS="-g"
13427 fi
13428else
13429 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13430 FFLAGS="-O2"
13431 else
13432 FFLAGS=
13433 fi
13434fi
13435
13436G77=`test $ac_compiler_gnu = yes && echo yes`
13437ac_ext=c
13438ac_cpp='$CPP $CPPFLAGS'
13439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441ac_compiler_gnu=$ac_cv_c_compiler_gnu
13442
13443
13444
13445# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13446
13447# find the maximum length of command line arguments
13448{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13449echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13450if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
13453 i=0
13454 teststring="ABCD"
13455
13456 case $build_os in
13457 msdosdjgpp*)
13458 # On DJGPP, this test can blow up pretty badly due to problems in libc
13459 # (any single argument exceeding 2000 bytes causes a buffer overrun
13460 # during glob expansion). Even if it were fixed, the result of this
13461 # check would be larger than it should be.
13462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13463 ;;
13464
13465 gnu*)
13466 # Under GNU Hurd, this test is not required because there is
13467 # no limit to the length of command line arguments.
13468 # Libtool will interpret -1 as no limit whatsoever
13469 lt_cv_sys_max_cmd_len=-1;
13470 ;;
13471
13472 cygwin* | mingw*)
13473 # On Win9x/ME, this test blows up -- it succeeds, but takes
13474 # about 5 minutes as the teststring grows exponentially.
13475 # Worse, since 9x/ME are not pre-emptively multitasking,
13476 # you end up with a "frozen" computer, even though with patience
13477 # the test eventually succeeds (with a max line length of 256k).
13478 # Instead, let's just punt: use the minimum linelength reported by
13479 # all of the supported platforms: 8192 (on NT/2K/XP).
13480 lt_cv_sys_max_cmd_len=8192;
13481 ;;
13482
13483 amigaos*)
13484 # On AmigaOS with pdksh, this test takes hours, literally.
13485 # So we just punt and use a minimum line length of 8192.
13486 lt_cv_sys_max_cmd_len=8192;
13487 ;;
13488
13489 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13490 # This has been around since 386BSD, at least. Likely further.
13491 if test -x /sbin/sysctl; then
13492 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13493 elif test -x /usr/sbin/sysctl; then
13494 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13495 else
13496 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13497 fi
13498 # And add a safety zone
13499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13501 ;;
13502
13503 interix*)
13504 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13505 lt_cv_sys_max_cmd_len=196608
13506 ;;
13507
13508 osf*)
13509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13511 # nice to cause kernel panics so lets avoid the loop below.
13512 # First set a reasonable default.
13513 lt_cv_sys_max_cmd_len=16384
13514 #
13515 if test -x /sbin/sysconfig; then
13516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13518 esac
13519 fi
13520 ;;
13521 sco3.2v5*)
13522 lt_cv_sys_max_cmd_len=102400
13523 ;;
13524 sysv5* | sco5v6* | sysv4.2uw2*)
13525 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13526 if test -n "$kargmax"; then
13527 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13528 else
13529 lt_cv_sys_max_cmd_len=32768
13530 fi
13531 ;;
13532 *)
13533 # If test is not a shell built-in, we'll probably end up computing a
13534 # maximum length that is only half of the actual maximum length, but
13535 # we can't tell.
13536 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13537 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13538 = "XX$teststring") >/dev/null 2>&1 &&
13539 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13540 lt_cv_sys_max_cmd_len=$new_result &&
13541 test $i != 17 # 1/2 MB should be enough
13542 do
13543 i=`expr $i + 1`
13544 teststring=$teststring$teststring
13545 done
13546 teststring=
13547 # Add a significant safety factor because C++ compilers can tack on massive
13548 # amounts of additional arguments before passing them to the linker.
13549 # It appears as though 1/2 is a usable value.
13550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13551 ;;
13552 esac
13553
13554fi
13555
13556if test -n $lt_cv_sys_max_cmd_len ; then
13557 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13558echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13559else
13560 { echo "$as_me:$LINENO: result: none" >&5
13561echo "${ECHO_T}none" >&6; }
13562fi
13563
13564
13565
13566
13567# Check for command to grab the raw symbol name followed by C symbol from nm.
13568{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13569echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13570if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573
13574# These are sane defaults that work on at least a few old systems.
13575# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13576
13577# Character class describing NM global symbol codes.
13578symcode='[BCDEGRST]'
13579
13580# Regexp to match symbols that can be accessed directly from C.
13581sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13582
13583# Transform an extracted symbol line into a proper C declaration
13584lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13585
13586# Transform an extracted symbol line into symbol name and symbol address
13587lt_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'"
13588
13589# Define system-specific variables.
13590case $host_os in
13591aix*)
13592 symcode='[BCDT]'
13593 ;;
13594cygwin* | mingw* | pw32*)
13595 symcode='[ABCDGISTW]'
13596 ;;
13597hpux*) # Its linker distinguishes data from code symbols
13598 if test "$host_cpu" = ia64; then
13599 symcode='[ABCDEGRST]'
13600 fi
13601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13602 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'"
13603 ;;
13604linux*)
13605 if test "$host_cpu" = ia64; then
13606 symcode='[ABCDGIRSTW]'
13607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13608 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'"
13609 fi
13610 ;;
13611irix* | nonstopux*)
13612 symcode='[BCDEGRST]'
13613 ;;
13614osf*)
13615 symcode='[BCDEGQRST]'
13616 ;;
13617solaris*)
13618 symcode='[BDRT]'
13619 ;;
13620sco3.2v5*)
13621 symcode='[DT]'
13622 ;;
13623sysv4.2uw2*)
13624 symcode='[DT]'
13625 ;;
13626sysv5* | sco5v6* | unixware* | OpenUNIX*)
13627 symcode='[ABDT]'
13628 ;;
13629sysv4)
13630 symcode='[DFNSTU]'
13631 ;;
13632esac
13633
13634# Handle CRLF in mingw tool chain
13635opt_cr=
13636case $build_os in
13637mingw*)
13638 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13639 ;;
13640esac
13641
13642# If we're using GNU nm, then use its standard symbol codes.
13643case `$NM -V 2>&1` in
13644*GNU* | *'with BFD'*)
13645 symcode='[ABCDGIRSTW]' ;;
13646esac
13647
13648# Try without a prefix undercore, then with it.
13649for ac_symprfx in "" "_"; do
13650
13651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13652 symxfrm="\\1 $ac_symprfx\\2 \\2"
13653
13654 # Write the raw and C identifiers.
13655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13656
13657 # Check to see that the pipe works correctly.
13658 pipe_works=no
13659
13660 rm -f conftest*
13661 cat > conftest.$ac_ext <<EOF
13662#ifdef __cplusplus
13663extern "C" {
13664#endif
13665char nm_test_var;
13666void nm_test_func(){}
13667#ifdef __cplusplus
13668}
13669#endif
13670int main(){nm_test_var='a';nm_test_func();return(0);}
13671EOF
13672
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674 (eval $ac_compile) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; then
13678 # Now try to grab the symbols.
13679 nlist=conftest.nm
13680 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13681 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s "$nlist"; then
13685 # Try sorting and uniquifying the output.
13686 if sort "$nlist" | uniq > "$nlist"T; then
13687 mv -f "$nlist"T "$nlist"
13688 else
13689 rm -f "$nlist"T
13690 fi
13691
13692 # Make sure that we snagged all the symbols we need.
13693 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13694 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13695 cat <<EOF > conftest.$ac_ext
13696#ifdef __cplusplus
13697extern "C" {
13698#endif
13699
13700EOF
13701 # Now generate the symbol file.
13702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13703
13704 cat <<EOF >> conftest.$ac_ext
13705#if defined (__STDC__) && __STDC__
13706# define lt_ptr_t void *
13707#else
13708# define lt_ptr_t char *
13709# define const
13710#endif
13711
13712/* The mapping between symbol names and symbols. */
13713const struct {
13714 const char *name;
13715 lt_ptr_t address;
13716}
13717lt_preloaded_symbols[] =
13718{
13719EOF
13720 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13721 cat <<\EOF >> conftest.$ac_ext
13722 {0, (lt_ptr_t) 0}
13723};
13724
13725#ifdef __cplusplus
13726}
13727#endif
13728EOF
13729 # Now try linking the two files.
13730 mv conftest.$ac_objext conftstm.$ac_objext
13731 lt_save_LIBS="$LIBS"
13732 lt_save_CFLAGS="$CFLAGS"
13733 LIBS="conftstm.$ac_objext"
13734 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13740 pipe_works=yes
13741 fi
13742 LIBS="$lt_save_LIBS"
13743 CFLAGS="$lt_save_CFLAGS"
13744 else
13745 echo "cannot find nm_test_func in $nlist" >&5
13746 fi
13747 else
13748 echo "cannot find nm_test_var in $nlist" >&5
13749 fi
13750 else
13751 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13752 fi
13753 else
13754 echo "$progname: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13756 fi
13757 rm -f conftest* conftst*
13758
13759 # Do not use the global_symbol_pipe unless it works.
13760 if test "$pipe_works" = yes; then
13761 break
13762 else
13763 lt_cv_sys_global_symbol_pipe=
13764 fi
13765done
13766
13767fi
13768
13769if test -z "$lt_cv_sys_global_symbol_pipe"; then
13770 lt_cv_sys_global_symbol_to_cdecl=
13771fi
13772if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13773 { echo "$as_me:$LINENO: result: failed" >&5
13774echo "${ECHO_T}failed" >&6; }
13775else
13776 { echo "$as_me:$LINENO: result: ok" >&5
13777echo "${ECHO_T}ok" >&6; }
13778fi
13779
13780{ echo "$as_me:$LINENO: checking for objdir" >&5
13781echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13782if test "${lt_cv_objdir+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
13785 rm -f .libs 2>/dev/null
13786mkdir .libs 2>/dev/null
13787if test -d .libs; then
13788 lt_cv_objdir=.libs
13789else
13790 # MS-DOS does not allow filenames that begin with a dot.
13791 lt_cv_objdir=_libs
13792fi
13793rmdir .libs 2>/dev/null
13794fi
13795{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13796echo "${ECHO_T}$lt_cv_objdir" >&6; }
13797objdir=$lt_cv_objdir
13798
13799
13800
13801
13802
13803case $host_os in
13804aix3*)
13805 # AIX sometimes has problems with the GCC collect2 program. For some
13806 # reason, if we set the COLLECT_NAMES environment variable, the problems
13807 # vanish in a puff of smoke.
13808 if test "X${COLLECT_NAMES+set}" != Xset; then
13809 COLLECT_NAMES=
13810 export COLLECT_NAMES
13811 fi
13812 ;;
13813esac
13814
13815# Sed substitution that helps us do robust quoting. It backslashifies
13816# metacharacters that are still active within double-quoted strings.
13817Xsed='sed -e 1s/^X//'
13818sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13819
13820# Same as above, but do not quote variable references.
13821double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13822
13823# Sed substitution to delay expansion of an escaped shell variable in a
13824# double_quote_subst'ed string.
13825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13826
13827# Sed substitution to avoid accidental globbing in evaled expressions
13828no_glob_subst='s/\*/\\\*/g'
13829
13830# Constants:
13831rm="rm -f"
13832
13833# Global variables:
13834default_ofile=mklib
13835can_build_shared=yes
13836
13837# All known linkers require a `.a' archive for static linking (except MSVC,
13838# which needs '.lib').
13839libext=a
13840ltmain="$ac_aux_dir/ltmain.sh"
13841ofile="$default_ofile"
13842with_gnu_ld="$lt_cv_prog_gnu_ld"
13843
13844if test -n "$ac_tool_prefix"; then
13845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13846set dummy ${ac_tool_prefix}ar; ac_word=$2
13847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13849if test "${ac_cv_prog_AR+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852 if test -n "$AR"; then
13853 ac_cv_prog_AR="$AR" # Let the user override the test.
13854else
13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13862 ac_cv_prog_AR="${ac_tool_prefix}ar"
13863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866done
13867done
13868IFS=$as_save_IFS
13869
13870fi
13871fi
13872AR=$ac_cv_prog_AR
13873if test -n "$AR"; then
13874 { echo "$as_me:$LINENO: result: $AR" >&5
13875echo "${ECHO_T}$AR" >&6; }
13876else
13877 { echo "$as_me:$LINENO: result: no" >&5
13878echo "${ECHO_T}no" >&6; }
13879fi
13880
13881
13882fi
13883if test -z "$ac_cv_prog_AR"; then
13884 ac_ct_AR=$AR
13885 # Extract the first word of "ar", so it can be a program name with args.
13886set dummy ar; ac_word=$2
13887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13889if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891else
13892 if test -n "$ac_ct_AR"; then
13893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13894else
13895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896for as_dir in $PATH
13897do
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13902 ac_cv_prog_ac_ct_AR="ar"
13903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13905 fi
13906done
13907done
13908IFS=$as_save_IFS
13909
13910fi
13911fi
13912ac_ct_AR=$ac_cv_prog_ac_ct_AR
13913if test -n "$ac_ct_AR"; then
13914 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13915echo "${ECHO_T}$ac_ct_AR" >&6; }
13916else
13917 { echo "$as_me:$LINENO: result: no" >&5
13918echo "${ECHO_T}no" >&6; }
13919fi
13920
13921 if test "x$ac_ct_AR" = x; then
13922 AR="false"
13923 else
13924 case $cross_compiling:$ac_tool_warned in
13925yes:)
13926{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13927whose name does not start with the host triplet. If you think this
13928configuration is useful to you, please write to autoconf@gnu.org." >&5
13929echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13930whose name does not start with the host triplet. If you think this
13931configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13932ac_tool_warned=yes ;;
13933esac
13934 AR=$ac_ct_AR
13935 fi
13936else
13937 AR="$ac_cv_prog_AR"
13938fi
13939
13940if test -n "$ac_tool_prefix"; then
13941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13942set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13945if test "${ac_cv_prog_RANLIB+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 if test -n "$RANLIB"; then
13949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13950else
13951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952for as_dir in $PATH
13953do
13954 IFS=$as_save_IFS
13955 test -z "$as_dir" && as_dir=.
13956 for ac_exec_ext in '' $ac_executable_extensions; do
13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13960 break 2
13961 fi
13962done
13963done
13964IFS=$as_save_IFS
13965
13966fi
13967fi
13968RANLIB=$ac_cv_prog_RANLIB
13969if test -n "$RANLIB"; then
13970 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13971echo "${ECHO_T}$RANLIB" >&6; }
13972else
13973 { echo "$as_me:$LINENO: result: no" >&5
13974echo "${ECHO_T}no" >&6; }
13975fi
13976
13977
13978fi
13979if test -z "$ac_cv_prog_RANLIB"; then
13980 ac_ct_RANLIB=$RANLIB
13981 # Extract the first word of "ranlib", so it can be a program name with args.
13982set dummy ranlib; ac_word=$2
13983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13985if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 if test -n "$ac_ct_RANLIB"; then
13989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13990else
13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992for as_dir in $PATH
13993do
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_ac_ct_RANLIB="ranlib"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14001 fi
14002done
14003done
14004IFS=$as_save_IFS
14005
14006fi
14007fi
14008ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14009if test -n "$ac_ct_RANLIB"; then
14010 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14011echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14012else
14013 { echo "$as_me:$LINENO: result: no" >&5
14014echo "${ECHO_T}no" >&6; }
14015fi
14016
14017 if test "x$ac_ct_RANLIB" = x; then
14018 RANLIB=":"
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021yes:)
14022{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14023whose name does not start with the host triplet. If you think this
14024configuration is useful to you, please write to autoconf@gnu.org." >&5
14025echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14026whose name does not start with the host triplet. If you think this
14027configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14028ac_tool_warned=yes ;;
14029esac
14030 RANLIB=$ac_ct_RANLIB
14031 fi
14032else
14033 RANLIB="$ac_cv_prog_RANLIB"
14034fi
14035
14036if test -n "$ac_tool_prefix"; then
14037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14038set dummy ${ac_tool_prefix}strip; ac_word=$2
14039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041if test "${ac_cv_prog_STRIP+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044 if test -n "$STRIP"; then
14045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14046else
14047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058done
14059done
14060IFS=$as_save_IFS
14061
14062fi
14063fi
14064STRIP=$ac_cv_prog_STRIP
14065if test -n "$STRIP"; then
14066 { echo "$as_me:$LINENO: result: $STRIP" >&5
14067echo "${ECHO_T}$STRIP" >&6; }
14068else
14069 { echo "$as_me:$LINENO: result: no" >&5
14070echo "${ECHO_T}no" >&6; }
14071fi
14072
14073
14074fi
14075if test -z "$ac_cv_prog_STRIP"; then
14076 ac_ct_STRIP=$STRIP
14077 # Extract the first word of "strip", so it can be a program name with args.
14078set dummy strip; ac_word=$2
14079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 if test -n "$ac_ct_STRIP"; then
14085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14086else
14087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088for as_dir in $PATH
14089do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14094 ac_cv_prog_ac_ct_STRIP="strip"
14095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14097 fi
14098done
14099done
14100IFS=$as_save_IFS
14101
14102fi
14103fi
14104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14105if test -n "$ac_ct_STRIP"; then
14106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14107echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14108else
14109 { echo "$as_me:$LINENO: result: no" >&5
14110echo "${ECHO_T}no" >&6; }
14111fi
14112
14113 if test "x$ac_ct_STRIP" = x; then
14114 STRIP=":"
14115 else
14116 case $cross_compiling:$ac_tool_warned in
14117yes:)
14118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14119whose name does not start with the host triplet. If you think this
14120configuration is useful to you, please write to autoconf@gnu.org." >&5
14121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14122whose name does not start with the host triplet. If you think this
14123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14124ac_tool_warned=yes ;;
14125esac
14126 STRIP=$ac_ct_STRIP
14127 fi
14128else
14129 STRIP="$ac_cv_prog_STRIP"
14130fi
14131
14132
14133old_CC="$CC"
14134old_CFLAGS="$CFLAGS"
14135
14136# Set sane defaults for various variables
14137test -z "$AR" && AR=ar
14138test -z "$AR_FLAGS" && AR_FLAGS=cru
14139test -z "$AS" && AS=as
14140test -z "$CC" && CC=cc
14141test -z "$LTCC" && LTCC=$CC
14142test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14143test -z "$DLLTOOL" && DLLTOOL=dlltool
14144test -z "$LD" && LD=ld
14145test -z "$LN_S" && LN_S="ln -s"
14146test -z "$MAGIC_CMD" && MAGIC_CMD=file
14147test -z "$NM" && NM=nm
14148test -z "$SED" && SED=sed
14149test -z "$OBJDUMP" && OBJDUMP=objdump
14150test -z "$RANLIB" && RANLIB=:
14151test -z "$STRIP" && STRIP=:
14152test -z "$ac_objext" && ac_objext=o
14153
14154# Determine commands to create old-style static archives.
14155old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14156old_postinstall_cmds='chmod 644 $oldlib'
14157old_postuninstall_cmds=
14158
14159if test -n "$RANLIB"; then
14160 case $host_os in
14161 openbsd*)
14162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14163 ;;
14164 *)
14165 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14166 ;;
14167 esac
14168 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14169fi
14170
14171for cc_temp in $compiler""; do
14172 case $cc_temp in
14173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14175 \-*) ;;
14176 *) break;;
14177 esac
14178done
14179cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14180
14181
14182# Only perform the check for file, if the check method requires it
14183case $deplibs_check_method in
14184file_magic*)
14185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14186 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14187echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190else
14191 case $MAGIC_CMD in
14192[\\/*] | ?:[\\/]*)
14193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14194 ;;
14195*)
14196 lt_save_MAGIC_CMD="$MAGIC_CMD"
14197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14199 for ac_dir in $ac_dummy; do
14200 IFS="$lt_save_ifs"
14201 test -z "$ac_dir" && ac_dir=.
14202 if test -f $ac_dir/${ac_tool_prefix}file; then
14203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14204 if test -n "$file_magic_test_file"; then
14205 case $deplibs_check_method in
14206 "file_magic "*)
14207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14210 $EGREP "$file_magic_regex" > /dev/null; then
14211 :
14212 else
14213 cat <<EOF 1>&2
14214
14215*** Warning: the command libtool uses to detect shared libraries,
14216*** $file_magic_cmd, produces output that libtool cannot recognize.
14217*** The result is that libtool may fail to recognize shared libraries
14218*** as such. This will affect the creation of libtool libraries that
14219*** depend on shared libraries, but programs linked with such libtool
14220*** libraries will work regardless of this problem. Nevertheless, you
14221*** may want to report the problem to your system manager and/or to
14222*** bug-libtool@gnu.org
14223
14224EOF
14225 fi ;;
14226 esac
14227 fi
14228 break
14229 fi
14230 done
14231 IFS="$lt_save_ifs"
14232 MAGIC_CMD="$lt_save_MAGIC_CMD"
14233 ;;
14234esac
14235fi
14236
14237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238if test -n "$MAGIC_CMD"; then
14239 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14240echo "${ECHO_T}$MAGIC_CMD" >&6; }
14241else
14242 { echo "$as_me:$LINENO: result: no" >&5
14243echo "${ECHO_T}no" >&6; }
14244fi
14245
14246if test -z "$lt_cv_path_MAGIC_CMD"; then
14247 if test -n "$ac_tool_prefix"; then
14248 { echo "$as_me:$LINENO: checking for file" >&5
14249echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14250if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252else
14253 case $MAGIC_CMD in
14254[\\/*] | ?:[\\/]*)
14255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14256 ;;
14257*)
14258 lt_save_MAGIC_CMD="$MAGIC_CMD"
14259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14261 for ac_dir in $ac_dummy; do
14262 IFS="$lt_save_ifs"
14263 test -z "$ac_dir" && ac_dir=.
14264 if test -f $ac_dir/file; then
14265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14266 if test -n "$file_magic_test_file"; then
14267 case $deplibs_check_method in
14268 "file_magic "*)
14269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14272 $EGREP "$file_magic_regex" > /dev/null; then
14273 :
14274 else
14275 cat <<EOF 1>&2
14276
14277*** Warning: the command libtool uses to detect shared libraries,
14278*** $file_magic_cmd, produces output that libtool cannot recognize.
14279*** The result is that libtool may fail to recognize shared libraries
14280*** as such. This will affect the creation of libtool libraries that
14281*** depend on shared libraries, but programs linked with such libtool
14282*** libraries will work regardless of this problem. Nevertheless, you
14283*** may want to report the problem to your system manager and/or to
14284*** bug-libtool@gnu.org
14285
14286EOF
14287 fi ;;
14288 esac
14289 fi
14290 break
14291 fi
14292 done
14293 IFS="$lt_save_ifs"
14294 MAGIC_CMD="$lt_save_MAGIC_CMD"
14295 ;;
14296esac
14297fi
14298
14299MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300if test -n "$MAGIC_CMD"; then
14301 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14302echo "${ECHO_T}$MAGIC_CMD" >&6; }
14303else
14304 { echo "$as_me:$LINENO: result: no" >&5
14305echo "${ECHO_T}no" >&6; }
14306fi
14307
14308 else
14309 MAGIC_CMD=:
14310 fi
14311fi
14312
14313 fi
14314 ;;
14315esac
14316
14317enable_dlopen=yes
14318enable_win32_dll=no
14319
14320# Check whether --enable-libtool-lock was given.
14321if test "${enable_libtool_lock+set}" = set; then
14322 enableval=$enable_libtool_lock;
14323fi
14324
14325test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14326
14327
14328# Check whether --with-pic was given.
14329if test "${with_pic+set}" = set; then
14330 withval=$with_pic; pic_mode="$withval"
14331else
14332 pic_mode=default
14333fi
14334
14335test -z "$pic_mode" && pic_mode=default
14336
14337# Use C for the default configuration in the libtool script
14338tagname=
14339lt_save_CC="$CC"
14340ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346
14347# Source file extension for C test sources.
14348ac_ext=c
14349
14350# Object file extension for compiled C test sources.
14351objext=o
14352objext=$objext
14353
14354# Code to be used in simple compile tests
14355lt_simple_compile_test_code="int some_variable = 0;\n"
14356
14357# Code to be used in simple link tests
14358lt_simple_link_test_code='int main(){return(0);}\n'
14359
14360
14361# If no C compiler was specified, use CC.
14362LTCC=${LTCC-"$CC"}
14363
14364# If no C compiler flags were specified, use CFLAGS.
14365LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14366
14367# Allow CC to be a program name with arguments.
14368compiler=$CC
14369
14370
14371# save warnings/boilerplate of simple test code
14372ac_outfile=conftest.$ac_objext
14373printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14375_lt_compiler_boilerplate=`cat conftest.err`
14376$rm conftest*
14377
14378ac_outfile=conftest.$ac_objext
14379printf "$lt_simple_link_test_code" >conftest.$ac_ext
14380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14381_lt_linker_boilerplate=`cat conftest.err`
14382$rm conftest*
14383
14384
14385
14386lt_prog_compiler_no_builtin_flag=
14387
14388if test "$GCC" = yes; then
14389 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14390
14391
14392{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14393echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14394if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 lt_cv_prog_compiler_rtti_exceptions=no
14398 ac_outfile=conftest.$ac_objext
14399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14400 lt_compiler_flag="-fno-rtti -fno-exceptions"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 # The option is referenced via a variable to avoid confusing sed.
14406 lt_compile=`echo "$ac_compile" | $SED \
14407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014410 (eval echo "\"\$as_me:14410: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014411 (eval "$lt_compile" 2>conftest.err)
14412 ac_status=$?
14413 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014414 echo "$as_me:14414: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014415 if (exit $ac_status) && test -s "$ac_outfile"; then
14416 # The compiler can only warn and ignore the option if not recognized
14417 # So say no if there are warnings other than the usual output.
14418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14421 lt_cv_prog_compiler_rtti_exceptions=yes
14422 fi
14423 fi
14424 $rm conftest*
14425
14426fi
14427{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14428echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14429
14430if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14431 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14432else
14433 :
14434fi
14435
14436fi
14437
14438lt_prog_compiler_wl=
14439lt_prog_compiler_pic=
14440lt_prog_compiler_static=
14441
14442{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14443echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14444
14445 if test "$GCC" = yes; then
14446 lt_prog_compiler_wl='-Wl,'
14447 lt_prog_compiler_static='-static'
14448
14449 case $host_os in
14450 aix*)
14451 # All AIX code is PIC.
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 now supports IA64 processor
14454 lt_prog_compiler_static='-Bstatic'
14455 fi
14456 ;;
14457
14458 amigaos*)
14459 # FIXME: we need at least 68020 code to build shared libraries, but
14460 # adding the `-m68020' flag to GCC prevents building anything better,
14461 # like `-m68040'.
14462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14463 ;;
14464
14465 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14466 # PIC is the default for these OSes.
14467 ;;
14468
14469 mingw* | pw32* | os2*)
14470 # This hack is so that the source file can tell whether it is being
14471 # built for inclusion in a dll (and should export symbols for example).
14472 lt_prog_compiler_pic='-DDLL_EXPORT'
14473 ;;
14474
14475 darwin* | rhapsody*)
14476 # PIC is the default on this platform
14477 # Common symbols not allowed in MH_DYLIB files
14478 lt_prog_compiler_pic='-fno-common'
14479 ;;
14480
14481 interix3*)
14482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14483 # Instead, we relocate shared libraries at runtime.
14484 ;;
14485
14486 msdosdjgpp*)
14487 # Just because we use GCC doesn't mean we suddenly get shared libraries
14488 # on systems that don't support them.
14489 lt_prog_compiler_can_build_shared=no
14490 enable_shared=no
14491 ;;
14492
14493 sysv4*MP*)
14494 if test -d /usr/nec; then
14495 lt_prog_compiler_pic=-Kconform_pic
14496 fi
14497 ;;
14498
14499 hpux*)
14500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501 # not for PA HP-UX.
14502 case $host_cpu in
14503 hppa*64*|ia64*)
14504 # +Z the default
14505 ;;
14506 *)
14507 lt_prog_compiler_pic='-fPIC'
14508 ;;
14509 esac
14510 ;;
14511
14512 *)
14513 lt_prog_compiler_pic='-fPIC'
14514 ;;
14515 esac
14516 else
14517 # PORTME Check for flag to pass linker flags through the system compiler.
14518 case $host_os in
14519 aix*)
14520 lt_prog_compiler_wl='-Wl,'
14521 if test "$host_cpu" = ia64; then
14522 # AIX 5 now supports IA64 processor
14523 lt_prog_compiler_static='-Bstatic'
14524 else
14525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14526 fi
14527 ;;
14528 darwin*)
14529 # PIC is the default on this platform
14530 # Common symbols not allowed in MH_DYLIB files
14531 case $cc_basename in
14532 xlc*)
14533 lt_prog_compiler_pic='-qnocommon'
14534 lt_prog_compiler_wl='-Wl,'
14535 ;;
14536 esac
14537 ;;
14538
14539 mingw* | pw32* | os2*)
14540 # This hack is so that the source file can tell whether it is being
14541 # built for inclusion in a dll (and should export symbols for example).
14542 lt_prog_compiler_pic='-DDLL_EXPORT'
14543 ;;
14544
14545 hpux9* | hpux10* | hpux11*)
14546 lt_prog_compiler_wl='-Wl,'
14547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14548 # not for PA HP-UX.
14549 case $host_cpu in
14550 hppa*64*|ia64*)
14551 # +Z the default
14552 ;;
14553 *)
14554 lt_prog_compiler_pic='+Z'
14555 ;;
14556 esac
14557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14558 lt_prog_compiler_static='${wl}-a ${wl}archive'
14559 ;;
14560
14561 irix5* | irix6* | nonstopux*)
14562 lt_prog_compiler_wl='-Wl,'
14563 # PIC (with -KPIC) is the default.
14564 lt_prog_compiler_static='-non_shared'
14565 ;;
14566
14567 newsos6)
14568 lt_prog_compiler_pic='-KPIC'
14569 lt_prog_compiler_static='-Bstatic'
14570 ;;
14571
14572 linux*)
14573 case $cc_basename in
14574 icc* | ecc*)
14575 lt_prog_compiler_wl='-Wl,'
14576 lt_prog_compiler_pic='-KPIC'
14577 lt_prog_compiler_static='-static'
14578 ;;
14579 pgcc* | pgf77* | pgf90* | pgf95*)
14580 # Portland Group compilers (*not* the Pentium gcc compiler,
14581 # which looks to be a dead project)
14582 lt_prog_compiler_wl='-Wl,'
14583 lt_prog_compiler_pic='-fpic'
14584 lt_prog_compiler_static='-Bstatic'
14585 ;;
14586 ccc*)
14587 lt_prog_compiler_wl='-Wl,'
14588 # All Alpha code is PIC.
14589 lt_prog_compiler_static='-non_shared'
14590 ;;
14591 esac
14592 ;;
14593
14594 osf3* | osf4* | osf5*)
14595 lt_prog_compiler_wl='-Wl,'
14596 # All OSF/1 code is PIC.
14597 lt_prog_compiler_static='-non_shared'
14598 ;;
14599
14600 solaris*)
14601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-Bstatic'
14603 case $cc_basename in
14604 f77* | f90* | f95*)
14605 lt_prog_compiler_wl='-Qoption ld ';;
14606 *)
14607 lt_prog_compiler_wl='-Wl,';;
14608 esac
14609 ;;
14610
14611 sunos4*)
14612 lt_prog_compiler_wl='-Qoption ld '
14613 lt_prog_compiler_pic='-PIC'
14614 lt_prog_compiler_static='-Bstatic'
14615 ;;
14616
14617 sysv4 | sysv4.2uw2* | sysv4.3*)
14618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_pic='-KPIC'
14620 lt_prog_compiler_static='-Bstatic'
14621 ;;
14622
14623 sysv4*MP*)
14624 if test -d /usr/nec ;then
14625 lt_prog_compiler_pic='-Kconform_pic'
14626 lt_prog_compiler_static='-Bstatic'
14627 fi
14628 ;;
14629
14630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-KPIC'
14633 lt_prog_compiler_static='-Bstatic'
14634 ;;
14635
14636 unicos*)
14637 lt_prog_compiler_wl='-Wl,'
14638 lt_prog_compiler_can_build_shared=no
14639 ;;
14640
14641 uts4*)
14642 lt_prog_compiler_pic='-pic'
14643 lt_prog_compiler_static='-Bstatic'
14644 ;;
14645
14646 *)
14647 lt_prog_compiler_can_build_shared=no
14648 ;;
14649 esac
14650 fi
14651
14652{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14653echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14654
14655#
14656# Check to make sure the PIC flag actually works.
14657#
14658if test -n "$lt_prog_compiler_pic"; then
14659
14660{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14661echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14662if test "${lt_prog_compiler_pic_works+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 lt_prog_compiler_pic_works=no
14666 ac_outfile=conftest.$ac_objext
14667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14668 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14669 # Insert the option either (1) after the last *FLAGS variable, or
14670 # (2) before a word containing "conftest.", or (3) at the end.
14671 # Note that $ac_compile itself does not contain backslashes and begins
14672 # with a dollar sign (not a hyphen), so the echo should work correctly.
14673 # The option is referenced via a variable to avoid confusing sed.
14674 lt_compile=`echo "$ac_compile" | $SED \
14675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14677 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014678 (eval echo "\"\$as_me:14678: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014679 (eval "$lt_compile" 2>conftest.err)
14680 ac_status=$?
14681 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014682 echo "$as_me:14682: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014683 if (exit $ac_status) && test -s "$ac_outfile"; then
14684 # The compiler can only warn and ignore the option if not recognized
14685 # So say no if there are warnings other than the usual output.
14686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14689 lt_prog_compiler_pic_works=yes
14690 fi
14691 fi
14692 $rm conftest*
14693
14694fi
14695{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14696echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14697
14698if test x"$lt_prog_compiler_pic_works" = xyes; then
14699 case $lt_prog_compiler_pic in
14700 "" | " "*) ;;
14701 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14702 esac
14703else
14704 lt_prog_compiler_pic=
14705 lt_prog_compiler_can_build_shared=no
14706fi
14707
14708fi
14709case $host_os in
14710 # For platforms which do not support PIC, -DPIC is meaningless:
14711 *djgpp*)
14712 lt_prog_compiler_pic=
14713 ;;
14714 *)
14715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14716 ;;
14717esac
14718
14719#
14720# Check to make sure the static flag actually works.
14721#
14722wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14723{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14724echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14725if test "${lt_prog_compiler_static_works+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727else
14728 lt_prog_compiler_static_works=no
14729 save_LDFLAGS="$LDFLAGS"
14730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14731 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14733 # The linker can only warn and ignore the option if not recognized
14734 # So say no if there are warnings
14735 if test -s conftest.err; then
14736 # Append any errors to the config.log.
14737 cat conftest.err 1>&5
14738 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14740 if diff conftest.exp conftest.er2 >/dev/null; then
14741 lt_prog_compiler_static_works=yes
14742 fi
14743 else
14744 lt_prog_compiler_static_works=yes
14745 fi
14746 fi
14747 $rm conftest*
14748 LDFLAGS="$save_LDFLAGS"
14749
14750fi
14751{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14752echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14753
14754if test x"$lt_prog_compiler_static_works" = xyes; then
14755 :
14756else
14757 lt_prog_compiler_static=
14758fi
14759
14760
14761{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14763if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 lt_cv_prog_compiler_c_o=no
14767 $rm -r conftest 2>/dev/null
14768 mkdir conftest
14769 cd conftest
14770 mkdir out
14771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14772
14773 lt_compiler_flag="-o out/conftest2.$ac_objext"
14774 # Insert the option either (1) after the last *FLAGS variable, or
14775 # (2) before a word containing "conftest.", or (3) at the end.
14776 # Note that $ac_compile itself does not contain backslashes and begins
14777 # with a dollar sign (not a hyphen), so the echo should work correctly.
14778 lt_compile=`echo "$ac_compile" | $SED \
14779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14781 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014782 (eval echo "\"\$as_me:14782: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014783 (eval "$lt_compile" 2>out/conftest.err)
14784 ac_status=$?
14785 cat out/conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000014786 echo "$as_me:14786: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14788 then
14789 # The compiler can only warn and ignore the option if not recognized
14790 # So say no if there are warnings
14791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14794 lt_cv_prog_compiler_c_o=yes
14795 fi
14796 fi
14797 chmod u+w . 2>&5
14798 $rm conftest*
14799 # SGI C++ compiler will create directory out/ii_files/ for
14800 # template instantiation
14801 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14802 $rm out/* && rmdir out
14803 cd ..
14804 rmdir conftest
14805 $rm conftest*
14806
14807fi
14808{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14809echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14810
14811
14812hard_links="nottested"
14813if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14814 # do not overwrite the value of need_locks provided by the user
14815 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14816echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14817 hard_links=yes
14818 $rm conftest*
14819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 touch conftest.a
14821 ln conftest.a conftest.b 2>&5 || hard_links=no
14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14823 { echo "$as_me:$LINENO: result: $hard_links" >&5
14824echo "${ECHO_T}$hard_links" >&6; }
14825 if test "$hard_links" = no; then
14826 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14827echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14828 need_locks=warn
14829 fi
14830else
14831 need_locks=no
14832fi
14833
14834{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14835echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14836
14837 runpath_var=
14838 allow_undefined_flag=
14839 enable_shared_with_static_runtimes=no
14840 archive_cmds=
14841 archive_expsym_cmds=
14842 old_archive_From_new_cmds=
14843 old_archive_from_expsyms_cmds=
14844 export_dynamic_flag_spec=
14845 whole_archive_flag_spec=
14846 thread_safe_flag_spec=
14847 hardcode_libdir_flag_spec=
14848 hardcode_libdir_flag_spec_ld=
14849 hardcode_libdir_separator=
14850 hardcode_direct=no
14851 hardcode_minus_L=no
14852 hardcode_shlibpath_var=unsupported
14853 link_all_deplibs=unknown
14854 hardcode_automatic=no
14855 module_cmds=
14856 module_expsym_cmds=
14857 always_export_symbols=no
14858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14859 # include_expsyms should be a list of space-separated symbols to be *always*
14860 # included in the symbol list
14861 include_expsyms=
14862 # exclude_expsyms can be an extended regexp of symbols to exclude
14863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14865 # as well as any symbol that contains `d'.
14866 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14868 # platforms (ab)use it in PIC code, but their linkers get confused if
14869 # the symbol is explicitly referenced. Since portable code cannot
14870 # rely on this symbol name, it's probably fine to never include it in
14871 # preloaded symbol tables.
14872 extract_expsyms_cmds=
14873 # Just being paranoid about ensuring that cc_basename is set.
14874 for cc_temp in $compiler""; do
14875 case $cc_temp in
14876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14878 \-*) ;;
14879 *) break;;
14880 esac
14881done
14882cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14883
14884 case $host_os in
14885 cygwin* | mingw* | pw32*)
14886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14887 # When not using gcc, we currently assume that we are using
14888 # Microsoft Visual C++.
14889 if test "$GCC" != yes; then
14890 with_gnu_ld=no
14891 fi
14892 ;;
14893 interix*)
14894 # we just hope/assume this is gcc and not c89 (= MSVC++)
14895 with_gnu_ld=yes
14896 ;;
14897 openbsd*)
14898 with_gnu_ld=no
14899 ;;
14900 esac
14901
14902 ld_shlibs=yes
14903 if test "$with_gnu_ld" = yes; then
14904 # If archive_cmds runs LD, not CC, wlarc should be empty
14905 wlarc='${wl}'
14906
14907 # Set some defaults for GNU ld with shared library support. These
14908 # are reset later if shared libraries are not supported. Putting them
14909 # here allows them to be overridden if necessary.
14910 runpath_var=LD_RUN_PATH
14911 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14912 export_dynamic_flag_spec='${wl}--export-dynamic'
14913 # ancient GNU ld didn't support --whole-archive et. al.
14914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14915 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916 else
14917 whole_archive_flag_spec=
14918 fi
14919 supports_anon_versioning=no
14920 case `$LD -v 2>/dev/null` in
14921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14924 *\ 2.11.*) ;; # other 2.11 versions
14925 *) supports_anon_versioning=yes ;;
14926 esac
14927
14928 # See if GNU ld supports shared libraries.
14929 case $host_os in
14930 aix3* | aix4* | aix5*)
14931 # On AIX/PPC, the GNU linker is very broken
14932 if test "$host_cpu" != ia64; then
14933 ld_shlibs=no
14934 cat <<EOF 1>&2
14935
14936*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14937*** to be unable to reliably create shared libraries on AIX.
14938*** Therefore, libtool is disabling shared libraries support. If you
14939*** really care for shared libraries, you may want to modify your PATH
14940*** so that a non-GNU linker is found, and then restart.
14941
14942EOF
14943 fi
14944 ;;
14945
14946 amigaos*)
14947 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)'
14948 hardcode_libdir_flag_spec='-L$libdir'
14949 hardcode_minus_L=yes
14950
14951 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14952 # that the semantics of dynamic libraries on AmigaOS, at least up
14953 # to version 4, is to share data among multiple programs linked
14954 # with the same dynamic library. Since this doesn't match the
14955 # behavior of shared libraries on other platforms, we can't use
14956 # them.
14957 ld_shlibs=no
14958 ;;
14959
14960 beos*)
14961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14962 allow_undefined_flag=unsupported
14963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14964 # support --undefined. This deserves some investigation. FIXME
14965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 else
14967 ld_shlibs=no
14968 fi
14969 ;;
14970
14971 cygwin* | mingw* | pw32*)
14972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14973 # as there is no search path for DLLs.
14974 hardcode_libdir_flag_spec='-L$libdir'
14975 allow_undefined_flag=unsupported
14976 always_export_symbols=no
14977 enable_shared_with_static_runtimes=yes
14978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14979
14980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14982 # If the export-symbols file already is a .def file (1st line
14983 # is EXPORTS), use it as is; otherwise, prepend...
14984 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14985 cp $export_symbols $output_objdir/$soname.def;
14986 else
14987 echo EXPORTS > $output_objdir/$soname.def;
14988 cat $export_symbols >> $output_objdir/$soname.def;
14989 fi~
14990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14991 else
14992 ld_shlibs=no
14993 fi
14994 ;;
14995
14996 interix3*)
14997 hardcode_direct=no
14998 hardcode_shlibpath_var=no
14999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15000 export_dynamic_flag_spec='${wl}-E'
15001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15002 # Instead, shared libraries are loaded at an image base (0x10000000 by
15003 # default) and relocated if they conflict, which is a slow very memory
15004 # consuming and fragmenting process. To avoid this, we pick a random,
15005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15008 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'
15009 ;;
15010
15011 linux*)
15012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013 tmp_addflag=
15014 case $cc_basename,$host_cpu in
15015 pgcc*) # Portland Group C compiler
15016 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'
15017 tmp_addflag=' $pic_flag'
15018 ;;
15019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15020 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'
15021 tmp_addflag=' $pic_flag -Mnomain' ;;
15022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15023 tmp_addflag=' -i_dynamic' ;;
15024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15025 tmp_addflag=' -i_dynamic -nofor_main' ;;
15026 ifc* | ifort*) # Intel Fortran compiler
15027 tmp_addflag=' -nofor_main' ;;
15028 esac
15029 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030
15031 if test $supports_anon_versioning = yes; then
15032 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15034 $echo "local: *; };" >> $output_objdir/$libname.ver~
15035 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15036 fi
15037 else
15038 ld_shlibs=no
15039 fi
15040 ;;
15041
15042 netbsd*)
15043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15044 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15045 wlarc=
15046 else
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049 fi
15050 ;;
15051
15052 solaris*)
15053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15054 ld_shlibs=no
15055 cat <<EOF 1>&2
15056
15057*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15058*** create shared libraries on Solaris systems. Therefore, libtool
15059*** is disabling shared libraries support. We urge you to upgrade GNU
15060*** binutils to release 2.9.1 or newer. Another option is to modify
15061*** your PATH or compiler configuration so that the native linker is
15062*** used, and then restart.
15063
15064EOF
15065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068 else
15069 ld_shlibs=no
15070 fi
15071 ;;
15072
15073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15074 case `$LD -v 2>&1` in
15075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15076 ld_shlibs=no
15077 cat <<_LT_EOF 1>&2
15078
15079*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15080*** reliably create shared libraries on SCO systems. Therefore, libtool
15081*** is disabling shared libraries support. We urge you to upgrade GNU
15082*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15083*** your PATH or compiler configuration so that the native linker is
15084*** used, and then restart.
15085
15086_LT_EOF
15087 ;;
15088 *)
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15093 else
15094 ld_shlibs=no
15095 fi
15096 ;;
15097 esac
15098 ;;
15099
15100 sunos4*)
15101 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15102 wlarc=
15103 hardcode_direct=yes
15104 hardcode_shlibpath_var=no
15105 ;;
15106
15107 *)
15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15111 else
15112 ld_shlibs=no
15113 fi
15114 ;;
15115 esac
15116
15117 if test "$ld_shlibs" = no; then
15118 runpath_var=
15119 hardcode_libdir_flag_spec=
15120 export_dynamic_flag_spec=
15121 whole_archive_flag_spec=
15122 fi
15123 else
15124 # PORTME fill in a description of your system's linker (not GNU ld)
15125 case $host_os in
15126 aix3*)
15127 allow_undefined_flag=unsupported
15128 always_export_symbols=yes
15129 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'
15130 # Note: this linker hardcodes the directories in LIBPATH if there
15131 # are no directories specified by -L.
15132 hardcode_minus_L=yes
15133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15134 # Neither direct hardcoding nor static linking is supported with a
15135 # broken collect2.
15136 hardcode_direct=unsupported
15137 fi
15138 ;;
15139
15140 aix4* | aix5*)
15141 if test "$host_cpu" = ia64; then
15142 # On IA64, the linker does run time linking by default, so we don't
15143 # have to do anything special.
15144 aix_use_runtimelinking=no
15145 exp_sym_flag='-Bexport'
15146 no_entry_flag=""
15147 else
15148 # If we're using GNU nm, then we don't want the "-C" option.
15149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15151 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'
15152 else
15153 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'
15154 fi
15155 aix_use_runtimelinking=no
15156
15157 # Test if we are trying to use run time linking or normal
15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15159 # need to do runtime linking.
15160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15161 for ld_flag in $LDFLAGS; do
15162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15163 aix_use_runtimelinking=yes
15164 break
15165 fi
15166 done
15167 ;;
15168 esac
15169
15170 exp_sym_flag='-bexport'
15171 no_entry_flag='-bnoentry'
15172 fi
15173
15174 # When large executables or shared objects are built, AIX ld can
15175 # have problems creating the table of contents. If linking a library
15176 # or program results in "error TOC overflow" add -mminimal-toc to
15177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15179
15180 archive_cmds=''
15181 hardcode_direct=yes
15182 hardcode_libdir_separator=':'
15183 link_all_deplibs=yes
15184
15185 if test "$GCC" = yes; then
15186 case $host_os in aix4.[012]|aix4.[012].*)
15187 # We only want to do this on AIX 4.2 and lower, the check
15188 # below for broken collect2 doesn't work under 4.3+
15189 collect2name=`${CC} -print-prog-name=collect2`
15190 if test -f "$collect2name" && \
15191 strings "$collect2name" | grep resolve_lib_name >/dev/null
15192 then
15193 # We have reworked collect2
15194 hardcode_direct=yes
15195 else
15196 # We have old collect2
15197 hardcode_direct=unsupported
15198 # It fails to find uninstalled libraries when the uninstalled
15199 # path is not listed in the libpath. Setting hardcode_minus_L
15200 # to unsupported forces relinking
15201 hardcode_minus_L=yes
15202 hardcode_libdir_flag_spec='-L$libdir'
15203 hardcode_libdir_separator=
15204 fi
15205 ;;
15206 esac
15207 shared_flag='-shared'
15208 if test "$aix_use_runtimelinking" = yes; then
15209 shared_flag="$shared_flag "'${wl}-G'
15210 fi
15211 else
15212 # not using gcc
15213 if test "$host_cpu" = ia64; then
15214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15215 # chokes on -Wl,-G. The following line is correct:
15216 shared_flag='-G'
15217 else
15218 if test "$aix_use_runtimelinking" = yes; then
15219 shared_flag='${wl}-G'
15220 else
15221 shared_flag='${wl}-bM:SRE'
15222 fi
15223 fi
15224 fi
15225
15226 # It seems that -bexpall does not export symbols beginning with
15227 # underscore (_), so it is better to generate a list of symbols to export.
15228 always_export_symbols=yes
15229 if test "$aix_use_runtimelinking" = yes; then
15230 # Warning - without using the other runtime loading flags (-brtl),
15231 # -berok will link without error, but may produce a broken library.
15232 allow_undefined_flag='-berok'
15233 # Determine the default libpath from the value encoded in an empty executable.
15234 cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240
15241int
15242main ()
15243{
15244
15245 ;
15246 return 0;
15247}
15248_ACEOF
15249rm -f conftest.$ac_objext conftest$ac_exeext
15250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283
15284aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15285}'`
15286# Check for a 64-bit object if we didn't find anything.
15287if 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; }
15288}'`; fi
15289else
15290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293
15294fi
15295
15296rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15299
15300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15301 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"
15302 else
15303 if test "$host_cpu" = ia64; then
15304 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15305 allow_undefined_flag="-z nodefs"
15306 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"
15307 else
15308 # Determine the default libpath from the value encoded in an empty executable.
15309 cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315
15316int
15317main ()
15318{
15319
15320 ;
15321 return 0;
15322}
15323_ACEOF
15324rm -f conftest.$ac_objext conftest$ac_exeext
15325if { (ac_try="$ac_link"
15326case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358
15359aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15360}'`
15361# Check for a 64-bit object if we didn't find anything.
15362if 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; }
15363}'`; fi
15364else
15365 echo "$as_me: failed program was:" >&5
15366sed 's/^/| /' conftest.$ac_ext >&5
15367
15368
15369fi
15370
15371rm -f core conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15374
15375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15376 # Warning - without using the other run time loading flags,
15377 # -berok will link without error, but may produce a broken library.
15378 no_undefined_flag=' ${wl}-bernotok'
15379 allow_undefined_flag=' ${wl}-berok'
15380 # Exported symbols can be pulled into shared objects from archives
15381 whole_archive_flag_spec='$convenience'
15382 archive_cmds_need_lc=yes
15383 # This is similar to how AIX traditionally builds its shared libraries.
15384 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'
15385 fi
15386 fi
15387 ;;
15388
15389 amigaos*)
15390 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)'
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15393 # see comment about different semantics on the GNU ld section
15394 ld_shlibs=no
15395 ;;
15396
15397 bsdi[45]*)
15398 export_dynamic_flag_spec=-rdynamic
15399 ;;
15400
15401 cygwin* | mingw* | pw32*)
15402 # When not using gcc, we currently assume that we are using
15403 # Microsoft Visual C++.
15404 # hardcode_libdir_flag_spec is actually meaningless, as there is
15405 # no search path for DLLs.
15406 hardcode_libdir_flag_spec=' '
15407 allow_undefined_flag=unsupported
15408 # Tell ltmain to make .lib files, not .a files.
15409 libext=lib
15410 # Tell ltmain to make .dll files, not .so files.
15411 shrext_cmds=".dll"
15412 # FIXME: Setting linknames here is a bad hack.
15413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15414 # The linker will automatically build a .lib file if we build a DLL.
15415 old_archive_From_new_cmds='true'
15416 # FIXME: Should let the user specify the lib program.
15417 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15418 fix_srcfile_path='`cygpath -w "$srcfile"`'
15419 enable_shared_with_static_runtimes=yes
15420 ;;
15421
15422 darwin* | rhapsody*)
15423 case $host_os in
15424 rhapsody* | darwin1.[012])
15425 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15426 ;;
15427 *) # Darwin 1.3 on
15428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15430 else
15431 case ${MACOSX_DEPLOYMENT_TARGET} in
15432 10.[012])
15433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15434 ;;
15435 10.*)
15436 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15437 ;;
15438 esac
15439 fi
15440 ;;
15441 esac
15442 archive_cmds_need_lc=no
15443 hardcode_direct=no
15444 hardcode_automatic=yes
15445 hardcode_shlibpath_var=unsupported
15446 whole_archive_flag_spec=''
15447 link_all_deplibs=yes
15448 if test "$GCC" = yes ; then
15449 output_verbose_link_cmd='echo'
15450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15453 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}'
15454 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}'
15455 else
15456 case $cc_basename in
15457 xlc*)
15458 output_verbose_link_cmd='echo'
15459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15462 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}'
15463 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}'
15464 ;;
15465 *)
15466 ld_shlibs=no
15467 ;;
15468 esac
15469 fi
15470 ;;
15471
15472 dgux*)
15473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_shlibpath_var=no
15476 ;;
15477
15478 freebsd1*)
15479 ld_shlibs=no
15480 ;;
15481
15482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15483 # support. Future versions do this automatically, but an explicit c++rt0.o
15484 # does not break anything, and helps significantly (at the cost of a little
15485 # extra space).
15486 freebsd2.2*)
15487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15488 hardcode_libdir_flag_spec='-R$libdir'
15489 hardcode_direct=yes
15490 hardcode_shlibpath_var=no
15491 ;;
15492
15493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15494 freebsd2*)
15495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_direct=yes
15497 hardcode_minus_L=yes
15498 hardcode_shlibpath_var=no
15499 ;;
15500
15501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15502 freebsd* | kfreebsd*-gnu | dragonfly*)
15503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15504 hardcode_libdir_flag_spec='-R$libdir'
15505 hardcode_direct=yes
15506 hardcode_shlibpath_var=no
15507 ;;
15508
15509 hpux9*)
15510 if test "$GCC" = yes; then
15511 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'
15512 else
15513 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'
15514 fi
15515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15516 hardcode_libdir_separator=:
15517 hardcode_direct=yes
15518
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L=yes
15522 export_dynamic_flag_spec='${wl}-E'
15523 ;;
15524
15525 hpux10*)
15526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15528 else
15529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15530 fi
15531 if test "$with_gnu_ld" = no; then
15532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15533 hardcode_libdir_separator=:
15534
15535 hardcode_direct=yes
15536 export_dynamic_flag_spec='${wl}-E'
15537
15538 # hardcode_minus_L: Not really in the search PATH,
15539 # but as the default location of the library.
15540 hardcode_minus_L=yes
15541 fi
15542 ;;
15543
15544 hpux11*)
15545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15546 case $host_cpu in
15547 hppa*64*)
15548 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 ;;
15550 ia64*)
15551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15552 ;;
15553 *)
15554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15555 ;;
15556 esac
15557 else
15558 case $host_cpu in
15559 hppa*64*)
15560 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 ;;
15562 ia64*)
15563 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15564 ;;
15565 *)
15566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15567 ;;
15568 esac
15569 fi
15570 if test "$with_gnu_ld" = no; then
15571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
15573
15574 case $host_cpu in
15575 hppa*64*|ia64*)
15576 hardcode_libdir_flag_spec_ld='+b $libdir'
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
15579 ;;
15580 *)
15581 hardcode_direct=yes
15582 export_dynamic_flag_spec='${wl}-E'
15583
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L=yes
15587 ;;
15588 esac
15589 fi
15590 ;;
15591
15592 irix5* | irix6* | nonstopux*)
15593 if test "$GCC" = yes; then
15594 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'
15595 else
15596 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'
15597 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15598 fi
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 link_all_deplibs=yes
15602 ;;
15603
15604 netbsd*)
15605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15607 else
15608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15609 fi
15610 hardcode_libdir_flag_spec='-R$libdir'
15611 hardcode_direct=yes
15612 hardcode_shlibpath_var=no
15613 ;;
15614
15615 newsos6)
15616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617 hardcode_direct=yes
15618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15619 hardcode_libdir_separator=:
15620 hardcode_shlibpath_var=no
15621 ;;
15622
15623 openbsd*)
15624 hardcode_direct=yes
15625 hardcode_shlibpath_var=no
15626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15630 export_dynamic_flag_spec='${wl}-E'
15631 else
15632 case $host_os in
15633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 ;;
15637 *)
15638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15640 ;;
15641 esac
15642 fi
15643 ;;
15644
15645 os2*)
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_minus_L=yes
15648 allow_undefined_flag=unsupported
15649 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'
15650 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15651 ;;
15652
15653 osf3*)
15654 if test "$GCC" = yes; then
15655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15656 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'
15657 else
15658 allow_undefined_flag=' -expect_unresolved \*'
15659 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'
15660 fi
15661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15662 hardcode_libdir_separator=:
15663 ;;
15664
15665 osf4* | osf5*) # as osf3* with the addition of -msym flag
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15670 else
15671 allow_undefined_flag=' -expect_unresolved \*'
15672 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'
15673 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15674 $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'
15675
15676 # Both c and cxx compiler support -rpath directly
15677 hardcode_libdir_flag_spec='-rpath $libdir'
15678 fi
15679 hardcode_libdir_separator=:
15680 ;;
15681
15682 solaris*)
15683 no_undefined_flag=' -z text'
15684 if test "$GCC" = yes; then
15685 wlarc='${wl}'
15686 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15688 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15689 else
15690 wlarc=''
15691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15694 fi
15695 hardcode_libdir_flag_spec='-R$libdir'
15696 hardcode_shlibpath_var=no
15697 case $host_os in
15698 solaris2.[0-5] | solaris2.[0-5].*) ;;
15699 *)
15700 # The compiler driver will combine linker options so we
15701 # cannot just pass the convience library names through
15702 # without $wl, iff we do not link with $LD.
15703 # Luckily, gcc supports the same syntax we need for Sun Studio.
15704 # Supported since Solaris 2.6 (maybe 2.5.1?)
15705 case $wlarc in
15706 '')
15707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15708 *)
15709 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' ;;
15710 esac ;;
15711 esac
15712 link_all_deplibs=yes
15713 ;;
15714
15715 sunos4*)
15716 if test "x$host_vendor" = xsequent; then
15717 # Use $CC to link under sequent, because it throws in some extra .o
15718 # files that make .init and .fini sections work.
15719 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15722 fi
15723 hardcode_libdir_flag_spec='-L$libdir'
15724 hardcode_direct=yes
15725 hardcode_minus_L=yes
15726 hardcode_shlibpath_var=no
15727 ;;
15728
15729 sysv4)
15730 case $host_vendor in
15731 sni)
15732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct=yes # is this really true???
15734 ;;
15735 siemens)
15736 ## LD is ld it makes a PLAMLIB
15737 ## CC just makes a GrossModule.
15738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739 reload_cmds='$CC -r -o $output$reload_objs'
15740 hardcode_direct=no
15741 ;;
15742 motorola)
15743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15745 ;;
15746 esac
15747 runpath_var='LD_RUN_PATH'
15748 hardcode_shlibpath_var=no
15749 ;;
15750
15751 sysv4.3*)
15752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_shlibpath_var=no
15754 export_dynamic_flag_spec='-Bexport'
15755 ;;
15756
15757 sysv4*MP*)
15758 if test -d /usr/nec; then
15759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_shlibpath_var=no
15761 runpath_var=LD_RUN_PATH
15762 hardcode_runpath_var=yes
15763 ld_shlibs=yes
15764 fi
15765 ;;
15766
15767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15768 no_undefined_flag='${wl}-z,text'
15769 archive_cmds_need_lc=no
15770 hardcode_shlibpath_var=no
15771 runpath_var='LD_RUN_PATH'
15772
15773 if test "$GCC" = yes; then
15774 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 else
15777 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 fi
15780 ;;
15781
15782 sysv5* | sco3.2v5* | sco5v6*)
15783 # Note: We can NOT use -z defs as we might desire, because we do not
15784 # link with -lc, and that would cause any symbols used from libc to
15785 # always be unresolved, which means just about no library would
15786 # ever link correctly. If we're not using GNU ld we use -z text
15787 # though, which does catch some bad symbols but isn't as heavy-handed
15788 # as -z defs.
15789 no_undefined_flag='${wl}-z,text'
15790 allow_undefined_flag='${wl}-z,nodefs'
15791 archive_cmds_need_lc=no
15792 hardcode_shlibpath_var=no
15793 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15794 hardcode_libdir_separator=':'
15795 link_all_deplibs=yes
15796 export_dynamic_flag_spec='${wl}-Bexport'
15797 runpath_var='LD_RUN_PATH'
15798
15799 if test "$GCC" = yes; then
15800 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 else
15803 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 fi
15806 ;;
15807
15808 uts4*)
15809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_libdir_flag_spec='-L$libdir'
15811 hardcode_shlibpath_var=no
15812 ;;
15813
15814 *)
15815 ld_shlibs=no
15816 ;;
15817 esac
15818 fi
15819
15820{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15821echo "${ECHO_T}$ld_shlibs" >&6; }
15822test "$ld_shlibs" = no && can_build_shared=no
15823
15824#
15825# Do we need to explicitly link libc?
15826#
15827case "x$archive_cmds_need_lc" in
15828x|xyes)
15829 # Assume -lc should be added
15830 archive_cmds_need_lc=yes
15831
15832 if test "$enable_shared" = yes && test "$GCC" = yes; then
15833 case $archive_cmds in
15834 *'~'*)
15835 # FIXME: we may have to deal with multi-command sequences.
15836 ;;
15837 '$CC '*)
15838 # Test whether the compiler implicitly links with -lc since on some
15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840 # to ld, don't add -lc before -lgcc.
15841 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15843 $rm conftest*
15844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15845
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } 2>conftest.err; then
15851 soname=conftest
15852 lib=conftest
15853 libobjs=conftest.$ac_objext
15854 deplibs=
15855 wl=$lt_prog_compiler_wl
15856 pic_flag=$lt_prog_compiler_pic
15857 compiler_flags=-v
15858 linker_flags=-v
15859 verstring=
15860 output_objdir=.
15861 libname=conftest
15862 lt_save_allow_undefined_flag=$allow_undefined_flag
15863 allow_undefined_flag=
15864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }
15869 then
15870 archive_cmds_need_lc=no
15871 else
15872 archive_cmds_need_lc=yes
15873 fi
15874 allow_undefined_flag=$lt_save_allow_undefined_flag
15875 else
15876 cat conftest.err 1>&5
15877 fi
15878 $rm conftest*
15879 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15880echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15881 ;;
15882 esac
15883 fi
15884 ;;
15885esac
15886
15887{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15888echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15889library_names_spec=
15890libname_spec='lib$name'
15891soname_spec=
15892shrext_cmds=".so"
15893postinstall_cmds=
15894postuninstall_cmds=
15895finish_cmds=
15896finish_eval=
15897shlibpath_var=
15898shlibpath_overrides_runpath=unknown
15899version_type=none
15900dynamic_linker="$host_os ld.so"
15901sys_lib_dlsearch_path_spec="/lib /usr/lib"
15902if test "$GCC" = yes; then
15903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15904 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15905 # if the path contains ";" then we assume it to be the separator
15906 # otherwise default to the standard path separator (i.e. ":") - it is
15907 # assumed that no part of a normal pathname contains ";" but that should
15908 # okay in the real world where ";" in dirpaths is itself problematic.
15909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15910 else
15911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15912 fi
15913else
15914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15915fi
15916need_lib_prefix=unknown
15917hardcode_into_libs=no
15918
15919# when you set need_version to no, make sure it does not cause -set_version
15920# flags to be left without arguments
15921need_version=unknown
15922
15923case $host_os in
15924aix3*)
15925 version_type=linux
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15927 shlibpath_var=LIBPATH
15928
15929 # AIX 3 has no versioning support, so we append a major version to the name.
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 ;;
15932
15933aix4* | aix5*)
15934 version_type=linux
15935 need_lib_prefix=no
15936 need_version=no
15937 hardcode_into_libs=yes
15938 if test "$host_cpu" = ia64; then
15939 # AIX 5 supports IA64
15940 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 else
15943 # With GCC up to 2.95.x, collect2 would create an import file
15944 # for dependence libraries. The import file would start with
15945 # the line `#! .'. This would cause the generated library to
15946 # depend on `.', always an invalid library. This was fixed in
15947 # development snapshots of GCC prior to 3.0.
15948 case $host_os in
15949 aix4 | aix4.[01] | aix4.[01].*)
15950 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15951 echo ' yes '
15952 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15953 :
15954 else
15955 can_build_shared=no
15956 fi
15957 ;;
15958 esac
15959 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15960 # soname into executable. Probably we can add versioning support to
15961 # collect2, so additional links can be useful in future.
15962 if test "$aix_use_runtimelinking" = yes; then
15963 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15964 # instead of lib<name>.a to let people know that these are not
15965 # typical AIX shared libraries.
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 else
15968 # We preserve .a as extension for shared libraries through AIX4.2
15969 # and later when we are not doing run time linking.
15970 library_names_spec='${libname}${release}.a $libname.a'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 fi
15973 shlibpath_var=LIBPATH
15974 fi
15975 ;;
15976
15977amigaos*)
15978 library_names_spec='$libname.ixlibrary $libname.a'
15979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15980 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'
15981 ;;
15982
15983beos*)
15984 library_names_spec='${libname}${shared_ext}'
15985 dynamic_linker="$host_os ld.so"
15986 shlibpath_var=LIBRARY_PATH
15987 ;;
15988
15989bsdi[45]*)
15990 version_type=linux
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15998 # the default ld.so.conf also contains /usr/contrib/lib and
15999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000 # libtool to hard-code these into programs
16001 ;;
16002
16003cygwin* | mingw* | pw32*)
16004 version_type=windows
16005 shrext_cmds=".dll"
16006 need_version=no
16007 need_lib_prefix=no
16008
16009 case $GCC,$host_os in
16010 yes,cygwin* | yes,mingw* | yes,pw32*)
16011 library_names_spec='$libname.dll.a'
16012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16013 postinstall_cmds='base_file=`basename \${file}`~
16014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16015 dldir=$destdir/`dirname \$dlpath`~
16016 test -d \$dldir || mkdir -p \$dldir~
16017 $install_prog $dir/$dlname \$dldir/$dlname~
16018 chmod a+x \$dldir/$dlname'
16019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16020 dlpath=$dir/\$dldll~
16021 $rm \$dlpath'
16022 shlibpath_overrides_runpath=yes
16023
16024 case $host_os in
16025 cygwin*)
16026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16028 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16029 ;;
16030 mingw*)
16031 # MinGW DLLs use traditional 'lib' prefix
16032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16035 # It is most probably a Windows format PATH printed by
16036 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16037 # path with ; separators, and with drive letters. We can handle the
16038 # drive letters (cygwin fileutils understands them), so leave them,
16039 # especially as we might pass files found there to a mingw objdump,
16040 # which wouldn't understand a cygwinified path. Ahh.
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16042 else
16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16044 fi
16045 ;;
16046 pw32*)
16047 # pw32 DLLs use 'pw' prefix rather than 'lib'
16048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16049 ;;
16050 esac
16051 ;;
16052
16053 *)
16054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16055 ;;
16056 esac
16057 dynamic_linker='Win32 ld.exe'
16058 # FIXME: first we should search . and the directory the executable is in
16059 shlibpath_var=PATH
16060 ;;
16061
16062darwin* | rhapsody*)
16063 dynamic_linker="$host_os dyld"
16064 version_type=darwin
16065 need_lib_prefix=no
16066 need_version=no
16067 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16068 soname_spec='${libname}${release}${major}$shared_ext'
16069 shlibpath_overrides_runpath=yes
16070 shlibpath_var=DYLD_LIBRARY_PATH
16071 shrext_cmds='.dylib'
16072 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16073 if test "$GCC" = yes; then
16074 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"`
16075 else
16076 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16077 fi
16078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16079 ;;
16080
16081dgux*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 ;;
16089
16090freebsd1*)
16091 dynamic_linker=no
16092 ;;
16093
16094kfreebsd*-gnu)
16095 version_type=linux
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=no
16102 hardcode_into_libs=yes
16103 dynamic_linker='GNU ld.so'
16104 ;;
16105
16106freebsd* | dragonfly*)
16107 # DragonFly does not have aout. When/if they implement a new
16108 # versioning mechanism, adjust this.
16109 if test -x /usr/bin/objformat; then
16110 objformat=`/usr/bin/objformat`
16111 else
16112 case $host_os in
16113 freebsd[123]*) objformat=aout ;;
16114 *) objformat=elf ;;
16115 esac
16116 fi
16117 version_type=freebsd-$objformat
16118 case $version_type in
16119 freebsd-elf*)
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16121 need_version=no
16122 need_lib_prefix=no
16123 ;;
16124 freebsd-*)
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16126 need_version=yes
16127 ;;
16128 esac
16129 shlibpath_var=LD_LIBRARY_PATH
16130 case $host_os in
16131 freebsd2*)
16132 shlibpath_overrides_runpath=yes
16133 ;;
16134 freebsd3.[01]* | freebsdelf3.[01]*)
16135 shlibpath_overrides_runpath=yes
16136 hardcode_into_libs=yes
16137 ;;
16138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 ;;
16143 freebsd*) # from 4.6 on
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 ;;
16147 esac
16148 ;;
16149
16150gnu*)
16151 version_type=linux
16152 need_lib_prefix=no
16153 need_version=no
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 hardcode_into_libs=yes
16158 ;;
16159
16160hpux9* | hpux10* | hpux11*)
16161 # Give a soname corresponding to the major version so that dld.sl refuses to
16162 # link against other versions.
16163 version_type=sunos
16164 need_lib_prefix=no
16165 need_version=no
16166 case $host_cpu in
16167 ia64*)
16168 shrext_cmds='.so'
16169 hardcode_into_libs=yes
16170 dynamic_linker="$host_os dld.so"
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 if test "X$HPUX_IA64_MODE" = X32; then
16176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16177 else
16178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16179 fi
16180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16181 ;;
16182 hppa*64*)
16183 shrext_cmds='.sl'
16184 hardcode_into_libs=yes
16185 dynamic_linker="$host_os dld.sl"
16186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16192 ;;
16193 *)
16194 shrext_cmds='.sl'
16195 dynamic_linker="$host_os dld.sl"
16196 shlibpath_var=SHLIB_PATH
16197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 ;;
16201 esac
16202 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16203 postinstall_cmds='chmod 555 $lib'
16204 ;;
16205
16206interix3*)
16207 version_type=linux
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 ;;
16217
16218irix5* | irix6* | nonstopux*)
16219 case $host_os in
16220 nonstopux*) version_type=nonstopux ;;
16221 *)
16222 if test "$lt_cv_prog_gnu_ld" = yes; then
16223 version_type=linux
16224 else
16225 version_type=irix
16226 fi ;;
16227 esac
16228 need_lib_prefix=no
16229 need_version=no
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16232 case $host_os in
16233 irix5* | nonstopux*)
16234 libsuff= shlibsuff=
16235 ;;
16236 *)
16237 case $LD in # libtool.m4 will add one of these switches to LD
16238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16239 libsuff= shlibsuff= libmagic=32-bit;;
16240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16241 libsuff=32 shlibsuff=N32 libmagic=N32;;
16242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16243 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16244 *) libsuff= shlibsuff= libmagic=never-match;;
16245 esac
16246 ;;
16247 esac
16248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16249 shlibpath_overrides_runpath=no
16250 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16251 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16252 hardcode_into_libs=yes
16253 ;;
16254
16255# No shared lib support for Linux oldld, aout, or coff.
16256linux*oldld* | linux*aout* | linux*coff*)
16257 dynamic_linker=no
16258 ;;
16259
16260# This must be Linux ELF.
16261linux*)
16262 version_type=linux
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 shlibpath_overrides_runpath=no
16270 # This implies no fast_install, which is unacceptable.
16271 # Some rework will be needed to allow for fast_install
16272 # before this can be enabled.
16273 hardcode_into_libs=yes
16274
16275 # Append ld.so.conf contents to the search path
16276 if test -f /etc/ld.so.conf; then
16277 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' ' '`
16278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16279 fi
16280
16281 # We used to test for /lib/ld.so.1 and disable shared libraries on
16282 # powerpc, because MkLinux only supported shared libraries with the
16283 # GNU dynamic linker. Since this was broken with cross compilers,
16284 # most powerpc-linux boxes support dynamic linking these days and
16285 # people can always --disable-shared, the test was removed, and we
16286 # assume the GNU/Linux dynamic linker is in use.
16287 dynamic_linker='GNU/Linux ld.so'
16288 ;;
16289
16290knetbsd*-gnu)
16291 version_type=linux
16292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16299 dynamic_linker='GNU ld.so'
16300 ;;
16301
16302netbsd*)
16303 version_type=sunos
16304 need_lib_prefix=no
16305 need_version=no
16306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16309 dynamic_linker='NetBSD (a.out) ld.so'
16310 else
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 dynamic_linker='NetBSD ld.elf_so'
16314 fi
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16318 ;;
16319
16320newsos6)
16321 version_type=linux
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 ;;
16326
16327nto-qnx*)
16328 version_type=linux
16329 need_lib_prefix=no
16330 need_version=no
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 ;;
16336
16337openbsd*)
16338 version_type=sunos
16339 sys_lib_dlsearch_path_spec="/usr/lib"
16340 need_lib_prefix=no
16341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16342 case $host_os in
16343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16344 *) need_version=no ;;
16345 esac
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16350 case $host_os in
16351 openbsd2.[89] | openbsd2.[89].*)
16352 shlibpath_overrides_runpath=no
16353 ;;
16354 *)
16355 shlibpath_overrides_runpath=yes
16356 ;;
16357 esac
16358 else
16359 shlibpath_overrides_runpath=yes
16360 fi
16361 ;;
16362
16363os2*)
16364 libname_spec='$name'
16365 shrext_cmds=".dll"
16366 need_lib_prefix=no
16367 library_names_spec='$libname${shared_ext} $libname.a'
16368 dynamic_linker='OS/2 ld.exe'
16369 shlibpath_var=LIBPATH
16370 ;;
16371
16372osf3* | osf4* | osf5*)
16373 version_type=osf
16374 need_lib_prefix=no
16375 need_version=no
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381 ;;
16382
16383solaris*)
16384 version_type=linux
16385 need_lib_prefix=no
16386 need_version=no
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 # ldd complains unless libraries are executable
16393 postinstall_cmds='chmod +x $lib'
16394 ;;
16395
16396sunos4*)
16397 version_type=sunos
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 if test "$with_gnu_ld" = yes; then
16403 need_lib_prefix=no
16404 fi
16405 need_version=yes
16406 ;;
16407
16408sysv4 | sysv4.3*)
16409 version_type=linux
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 case $host_vendor in
16414 sni)
16415 shlibpath_overrides_runpath=no
16416 need_lib_prefix=no
16417 export_dynamic_flag_spec='${wl}-Blargedynsym'
16418 runpath_var=LD_RUN_PATH
16419 ;;
16420 siemens)
16421 need_lib_prefix=no
16422 ;;
16423 motorola)
16424 need_lib_prefix=no
16425 need_version=no
16426 shlibpath_overrides_runpath=no
16427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16428 ;;
16429 esac
16430 ;;
16431
16432sysv4*MP*)
16433 if test -d /usr/nec ;then
16434 version_type=linux
16435 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16436 soname_spec='$libname${shared_ext}.$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 fi
16439 ;;
16440
16441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16442 version_type=freebsd-elf
16443 need_lib_prefix=no
16444 need_version=no
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 hardcode_into_libs=yes
16449 if test "$with_gnu_ld" = yes; then
16450 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16451 shlibpath_overrides_runpath=no
16452 else
16453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16454 shlibpath_overrides_runpath=yes
16455 case $host_os in
16456 sco3.2v5*)
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16458 ;;
16459 esac
16460 fi
16461 sys_lib_dlsearch_path_spec='/usr/lib'
16462 ;;
16463
16464uts4*)
16465 version_type=linux
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 ;;
16470
16471*)
16472 dynamic_linker=no
16473 ;;
16474esac
16475{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16476echo "${ECHO_T}$dynamic_linker" >&6; }
16477test "$dynamic_linker" = no && can_build_shared=no
16478
16479variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16480if test "$GCC" = yes; then
16481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16482fi
16483
16484{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16485echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16486hardcode_action=
16487if test -n "$hardcode_libdir_flag_spec" || \
16488 test -n "$runpath_var" || \
16489 test "X$hardcode_automatic" = "Xyes" ; then
16490
16491 # We can hardcode non-existant directories.
16492 if test "$hardcode_direct" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16497 test "$hardcode_minus_L" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action=relink
16500 else
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action=immediate
16503 fi
16504else
16505 # We cannot hardcode anything, or else we can only hardcode existing
16506 # directories.
16507 hardcode_action=unsupported
16508fi
16509{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16510echo "${ECHO_T}$hardcode_action" >&6; }
16511
16512if test "$hardcode_action" = relink; then
16513 # Fast installation is not supported
16514 enable_fast_install=no
16515elif test "$shlibpath_overrides_runpath" = yes ||
16516 test "$enable_shared" = no; then
16517 # Fast installation is not necessary
16518 enable_fast_install=needless
16519fi
16520
16521striplib=
16522old_striplib=
16523{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16524echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16525if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16528 { echo "$as_me:$LINENO: result: yes" >&5
16529echo "${ECHO_T}yes" >&6; }
16530else
16531# FIXME - insert some real tests, host_os isn't really good enough
16532 case $host_os in
16533 darwin*)
16534 if test -n "$STRIP" ; then
16535 striplib="$STRIP -x"
16536 { echo "$as_me:$LINENO: result: yes" >&5
16537echo "${ECHO_T}yes" >&6; }
16538 else
16539 { echo "$as_me:$LINENO: result: no" >&5
16540echo "${ECHO_T}no" >&6; }
16541fi
16542 ;;
16543 *)
16544 { echo "$as_me:$LINENO: result: no" >&5
16545echo "${ECHO_T}no" >&6; }
16546 ;;
16547 esac
16548fi
16549
16550if test "x$enable_dlopen" != xyes; then
16551 enable_dlopen=unknown
16552 enable_dlopen_self=unknown
16553 enable_dlopen_self_static=unknown
16554else
16555 lt_cv_dlopen=no
16556 lt_cv_dlopen_libs=
16557
16558 case $host_os in
16559 beos*)
16560 lt_cv_dlopen="load_add_on"
16561 lt_cv_dlopen_libs=
16562 lt_cv_dlopen_self=yes
16563 ;;
16564
16565 mingw* | pw32*)
16566 lt_cv_dlopen="LoadLibrary"
16567 lt_cv_dlopen_libs=
16568 ;;
16569
16570 cygwin*)
16571 lt_cv_dlopen="dlopen"
16572 lt_cv_dlopen_libs=
16573 ;;
16574
16575 darwin*)
16576 # if libdl is installed we need to link against it
16577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16578echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16579if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582 ac_check_lib_save_LIBS=$LIBS
16583LIBS="-ldl $LIBS"
16584cat >conftest.$ac_ext <<_ACEOF
16585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
16589/* end confdefs.h. */
16590
16591/* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16594#ifdef __cplusplus
16595extern "C"
16596#endif
16597char dlopen ();
16598int
16599main ()
16600{
16601return dlopen ();
16602 ;
16603 return 0;
16604}
16605_ACEOF
16606rm -f conftest.$ac_objext conftest$ac_exeext
16607if { (ac_try="$ac_link"
16608case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16624esac
16625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest$ac_exeext'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_lib_dl_dlopen=yes
16641else
16642 echo "$as_me: failed program was:" >&5
16643sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 ac_cv_lib_dl_dlopen=no
16646fi
16647
16648rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16650LIBS=$ac_check_lib_save_LIBS
16651fi
16652{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16653echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16654if test $ac_cv_lib_dl_dlopen = yes; then
16655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16656else
16657
16658 lt_cv_dlopen="dyld"
16659 lt_cv_dlopen_libs=
16660 lt_cv_dlopen_self=yes
16661
16662fi
16663
16664 ;;
16665
16666 *)
16667 { echo "$as_me:$LINENO: checking for shl_load" >&5
16668echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16669if test "${ac_cv_func_shl_load+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671else
16672 cat >conftest.$ac_ext <<_ACEOF
16673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
16678/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16680#define shl_load innocuous_shl_load
16681
16682/* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char shl_load (); below.
16684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685 <limits.h> exists even on freestanding compilers. */
16686
16687#ifdef __STDC__
16688# include <limits.h>
16689#else
16690# include <assert.h>
16691#endif
16692
16693#undef shl_load
16694
16695/* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698#ifdef __cplusplus
16699extern "C"
16700#endif
16701char shl_load ();
16702/* The GNU C library defines this for functions which it implements
16703 to always fail with ENOSYS. Some functions are actually named
16704 something starting with __ and the normal name is an alias. */
16705#if defined __stub_shl_load || defined __stub___shl_load
16706choke me
16707#endif
16708
16709int
16710main ()
16711{
16712return shl_load ();
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext conftest$ac_exeext
16718if { (ac_try="$ac_link"
16719case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_link") 2>conftest.er1
16725 ac_status=$?
16726 grep -v '^ *+' conftest.er1 >conftest.err
16727 rm -f conftest.er1
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_try") 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_func_shl_load=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756 ac_cv_func_shl_load=no
16757fi
16758
16759rm -f core conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16761fi
16762{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16763echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16764if test $ac_cv_func_shl_load = yes; then
16765 lt_cv_dlopen="shl_load"
16766else
16767 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16768echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16769if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771else
16772 ac_check_lib_save_LIBS=$LIBS
16773LIBS="-ldld $LIBS"
16774cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char shl_load ();
16788int
16789main ()
16790{
16791return shl_load ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest.$ac_objext conftest$ac_exeext
16797if { (ac_try="$ac_link"
16798case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_lib_dld_shl_load=yes
16831else
16832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 ac_cv_lib_dld_shl_load=no
16836fi
16837
16838rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840LIBS=$ac_check_lib_save_LIBS
16841fi
16842{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16843echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16844if test $ac_cv_lib_dld_shl_load = yes; then
16845 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16846else
16847 { echo "$as_me:$LINENO: checking for dlopen" >&5
16848echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16849if test "${ac_cv_func_dlopen+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851else
16852 cat >conftest.$ac_ext <<_ACEOF
16853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
16858/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860#define dlopen innocuous_dlopen
16861
16862/* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char dlopen (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
16866
16867#ifdef __STDC__
16868# include <limits.h>
16869#else
16870# include <assert.h>
16871#endif
16872
16873#undef dlopen
16874
16875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878#ifdef __cplusplus
16879extern "C"
16880#endif
16881char dlopen ();
16882/* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885#if defined __stub_dlopen || defined __stub___dlopen
16886choke me
16887#endif
16888
16889int
16890main ()
16891{
16892return dlopen ();
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
16898if { (ac_try="$ac_link"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_func_dlopen=yes
16932else
16933 echo "$as_me: failed program was:" >&5
16934sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_cv_func_dlopen=no
16937fi
16938
16939rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941fi
16942{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16943echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16944if test $ac_cv_func_dlopen = yes; then
16945 lt_cv_dlopen="dlopen"
16946else
16947 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16948echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16949if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 ac_check_lib_save_LIBS=$LIBS
16953LIBS="-ldl $LIBS"
16954cat >conftest.$ac_ext <<_ACEOF
16955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
16960
16961/* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964#ifdef __cplusplus
16965extern "C"
16966#endif
16967char dlopen ();
16968int
16969main ()
16970{
16971return dlopen ();
16972 ;
16973 return 0;
16974}
16975_ACEOF
16976rm -f conftest.$ac_objext conftest$ac_exeext
16977if { (ac_try="$ac_link"
16978case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_lib_dl_dlopen=yes
17011else
17012 echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 ac_cv_lib_dl_dlopen=no
17016fi
17017
17018rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020LIBS=$ac_check_lib_save_LIBS
17021fi
17022{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17023echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17024if test $ac_cv_lib_dl_dlopen = yes; then
17025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17026else
17027 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17029if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 ac_check_lib_save_LIBS=$LIBS
17033LIBS="-lsvld $LIBS"
17034cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040
17041/* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044#ifdef __cplusplus
17045extern "C"
17046#endif
17047char dlopen ();
17048int
17049main ()
17050{
17051return dlopen ();
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext conftest$ac_exeext
17057if { (ac_try="$ac_link"
17058case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_link") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest$ac_exeext'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_lib_svld_dlopen=yes
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 ac_cv_lib_svld_dlopen=no
17096fi
17097
17098rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100LIBS=$ac_check_lib_save_LIBS
17101fi
17102{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17103echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17104if test $ac_cv_lib_svld_dlopen = yes; then
17105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17106else
17107 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 ac_check_lib_save_LIBS=$LIBS
17113LIBS="-ldld $LIBS"
17114cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
17120
17121/* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17124#ifdef __cplusplus
17125extern "C"
17126#endif
17127char dld_link ();
17128int
17129main ()
17130{
17131return dld_link ();
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_lib_dld_dld_link=yes
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_cv_lib_dld_dld_link=no
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180LIBS=$ac_check_lib_save_LIBS
17181fi
17182{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17183echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17184if test $ac_cv_lib_dld_dld_link = yes; then
17185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17186fi
17187
17188
17189fi
17190
17191
17192fi
17193
17194
17195fi
17196
17197
17198fi
17199
17200
17201fi
17202
17203 ;;
17204 esac
17205
17206 if test "x$lt_cv_dlopen" != xno; then
17207 enable_dlopen=yes
17208 else
17209 enable_dlopen=no
17210 fi
17211
17212 case $lt_cv_dlopen in
17213 dlopen)
17214 save_CPPFLAGS="$CPPFLAGS"
17215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17216
17217 save_LDFLAGS="$LDFLAGS"
17218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17219
17220 save_LIBS="$LIBS"
17221 LIBS="$lt_cv_dlopen_libs $LIBS"
17222
17223 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17224echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17225if test "${lt_cv_dlopen_self+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 if test "$cross_compiling" = yes; then :
17229 lt_cv_dlopen_self=cross
17230else
17231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17232 lt_status=$lt_dlunknown
17233 cat > conftest.$ac_ext <<EOF
Gordon Henriksen058a4c62007-10-02 16:42:22 +000017234#line 17234 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017235#include "confdefs.h"
17236
17237#if HAVE_DLFCN_H
17238#include <dlfcn.h>
17239#endif
17240
17241#include <stdio.h>
17242
17243#ifdef RTLD_GLOBAL
17244# define LT_DLGLOBAL RTLD_GLOBAL
17245#else
17246# ifdef DL_GLOBAL
17247# define LT_DLGLOBAL DL_GLOBAL
17248# else
17249# define LT_DLGLOBAL 0
17250# endif
17251#endif
17252
17253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17254 find out it does not work in some platform. */
17255#ifndef LT_DLLAZY_OR_NOW
17256# ifdef RTLD_LAZY
17257# define LT_DLLAZY_OR_NOW RTLD_LAZY
17258# else
17259# ifdef DL_LAZY
17260# define LT_DLLAZY_OR_NOW DL_LAZY
17261# else
17262# ifdef RTLD_NOW
17263# define LT_DLLAZY_OR_NOW RTLD_NOW
17264# else
17265# ifdef DL_NOW
17266# define LT_DLLAZY_OR_NOW DL_NOW
17267# else
17268# define LT_DLLAZY_OR_NOW 0
17269# endif
17270# endif
17271# endif
17272# endif
17273#endif
17274
17275#ifdef __cplusplus
17276extern "C" void exit (int);
17277#endif
17278
17279void fnord() { int i=42;}
17280int main ()
17281{
17282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17283 int status = $lt_dlunknown;
17284
17285 if (self)
17286 {
17287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17289 /* dlclose (self); */
17290 }
17291 else
17292 puts (dlerror ());
17293
17294 exit (status);
17295}
17296EOF
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17302 (./conftest; exit; ) >&5 2>/dev/null
17303 lt_status=$?
17304 case x$lt_status in
17305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17308 esac
17309 else :
17310 # compilation failed
17311 lt_cv_dlopen_self=no
17312 fi
17313fi
17314rm -fr conftest*
17315
17316
17317fi
17318{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17319echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17320
17321 if test "x$lt_cv_dlopen_self" = xyes; then
17322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17323 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17324echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17325if test "${lt_cv_dlopen_self_static+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 if test "$cross_compiling" = yes; then :
17329 lt_cv_dlopen_self_static=cross
17330else
17331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17332 lt_status=$lt_dlunknown
17333 cat > conftest.$ac_ext <<EOF
Gordon Henriksen058a4c62007-10-02 16:42:22 +000017334#line 17334 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017335#include "confdefs.h"
17336
17337#if HAVE_DLFCN_H
17338#include <dlfcn.h>
17339#endif
17340
17341#include <stdio.h>
17342
17343#ifdef RTLD_GLOBAL
17344# define LT_DLGLOBAL RTLD_GLOBAL
17345#else
17346# ifdef DL_GLOBAL
17347# define LT_DLGLOBAL DL_GLOBAL
17348# else
17349# define LT_DLGLOBAL 0
17350# endif
17351#endif
17352
17353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17354 find out it does not work in some platform. */
17355#ifndef LT_DLLAZY_OR_NOW
17356# ifdef RTLD_LAZY
17357# define LT_DLLAZY_OR_NOW RTLD_LAZY
17358# else
17359# ifdef DL_LAZY
17360# define LT_DLLAZY_OR_NOW DL_LAZY
17361# else
17362# ifdef RTLD_NOW
17363# define LT_DLLAZY_OR_NOW RTLD_NOW
17364# else
17365# ifdef DL_NOW
17366# define LT_DLLAZY_OR_NOW DL_NOW
17367# else
17368# define LT_DLLAZY_OR_NOW 0
17369# endif
17370# endif
17371# endif
17372# endif
17373#endif
17374
17375#ifdef __cplusplus
17376extern "C" void exit (int);
17377#endif
17378
17379void fnord() { int i=42;}
17380int main ()
17381{
17382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17383 int status = $lt_dlunknown;
17384
17385 if (self)
17386 {
17387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17389 /* dlclose (self); */
17390 }
17391 else
17392 puts (dlerror ());
17393
17394 exit (status);
17395}
17396EOF
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17402 (./conftest; exit; ) >&5 2>/dev/null
17403 lt_status=$?
17404 case x$lt_status in
17405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17408 esac
17409 else :
17410 # compilation failed
17411 lt_cv_dlopen_self_static=no
17412 fi
17413fi
17414rm -fr conftest*
17415
17416
17417fi
17418{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17419echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17420 fi
17421
17422 CPPFLAGS="$save_CPPFLAGS"
17423 LDFLAGS="$save_LDFLAGS"
17424 LIBS="$save_LIBS"
17425 ;;
17426 esac
17427
17428 case $lt_cv_dlopen_self in
17429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17430 *) enable_dlopen_self=unknown ;;
17431 esac
17432
17433 case $lt_cv_dlopen_self_static in
17434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17435 *) enable_dlopen_self_static=unknown ;;
17436 esac
17437fi
17438
17439
17440# Report which library types will actually be built
17441{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17442echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17443{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17444echo "${ECHO_T}$can_build_shared" >&6; }
17445
17446{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17447echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17448test "$can_build_shared" = "no" && enable_shared=no
17449
17450# On AIX, shared libraries and static libraries use the same namespace, and
17451# are all built from PIC.
17452case $host_os in
17453aix3*)
17454 test "$enable_shared" = yes && enable_static=no
17455 if test -n "$RANLIB"; then
17456 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17457 postinstall_cmds='$RANLIB $lib'
17458 fi
17459 ;;
17460
17461aix4* | aix5*)
17462 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17463 test "$enable_shared" = yes && enable_static=no
17464 fi
17465 ;;
17466esac
17467{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17468echo "${ECHO_T}$enable_shared" >&6; }
17469
17470{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17471echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17472# Make sure either enable_shared or enable_static is yes.
17473test "$enable_shared" = yes || enable_static=yes
17474{ echo "$as_me:$LINENO: result: $enable_static" >&5
17475echo "${ECHO_T}$enable_static" >&6; }
17476
17477# The else clause should only fire when bootstrapping the
17478# libtool distribution, otherwise you forgot to ship ltmain.sh
17479# with your package, and you will get complaints that there are
17480# no rules to generate ltmain.sh.
17481if test -f "$ltmain"; then
17482 # See if we are running on zsh, and set the options which allow our commands through
17483 # without removal of \ escapes.
17484 if test -n "${ZSH_VERSION+set}" ; then
17485 setopt NO_GLOB_SUBST
17486 fi
17487 # Now quote all the things that may contain metacharacters while being
17488 # careful not to overquote the AC_SUBSTed values. We take copies of the
17489 # variables and quote the copies for generation of the libtool script.
17490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17491 SED SHELL STRIP \
17492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494 deplibs_check_method reload_flag reload_cmds need_locks \
17495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496 lt_cv_sys_global_symbol_to_c_name_address \
17497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498 old_postinstall_cmds old_postuninstall_cmds \
17499 compiler \
17500 CC \
17501 LD \
17502 lt_prog_compiler_wl \
17503 lt_prog_compiler_pic \
17504 lt_prog_compiler_static \
17505 lt_prog_compiler_no_builtin_flag \
17506 export_dynamic_flag_spec \
17507 thread_safe_flag_spec \
17508 whole_archive_flag_spec \
17509 enable_shared_with_static_runtimes \
17510 old_archive_cmds \
17511 old_archive_from_new_cmds \
17512 predep_objects \
17513 postdep_objects \
17514 predeps \
17515 postdeps \
17516 compiler_lib_search_path \
17517 archive_cmds \
17518 archive_expsym_cmds \
17519 postinstall_cmds \
17520 postuninstall_cmds \
17521 old_archive_from_expsyms_cmds \
17522 allow_undefined_flag \
17523 no_undefined_flag \
17524 export_symbols_cmds \
17525 hardcode_libdir_flag_spec \
17526 hardcode_libdir_flag_spec_ld \
17527 hardcode_libdir_separator \
17528 hardcode_automatic \
17529 module_cmds \
17530 module_expsym_cmds \
17531 lt_cv_prog_compiler_c_o \
17532 exclude_expsyms \
17533 include_expsyms; do
17534
17535 case $var in
17536 old_archive_cmds | \
17537 old_archive_from_new_cmds | \
17538 archive_cmds | \
17539 archive_expsym_cmds | \
17540 module_cmds | \
17541 module_expsym_cmds | \
17542 old_archive_from_expsyms_cmds | \
17543 export_symbols_cmds | \
17544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545 postinstall_cmds | postuninstall_cmds | \
17546 old_postinstall_cmds | old_postuninstall_cmds | \
17547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548 # Double-quote double-evaled strings.
17549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17550 ;;
17551 *)
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17553 ;;
17554 esac
17555 done
17556
17557 case $lt_echo in
17558 *'\$0 --fallback-echo"')
17559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17560 ;;
17561 esac
17562
17563cfgfile="${ofile}T"
17564 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17565 $rm -f "$cfgfile"
17566 { echo "$as_me:$LINENO: creating $ofile" >&5
17567echo "$as_me: creating $ofile" >&6;}
17568
17569 cat <<__EOF__ >> "$cfgfile"
17570#! $SHELL
17571
17572# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17573# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17574# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17575#
17576# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17577# Free Software Foundation, Inc.
17578#
17579# This file is part of GNU Libtool:
17580# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17581#
17582# This program is free software; you can redistribute it and/or modify
17583# it under the terms of the GNU General Public License as published by
17584# the Free Software Foundation; either version 2 of the License, or
17585# (at your option) any later version.
17586#
17587# This program is distributed in the hope that it will be useful, but
17588# WITHOUT ANY WARRANTY; without even the implied warranty of
17589# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17590# General Public License for more details.
17591#
17592# You should have received a copy of the GNU General Public License
17593# along with this program; if not, write to the Free Software
17594# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17595#
17596# As a special exception to the GNU General Public License, if you
17597# distribute this file as part of a program that contains a
17598# configuration script generated by Autoconf, you may include it under
17599# the same distribution terms that you use for the rest of that program.
17600
17601# A sed program that does not truncate output.
17602SED=$lt_SED
17603
17604# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17605Xsed="$SED -e 1s/^X//"
17606
17607# The HP-UX ksh and POSIX shell print the target directory to stdout
17608# if CDPATH is set.
17609(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17610
17611# The names of the tagged configurations supported by this script.
17612available_tags=
17613
17614# ### BEGIN LIBTOOL CONFIG
17615
17616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17617
17618# Shell to use when invoking shell scripts.
17619SHELL=$lt_SHELL
17620
17621# Whether or not to build shared libraries.
17622build_libtool_libs=$enable_shared
17623
17624# Whether or not to build static libraries.
17625build_old_libs=$enable_static
17626
17627# Whether or not to add -lc for building shared libraries.
17628build_libtool_need_lc=$archive_cmds_need_lc
17629
17630# Whether or not to disallow shared libs when runtime libs are static
17631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17632
17633# Whether or not to optimize for fast installation.
17634fast_install=$enable_fast_install
17635
17636# The host system.
17637host_alias=$host_alias
17638host=$host
17639host_os=$host_os
17640
17641# The build system.
17642build_alias=$build_alias
17643build=$build
17644build_os=$build_os
17645
17646# An echo program that does not interpret backslashes.
17647echo=$lt_echo
17648
17649# The archiver.
17650AR=$lt_AR
17651AR_FLAGS=$lt_AR_FLAGS
17652
17653# A C compiler.
17654LTCC=$lt_LTCC
17655
17656# LTCC compiler flags.
17657LTCFLAGS=$lt_LTCFLAGS
17658
17659# A language-specific compiler.
17660CC=$lt_compiler
17661
17662# Is the compiler the GNU C compiler?
17663with_gcc=$GCC
17664
17665# An ERE matcher.
17666EGREP=$lt_EGREP
17667
17668# The linker used to build libraries.
17669LD=$lt_LD
17670
17671# Whether we need hard or soft links.
17672LN_S=$lt_LN_S
17673
17674# A BSD-compatible nm program.
17675NM=$lt_NM
17676
17677# A symbol stripping program
17678STRIP=$lt_STRIP
17679
17680# Used to examine libraries when file_magic_cmd begins "file"
17681MAGIC_CMD=$MAGIC_CMD
17682
17683# Used on cygwin: DLL creation program.
17684DLLTOOL="$DLLTOOL"
17685
17686# Used on cygwin: object dumper.
17687OBJDUMP="$OBJDUMP"
17688
17689# Used on cygwin: assembler.
17690AS="$AS"
17691
17692# The name of the directory that contains temporary libtool files.
17693objdir=$objdir
17694
17695# How to create reloadable object files.
17696reload_flag=$lt_reload_flag
17697reload_cmds=$lt_reload_cmds
17698
17699# How to pass a linker flag through the compiler.
17700wl=$lt_lt_prog_compiler_wl
17701
17702# Object file suffix (normally "o").
17703objext="$ac_objext"
17704
17705# Old archive suffix (normally "a").
17706libext="$libext"
17707
17708# Shared library suffix (normally ".so").
17709shrext_cmds='$shrext_cmds'
17710
17711# Executable file suffix (normally "").
17712exeext="$exeext"
17713
17714# Additional compiler flags for building library objects.
17715pic_flag=$lt_lt_prog_compiler_pic
17716pic_mode=$pic_mode
17717
17718# What is the maximum length of a command?
17719max_cmd_len=$lt_cv_sys_max_cmd_len
17720
17721# Does compiler simultaneously support -c and -o options?
17722compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17723
17724# Must we lock files when doing compilation?
17725need_locks=$lt_need_locks
17726
17727# Do we need the lib prefix for modules?
17728need_lib_prefix=$need_lib_prefix
17729
17730# Do we need a version for libraries?
17731need_version=$need_version
17732
17733# Whether dlopen is supported.
17734dlopen_support=$enable_dlopen
17735
17736# Whether dlopen of programs is supported.
17737dlopen_self=$enable_dlopen_self
17738
17739# Whether dlopen of statically linked programs is supported.
17740dlopen_self_static=$enable_dlopen_self_static
17741
17742# Compiler flag to prevent dynamic linking.
17743link_static_flag=$lt_lt_prog_compiler_static
17744
17745# Compiler flag to turn off builtin functions.
17746no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17747
17748# Compiler flag to allow reflexive dlopens.
17749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17750
17751# Compiler flag to generate shared objects directly from archives.
17752whole_archive_flag_spec=$lt_whole_archive_flag_spec
17753
17754# Compiler flag to generate thread-safe objects.
17755thread_safe_flag_spec=$lt_thread_safe_flag_spec
17756
17757# Library versioning type.
17758version_type=$version_type
17759
17760# Format of library name prefix.
17761libname_spec=$lt_libname_spec
17762
17763# List of archive names. First name is the real one, the rest are links.
17764# The last name is the one that the linker finds with -lNAME.
17765library_names_spec=$lt_library_names_spec
17766
17767# The coded name of the library, if different from the real name.
17768soname_spec=$lt_soname_spec
17769
17770# Commands used to build and install an old-style archive.
17771RANLIB=$lt_RANLIB
17772old_archive_cmds=$lt_old_archive_cmds
17773old_postinstall_cmds=$lt_old_postinstall_cmds
17774old_postuninstall_cmds=$lt_old_postuninstall_cmds
17775
17776# Create an old-style archive from a shared archive.
17777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17778
17779# Create a temporary old-style archive to link instead of a shared archive.
17780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17781
17782# Commands used to build and install a shared archive.
17783archive_cmds=$lt_archive_cmds
17784archive_expsym_cmds=$lt_archive_expsym_cmds
17785postinstall_cmds=$lt_postinstall_cmds
17786postuninstall_cmds=$lt_postuninstall_cmds
17787
17788# Commands used to build a loadable module (assumed same as above if empty)
17789module_cmds=$lt_module_cmds
17790module_expsym_cmds=$lt_module_expsym_cmds
17791
17792# Commands to strip libraries.
17793old_striplib=$lt_old_striplib
17794striplib=$lt_striplib
17795
17796# Dependencies to place before the objects being linked to create a
17797# shared library.
17798predep_objects=$lt_predep_objects
17799
17800# Dependencies to place after the objects being linked to create a
17801# shared library.
17802postdep_objects=$lt_postdep_objects
17803
17804# Dependencies to place before the objects being linked to create a
17805# shared library.
17806predeps=$lt_predeps
17807
17808# Dependencies to place after the objects being linked to create a
17809# shared library.
17810postdeps=$lt_postdeps
17811
17812# The library search path used internally by the compiler when linking
17813# a shared library.
17814compiler_lib_search_path=$lt_compiler_lib_search_path
17815
17816# Method to check whether dependent libraries are shared objects.
17817deplibs_check_method=$lt_deplibs_check_method
17818
17819# Command to use when deplibs_check_method == file_magic.
17820file_magic_cmd=$lt_file_magic_cmd
17821
17822# Flag that allows shared libraries with undefined symbols to be built.
17823allow_undefined_flag=$lt_allow_undefined_flag
17824
17825# Flag that forces no undefined symbols.
17826no_undefined_flag=$lt_no_undefined_flag
17827
17828# Commands used to finish a libtool library installation in a directory.
17829finish_cmds=$lt_finish_cmds
17830
17831# Same as above, but a single script fragment to be evaled but not shown.
17832finish_eval=$lt_finish_eval
17833
17834# Take the output of nm and produce a listing of raw symbols and C names.
17835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17836
17837# Transform the output of nm in a proper C declaration
17838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17839
17840# Transform the output of nm in a C name address pair
17841global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17842
17843# This is the shared library runtime path variable.
17844runpath_var=$runpath_var
17845
17846# This is the shared library path variable.
17847shlibpath_var=$shlibpath_var
17848
17849# Is shlibpath searched before the hard-coded library search path?
17850shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17851
17852# How to hardcode a shared library path into an executable.
17853hardcode_action=$hardcode_action
17854
17855# Whether we should hardcode library paths into libraries.
17856hardcode_into_libs=$hardcode_into_libs
17857
17858# Flag to hardcode \$libdir into a binary during linking.
17859# This must work even if \$libdir does not exist.
17860hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17861
17862# If ld is used when linking, flag to hardcode \$libdir into
17863# a binary during linking. This must work even if \$libdir does
17864# not exist.
17865hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17866
17867# Whether we need a single -rpath flag with a separated argument.
17868hardcode_libdir_separator=$lt_hardcode_libdir_separator
17869
17870# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871# resulting binary.
17872hardcode_direct=$hardcode_direct
17873
17874# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875# resulting binary.
17876hardcode_minus_L=$hardcode_minus_L
17877
17878# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879# the resulting binary.
17880hardcode_shlibpath_var=$hardcode_shlibpath_var
17881
17882# Set to yes if building a shared library automatically hardcodes DIR into the library
17883# and all subsequent libraries and executables linked against it.
17884hardcode_automatic=$hardcode_automatic
17885
17886# Variables whose values should be saved in libtool wrapper scripts and
17887# restored at relink time.
17888variables_saved_for_relink="$variables_saved_for_relink"
17889
17890# Whether libtool must link a program against all its dependency libraries.
17891link_all_deplibs=$link_all_deplibs
17892
17893# Compile-time system search path for libraries
17894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17895
17896# Run-time system search path for libraries
17897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17898
17899# Fix the shell variable \$srcfile for the compiler.
17900fix_srcfile_path="$fix_srcfile_path"
17901
17902# Set to yes if exported symbols are required.
17903always_export_symbols=$always_export_symbols
17904
17905# The commands to list exported symbols.
17906export_symbols_cmds=$lt_export_symbols_cmds
17907
17908# The commands to extract the exported symbol list from a shared archive.
17909extract_expsyms_cmds=$lt_extract_expsyms_cmds
17910
17911# Symbols that should not be listed in the preloaded symbols.
17912exclude_expsyms=$lt_exclude_expsyms
17913
17914# Symbols that must always be exported.
17915include_expsyms=$lt_include_expsyms
17916
17917# ### END LIBTOOL CONFIG
17918
17919__EOF__
17920
17921
17922 case $host_os in
17923 aix3*)
17924 cat <<\EOF >> "$cfgfile"
17925
17926# AIX sometimes has problems with the GCC collect2 program. For some
17927# reason, if we set the COLLECT_NAMES environment variable, the problems
17928# vanish in a puff of smoke.
17929if test "X${COLLECT_NAMES+set}" != Xset; then
17930 COLLECT_NAMES=
17931 export COLLECT_NAMES
17932fi
17933EOF
17934 ;;
17935 esac
17936
17937 # We use sed instead of cat because bash on DJGPP gets confused if
17938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17939 # text mode, it properly converts lines to CR/LF. This bash problem
17940 # is reportedly fixed, but why not run on old versions too?
17941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17942
17943 mv -f "$cfgfile" "$ofile" || \
17944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17945 chmod +x "$ofile"
17946
17947else
17948 # If there is no Makefile yet, we rely on a make rule to execute
17949 # `config.status --recheck' to rerun these tests and create the
17950 # libtool script then.
17951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17952 if test -f "$ltmain_in"; then
17953 test -f Makefile && make "$ltmain"
17954 fi
17955fi
17956
17957
17958ac_ext=c
17959ac_cpp='$CPP $CPPFLAGS'
17960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962ac_compiler_gnu=$ac_cv_c_compiler_gnu
17963
17964CC="$lt_save_CC"
17965
17966
17967# Check whether --with-tags was given.
17968if test "${with_tags+set}" = set; then
17969 withval=$with_tags; tagnames="$withval"
17970fi
17971
17972
17973if test -f "$ltmain" && test -n "$tagnames"; then
17974 if test ! -f "${ofile}"; then
17975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17976echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17977 fi
17978
17979 if test -z "$LTCC"; then
17980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17981 if test -z "$LTCC"; then
17982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17983echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17984 else
17985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17986echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17987 fi
17988 fi
17989 if test -z "$LTCFLAGS"; then
17990 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17991 fi
17992
17993 # Extract list of available tagged configurations in $ofile.
17994 # Note that this assumes the entire list is on one line.
17995 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17996
17997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17998 for tagname in $tagnames; do
17999 IFS="$lt_save_ifs"
18000 # Check whether tagname contains only valid characters
18001 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18002 "") ;;
18003 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18004echo "$as_me: error: invalid tag name: $tagname" >&2;}
18005 { (exit 1); exit 1; }; }
18006 ;;
18007 esac
18008
18009 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18010 then
18011 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18012echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18013 { (exit 1); exit 1; }; }
18014 fi
18015
18016 # Update the list of available tags.
18017 if test -n "$tagname"; then
18018 echo appending configuration tag \"$tagname\" to $ofile
18019
18020 case $tagname in
18021 CXX)
18022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18024 (test "X$CXX" != "Xg++"))) ; then
18025 ac_ext=cpp
18026ac_cpp='$CXXCPP $CPPFLAGS'
18027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18030
18031
18032
18033
18034archive_cmds_need_lc_CXX=no
18035allow_undefined_flag_CXX=
18036always_export_symbols_CXX=no
18037archive_expsym_cmds_CXX=
18038export_dynamic_flag_spec_CXX=
18039hardcode_direct_CXX=no
18040hardcode_libdir_flag_spec_CXX=
18041hardcode_libdir_flag_spec_ld_CXX=
18042hardcode_libdir_separator_CXX=
18043hardcode_minus_L_CXX=no
18044hardcode_shlibpath_var_CXX=unsupported
18045hardcode_automatic_CXX=no
18046module_cmds_CXX=
18047module_expsym_cmds_CXX=
18048link_all_deplibs_CXX=unknown
18049old_archive_cmds_CXX=$old_archive_cmds
18050no_undefined_flag_CXX=
18051whole_archive_flag_spec_CXX=
18052enable_shared_with_static_runtimes_CXX=no
18053
18054# Dependencies to place before and after the object being linked:
18055predep_objects_CXX=
18056postdep_objects_CXX=
18057predeps_CXX=
18058postdeps_CXX=
18059compiler_lib_search_path_CXX=
18060
18061# Source file extension for C++ test sources.
18062ac_ext=cpp
18063
18064# Object file extension for compiled C++ test sources.
18065objext=o
18066objext_CXX=$objext
18067
18068# Code to be used in simple compile tests
18069lt_simple_compile_test_code="int some_variable = 0;\n"
18070
18071# Code to be used in simple link tests
18072lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18073
18074# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18075
18076# If no C compiler was specified, use CC.
18077LTCC=${LTCC-"$CC"}
18078
18079# If no C compiler flags were specified, use CFLAGS.
18080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18081
18082# Allow CC to be a program name with arguments.
18083compiler=$CC
18084
18085
18086# save warnings/boilerplate of simple test code
18087ac_outfile=conftest.$ac_objext
18088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18090_lt_compiler_boilerplate=`cat conftest.err`
18091$rm conftest*
18092
18093ac_outfile=conftest.$ac_objext
18094printf "$lt_simple_link_test_code" >conftest.$ac_ext
18095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18096_lt_linker_boilerplate=`cat conftest.err`
18097$rm conftest*
18098
18099
18100# Allow CC to be a program name with arguments.
18101lt_save_CC=$CC
18102lt_save_LD=$LD
18103lt_save_GCC=$GCC
18104GCC=$GXX
18105lt_save_with_gnu_ld=$with_gnu_ld
18106lt_save_path_LD=$lt_cv_path_LD
18107if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18108 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18109else
18110 $as_unset lt_cv_prog_gnu_ld
18111fi
18112if test -n "${lt_cv_path_LDCXX+set}"; then
18113 lt_cv_path_LD=$lt_cv_path_LDCXX
18114else
18115 $as_unset lt_cv_path_LD
18116fi
18117test -z "${LDCXX+set}" || LD=$LDCXX
18118CC=${CXX-"c++"}
18119compiler=$CC
18120compiler_CXX=$CC
18121for cc_temp in $compiler""; do
18122 case $cc_temp in
18123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18125 \-*) ;;
18126 *) break;;
18127 esac
18128done
18129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18130
18131
18132# We don't want -fno-exception wen compiling C++ code, so set the
18133# no_builtin_flag separately
18134if test "$GXX" = yes; then
18135 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18136else
18137 lt_prog_compiler_no_builtin_flag_CXX=
18138fi
18139
18140if test "$GXX" = yes; then
18141 # Set up default GNU C++ configuration
18142
18143
18144# Check whether --with-gnu-ld was given.
18145if test "${with_gnu_ld+set}" = set; then
18146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18147else
18148 with_gnu_ld=no
18149fi
18150
18151ac_prog=ld
18152if test "$GCC" = yes; then
18153 # Check if gcc -print-prog-name=ld gives a path.
18154 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18155echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18156 case $host in
18157 *-*-mingw*)
18158 # gcc leaves a trailing carriage return which upsets mingw
18159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18160 *)
18161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18162 esac
18163 case $ac_prog in
18164 # Accept absolute paths.
18165 [\\/]* | ?:[\\/]*)
18166 re_direlt='/[^/][^/]*/\.\./'
18167 # Canonicalize the pathname of ld
18168 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18170 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18171 done
18172 test -z "$LD" && LD="$ac_prog"
18173 ;;
18174 "")
18175 # If it fails, then pretend we aren't using GCC.
18176 ac_prog=ld
18177 ;;
18178 *)
18179 # If it is relative, then search for the first ld in PATH.
18180 with_gnu_ld=unknown
18181 ;;
18182 esac
18183elif test "$with_gnu_ld" = yes; then
18184 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18185echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18186else
18187 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18188echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18189fi
18190if test "${lt_cv_path_LD+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 if test -z "$LD"; then
18194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18195 for ac_dir in $PATH; do
18196 IFS="$lt_save_ifs"
18197 test -z "$ac_dir" && ac_dir=.
18198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18199 lt_cv_path_LD="$ac_dir/$ac_prog"
18200 # Check to see if the program is GNU ld. I'd rather use --version,
18201 # but apparently some variants of GNU ld only accept -v.
18202 # Break only if it was the GNU/non-GNU ld that we prefer.
18203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18204 *GNU* | *'with BFD'*)
18205 test "$with_gnu_ld" != no && break
18206 ;;
18207 *)
18208 test "$with_gnu_ld" != yes && break
18209 ;;
18210 esac
18211 fi
18212 done
18213 IFS="$lt_save_ifs"
18214else
18215 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18216fi
18217fi
18218
18219LD="$lt_cv_path_LD"
18220if test -n "$LD"; then
18221 { echo "$as_me:$LINENO: result: $LD" >&5
18222echo "${ECHO_T}$LD" >&6; }
18223else
18224 { echo "$as_me:$LINENO: result: no" >&5
18225echo "${ECHO_T}no" >&6; }
18226fi
18227test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18228echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18229 { (exit 1); exit 1; }; }
18230{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18231echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18232if test "${lt_cv_prog_gnu_ld+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
18235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18236case `$LD -v 2>&1 </dev/null` in
18237*GNU* | *'with BFD'*)
18238 lt_cv_prog_gnu_ld=yes
18239 ;;
18240*)
18241 lt_cv_prog_gnu_ld=no
18242 ;;
18243esac
18244fi
18245{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18246echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18247with_gnu_ld=$lt_cv_prog_gnu_ld
18248
18249
18250
18251 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18252 # archiving commands below assume that GNU ld is being used.
18253 if test "$with_gnu_ld" = yes; then
18254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18255 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'
18256
18257 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18259
18260 # If archive_cmds runs LD, not CC, wlarc should be empty
18261 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18262 # investigate it a little bit more. (MM)
18263 wlarc='${wl}'
18264
18265 # ancient GNU ld didn't support --whole-archive et. al.
18266 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18267 grep 'no-whole-archive' > /dev/null; then
18268 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18269 else
18270 whole_archive_flag_spec_CXX=
18271 fi
18272 else
18273 with_gnu_ld=no
18274 wlarc=
18275
18276 # A generic and very simple default shared library creation
18277 # command for GNU C++ for the case where it uses the native
18278 # linker, instead of GNU ld. If possible, this setting should
18279 # overridden to take advantage of the native linker features on
18280 # the platform it is being used on.
18281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18282 fi
18283
18284 # Commands to make compiler produce verbose output that lists
18285 # what "hidden" libraries, object files and flags are used when
18286 # linking a shared library.
18287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18288
18289else
18290 GXX=no
18291 with_gnu_ld=no
18292 wlarc=
18293fi
18294
18295# PORTME: fill in a description of your system's C++ link characteristics
18296{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18298ld_shlibs_CXX=yes
18299case $host_os in
18300 aix3*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18303 ;;
18304 aix4* | aix5*)
18305 if test "$host_cpu" = ia64; then
18306 # On IA64, the linker does run time linking by default, so we don't
18307 # have to do anything special.
18308 aix_use_runtimelinking=no
18309 exp_sym_flag='-Bexport'
18310 no_entry_flag=""
18311 else
18312 aix_use_runtimelinking=no
18313
18314 # Test if we are trying to use run time linking or normal
18315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18316 # need to do runtime linking.
18317 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18318 for ld_flag in $LDFLAGS; do
18319 case $ld_flag in
18320 *-brtl*)
18321 aix_use_runtimelinking=yes
18322 break
18323 ;;
18324 esac
18325 done
18326 ;;
18327 esac
18328
18329 exp_sym_flag='-bexport'
18330 no_entry_flag='-bnoentry'
18331 fi
18332
18333 # When large executables or shared objects are built, AIX ld can
18334 # have problems creating the table of contents. If linking a library
18335 # or program results in "error TOC overflow" add -mminimal-toc to
18336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338
18339 archive_cmds_CXX=''
18340 hardcode_direct_CXX=yes
18341 hardcode_libdir_separator_CXX=':'
18342 link_all_deplibs_CXX=yes
18343
18344 if test "$GXX" = yes; then
18345 case $host_os in aix4.[012]|aix4.[012].*)
18346 # We only want to do this on AIX 4.2 and lower, the check
18347 # below for broken collect2 doesn't work under 4.3+
18348 collect2name=`${CC} -print-prog-name=collect2`
18349 if test -f "$collect2name" && \
18350 strings "$collect2name" | grep resolve_lib_name >/dev/null
18351 then
18352 # We have reworked collect2
18353 hardcode_direct_CXX=yes
18354 else
18355 # We have old collect2
18356 hardcode_direct_CXX=unsupported
18357 # It fails to find uninstalled libraries when the uninstalled
18358 # path is not listed in the libpath. Setting hardcode_minus_L
18359 # to unsupported forces relinking
18360 hardcode_minus_L_CXX=yes
18361 hardcode_libdir_flag_spec_CXX='-L$libdir'
18362 hardcode_libdir_separator_CXX=
18363 fi
18364 ;;
18365 esac
18366 shared_flag='-shared'
18367 if test "$aix_use_runtimelinking" = yes; then
18368 shared_flag="$shared_flag "'${wl}-G'
18369 fi
18370 else
18371 # not using gcc
18372 if test "$host_cpu" = ia64; then
18373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18374 # chokes on -Wl,-G. The following line is correct:
18375 shared_flag='-G'
18376 else
18377 if test "$aix_use_runtimelinking" = yes; then
18378 shared_flag='${wl}-G'
18379 else
18380 shared_flag='${wl}-bM:SRE'
18381 fi
18382 fi
18383 fi
18384
18385 # It seems that -bexpall does not export symbols beginning with
18386 # underscore (_), so it is better to generate a list of symbols to export.
18387 always_export_symbols_CXX=yes
18388 if test "$aix_use_runtimelinking" = yes; then
18389 # Warning - without using the other runtime loading flags (-brtl),
18390 # -berok will link without error, but may produce a broken library.
18391 allow_undefined_flag_CXX='-berok'
18392 # Determine the default libpath from the value encoded in an empty executable.
18393 cat >conftest.$ac_ext <<_ACEOF
18394/* confdefs.h. */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h. */
18399
18400int
18401main ()
18402{
18403
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext conftest$ac_exeext
18409if { (ac_try="$ac_link"
18410case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442
18443aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18444}'`
18445# Check for a 64-bit object if we didn't find anything.
18446if 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; }
18447}'`; fi
18448else
18449 echo "$as_me: failed program was:" >&5
18450sed 's/^/| /' conftest.$ac_ext >&5
18451
18452
18453fi
18454
18455rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18458
18459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18460
18461 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"
18462 else
18463 if test "$host_cpu" = ia64; then
18464 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18465 allow_undefined_flag_CXX="-z nodefs"
18466 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"
18467 else
18468 # Determine the default libpath from the value encoded in an empty executable.
18469 cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
18475
18476int
18477main ()
18478{
18479
18480 ;
18481 return 0;
18482}
18483_ACEOF
18484rm -f conftest.$ac_objext conftest$ac_exeext
18485if { (ac_try="$ac_link"
18486case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489esac
18490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_link") 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18499 { (case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18502esac
18503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_try") 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518
18519aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18520}'`
18521# Check for a 64-bit object if we didn't find anything.
18522if 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; }
18523}'`; fi
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528
18529fi
18530
18531rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18534
18535 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18536 # Warning - without using the other run time loading flags,
18537 # -berok will link without error, but may produce a broken library.
18538 no_undefined_flag_CXX=' ${wl}-bernotok'
18539 allow_undefined_flag_CXX=' ${wl}-berok'
18540 # Exported symbols can be pulled into shared objects from archives
18541 whole_archive_flag_spec_CXX='$convenience'
18542 archive_cmds_need_lc_CXX=yes
18543 # This is similar to how AIX traditionally builds its shared libraries.
18544 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'
18545 fi
18546 fi
18547 ;;
18548
18549 beos*)
18550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18551 allow_undefined_flag_CXX=unsupported
18552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18553 # support --undefined. This deserves some investigation. FIXME
18554 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18555 else
18556 ld_shlibs_CXX=no
18557 fi
18558 ;;
18559
18560 chorus*)
18561 case $cc_basename in
18562 *)
18563 # FIXME: insert proper C++ library support
18564 ld_shlibs_CXX=no
18565 ;;
18566 esac
18567 ;;
18568
18569 cygwin* | mingw* | pw32*)
18570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18571 # as there is no search path for DLLs.
18572 hardcode_libdir_flag_spec_CXX='-L$libdir'
18573 allow_undefined_flag_CXX=unsupported
18574 always_export_symbols_CXX=no
18575 enable_shared_with_static_runtimes_CXX=yes
18576
18577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18578 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'
18579 # If the export-symbols file already is a .def file (1st line
18580 # is EXPORTS), use it as is; otherwise, prepend...
18581 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18582 cp $export_symbols $output_objdir/$soname.def;
18583 else
18584 echo EXPORTS > $output_objdir/$soname.def;
18585 cat $export_symbols >> $output_objdir/$soname.def;
18586 fi~
18587 $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'
18588 else
18589 ld_shlibs_CXX=no
18590 fi
18591 ;;
18592 darwin* | rhapsody*)
18593 case $host_os in
18594 rhapsody* | darwin1.[012])
18595 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18596 ;;
18597 *) # Darwin 1.3 on
18598 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18599 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18600 else
18601 case ${MACOSX_DEPLOYMENT_TARGET} in
18602 10.[012])
18603 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18604 ;;
18605 10.*)
18606 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18607 ;;
18608 esac
18609 fi
18610 ;;
18611 esac
18612 archive_cmds_need_lc_CXX=no
18613 hardcode_direct_CXX=no
18614 hardcode_automatic_CXX=yes
18615 hardcode_shlibpath_var_CXX=unsupported
18616 whole_archive_flag_spec_CXX=''
18617 link_all_deplibs_CXX=yes
18618
18619 if test "$GXX" = yes ; then
18620 lt_int_apple_cc_single_mod=no
18621 output_verbose_link_cmd='echo'
18622 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18623 lt_int_apple_cc_single_mod=yes
18624 fi
18625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18626 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18627 else
18628 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'
18629 fi
18630 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18633 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}'
18634 else
18635 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}'
18636 fi
18637 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}'
18638 else
18639 case $cc_basename in
18640 xlc*)
18641 output_verbose_link_cmd='echo'
18642 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'
18643 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18645 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}'
18646 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}'
18647 ;;
18648 *)
18649 ld_shlibs_CXX=no
18650 ;;
18651 esac
18652 fi
18653 ;;
18654
18655 dgux*)
18656 case $cc_basename in
18657 ec++*)
18658 # FIXME: insert proper C++ library support
18659 ld_shlibs_CXX=no
18660 ;;
18661 ghcx*)
18662 # Green Hills C++ Compiler
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18665 ;;
18666 *)
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18669 ;;
18670 esac
18671 ;;
18672 freebsd[12]*)
18673 # C++ shared libraries reported to be fairly broken before switch to ELF
18674 ld_shlibs_CXX=no
18675 ;;
18676 freebsd-elf*)
18677 archive_cmds_need_lc_CXX=no
18678 ;;
18679 freebsd* | kfreebsd*-gnu | dragonfly*)
18680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18681 # conventions
18682 ld_shlibs_CXX=yes
18683 ;;
18684 gnu*)
18685 ;;
18686 hpux9*)
18687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18688 hardcode_libdir_separator_CXX=:
18689 export_dynamic_flag_spec_CXX='${wl}-E'
18690 hardcode_direct_CXX=yes
18691 hardcode_minus_L_CXX=yes # Not in the search PATH,
18692 # but as the default
18693 # location of the library.
18694
18695 case $cc_basename in
18696 CC*)
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
18700 aCC*)
18701 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'
18702 # Commands to make compiler produce verbose output that lists
18703 # what "hidden" libraries, object files and flags are used when
18704 # linking a shared library.
18705 #
18706 # There doesn't appear to be a way to prevent this compiler from
18707 # explicitly linking system object files so we need to strip them
18708 # from the output so that they don't get included in the library
18709 # dependencies.
18710 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'
18711 ;;
18712 *)
18713 if test "$GXX" = yes; then
18714 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'
18715 else
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 fi
18719 ;;
18720 esac
18721 ;;
18722 hpux10*|hpux11*)
18723 if test $with_gnu_ld = no; then
18724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18725 hardcode_libdir_separator_CXX=:
18726
18727 case $host_cpu in
18728 hppa*64*|ia64*)
18729 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18730 ;;
18731 *)
18732 export_dynamic_flag_spec_CXX='${wl}-E'
18733 ;;
18734 esac
18735 fi
18736 case $host_cpu in
18737 hppa*64*|ia64*)
18738 hardcode_direct_CXX=no
18739 hardcode_shlibpath_var_CXX=no
18740 ;;
18741 *)
18742 hardcode_direct_CXX=yes
18743 hardcode_minus_L_CXX=yes # Not in the search PATH,
18744 # but as the default
18745 # location of the library.
18746 ;;
18747 esac
18748
18749 case $cc_basename in
18750 CC*)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 aCC*)
18755 case $host_cpu in
18756 hppa*64*)
18757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18758 ;;
18759 ia64*)
18760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18761 ;;
18762 *)
18763 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18764 ;;
18765 esac
18766 # Commands to make compiler produce verbose output that lists
18767 # what "hidden" libraries, object files and flags are used when
18768 # linking a shared library.
18769 #
18770 # There doesn't appear to be a way to prevent this compiler from
18771 # explicitly linking system object files so we need to strip them
18772 # from the output so that they don't get included in the library
18773 # dependencies.
18774 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'
18775 ;;
18776 *)
18777 if test "$GXX" = yes; then
18778 if test $with_gnu_ld = no; then
18779 case $host_cpu in
18780 hppa*64*)
18781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18782 ;;
18783 ia64*)
18784 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18785 ;;
18786 *)
18787 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'
18788 ;;
18789 esac
18790 fi
18791 else
18792 # FIXME: insert proper C++ library support
18793 ld_shlibs_CXX=no
18794 fi
18795 ;;
18796 esac
18797 ;;
18798 interix3*)
18799 hardcode_direct_CXX=no
18800 hardcode_shlibpath_var_CXX=no
18801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}-E'
18803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18804 # Instead, shared libraries are loaded at an image base (0x10000000 by
18805 # default) and relocated if they conflict, which is a slow very memory
18806 # consuming and fragmenting process. To avoid this, we pick a random,
18807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18809 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'
18810 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'
18811 ;;
18812 irix5* | irix6*)
18813 case $cc_basename in
18814 CC*)
18815 # SGI C++
18816 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'
18817
18818 # Archives containing C++ object files must be created using
18819 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18820 # necessary to make sure instantiated templates are included
18821 # in the archive.
18822 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18823 ;;
18824 *)
18825 if test "$GXX" = yes; then
18826 if test "$with_gnu_ld" = no; then
18827 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'
18828 else
18829 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'
18830 fi
18831 fi
18832 link_all_deplibs_CXX=yes
18833 ;;
18834 esac
18835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18836 hardcode_libdir_separator_CXX=:
18837 ;;
18838 linux*)
18839 case $cc_basename in
18840 KCC*)
18841 # Kuck and Associates, Inc. (KAI) C++ Compiler
18842
18843 # KCC will only create a shared library if the output file
18844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18845 # to its proper name (with version) after linking.
18846 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'
18847 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'
18848 # Commands to make compiler produce verbose output that lists
18849 # what "hidden" libraries, object files and flags are used when
18850 # linking a shared library.
18851 #
18852 # There doesn't appear to be a way to prevent this compiler from
18853 # explicitly linking system object files so we need to strip them
18854 # from the output so that they don't get included in the library
18855 # dependencies.
18856 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'
18857
18858 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18860
18861 # Archives containing C++ object files must be created using
18862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18864 ;;
18865 icpc*)
18866 # Intel C++
18867 with_gnu_ld=yes
18868 # version 8.0 and above of icpc choke on multiply defined symbols
18869 # if we add $predep_objects and $postdep_objects, however 7.1 and
18870 # earlier do not add the objects themselves.
18871 case `$CC -V 2>&1` in
18872 *"Version 7."*)
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18874 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'
18875 ;;
18876 *) # Version 8.0 or newer
18877 tmp_idyn=
18878 case $host_cpu in
18879 ia64*) tmp_idyn=' -i_dynamic';;
18880 esac
18881 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882 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'
18883 ;;
18884 esac
18885 archive_cmds_need_lc_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18888 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18889 ;;
18890 pgCC*)
18891 # Portland Group C++ compiler
18892 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18893 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'
18894
18895 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18897 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'
18898 ;;
18899 cxx*)
18900 # Compaq C++
18901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902 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'
18903
18904 runpath_var=LD_RUN_PATH
18905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18906 hardcode_libdir_separator_CXX=:
18907
18908 # Commands to make compiler produce verbose output that lists
18909 # what "hidden" libraries, object files and flags are used when
18910 # linking a shared library.
18911 #
18912 # There doesn't appear to be a way to prevent this compiler from
18913 # explicitly linking system object files so we need to strip them
18914 # from the output so that they don't get included in the library
18915 # dependencies.
18916 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'
18917 ;;
18918 esac
18919 ;;
18920 lynxos*)
18921 # FIXME: insert proper C++ library support
18922 ld_shlibs_CXX=no
18923 ;;
18924 m88k*)
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18927 ;;
18928 mvs*)
18929 case $cc_basename in
18930 cxx*)
18931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18933 ;;
18934 *)
18935 # FIXME: insert proper C++ library support
18936 ld_shlibs_CXX=no
18937 ;;
18938 esac
18939 ;;
18940 netbsd*)
18941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18942 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18943 wlarc=
18944 hardcode_libdir_flag_spec_CXX='-R$libdir'
18945 hardcode_direct_CXX=yes
18946 hardcode_shlibpath_var_CXX=no
18947 fi
18948 # Workaround some broken pre-1.5 toolchains
18949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18950 ;;
18951 openbsd2*)
18952 # C++ shared libraries are fairly broken
18953 ld_shlibs_CXX=no
18954 ;;
18955 openbsd*)
18956 hardcode_direct_CXX=yes
18957 hardcode_shlibpath_var_CXX=no
18958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18961 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18962 export_dynamic_flag_spec_CXX='${wl}-E'
18963 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18964 fi
18965 output_verbose_link_cmd='echo'
18966 ;;
18967 osf3*)
18968 case $cc_basename in
18969 KCC*)
18970 # Kuck and Associates, Inc. (KAI) C++ Compiler
18971
18972 # KCC will only create a shared library if the output file
18973 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18974 # to its proper name (with version) after linking.
18975 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'
18976
18977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978 hardcode_libdir_separator_CXX=:
18979
18980 # Archives containing C++ object files must be created using
18981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18982 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18983
18984 ;;
18985 RCC*)
18986 # Rational C++ 2.4.1
18987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18989 ;;
18990 cxx*)
18991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18992 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'
18993
18994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18995 hardcode_libdir_separator_CXX=:
18996
18997 # Commands to make compiler produce verbose output that lists
18998 # what "hidden" libraries, object files and flags are used when
18999 # linking a shared library.
19000 #
19001 # There doesn't appear to be a way to prevent this compiler from
19002 # explicitly linking system object files so we need to strip them
19003 # from the output so that they don't get included in the library
19004 # dependencies.
19005 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'
19006 ;;
19007 *)
19008 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19009 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19010 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'
19011
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19013 hardcode_libdir_separator_CXX=:
19014
19015 # Commands to make compiler produce verbose output that lists
19016 # what "hidden" libraries, object files and flags are used when
19017 # linking a shared library.
19018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19019
19020 else
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 fi
19024 ;;
19025 esac
19026 ;;
19027 osf4* | osf5*)
19028 case $cc_basename in
19029 KCC*)
19030 # Kuck and Associates, Inc. (KAI) C++ Compiler
19031
19032 # KCC will only create a shared library if the output file
19033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19034 # to its proper name (with version) after linking.
19035 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'
19036
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038 hardcode_libdir_separator_CXX=:
19039
19040 # Archives containing C++ object files must be created using
19041 # the KAI C++ compiler.
19042 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19043 ;;
19044 RCC*)
19045 # Rational C++ 2.4.1
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 ;;
19049 cxx*)
19050 allow_undefined_flag_CXX=' -expect_unresolved \*'
19051 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'
19052 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19053 echo "-hidden">> $lib.exp~
19054 $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~
19055 $rm $lib.exp'
19056
19057 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19058 hardcode_libdir_separator_CXX=:
19059
19060 # Commands to make compiler produce verbose output that lists
19061 # what "hidden" libraries, object files and flags are used when
19062 # linking a shared library.
19063 #
19064 # There doesn't appear to be a way to prevent this compiler from
19065 # explicitly linking system object files so we need to strip them
19066 # from the output so that they don't get included in the library
19067 # dependencies.
19068 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'
19069 ;;
19070 *)
19071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19073 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'
19074
19075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19076 hardcode_libdir_separator_CXX=:
19077
19078 # Commands to make compiler produce verbose output that lists
19079 # what "hidden" libraries, object files and flags are used when
19080 # linking a shared library.
19081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19082
19083 else
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19086 fi
19087 ;;
19088 esac
19089 ;;
19090 psos*)
19091 # FIXME: insert proper C++ library support
19092 ld_shlibs_CXX=no
19093 ;;
19094 sunos4*)
19095 case $cc_basename in
19096 CC*)
19097 # Sun C++ 4.x
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
19101 lcc*)
19102 # Lucid
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19105 ;;
19106 *)
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
19110 esac
19111 ;;
19112 solaris*)
19113 case $cc_basename in
19114 CC*)
19115 # Sun C++ 4.2, 5.x and Centerline C++
19116 archive_cmds_need_lc_CXX=yes
19117 no_undefined_flag_CXX=' -zdefs'
19118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19119 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19120 $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'
19121
19122 hardcode_libdir_flag_spec_CXX='-R$libdir'
19123 hardcode_shlibpath_var_CXX=no
19124 case $host_os in
19125 solaris2.[0-5] | solaris2.[0-5].*) ;;
19126 *)
19127 # The C++ compiler is used as linker so we must use $wl
19128 # flag to pass the commands to the underlying system
19129 # linker. We must also pass each convience library through
19130 # to the system linker between allextract/defaultextract.
19131 # The C++ compiler will combine linker options so we
19132 # cannot just pass the convience library names through
19133 # without $wl.
19134 # Supported since Solaris 2.6 (maybe 2.5.1?)
19135 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'
19136 ;;
19137 esac
19138 link_all_deplibs_CXX=yes
19139
19140 output_verbose_link_cmd='echo'
19141
19142 # Archives containing C++ object files must be created using
19143 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19144 # necessary to make sure instantiated templates are included
19145 # in the archive.
19146 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19147 ;;
19148 gcx*)
19149 # Green Hills C++ Compiler
19150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19151
19152 # The C++ compiler must be used to create the archive.
19153 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19154 ;;
19155 *)
19156 # GNU C++ compiler with Solaris linker
19157 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19158 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19159 if $CC --version | grep -v '^2\.7' > /dev/null; then
19160 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19161 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19162 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19163
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19168 else
19169 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19170 # platform.
19171 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19172 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19173 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19174
19175 # Commands to make compiler produce verbose output that lists
19176 # what "hidden" libraries, object files and flags are used when
19177 # linking a shared library.
19178 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19179 fi
19180
19181 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19182 fi
19183 ;;
19184 esac
19185 ;;
19186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19187 no_undefined_flag_CXX='${wl}-z,text'
19188 archive_cmds_need_lc_CXX=no
19189 hardcode_shlibpath_var_CXX=no
19190 runpath_var='LD_RUN_PATH'
19191
19192 case $cc_basename in
19193 CC*)
19194 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19196 ;;
19197 *)
19198 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19199 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19200 ;;
19201 esac
19202 ;;
19203 sysv5* | sco3.2v5* | sco5v6*)
19204 # Note: We can NOT use -z defs as we might desire, because we do not
19205 # link with -lc, and that would cause any symbols used from libc to
19206 # always be unresolved, which means just about no library would
19207 # ever link correctly. If we're not using GNU ld we use -z text
19208 # though, which does catch some bad symbols but isn't as heavy-handed
19209 # as -z defs.
19210 # For security reasons, it is highly recommended that you always
19211 # use absolute paths for naming shared libraries, and exclude the
19212 # DT_RUNPATH tag from executables and libraries. But doing so
19213 # requires that you compile everything twice, which is a pain.
19214 # So that behaviour is only enabled if SCOABSPATH is set to a
19215 # non-empty value in the environment. Most likely only useful for
19216 # creating official distributions of packages.
19217 # This is a hack until libtool officially supports absolute path
19218 # names for shared libraries.
19219 no_undefined_flag_CXX='${wl}-z,text'
19220 allow_undefined_flag_CXX='${wl}-z,nodefs'
19221 archive_cmds_need_lc_CXX=no
19222 hardcode_shlibpath_var_CXX=no
19223 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19224 hardcode_libdir_separator_CXX=':'
19225 link_all_deplibs_CXX=yes
19226 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19227 runpath_var='LD_RUN_PATH'
19228
19229 case $cc_basename in
19230 CC*)
19231 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 ;;
19234 *)
19235 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 ;;
19238 esac
19239 ;;
19240 tandem*)
19241 case $cc_basename in
19242 NCC*)
19243 # NonStop-UX NCC 3.20
19244 # FIXME: insert proper C++ library support
19245 ld_shlibs_CXX=no
19246 ;;
19247 *)
19248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19250 ;;
19251 esac
19252 ;;
19253 vxworks*)
19254 # FIXME: insert proper C++ library support
19255 ld_shlibs_CXX=no
19256 ;;
19257 *)
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19260 ;;
19261esac
19262{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19263echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19264test "$ld_shlibs_CXX" = no && can_build_shared=no
19265
19266GCC_CXX="$GXX"
19267LD_CXX="$LD"
19268
19269
19270cat > conftest.$ac_ext <<EOF
19271class Foo
19272{
19273public:
19274 Foo (void) { a = 0; }
19275private:
19276 int a;
19277};
19278EOF
19279
19280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; then
19285 # Parse the compiler output and extract the necessary
19286 # objects, libraries and library flags.
19287
19288 # Sentinel used to keep track of whether or not we are before
19289 # the conftest object file.
19290 pre_test_object_deps_done=no
19291
19292 # The `*' in the case matches for architectures that use `case' in
19293 # $output_verbose_cmd can trigger glob expansion during the loop
19294 # eval without this substitution.
19295 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19296
19297 for p in `eval $output_verbose_link_cmd`; do
19298 case $p in
19299
19300 -L* | -R* | -l*)
19301 # Some compilers place space between "-{L,R}" and the path.
19302 # Remove the space.
19303 if test $p = "-L" \
19304 || test $p = "-R"; then
19305 prev=$p
19306 continue
19307 else
19308 prev=
19309 fi
19310
19311 if test "$pre_test_object_deps_done" = no; then
19312 case $p in
19313 -L* | -R*)
19314 # Internal compiler library paths should come after those
19315 # provided the user. The postdeps already come after the
19316 # user supplied libs so there is no need to process them.
19317 if test -z "$compiler_lib_search_path_CXX"; then
19318 compiler_lib_search_path_CXX="${prev}${p}"
19319 else
19320 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19321 fi
19322 ;;
19323 # The "-l" case would never come before the object being
19324 # linked, so don't bother handling this case.
19325 esac
19326 else
19327 if test -z "$postdeps_CXX"; then
19328 postdeps_CXX="${prev}${p}"
19329 else
19330 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19331 fi
19332 fi
19333 ;;
19334
19335 *.$objext)
19336 # This assumes that the test object file only shows up
19337 # once in the compiler output.
19338 if test "$p" = "conftest.$objext"; then
19339 pre_test_object_deps_done=yes
19340 continue
19341 fi
19342
19343 if test "$pre_test_object_deps_done" = no; then
19344 if test -z "$predep_objects_CXX"; then
19345 predep_objects_CXX="$p"
19346 else
19347 predep_objects_CXX="$predep_objects_CXX $p"
19348 fi
19349 else
19350 if test -z "$postdep_objects_CXX"; then
19351 postdep_objects_CXX="$p"
19352 else
19353 postdep_objects_CXX="$postdep_objects_CXX $p"
19354 fi
19355 fi
19356 ;;
19357
19358 *) ;; # Ignore the rest.
19359
19360 esac
19361 done
19362
19363 # Clean up.
19364 rm -f a.out a.exe
19365else
19366 echo "libtool.m4: error: problem compiling CXX test program"
19367fi
19368
19369$rm -f confest.$objext
19370
19371# PORTME: override above test on systems where it is broken
19372case $host_os in
19373interix3*)
19374 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19375 # hack all around it, let's just trust "g++" to DTRT.
19376 predep_objects_CXX=
19377 postdep_objects_CXX=
19378 postdeps_CXX=
19379 ;;
19380
19381solaris*)
19382 case $cc_basename in
19383 CC*)
19384 # Adding this requires a known-good setup of shared libraries for
19385 # Sun compiler versions before 5.6, else PIC objects from an old
19386 # archive will be linked into the output, leading to subtle bugs.
19387 postdeps_CXX='-lCstd -lCrun'
19388 ;;
19389 esac
19390 ;;
19391esac
19392
19393
19394case " $postdeps_CXX " in
19395*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19396esac
19397
19398lt_prog_compiler_wl_CXX=
19399lt_prog_compiler_pic_CXX=
19400lt_prog_compiler_static_CXX=
19401
19402{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19403echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19404
19405 # C++ specific cases for pic, static, wl, etc.
19406 if test "$GXX" = yes; then
19407 lt_prog_compiler_wl_CXX='-Wl,'
19408 lt_prog_compiler_static_CXX='-static'
19409
19410 case $host_os in
19411 aix*)
19412 # All AIX code is PIC.
19413 if test "$host_cpu" = ia64; then
19414 # AIX 5 now supports IA64 processor
19415 lt_prog_compiler_static_CXX='-Bstatic'
19416 fi
19417 ;;
19418 amigaos*)
19419 # FIXME: we need at least 68020 code to build shared libraries, but
19420 # adding the `-m68020' flag to GCC prevents building anything better,
19421 # like `-m68040'.
19422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19423 ;;
19424 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19425 # PIC is the default for these OSes.
19426 ;;
19427 mingw* | os2* | pw32*)
19428 # This hack is so that the source file can tell whether it is being
19429 # built for inclusion in a dll (and should export symbols for example).
19430 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19431 ;;
19432 darwin* | rhapsody*)
19433 # PIC is the default on this platform
19434 # Common symbols not allowed in MH_DYLIB files
19435 lt_prog_compiler_pic_CXX='-fno-common'
19436 ;;
19437 *djgpp*)
19438 # DJGPP does not support shared libraries at all
19439 lt_prog_compiler_pic_CXX=
19440 ;;
19441 interix3*)
19442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19443 # Instead, we relocate shared libraries at runtime.
19444 ;;
19445 sysv4*MP*)
19446 if test -d /usr/nec; then
19447 lt_prog_compiler_pic_CXX=-Kconform_pic
19448 fi
19449 ;;
19450 hpux*)
19451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19452 # not for PA HP-UX.
19453 case $host_cpu in
19454 hppa*64*|ia64*)
19455 ;;
19456 *)
19457 lt_prog_compiler_pic_CXX='-fPIC'
19458 ;;
19459 esac
19460 ;;
19461 *)
19462 lt_prog_compiler_pic_CXX='-fPIC'
19463 ;;
19464 esac
19465 else
19466 case $host_os in
19467 aix4* | aix5*)
19468 # All AIX code is PIC.
19469 if test "$host_cpu" = ia64; then
19470 # AIX 5 now supports IA64 processor
19471 lt_prog_compiler_static_CXX='-Bstatic'
19472 else
19473 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19474 fi
19475 ;;
19476 chorus*)
19477 case $cc_basename in
19478 cxch68*)
19479 # Green Hills C++ Compiler
19480 # _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"
19481 ;;
19482 esac
19483 ;;
19484 darwin*)
19485 # PIC is the default on this platform
19486 # Common symbols not allowed in MH_DYLIB files
19487 case $cc_basename in
19488 xlc*)
19489 lt_prog_compiler_pic_CXX='-qnocommon'
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 ;;
19492 esac
19493 ;;
19494 dgux*)
19495 case $cc_basename in
19496 ec++*)
19497 lt_prog_compiler_pic_CXX='-KPIC'
19498 ;;
19499 ghcx*)
19500 # Green Hills C++ Compiler
19501 lt_prog_compiler_pic_CXX='-pic'
19502 ;;
19503 *)
19504 ;;
19505 esac
19506 ;;
19507 freebsd* | kfreebsd*-gnu | dragonfly*)
19508 # FreeBSD uses GNU C++
19509 ;;
19510 hpux9* | hpux10* | hpux11*)
19511 case $cc_basename in
19512 CC*)
19513 lt_prog_compiler_wl_CXX='-Wl,'
19514 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19515 if test "$host_cpu" != ia64; then
19516 lt_prog_compiler_pic_CXX='+Z'
19517 fi
19518 ;;
19519 aCC*)
19520 lt_prog_compiler_wl_CXX='-Wl,'
19521 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19522 case $host_cpu in
19523 hppa*64*|ia64*)
19524 # +Z the default
19525 ;;
19526 *)
19527 lt_prog_compiler_pic_CXX='+Z'
19528 ;;
19529 esac
19530 ;;
19531 *)
19532 ;;
19533 esac
19534 ;;
19535 interix*)
19536 # This is c89, which is MS Visual C++ (no shared libs)
19537 # Anyone wants to do a port?
19538 ;;
19539 irix5* | irix6* | nonstopux*)
19540 case $cc_basename in
19541 CC*)
19542 lt_prog_compiler_wl_CXX='-Wl,'
19543 lt_prog_compiler_static_CXX='-non_shared'
19544 # CC pic flag -KPIC is the default.
19545 ;;
19546 *)
19547 ;;
19548 esac
19549 ;;
19550 linux*)
19551 case $cc_basename in
19552 KCC*)
19553 # KAI C++ Compiler
19554 lt_prog_compiler_wl_CXX='--backend -Wl,'
19555 lt_prog_compiler_pic_CXX='-fPIC'
19556 ;;
19557 icpc* | ecpc*)
19558 # Intel C++
19559 lt_prog_compiler_wl_CXX='-Wl,'
19560 lt_prog_compiler_pic_CXX='-KPIC'
19561 lt_prog_compiler_static_CXX='-static'
19562 ;;
19563 pgCC*)
19564 # Portland Group C++ compiler.
19565 lt_prog_compiler_wl_CXX='-Wl,'
19566 lt_prog_compiler_pic_CXX='-fpic'
19567 lt_prog_compiler_static_CXX='-Bstatic'
19568 ;;
19569 cxx*)
19570 # Compaq C++
19571 # Make sure the PIC flag is empty. It appears that all Alpha
19572 # Linux and Compaq Tru64 Unix objects are PIC.
19573 lt_prog_compiler_pic_CXX=
19574 lt_prog_compiler_static_CXX='-non_shared'
19575 ;;
19576 *)
19577 ;;
19578 esac
19579 ;;
19580 lynxos*)
19581 ;;
19582 m88k*)
19583 ;;
19584 mvs*)
19585 case $cc_basename in
19586 cxx*)
19587 lt_prog_compiler_pic_CXX='-W c,exportall'
19588 ;;
19589 *)
19590 ;;
19591 esac
19592 ;;
19593 netbsd*)
19594 ;;
19595 osf3* | osf4* | osf5*)
19596 case $cc_basename in
19597 KCC*)
19598 lt_prog_compiler_wl_CXX='--backend -Wl,'
19599 ;;
19600 RCC*)
19601 # Rational C++ 2.4.1
19602 lt_prog_compiler_pic_CXX='-pic'
19603 ;;
19604 cxx*)
19605 # Digital/Compaq C++
19606 lt_prog_compiler_wl_CXX='-Wl,'
19607 # Make sure the PIC flag is empty. It appears that all Alpha
19608 # Linux and Compaq Tru64 Unix objects are PIC.
19609 lt_prog_compiler_pic_CXX=
19610 lt_prog_compiler_static_CXX='-non_shared'
19611 ;;
19612 *)
19613 ;;
19614 esac
19615 ;;
19616 psos*)
19617 ;;
19618 solaris*)
19619 case $cc_basename in
19620 CC*)
19621 # Sun C++ 4.2, 5.x and Centerline C++
19622 lt_prog_compiler_pic_CXX='-KPIC'
19623 lt_prog_compiler_static_CXX='-Bstatic'
19624 lt_prog_compiler_wl_CXX='-Qoption ld '
19625 ;;
19626 gcx*)
19627 # Green Hills C++ Compiler
19628 lt_prog_compiler_pic_CXX='-PIC'
19629 ;;
19630 *)
19631 ;;
19632 esac
19633 ;;
19634 sunos4*)
19635 case $cc_basename in
19636 CC*)
19637 # Sun C++ 4.x
19638 lt_prog_compiler_pic_CXX='-pic'
19639 lt_prog_compiler_static_CXX='-Bstatic'
19640 ;;
19641 lcc*)
19642 # Lucid
19643 lt_prog_compiler_pic_CXX='-pic'
19644 ;;
19645 *)
19646 ;;
19647 esac
19648 ;;
19649 tandem*)
19650 case $cc_basename in
19651 NCC*)
19652 # NonStop-UX NCC 3.20
19653 lt_prog_compiler_pic_CXX='-KPIC'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
19659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19660 case $cc_basename in
19661 CC*)
19662 lt_prog_compiler_wl_CXX='-Wl,'
19663 lt_prog_compiler_pic_CXX='-KPIC'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19665 ;;
19666 esac
19667 ;;
19668 vxworks*)
19669 ;;
19670 *)
19671 lt_prog_compiler_can_build_shared_CXX=no
19672 ;;
19673 esac
19674 fi
19675
19676{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19677echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19678
19679#
19680# Check to make sure the PIC flag actually works.
19681#
19682if test -n "$lt_prog_compiler_pic_CXX"; then
19683
19684{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19686if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688else
19689 lt_prog_compiler_pic_works_CXX=no
19690 ac_outfile=conftest.$ac_objext
19691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19693 # Insert the option either (1) after the last *FLAGS variable, or
19694 # (2) before a word containing "conftest.", or (3) at the end.
19695 # Note that $ac_compile itself does not contain backslashes and begins
19696 # with a dollar sign (not a hyphen), so the echo should work correctly.
19697 # The option is referenced via a variable to avoid confusing sed.
19698 lt_compile=`echo "$ac_compile" | $SED \
19699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19701 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019702 (eval echo "\"\$as_me:19702: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019703 (eval "$lt_compile" 2>conftest.err)
19704 ac_status=$?
19705 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019706 echo "$as_me:19706: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019707 if (exit $ac_status) && test -s "$ac_outfile"; then
19708 # The compiler can only warn and ignore the option if not recognized
19709 # So say no if there are warnings other than the usual output.
19710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19713 lt_prog_compiler_pic_works_CXX=yes
19714 fi
19715 fi
19716 $rm conftest*
19717
19718fi
19719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19720echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19721
19722if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19723 case $lt_prog_compiler_pic_CXX in
19724 "" | " "*) ;;
19725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19726 esac
19727else
19728 lt_prog_compiler_pic_CXX=
19729 lt_prog_compiler_can_build_shared_CXX=no
19730fi
19731
19732fi
19733case $host_os in
19734 # For platforms which do not support PIC, -DPIC is meaningless:
19735 *djgpp*)
19736 lt_prog_compiler_pic_CXX=
19737 ;;
19738 *)
19739 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19740 ;;
19741esac
19742
19743#
19744# Check to make sure the static flag actually works.
19745#
19746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19747{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19748echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19749if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752 lt_prog_compiler_static_works_CXX=no
19753 save_LDFLAGS="$LDFLAGS"
19754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19755 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19757 # The linker can only warn and ignore the option if not recognized
19758 # So say no if there are warnings
19759 if test -s conftest.err; then
19760 # Append any errors to the config.log.
19761 cat conftest.err 1>&5
19762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_prog_compiler_static_works_CXX=yes
19766 fi
19767 else
19768 lt_prog_compiler_static_works_CXX=yes
19769 fi
19770 fi
19771 $rm conftest*
19772 LDFLAGS="$save_LDFLAGS"
19773
19774fi
19775{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19776echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19777
19778if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19779 :
19780else
19781 lt_prog_compiler_static_CXX=
19782fi
19783
19784
19785{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19786echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19787if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 lt_cv_prog_compiler_c_o_CXX=no
19791 $rm -r conftest 2>/dev/null
19792 mkdir conftest
19793 cd conftest
19794 mkdir out
19795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19796
19797 lt_compiler_flag="-o out/conftest2.$ac_objext"
19798 # Insert the option either (1) after the last *FLAGS variable, or
19799 # (2) before a word containing "conftest.", or (3) at the end.
19800 # Note that $ac_compile itself does not contain backslashes and begins
19801 # with a dollar sign (not a hyphen), so the echo should work correctly.
19802 lt_compile=`echo "$ac_compile" | $SED \
19803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19805 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019806 (eval echo "\"\$as_me:19806: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019807 (eval "$lt_compile" 2>out/conftest.err)
19808 ac_status=$?
19809 cat out/conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000019810 echo "$as_me:19810: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19812 then
19813 # The compiler can only warn and ignore the option if not recognized
19814 # So say no if there are warnings
19815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19818 lt_cv_prog_compiler_c_o_CXX=yes
19819 fi
19820 fi
19821 chmod u+w . 2>&5
19822 $rm conftest*
19823 # SGI C++ compiler will create directory out/ii_files/ for
19824 # template instantiation
19825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19826 $rm out/* && rmdir out
19827 cd ..
19828 rmdir conftest
19829 $rm conftest*
19830
19831fi
19832{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19833echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19834
19835
19836hard_links="nottested"
19837if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19838 # do not overwrite the value of need_locks provided by the user
19839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19841 hard_links=yes
19842 $rm conftest*
19843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19844 touch conftest.a
19845 ln conftest.a conftest.b 2>&5 || hard_links=no
19846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19847 { echo "$as_me:$LINENO: result: $hard_links" >&5
19848echo "${ECHO_T}$hard_links" >&6; }
19849 if test "$hard_links" = no; then
19850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19852 need_locks=warn
19853 fi
19854else
19855 need_locks=no
19856fi
19857
19858{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19859echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19860
19861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19862 case $host_os in
19863 aix4* | aix5*)
19864 # If we're using GNU nm, then we don't want the "-C" option.
19865 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19866 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19867 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'
19868 else
19869 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'
19870 fi
19871 ;;
19872 pw32*)
19873 export_symbols_cmds_CXX="$ltdll_cmds"
19874 ;;
19875 cygwin* | mingw*)
19876 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'
19877 ;;
19878 *)
19879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19880 ;;
19881 esac
19882
19883{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19884echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19885test "$ld_shlibs_CXX" = no && can_build_shared=no
19886
19887#
19888# Do we need to explicitly link libc?
19889#
19890case "x$archive_cmds_need_lc_CXX" in
19891x|xyes)
19892 # Assume -lc should be added
19893 archive_cmds_need_lc_CXX=yes
19894
19895 if test "$enable_shared" = yes && test "$GCC" = yes; then
19896 case $archive_cmds_CXX in
19897 *'~'*)
19898 # FIXME: we may have to deal with multi-command sequences.
19899 ;;
19900 '$CC '*)
19901 # Test whether the compiler implicitly links with -lc since on some
19902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19903 # to ld, don't add -lc before -lgcc.
19904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19906 $rm conftest*
19907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19908
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } 2>conftest.err; then
19914 soname=conftest
19915 lib=conftest
19916 libobjs=conftest.$ac_objext
19917 deplibs=
19918 wl=$lt_prog_compiler_wl_CXX
19919 pic_flag=$lt_prog_compiler_pic_CXX
19920 compiler_flags=-v
19921 linker_flags=-v
19922 verstring=
19923 output_objdir=.
19924 libname=conftest
19925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19926 allow_undefined_flag_CXX=
19927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }
19932 then
19933 archive_cmds_need_lc_CXX=no
19934 else
19935 archive_cmds_need_lc_CXX=yes
19936 fi
19937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19938 else
19939 cat conftest.err 1>&5
19940 fi
19941 $rm conftest*
19942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19944 ;;
19945 esac
19946 fi
19947 ;;
19948esac
19949
19950{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19952library_names_spec=
19953libname_spec='lib$name'
19954soname_spec=
19955shrext_cmds=".so"
19956postinstall_cmds=
19957postuninstall_cmds=
19958finish_cmds=
19959finish_eval=
19960shlibpath_var=
19961shlibpath_overrides_runpath=unknown
19962version_type=none
19963dynamic_linker="$host_os ld.so"
19964sys_lib_dlsearch_path_spec="/lib /usr/lib"
19965if test "$GCC" = yes; then
19966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19968 # if the path contains ";" then we assume it to be the separator
19969 # otherwise default to the standard path separator (i.e. ":") - it is
19970 # assumed that no part of a normal pathname contains ";" but that should
19971 # okay in the real world where ";" in dirpaths is itself problematic.
19972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19973 else
19974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19975 fi
19976else
19977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19978fi
19979need_lib_prefix=unknown
19980hardcode_into_libs=no
19981
19982# when you set need_version to no, make sure it does not cause -set_version
19983# flags to be left without arguments
19984need_version=unknown
19985
19986case $host_os in
19987aix3*)
19988 version_type=linux
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19990 shlibpath_var=LIBPATH
19991
19992 # AIX 3 has no versioning support, so we append a major version to the name.
19993 soname_spec='${libname}${release}${shared_ext}$major'
19994 ;;
19995
19996aix4* | aix5*)
19997 version_type=linux
19998 need_lib_prefix=no
19999 need_version=no
20000 hardcode_into_libs=yes
20001 if test "$host_cpu" = ia64; then
20002 # AIX 5 supports IA64
20003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20004 shlibpath_var=LD_LIBRARY_PATH
20005 else
20006 # With GCC up to 2.95.x, collect2 would create an import file
20007 # for dependence libraries. The import file would start with
20008 # the line `#! .'. This would cause the generated library to
20009 # depend on `.', always an invalid library. This was fixed in
20010 # development snapshots of GCC prior to 3.0.
20011 case $host_os in
20012 aix4 | aix4.[01] | aix4.[01].*)
20013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20014 echo ' yes '
20015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20016 :
20017 else
20018 can_build_shared=no
20019 fi
20020 ;;
20021 esac
20022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20023 # soname into executable. Probably we can add versioning support to
20024 # collect2, so additional links can be useful in future.
20025 if test "$aix_use_runtimelinking" = yes; then
20026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20027 # instead of lib<name>.a to let people know that these are not
20028 # typical AIX shared libraries.
20029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20030 else
20031 # We preserve .a as extension for shared libraries through AIX4.2
20032 # and later when we are not doing run time linking.
20033 library_names_spec='${libname}${release}.a $libname.a'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 fi
20036 shlibpath_var=LIBPATH
20037 fi
20038 ;;
20039
20040amigaos*)
20041 library_names_spec='$libname.ixlibrary $libname.a'
20042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20043 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'
20044 ;;
20045
20046beos*)
20047 library_names_spec='${libname}${shared_ext}'
20048 dynamic_linker="$host_os ld.so"
20049 shlibpath_var=LIBRARY_PATH
20050 ;;
20051
20052bsdi[45]*)
20053 version_type=linux
20054 need_version=no
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20061 # the default ld.so.conf also contains /usr/contrib/lib and
20062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20063 # libtool to hard-code these into programs
20064 ;;
20065
20066cygwin* | mingw* | pw32*)
20067 version_type=windows
20068 shrext_cmds=".dll"
20069 need_version=no
20070 need_lib_prefix=no
20071
20072 case $GCC,$host_os in
20073 yes,cygwin* | yes,mingw* | yes,pw32*)
20074 library_names_spec='$libname.dll.a'
20075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20076 postinstall_cmds='base_file=`basename \${file}`~
20077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20078 dldir=$destdir/`dirname \$dlpath`~
20079 test -d \$dldir || mkdir -p \$dldir~
20080 $install_prog $dir/$dlname \$dldir/$dlname~
20081 chmod a+x \$dldir/$dlname'
20082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20083 dlpath=$dir/\$dldll~
20084 $rm \$dlpath'
20085 shlibpath_overrides_runpath=yes
20086
20087 case $host_os in
20088 cygwin*)
20089 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20091 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20092 ;;
20093 mingw*)
20094 # MinGW DLLs use traditional 'lib' prefix
20095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20097 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20098 # It is most probably a Windows format PATH printed by
20099 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20100 # path with ; separators, and with drive letters. We can handle the
20101 # drive letters (cygwin fileutils understands them), so leave them,
20102 # especially as we might pass files found there to a mingw objdump,
20103 # which wouldn't understand a cygwinified path. Ahh.
20104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20105 else
20106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20107 fi
20108 ;;
20109 pw32*)
20110 # pw32 DLLs use 'pw' prefix rather than 'lib'
20111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20112 ;;
20113 esac
20114 ;;
20115
20116 *)
20117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20118 ;;
20119 esac
20120 dynamic_linker='Win32 ld.exe'
20121 # FIXME: first we should search . and the directory the executable is in
20122 shlibpath_var=PATH
20123 ;;
20124
20125darwin* | rhapsody*)
20126 dynamic_linker="$host_os dyld"
20127 version_type=darwin
20128 need_lib_prefix=no
20129 need_version=no
20130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20131 soname_spec='${libname}${release}${major}$shared_ext'
20132 shlibpath_overrides_runpath=yes
20133 shlibpath_var=DYLD_LIBRARY_PATH
20134 shrext_cmds='.dylib'
20135 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20136 if test "$GCC" = yes; then
20137 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"`
20138 else
20139 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20140 fi
20141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20142 ;;
20143
20144dgux*)
20145 version_type=linux
20146 need_lib_prefix=no
20147 need_version=no
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 ;;
20152
20153freebsd1*)
20154 dynamic_linker=no
20155 ;;
20156
20157kfreebsd*-gnu)
20158 version_type=linux
20159 need_lib_prefix=no
20160 need_version=no
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=no
20165 hardcode_into_libs=yes
20166 dynamic_linker='GNU ld.so'
20167 ;;
20168
20169freebsd* | dragonfly*)
20170 # DragonFly does not have aout. When/if they implement a new
20171 # versioning mechanism, adjust this.
20172 if test -x /usr/bin/objformat; then
20173 objformat=`/usr/bin/objformat`
20174 else
20175 case $host_os in
20176 freebsd[123]*) objformat=aout ;;
20177 *) objformat=elf ;;
20178 esac
20179 fi
20180 version_type=freebsd-$objformat
20181 case $version_type in
20182 freebsd-elf*)
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20184 need_version=no
20185 need_lib_prefix=no
20186 ;;
20187 freebsd-*)
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20189 need_version=yes
20190 ;;
20191 esac
20192 shlibpath_var=LD_LIBRARY_PATH
20193 case $host_os in
20194 freebsd2*)
20195 shlibpath_overrides_runpath=yes
20196 ;;
20197 freebsd3.[01]* | freebsdelf3.[01]*)
20198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20200 ;;
20201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 ;;
20206 freebsd*) # from 4.6 on
20207 shlibpath_overrides_runpath=yes
20208 hardcode_into_libs=yes
20209 ;;
20210 esac
20211 ;;
20212
20213gnu*)
20214 version_type=linux
20215 need_lib_prefix=no
20216 need_version=no
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 shlibpath_var=LD_LIBRARY_PATH
20220 hardcode_into_libs=yes
20221 ;;
20222
20223hpux9* | hpux10* | hpux11*)
20224 # Give a soname corresponding to the major version so that dld.sl refuses to
20225 # link against other versions.
20226 version_type=sunos
20227 need_lib_prefix=no
20228 need_version=no
20229 case $host_cpu in
20230 ia64*)
20231 shrext_cmds='.so'
20232 hardcode_into_libs=yes
20233 dynamic_linker="$host_os dld.so"
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 if test "X$HPUX_IA64_MODE" = X32; then
20239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20240 else
20241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20242 fi
20243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 ;;
20245 hppa*64*)
20246 shrext_cmds='.sl'
20247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.sl"
20249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20255 ;;
20256 *)
20257 shrext_cmds='.sl'
20258 dynamic_linker="$host_os dld.sl"
20259 shlibpath_var=SHLIB_PATH
20260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 ;;
20264 esac
20265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20266 postinstall_cmds='chmod 555 $lib'
20267 ;;
20268
20269interix3*)
20270 version_type=linux
20271 need_lib_prefix=no
20272 need_version=no
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=no
20278 hardcode_into_libs=yes
20279 ;;
20280
20281irix5* | irix6* | nonstopux*)
20282 case $host_os in
20283 nonstopux*) version_type=nonstopux ;;
20284 *)
20285 if test "$lt_cv_prog_gnu_ld" = yes; then
20286 version_type=linux
20287 else
20288 version_type=irix
20289 fi ;;
20290 esac
20291 need_lib_prefix=no
20292 need_version=no
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20295 case $host_os in
20296 irix5* | nonstopux*)
20297 libsuff= shlibsuff=
20298 ;;
20299 *)
20300 case $LD in # libtool.m4 will add one of these switches to LD
20301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20302 libsuff= shlibsuff= libmagic=32-bit;;
20303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20304 libsuff=32 shlibsuff=N32 libmagic=N32;;
20305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20307 *) libsuff= shlibsuff= libmagic=never-match;;
20308 esac
20309 ;;
20310 esac
20311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20312 shlibpath_overrides_runpath=no
20313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20315 hardcode_into_libs=yes
20316 ;;
20317
20318# No shared lib support for Linux oldld, aout, or coff.
20319linux*oldld* | linux*aout* | linux*coff*)
20320 dynamic_linker=no
20321 ;;
20322
20323# This must be Linux ELF.
20324linux*)
20325 version_type=linux
20326 need_lib_prefix=no
20327 need_version=no
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20331 shlibpath_var=LD_LIBRARY_PATH
20332 shlibpath_overrides_runpath=no
20333 # This implies no fast_install, which is unacceptable.
20334 # Some rework will be needed to allow for fast_install
20335 # before this can be enabled.
20336 hardcode_into_libs=yes
20337
20338 # Append ld.so.conf contents to the search path
20339 if test -f /etc/ld.so.conf; then
20340 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' ' '`
20341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20342 fi
20343
20344 # We used to test for /lib/ld.so.1 and disable shared libraries on
20345 # powerpc, because MkLinux only supported shared libraries with the
20346 # GNU dynamic linker. Since this was broken with cross compilers,
20347 # most powerpc-linux boxes support dynamic linking these days and
20348 # people can always --disable-shared, the test was removed, and we
20349 # assume the GNU/Linux dynamic linker is in use.
20350 dynamic_linker='GNU/Linux ld.so'
20351 ;;
20352
20353knetbsd*-gnu)
20354 version_type=linux
20355 need_lib_prefix=no
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20362 dynamic_linker='GNU ld.so'
20363 ;;
20364
20365netbsd*)
20366 version_type=sunos
20367 need_lib_prefix=no
20368 need_version=no
20369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20372 dynamic_linker='NetBSD (a.out) ld.so'
20373 else
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 dynamic_linker='NetBSD ld.elf_so'
20377 fi
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 hardcode_into_libs=yes
20381 ;;
20382
20383newsos6)
20384 version_type=linux
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 ;;
20389
20390nto-qnx*)
20391 version_type=linux
20392 need_lib_prefix=no
20393 need_version=no
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=yes
20398 ;;
20399
20400openbsd*)
20401 version_type=sunos
20402 sys_lib_dlsearch_path_spec="/usr/lib"
20403 need_lib_prefix=no
20404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20405 case $host_os in
20406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20407 *) need_version=no ;;
20408 esac
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20413 case $host_os in
20414 openbsd2.[89] | openbsd2.[89].*)
20415 shlibpath_overrides_runpath=no
20416 ;;
20417 *)
20418 shlibpath_overrides_runpath=yes
20419 ;;
20420 esac
20421 else
20422 shlibpath_overrides_runpath=yes
20423 fi
20424 ;;
20425
20426os2*)
20427 libname_spec='$name'
20428 shrext_cmds=".dll"
20429 need_lib_prefix=no
20430 library_names_spec='$libname${shared_ext} $libname.a'
20431 dynamic_linker='OS/2 ld.exe'
20432 shlibpath_var=LIBPATH
20433 ;;
20434
20435osf3* | osf4* | osf5*)
20436 version_type=osf
20437 need_lib_prefix=no
20438 need_version=no
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20444 ;;
20445
20446solaris*)
20447 version_type=linux
20448 need_lib_prefix=no
20449 need_version=no
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 shlibpath_overrides_runpath=yes
20454 hardcode_into_libs=yes
20455 # ldd complains unless libraries are executable
20456 postinstall_cmds='chmod +x $lib'
20457 ;;
20458
20459sunos4*)
20460 version_type=sunos
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 if test "$with_gnu_ld" = yes; then
20466 need_lib_prefix=no
20467 fi
20468 need_version=yes
20469 ;;
20470
20471sysv4 | sysv4.3*)
20472 version_type=linux
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 case $host_vendor in
20477 sni)
20478 shlibpath_overrides_runpath=no
20479 need_lib_prefix=no
20480 export_dynamic_flag_spec='${wl}-Blargedynsym'
20481 runpath_var=LD_RUN_PATH
20482 ;;
20483 siemens)
20484 need_lib_prefix=no
20485 ;;
20486 motorola)
20487 need_lib_prefix=no
20488 need_version=no
20489 shlibpath_overrides_runpath=no
20490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20491 ;;
20492 esac
20493 ;;
20494
20495sysv4*MP*)
20496 if test -d /usr/nec ;then
20497 version_type=linux
20498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20499 soname_spec='$libname${shared_ext}.$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 fi
20502 ;;
20503
20504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20505 version_type=freebsd-elf
20506 need_lib_prefix=no
20507 need_version=no
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 hardcode_into_libs=yes
20512 if test "$with_gnu_ld" = yes; then
20513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20514 shlibpath_overrides_runpath=no
20515 else
20516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20517 shlibpath_overrides_runpath=yes
20518 case $host_os in
20519 sco3.2v5*)
20520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20521 ;;
20522 esac
20523 fi
20524 sys_lib_dlsearch_path_spec='/usr/lib'
20525 ;;
20526
20527uts4*)
20528 version_type=linux
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 ;;
20533
20534*)
20535 dynamic_linker=no
20536 ;;
20537esac
20538{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20539echo "${ECHO_T}$dynamic_linker" >&6; }
20540test "$dynamic_linker" = no && can_build_shared=no
20541
20542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20543if test "$GCC" = yes; then
20544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20545fi
20546
20547{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20549hardcode_action_CXX=
20550if test -n "$hardcode_libdir_flag_spec_CXX" || \
20551 test -n "$runpath_var_CXX" || \
20552 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20553
20554 # We can hardcode non-existant directories.
20555 if test "$hardcode_direct_CXX" != no &&
20556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20557 # have to relink, otherwise we might link with an installed library
20558 # when we should be linking with a yet-to-be-installed one
20559 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20560 test "$hardcode_minus_L_CXX" != no; then
20561 # Linking always hardcodes the temporary library directory.
20562 hardcode_action_CXX=relink
20563 else
20564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20565 hardcode_action_CXX=immediate
20566 fi
20567else
20568 # We cannot hardcode anything, or else we can only hardcode existing
20569 # directories.
20570 hardcode_action_CXX=unsupported
20571fi
20572{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20573echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20574
20575if test "$hardcode_action_CXX" = relink; then
20576 # Fast installation is not supported
20577 enable_fast_install=no
20578elif test "$shlibpath_overrides_runpath" = yes ||
20579 test "$enable_shared" = no; then
20580 # Fast installation is not necessary
20581 enable_fast_install=needless
20582fi
20583
20584
20585# The else clause should only fire when bootstrapping the
20586# libtool distribution, otherwise you forgot to ship ltmain.sh
20587# with your package, and you will get complaints that there are
20588# no rules to generate ltmain.sh.
20589if test -f "$ltmain"; then
20590 # See if we are running on zsh, and set the options which allow our commands through
20591 # without removal of \ escapes.
20592 if test -n "${ZSH_VERSION+set}" ; then
20593 setopt NO_GLOB_SUBST
20594 fi
20595 # Now quote all the things that may contain metacharacters while being
20596 # careful not to overquote the AC_SUBSTed values. We take copies of the
20597 # variables and quote the copies for generation of the libtool script.
20598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20599 SED SHELL STRIP \
20600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20602 deplibs_check_method reload_flag reload_cmds need_locks \
20603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20604 lt_cv_sys_global_symbol_to_c_name_address \
20605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20606 old_postinstall_cmds old_postuninstall_cmds \
20607 compiler_CXX \
20608 CC_CXX \
20609 LD_CXX \
20610 lt_prog_compiler_wl_CXX \
20611 lt_prog_compiler_pic_CXX \
20612 lt_prog_compiler_static_CXX \
20613 lt_prog_compiler_no_builtin_flag_CXX \
20614 export_dynamic_flag_spec_CXX \
20615 thread_safe_flag_spec_CXX \
20616 whole_archive_flag_spec_CXX \
20617 enable_shared_with_static_runtimes_CXX \
20618 old_archive_cmds_CXX \
20619 old_archive_from_new_cmds_CXX \
20620 predep_objects_CXX \
20621 postdep_objects_CXX \
20622 predeps_CXX \
20623 postdeps_CXX \
20624 compiler_lib_search_path_CXX \
20625 archive_cmds_CXX \
20626 archive_expsym_cmds_CXX \
20627 postinstall_cmds_CXX \
20628 postuninstall_cmds_CXX \
20629 old_archive_from_expsyms_cmds_CXX \
20630 allow_undefined_flag_CXX \
20631 no_undefined_flag_CXX \
20632 export_symbols_cmds_CXX \
20633 hardcode_libdir_flag_spec_CXX \
20634 hardcode_libdir_flag_spec_ld_CXX \
20635 hardcode_libdir_separator_CXX \
20636 hardcode_automatic_CXX \
20637 module_cmds_CXX \
20638 module_expsym_cmds_CXX \
20639 lt_cv_prog_compiler_c_o_CXX \
20640 exclude_expsyms_CXX \
20641 include_expsyms_CXX; do
20642
20643 case $var in
20644 old_archive_cmds_CXX | \
20645 old_archive_from_new_cmds_CXX | \
20646 archive_cmds_CXX | \
20647 archive_expsym_cmds_CXX | \
20648 module_cmds_CXX | \
20649 module_expsym_cmds_CXX | \
20650 old_archive_from_expsyms_cmds_CXX | \
20651 export_symbols_cmds_CXX | \
20652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20653 postinstall_cmds | postuninstall_cmds | \
20654 old_postinstall_cmds | old_postuninstall_cmds | \
20655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20656 # Double-quote double-evaled strings.
20657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20658 ;;
20659 *)
20660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20661 ;;
20662 esac
20663 done
20664
20665 case $lt_echo in
20666 *'\$0 --fallback-echo"')
20667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20668 ;;
20669 esac
20670
20671cfgfile="$ofile"
20672
20673 cat <<__EOF__ >> "$cfgfile"
20674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20675
20676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20677
20678# Shell to use when invoking shell scripts.
20679SHELL=$lt_SHELL
20680
20681# Whether or not to build shared libraries.
20682build_libtool_libs=$enable_shared
20683
20684# Whether or not to build static libraries.
20685build_old_libs=$enable_static
20686
20687# Whether or not to add -lc for building shared libraries.
20688build_libtool_need_lc=$archive_cmds_need_lc_CXX
20689
20690# Whether or not to disallow shared libs when runtime libs are static
20691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20692
20693# Whether or not to optimize for fast installation.
20694fast_install=$enable_fast_install
20695
20696# The host system.
20697host_alias=$host_alias
20698host=$host
20699host_os=$host_os
20700
20701# The build system.
20702build_alias=$build_alias
20703build=$build
20704build_os=$build_os
20705
20706# An echo program that does not interpret backslashes.
20707echo=$lt_echo
20708
20709# The archiver.
20710AR=$lt_AR
20711AR_FLAGS=$lt_AR_FLAGS
20712
20713# A C compiler.
20714LTCC=$lt_LTCC
20715
20716# LTCC compiler flags.
20717LTCFLAGS=$lt_LTCFLAGS
20718
20719# A language-specific compiler.
20720CC=$lt_compiler_CXX
20721
20722# Is the compiler the GNU C compiler?
20723with_gcc=$GCC_CXX
20724
20725# An ERE matcher.
20726EGREP=$lt_EGREP
20727
20728# The linker used to build libraries.
20729LD=$lt_LD_CXX
20730
20731# Whether we need hard or soft links.
20732LN_S=$lt_LN_S
20733
20734# A BSD-compatible nm program.
20735NM=$lt_NM
20736
20737# A symbol stripping program
20738STRIP=$lt_STRIP
20739
20740# Used to examine libraries when file_magic_cmd begins "file"
20741MAGIC_CMD=$MAGIC_CMD
20742
20743# Used on cygwin: DLL creation program.
20744DLLTOOL="$DLLTOOL"
20745
20746# Used on cygwin: object dumper.
20747OBJDUMP="$OBJDUMP"
20748
20749# Used on cygwin: assembler.
20750AS="$AS"
20751
20752# The name of the directory that contains temporary libtool files.
20753objdir=$objdir
20754
20755# How to create reloadable object files.
20756reload_flag=$lt_reload_flag
20757reload_cmds=$lt_reload_cmds
20758
20759# How to pass a linker flag through the compiler.
20760wl=$lt_lt_prog_compiler_wl_CXX
20761
20762# Object file suffix (normally "o").
20763objext="$ac_objext"
20764
20765# Old archive suffix (normally "a").
20766libext="$libext"
20767
20768# Shared library suffix (normally ".so").
20769shrext_cmds='$shrext_cmds'
20770
20771# Executable file suffix (normally "").
20772exeext="$exeext"
20773
20774# Additional compiler flags for building library objects.
20775pic_flag=$lt_lt_prog_compiler_pic_CXX
20776pic_mode=$pic_mode
20777
20778# What is the maximum length of a command?
20779max_cmd_len=$lt_cv_sys_max_cmd_len
20780
20781# Does compiler simultaneously support -c and -o options?
20782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20783
20784# Must we lock files when doing compilation?
20785need_locks=$lt_need_locks
20786
20787# Do we need the lib prefix for modules?
20788need_lib_prefix=$need_lib_prefix
20789
20790# Do we need a version for libraries?
20791need_version=$need_version
20792
20793# Whether dlopen is supported.
20794dlopen_support=$enable_dlopen
20795
20796# Whether dlopen of programs is supported.
20797dlopen_self=$enable_dlopen_self
20798
20799# Whether dlopen of statically linked programs is supported.
20800dlopen_self_static=$enable_dlopen_self_static
20801
20802# Compiler flag to prevent dynamic linking.
20803link_static_flag=$lt_lt_prog_compiler_static_CXX
20804
20805# Compiler flag to turn off builtin functions.
20806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20807
20808# Compiler flag to allow reflexive dlopens.
20809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20810
20811# Compiler flag to generate shared objects directly from archives.
20812whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20813
20814# Compiler flag to generate thread-safe objects.
20815thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20816
20817# Library versioning type.
20818version_type=$version_type
20819
20820# Format of library name prefix.
20821libname_spec=$lt_libname_spec
20822
20823# List of archive names. First name is the real one, the rest are links.
20824# The last name is the one that the linker finds with -lNAME.
20825library_names_spec=$lt_library_names_spec
20826
20827# The coded name of the library, if different from the real name.
20828soname_spec=$lt_soname_spec
20829
20830# Commands used to build and install an old-style archive.
20831RANLIB=$lt_RANLIB
20832old_archive_cmds=$lt_old_archive_cmds_CXX
20833old_postinstall_cmds=$lt_old_postinstall_cmds
20834old_postuninstall_cmds=$lt_old_postuninstall_cmds
20835
20836# Create an old-style archive from a shared archive.
20837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20838
20839# Create a temporary old-style archive to link instead of a shared archive.
20840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20841
20842# Commands used to build and install a shared archive.
20843archive_cmds=$lt_archive_cmds_CXX
20844archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20845postinstall_cmds=$lt_postinstall_cmds
20846postuninstall_cmds=$lt_postuninstall_cmds
20847
20848# Commands used to build a loadable module (assumed same as above if empty)
20849module_cmds=$lt_module_cmds_CXX
20850module_expsym_cmds=$lt_module_expsym_cmds_CXX
20851
20852# Commands to strip libraries.
20853old_striplib=$lt_old_striplib
20854striplib=$lt_striplib
20855
20856# Dependencies to place before the objects being linked to create a
20857# shared library.
20858predep_objects=$lt_predep_objects_CXX
20859
20860# Dependencies to place after the objects being linked to create a
20861# shared library.
20862postdep_objects=$lt_postdep_objects_CXX
20863
20864# Dependencies to place before the objects being linked to create a
20865# shared library.
20866predeps=$lt_predeps_CXX
20867
20868# Dependencies to place after the objects being linked to create a
20869# shared library.
20870postdeps=$lt_postdeps_CXX
20871
20872# The library search path used internally by the compiler when linking
20873# a shared library.
20874compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20875
20876# Method to check whether dependent libraries are shared objects.
20877deplibs_check_method=$lt_deplibs_check_method
20878
20879# Command to use when deplibs_check_method == file_magic.
20880file_magic_cmd=$lt_file_magic_cmd
20881
20882# Flag that allows shared libraries with undefined symbols to be built.
20883allow_undefined_flag=$lt_allow_undefined_flag_CXX
20884
20885# Flag that forces no undefined symbols.
20886no_undefined_flag=$lt_no_undefined_flag_CXX
20887
20888# Commands used to finish a libtool library installation in a directory.
20889finish_cmds=$lt_finish_cmds
20890
20891# Same as above, but a single script fragment to be evaled but not shown.
20892finish_eval=$lt_finish_eval
20893
20894# Take the output of nm and produce a listing of raw symbols and C names.
20895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20896
20897# Transform the output of nm in a proper C declaration
20898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20899
20900# Transform the output of nm in a C name address pair
20901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20902
20903# This is the shared library runtime path variable.
20904runpath_var=$runpath_var
20905
20906# This is the shared library path variable.
20907shlibpath_var=$shlibpath_var
20908
20909# Is shlibpath searched before the hard-coded library search path?
20910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20911
20912# How to hardcode a shared library path into an executable.
20913hardcode_action=$hardcode_action_CXX
20914
20915# Whether we should hardcode library paths into libraries.
20916hardcode_into_libs=$hardcode_into_libs
20917
20918# Flag to hardcode \$libdir into a binary during linking.
20919# This must work even if \$libdir does not exist.
20920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20921
20922# If ld is used when linking, flag to hardcode \$libdir into
20923# a binary during linking. This must work even if \$libdir does
20924# not exist.
20925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20926
20927# Whether we need a single -rpath flag with a separated argument.
20928hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20929
20930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20931# resulting binary.
20932hardcode_direct=$hardcode_direct_CXX
20933
20934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20935# resulting binary.
20936hardcode_minus_L=$hardcode_minus_L_CXX
20937
20938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20939# the resulting binary.
20940hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20941
20942# Set to yes if building a shared library automatically hardcodes DIR into the library
20943# and all subsequent libraries and executables linked against it.
20944hardcode_automatic=$hardcode_automatic_CXX
20945
20946# Variables whose values should be saved in libtool wrapper scripts and
20947# restored at relink time.
20948variables_saved_for_relink="$variables_saved_for_relink"
20949
20950# Whether libtool must link a program against all its dependency libraries.
20951link_all_deplibs=$link_all_deplibs_CXX
20952
20953# Compile-time system search path for libraries
20954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20955
20956# Run-time system search path for libraries
20957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20958
20959# Fix the shell variable \$srcfile for the compiler.
20960fix_srcfile_path="$fix_srcfile_path_CXX"
20961
20962# Set to yes if exported symbols are required.
20963always_export_symbols=$always_export_symbols_CXX
20964
20965# The commands to list exported symbols.
20966export_symbols_cmds=$lt_export_symbols_cmds_CXX
20967
20968# The commands to extract the exported symbol list from a shared archive.
20969extract_expsyms_cmds=$lt_extract_expsyms_cmds
20970
20971# Symbols that should not be listed in the preloaded symbols.
20972exclude_expsyms=$lt_exclude_expsyms_CXX
20973
20974# Symbols that must always be exported.
20975include_expsyms=$lt_include_expsyms_CXX
20976
20977# ### END LIBTOOL TAG CONFIG: $tagname
20978
20979__EOF__
20980
20981
20982else
20983 # If there is no Makefile yet, we rely on a make rule to execute
20984 # `config.status --recheck' to rerun these tests and create the
20985 # libtool script then.
20986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20987 if test -f "$ltmain_in"; then
20988 test -f Makefile && make "$ltmain"
20989 fi
20990fi
20991
20992
20993ac_ext=c
20994ac_cpp='$CPP $CPPFLAGS'
20995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20997ac_compiler_gnu=$ac_cv_c_compiler_gnu
20998
20999CC=$lt_save_CC
21000LDCXX=$LD
21001LD=$lt_save_LD
21002GCC=$lt_save_GCC
21003with_gnu_ldcxx=$with_gnu_ld
21004with_gnu_ld=$lt_save_with_gnu_ld
21005lt_cv_path_LDCXX=$lt_cv_path_LD
21006lt_cv_path_LD=$lt_save_path_LD
21007lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21008lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21009
21010 else
21011 tagname=""
21012 fi
21013 ;;
21014
21015 F77)
21016 if test -n "$F77" && test "X$F77" != "Xno"; then
21017
21018ac_ext=f
21019ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21020ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21022
21023
21024archive_cmds_need_lc_F77=no
21025allow_undefined_flag_F77=
21026always_export_symbols_F77=no
21027archive_expsym_cmds_F77=
21028export_dynamic_flag_spec_F77=
21029hardcode_direct_F77=no
21030hardcode_libdir_flag_spec_F77=
21031hardcode_libdir_flag_spec_ld_F77=
21032hardcode_libdir_separator_F77=
21033hardcode_minus_L_F77=no
21034hardcode_automatic_F77=no
21035module_cmds_F77=
21036module_expsym_cmds_F77=
21037link_all_deplibs_F77=unknown
21038old_archive_cmds_F77=$old_archive_cmds
21039no_undefined_flag_F77=
21040whole_archive_flag_spec_F77=
21041enable_shared_with_static_runtimes_F77=no
21042
21043# Source file extension for f77 test sources.
21044ac_ext=f
21045
21046# Object file extension for compiled f77 test sources.
21047objext=o
21048objext_F77=$objext
21049
21050# Code to be used in simple compile tests
21051lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21052
21053# Code to be used in simple link tests
21054lt_simple_link_test_code=" program t\n end\n"
21055
21056# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21057
21058# If no C compiler was specified, use CC.
21059LTCC=${LTCC-"$CC"}
21060
21061# If no C compiler flags were specified, use CFLAGS.
21062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21063
21064# Allow CC to be a program name with arguments.
21065compiler=$CC
21066
21067
21068# save warnings/boilerplate of simple test code
21069ac_outfile=conftest.$ac_objext
21070printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21072_lt_compiler_boilerplate=`cat conftest.err`
21073$rm conftest*
21074
21075ac_outfile=conftest.$ac_objext
21076printf "$lt_simple_link_test_code" >conftest.$ac_ext
21077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21078_lt_linker_boilerplate=`cat conftest.err`
21079$rm conftest*
21080
21081
21082# Allow CC to be a program name with arguments.
21083lt_save_CC="$CC"
21084CC=${F77-"f77"}
21085compiler=$CC
21086compiler_F77=$CC
21087for cc_temp in $compiler""; do
21088 case $cc_temp in
21089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21091 \-*) ;;
21092 *) break;;
21093 esac
21094done
21095cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21096
21097
21098{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21099echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21100{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21101echo "${ECHO_T}$can_build_shared" >&6; }
21102
21103{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21104echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21105test "$can_build_shared" = "no" && enable_shared=no
21106
21107# On AIX, shared libraries and static libraries use the same namespace, and
21108# are all built from PIC.
21109case $host_os in
21110aix3*)
21111 test "$enable_shared" = yes && enable_static=no
21112 if test -n "$RANLIB"; then
21113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21114 postinstall_cmds='$RANLIB $lib'
21115 fi
21116 ;;
21117aix4* | aix5*)
21118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21119 test "$enable_shared" = yes && enable_static=no
21120 fi
21121 ;;
21122esac
21123{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21124echo "${ECHO_T}$enable_shared" >&6; }
21125
21126{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21127echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21128# Make sure either enable_shared or enable_static is yes.
21129test "$enable_shared" = yes || enable_static=yes
21130{ echo "$as_me:$LINENO: result: $enable_static" >&5
21131echo "${ECHO_T}$enable_static" >&6; }
21132
21133GCC_F77="$G77"
21134LD_F77="$LD"
21135
21136lt_prog_compiler_wl_F77=
21137lt_prog_compiler_pic_F77=
21138lt_prog_compiler_static_F77=
21139
21140{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21142
21143 if test "$GCC" = yes; then
21144 lt_prog_compiler_wl_F77='-Wl,'
21145 lt_prog_compiler_static_F77='-static'
21146
21147 case $host_os in
21148 aix*)
21149 # All AIX code is PIC.
21150 if test "$host_cpu" = ia64; then
21151 # AIX 5 now supports IA64 processor
21152 lt_prog_compiler_static_F77='-Bstatic'
21153 fi
21154 ;;
21155
21156 amigaos*)
21157 # FIXME: we need at least 68020 code to build shared libraries, but
21158 # adding the `-m68020' flag to GCC prevents building anything better,
21159 # like `-m68040'.
21160 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21161 ;;
21162
21163 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21164 # PIC is the default for these OSes.
21165 ;;
21166
21167 mingw* | pw32* | os2*)
21168 # This hack is so that the source file can tell whether it is being
21169 # built for inclusion in a dll (and should export symbols for example).
21170 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21171 ;;
21172
21173 darwin* | rhapsody*)
21174 # PIC is the default on this platform
21175 # Common symbols not allowed in MH_DYLIB files
21176 lt_prog_compiler_pic_F77='-fno-common'
21177 ;;
21178
21179 interix3*)
21180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21181 # Instead, we relocate shared libraries at runtime.
21182 ;;
21183
21184 msdosdjgpp*)
21185 # Just because we use GCC doesn't mean we suddenly get shared libraries
21186 # on systems that don't support them.
21187 lt_prog_compiler_can_build_shared_F77=no
21188 enable_shared=no
21189 ;;
21190
21191 sysv4*MP*)
21192 if test -d /usr/nec; then
21193 lt_prog_compiler_pic_F77=-Kconform_pic
21194 fi
21195 ;;
21196
21197 hpux*)
21198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21199 # not for PA HP-UX.
21200 case $host_cpu in
21201 hppa*64*|ia64*)
21202 # +Z the default
21203 ;;
21204 *)
21205 lt_prog_compiler_pic_F77='-fPIC'
21206 ;;
21207 esac
21208 ;;
21209
21210 *)
21211 lt_prog_compiler_pic_F77='-fPIC'
21212 ;;
21213 esac
21214 else
21215 # PORTME Check for flag to pass linker flags through the system compiler.
21216 case $host_os in
21217 aix*)
21218 lt_prog_compiler_wl_F77='-Wl,'
21219 if test "$host_cpu" = ia64; then
21220 # AIX 5 now supports IA64 processor
21221 lt_prog_compiler_static_F77='-Bstatic'
21222 else
21223 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21224 fi
21225 ;;
21226 darwin*)
21227 # PIC is the default on this platform
21228 # Common symbols not allowed in MH_DYLIB files
21229 case $cc_basename in
21230 xlc*)
21231 lt_prog_compiler_pic_F77='-qnocommon'
21232 lt_prog_compiler_wl_F77='-Wl,'
21233 ;;
21234 esac
21235 ;;
21236
21237 mingw* | pw32* | os2*)
21238 # This hack is so that the source file can tell whether it is being
21239 # built for inclusion in a dll (and should export symbols for example).
21240 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21241 ;;
21242
21243 hpux9* | hpux10* | hpux11*)
21244 lt_prog_compiler_wl_F77='-Wl,'
21245 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21246 # not for PA HP-UX.
21247 case $host_cpu in
21248 hppa*64*|ia64*)
21249 # +Z the default
21250 ;;
21251 *)
21252 lt_prog_compiler_pic_F77='+Z'
21253 ;;
21254 esac
21255 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21256 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21257 ;;
21258
21259 irix5* | irix6* | nonstopux*)
21260 lt_prog_compiler_wl_F77='-Wl,'
21261 # PIC (with -KPIC) is the default.
21262 lt_prog_compiler_static_F77='-non_shared'
21263 ;;
21264
21265 newsos6)
21266 lt_prog_compiler_pic_F77='-KPIC'
21267 lt_prog_compiler_static_F77='-Bstatic'
21268 ;;
21269
21270 linux*)
21271 case $cc_basename in
21272 icc* | ecc*)
21273 lt_prog_compiler_wl_F77='-Wl,'
21274 lt_prog_compiler_pic_F77='-KPIC'
21275 lt_prog_compiler_static_F77='-static'
21276 ;;
21277 pgcc* | pgf77* | pgf90* | pgf95*)
21278 # Portland Group compilers (*not* the Pentium gcc compiler,
21279 # which looks to be a dead project)
21280 lt_prog_compiler_wl_F77='-Wl,'
21281 lt_prog_compiler_pic_F77='-fpic'
21282 lt_prog_compiler_static_F77='-Bstatic'
21283 ;;
21284 ccc*)
21285 lt_prog_compiler_wl_F77='-Wl,'
21286 # All Alpha code is PIC.
21287 lt_prog_compiler_static_F77='-non_shared'
21288 ;;
21289 esac
21290 ;;
21291
21292 osf3* | osf4* | osf5*)
21293 lt_prog_compiler_wl_F77='-Wl,'
21294 # All OSF/1 code is PIC.
21295 lt_prog_compiler_static_F77='-non_shared'
21296 ;;
21297
21298 solaris*)
21299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-Bstatic'
21301 case $cc_basename in
21302 f77* | f90* | f95*)
21303 lt_prog_compiler_wl_F77='-Qoption ld ';;
21304 *)
21305 lt_prog_compiler_wl_F77='-Wl,';;
21306 esac
21307 ;;
21308
21309 sunos4*)
21310 lt_prog_compiler_wl_F77='-Qoption ld '
21311 lt_prog_compiler_pic_F77='-PIC'
21312 lt_prog_compiler_static_F77='-Bstatic'
21313 ;;
21314
21315 sysv4 | sysv4.2uw2* | sysv4.3*)
21316 lt_prog_compiler_wl_F77='-Wl,'
21317 lt_prog_compiler_pic_F77='-KPIC'
21318 lt_prog_compiler_static_F77='-Bstatic'
21319 ;;
21320
21321 sysv4*MP*)
21322 if test -d /usr/nec ;then
21323 lt_prog_compiler_pic_F77='-Kconform_pic'
21324 lt_prog_compiler_static_F77='-Bstatic'
21325 fi
21326 ;;
21327
21328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 lt_prog_compiler_pic_F77='-KPIC'
21331 lt_prog_compiler_static_F77='-Bstatic'
21332 ;;
21333
21334 unicos*)
21335 lt_prog_compiler_wl_F77='-Wl,'
21336 lt_prog_compiler_can_build_shared_F77=no
21337 ;;
21338
21339 uts4*)
21340 lt_prog_compiler_pic_F77='-pic'
21341 lt_prog_compiler_static_F77='-Bstatic'
21342 ;;
21343
21344 *)
21345 lt_prog_compiler_can_build_shared_F77=no
21346 ;;
21347 esac
21348 fi
21349
21350{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21351echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21352
21353#
21354# Check to make sure the PIC flag actually works.
21355#
21356if test -n "$lt_prog_compiler_pic_F77"; then
21357
21358{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21359echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21360if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363 lt_prog_compiler_pic_works_F77=no
21364 ac_outfile=conftest.$ac_objext
21365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21366 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21367 # Insert the option either (1) after the last *FLAGS variable, or
21368 # (2) before a word containing "conftest.", or (3) at the end.
21369 # Note that $ac_compile itself does not contain backslashes and begins
21370 # with a dollar sign (not a hyphen), so the echo should work correctly.
21371 # The option is referenced via a variable to avoid confusing sed.
21372 lt_compile=`echo "$ac_compile" | $SED \
21373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21375 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000021376 (eval echo "\"\$as_me:21376: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021377 (eval "$lt_compile" 2>conftest.err)
21378 ac_status=$?
21379 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000021380 echo "$as_me:21380: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021381 if (exit $ac_status) && test -s "$ac_outfile"; then
21382 # The compiler can only warn and ignore the option if not recognized
21383 # So say no if there are warnings other than the usual output.
21384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21387 lt_prog_compiler_pic_works_F77=yes
21388 fi
21389 fi
21390 $rm conftest*
21391
21392fi
21393{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21394echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21395
21396if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21397 case $lt_prog_compiler_pic_F77 in
21398 "" | " "*) ;;
21399 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21400 esac
21401else
21402 lt_prog_compiler_pic_F77=
21403 lt_prog_compiler_can_build_shared_F77=no
21404fi
21405
21406fi
21407case $host_os in
21408 # For platforms which do not support PIC, -DPIC is meaningless:
21409 *djgpp*)
21410 lt_prog_compiler_pic_F77=
21411 ;;
21412 *)
21413 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21414 ;;
21415esac
21416
21417#
21418# Check to make sure the static flag actually works.
21419#
21420wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21421{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21422echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21423if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426 lt_prog_compiler_static_works_F77=no
21427 save_LDFLAGS="$LDFLAGS"
21428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21429 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21431 # The linker can only warn and ignore the option if not recognized
21432 # So say no if there are warnings
21433 if test -s conftest.err; then
21434 # Append any errors to the config.log.
21435 cat conftest.err 1>&5
21436 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21438 if diff conftest.exp conftest.er2 >/dev/null; then
21439 lt_prog_compiler_static_works_F77=yes
21440 fi
21441 else
21442 lt_prog_compiler_static_works_F77=yes
21443 fi
21444 fi
21445 $rm conftest*
21446 LDFLAGS="$save_LDFLAGS"
21447
21448fi
21449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21450echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21451
21452if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21453 :
21454else
21455 lt_prog_compiler_static_F77=
21456fi
21457
21458
21459{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21460echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21461if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21463else
21464 lt_cv_prog_compiler_c_o_F77=no
21465 $rm -r conftest 2>/dev/null
21466 mkdir conftest
21467 cd conftest
21468 mkdir out
21469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21470
21471 lt_compiler_flag="-o out/conftest2.$ac_objext"
21472 # Insert the option either (1) after the last *FLAGS variable, or
21473 # (2) before a word containing "conftest.", or (3) at the end.
21474 # Note that $ac_compile itself does not contain backslashes and begins
21475 # with a dollar sign (not a hyphen), so the echo should work correctly.
21476 lt_compile=`echo "$ac_compile" | $SED \
21477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21479 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000021480 (eval echo "\"\$as_me:21480: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021481 (eval "$lt_compile" 2>out/conftest.err)
21482 ac_status=$?
21483 cat out/conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000021484 echo "$as_me:21484: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21486 then
21487 # The compiler can only warn and ignore the option if not recognized
21488 # So say no if there are warnings
21489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21492 lt_cv_prog_compiler_c_o_F77=yes
21493 fi
21494 fi
21495 chmod u+w . 2>&5
21496 $rm conftest*
21497 # SGI C++ compiler will create directory out/ii_files/ for
21498 # template instantiation
21499 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21500 $rm out/* && rmdir out
21501 cd ..
21502 rmdir conftest
21503 $rm conftest*
21504
21505fi
21506{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21507echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21508
21509
21510hard_links="nottested"
21511if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21512 # do not overwrite the value of need_locks provided by the user
21513 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21514echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21515 hard_links=yes
21516 $rm conftest*
21517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21518 touch conftest.a
21519 ln conftest.a conftest.b 2>&5 || hard_links=no
21520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21521 { echo "$as_me:$LINENO: result: $hard_links" >&5
21522echo "${ECHO_T}$hard_links" >&6; }
21523 if test "$hard_links" = no; then
21524 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21525echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21526 need_locks=warn
21527 fi
21528else
21529 need_locks=no
21530fi
21531
21532{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21533echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21534
21535 runpath_var=
21536 allow_undefined_flag_F77=
21537 enable_shared_with_static_runtimes_F77=no
21538 archive_cmds_F77=
21539 archive_expsym_cmds_F77=
21540 old_archive_From_new_cmds_F77=
21541 old_archive_from_expsyms_cmds_F77=
21542 export_dynamic_flag_spec_F77=
21543 whole_archive_flag_spec_F77=
21544 thread_safe_flag_spec_F77=
21545 hardcode_libdir_flag_spec_F77=
21546 hardcode_libdir_flag_spec_ld_F77=
21547 hardcode_libdir_separator_F77=
21548 hardcode_direct_F77=no
21549 hardcode_minus_L_F77=no
21550 hardcode_shlibpath_var_F77=unsupported
21551 link_all_deplibs_F77=unknown
21552 hardcode_automatic_F77=no
21553 module_cmds_F77=
21554 module_expsym_cmds_F77=
21555 always_export_symbols_F77=no
21556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21557 # include_expsyms should be a list of space-separated symbols to be *always*
21558 # included in the symbol list
21559 include_expsyms_F77=
21560 # exclude_expsyms can be an extended regexp of symbols to exclude
21561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21563 # as well as any symbol that contains `d'.
21564 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21566 # platforms (ab)use it in PIC code, but their linkers get confused if
21567 # the symbol is explicitly referenced. Since portable code cannot
21568 # rely on this symbol name, it's probably fine to never include it in
21569 # preloaded symbol tables.
21570 extract_expsyms_cmds=
21571 # Just being paranoid about ensuring that cc_basename is set.
21572 for cc_temp in $compiler""; do
21573 case $cc_temp in
21574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21576 \-*) ;;
21577 *) break;;
21578 esac
21579done
21580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21581
21582 case $host_os in
21583 cygwin* | mingw* | pw32*)
21584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21585 # When not using gcc, we currently assume that we are using
21586 # Microsoft Visual C++.
21587 if test "$GCC" != yes; then
21588 with_gnu_ld=no
21589 fi
21590 ;;
21591 interix*)
21592 # we just hope/assume this is gcc and not c89 (= MSVC++)
21593 with_gnu_ld=yes
21594 ;;
21595 openbsd*)
21596 with_gnu_ld=no
21597 ;;
21598 esac
21599
21600 ld_shlibs_F77=yes
21601 if test "$with_gnu_ld" = yes; then
21602 # If archive_cmds runs LD, not CC, wlarc should be empty
21603 wlarc='${wl}'
21604
21605 # Set some defaults for GNU ld with shared library support. These
21606 # are reset later if shared libraries are not supported. Putting them
21607 # here allows them to be overridden if necessary.
21608 runpath_var=LD_RUN_PATH
21609 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21610 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21611 # ancient GNU ld didn't support --whole-archive et. al.
21612 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21613 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21614 else
21615 whole_archive_flag_spec_F77=
21616 fi
21617 supports_anon_versioning=no
21618 case `$LD -v 2>/dev/null` in
21619 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21620 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21621 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21622 *\ 2.11.*) ;; # other 2.11 versions
21623 *) supports_anon_versioning=yes ;;
21624 esac
21625
21626 # See if GNU ld supports shared libraries.
21627 case $host_os in
21628 aix3* | aix4* | aix5*)
21629 # On AIX/PPC, the GNU linker is very broken
21630 if test "$host_cpu" != ia64; then
21631 ld_shlibs_F77=no
21632 cat <<EOF 1>&2
21633
21634*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21635*** to be unable to reliably create shared libraries on AIX.
21636*** Therefore, libtool is disabling shared libraries support. If you
21637*** really care for shared libraries, you may want to modify your PATH
21638*** so that a non-GNU linker is found, and then restart.
21639
21640EOF
21641 fi
21642 ;;
21643
21644 amigaos*)
21645 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)'
21646 hardcode_libdir_flag_spec_F77='-L$libdir'
21647 hardcode_minus_L_F77=yes
21648
21649 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21650 # that the semantics of dynamic libraries on AmigaOS, at least up
21651 # to version 4, is to share data among multiple programs linked
21652 # with the same dynamic library. Since this doesn't match the
21653 # behavior of shared libraries on other platforms, we can't use
21654 # them.
21655 ld_shlibs_F77=no
21656 ;;
21657
21658 beos*)
21659 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21660 allow_undefined_flag_F77=unsupported
21661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21662 # support --undefined. This deserves some investigation. FIXME
21663 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21664 else
21665 ld_shlibs_F77=no
21666 fi
21667 ;;
21668
21669 cygwin* | mingw* | pw32*)
21670 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21671 # as there is no search path for DLLs.
21672 hardcode_libdir_flag_spec_F77='-L$libdir'
21673 allow_undefined_flag_F77=unsupported
21674 always_export_symbols_F77=no
21675 enable_shared_with_static_runtimes_F77=yes
21676 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21677
21678 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21679 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21680 # If the export-symbols file already is a .def file (1st line
21681 # is EXPORTS), use it as is; otherwise, prepend...
21682 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21683 cp $export_symbols $output_objdir/$soname.def;
21684 else
21685 echo EXPORTS > $output_objdir/$soname.def;
21686 cat $export_symbols >> $output_objdir/$soname.def;
21687 fi~
21688 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21689 else
21690 ld_shlibs_F77=no
21691 fi
21692 ;;
21693
21694 interix3*)
21695 hardcode_direct_F77=no
21696 hardcode_shlibpath_var_F77=no
21697 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21698 export_dynamic_flag_spec_F77='${wl}-E'
21699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21700 # Instead, shared libraries are loaded at an image base (0x10000000 by
21701 # default) and relocated if they conflict, which is a slow very memory
21702 # consuming and fragmenting process. To avoid this, we pick a random,
21703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21705 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'
21706 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'
21707 ;;
21708
21709 linux*)
21710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21711 tmp_addflag=
21712 case $cc_basename,$host_cpu in
21713 pgcc*) # Portland Group C compiler
21714 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'
21715 tmp_addflag=' $pic_flag'
21716 ;;
21717 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21718 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'
21719 tmp_addflag=' $pic_flag -Mnomain' ;;
21720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21721 tmp_addflag=' -i_dynamic' ;;
21722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21723 tmp_addflag=' -i_dynamic -nofor_main' ;;
21724 ifc* | ifort*) # Intel Fortran compiler
21725 tmp_addflag=' -nofor_main' ;;
21726 esac
21727 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21728
21729 if test $supports_anon_versioning = yes; then
21730 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21732 $echo "local: *; };" >> $output_objdir/$libname.ver~
21733 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21734 fi
21735 else
21736 ld_shlibs_F77=no
21737 fi
21738 ;;
21739
21740 netbsd*)
21741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21742 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21743 wlarc=
21744 else
21745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21747 fi
21748 ;;
21749
21750 solaris*)
21751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21752 ld_shlibs_F77=no
21753 cat <<EOF 1>&2
21754
21755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21756*** create shared libraries on Solaris systems. Therefore, libtool
21757*** is disabling shared libraries support. We urge you to upgrade GNU
21758*** binutils to release 2.9.1 or newer. Another option is to modify
21759*** your PATH or compiler configuration so that the native linker is
21760*** used, and then restart.
21761
21762EOF
21763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21766 else
21767 ld_shlibs_F77=no
21768 fi
21769 ;;
21770
21771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21772 case `$LD -v 2>&1` in
21773 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21774 ld_shlibs_F77=no
21775 cat <<_LT_EOF 1>&2
21776
21777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21778*** reliably create shared libraries on SCO systems. Therefore, libtool
21779*** is disabling shared libraries support. We urge you to upgrade GNU
21780*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21781*** your PATH or compiler configuration so that the native linker is
21782*** used, and then restart.
21783
21784_LT_EOF
21785 ;;
21786 *)
21787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21791 else
21792 ld_shlibs_F77=no
21793 fi
21794 ;;
21795 esac
21796 ;;
21797
21798 sunos4*)
21799 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21800 wlarc=
21801 hardcode_direct_F77=yes
21802 hardcode_shlibpath_var_F77=no
21803 ;;
21804
21805 *)
21806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21808 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21809 else
21810 ld_shlibs_F77=no
21811 fi
21812 ;;
21813 esac
21814
21815 if test "$ld_shlibs_F77" = no; then
21816 runpath_var=
21817 hardcode_libdir_flag_spec_F77=
21818 export_dynamic_flag_spec_F77=
21819 whole_archive_flag_spec_F77=
21820 fi
21821 else
21822 # PORTME fill in a description of your system's linker (not GNU ld)
21823 case $host_os in
21824 aix3*)
21825 allow_undefined_flag_F77=unsupported
21826 always_export_symbols_F77=yes
21827 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'
21828 # Note: this linker hardcodes the directories in LIBPATH if there
21829 # are no directories specified by -L.
21830 hardcode_minus_L_F77=yes
21831 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21832 # Neither direct hardcoding nor static linking is supported with a
21833 # broken collect2.
21834 hardcode_direct_F77=unsupported
21835 fi
21836 ;;
21837
21838 aix4* | aix5*)
21839 if test "$host_cpu" = ia64; then
21840 # On IA64, the linker does run time linking by default, so we don't
21841 # have to do anything special.
21842 aix_use_runtimelinking=no
21843 exp_sym_flag='-Bexport'
21844 no_entry_flag=""
21845 else
21846 # If we're using GNU nm, then we don't want the "-C" option.
21847 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21848 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21849 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'
21850 else
21851 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'
21852 fi
21853 aix_use_runtimelinking=no
21854
21855 # Test if we are trying to use run time linking or normal
21856 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21857 # need to do runtime linking.
21858 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21859 for ld_flag in $LDFLAGS; do
21860 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21861 aix_use_runtimelinking=yes
21862 break
21863 fi
21864 done
21865 ;;
21866 esac
21867
21868 exp_sym_flag='-bexport'
21869 no_entry_flag='-bnoentry'
21870 fi
21871
21872 # When large executables or shared objects are built, AIX ld can
21873 # have problems creating the table of contents. If linking a library
21874 # or program results in "error TOC overflow" add -mminimal-toc to
21875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21877
21878 archive_cmds_F77=''
21879 hardcode_direct_F77=yes
21880 hardcode_libdir_separator_F77=':'
21881 link_all_deplibs_F77=yes
21882
21883 if test "$GCC" = yes; then
21884 case $host_os in aix4.[012]|aix4.[012].*)
21885 # We only want to do this on AIX 4.2 and lower, the check
21886 # below for broken collect2 doesn't work under 4.3+
21887 collect2name=`${CC} -print-prog-name=collect2`
21888 if test -f "$collect2name" && \
21889 strings "$collect2name" | grep resolve_lib_name >/dev/null
21890 then
21891 # We have reworked collect2
21892 hardcode_direct_F77=yes
21893 else
21894 # We have old collect2
21895 hardcode_direct_F77=unsupported
21896 # It fails to find uninstalled libraries when the uninstalled
21897 # path is not listed in the libpath. Setting hardcode_minus_L
21898 # to unsupported forces relinking
21899 hardcode_minus_L_F77=yes
21900 hardcode_libdir_flag_spec_F77='-L$libdir'
21901 hardcode_libdir_separator_F77=
21902 fi
21903 ;;
21904 esac
21905 shared_flag='-shared'
21906 if test "$aix_use_runtimelinking" = yes; then
21907 shared_flag="$shared_flag "'${wl}-G'
21908 fi
21909 else
21910 # not using gcc
21911 if test "$host_cpu" = ia64; then
21912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21913 # chokes on -Wl,-G. The following line is correct:
21914 shared_flag='-G'
21915 else
21916 if test "$aix_use_runtimelinking" = yes; then
21917 shared_flag='${wl}-G'
21918 else
21919 shared_flag='${wl}-bM:SRE'
21920 fi
21921 fi
21922 fi
21923
21924 # It seems that -bexpall does not export symbols beginning with
21925 # underscore (_), so it is better to generate a list of symbols to export.
21926 always_export_symbols_F77=yes
21927 if test "$aix_use_runtimelinking" = yes; then
21928 # Warning - without using the other runtime loading flags (-brtl),
21929 # -berok will link without error, but may produce a broken library.
21930 allow_undefined_flag_F77='-berok'
21931 # Determine the default libpath from the value encoded in an empty executable.
21932 cat >conftest.$ac_ext <<_ACEOF
21933 program main
21934
21935 end
21936_ACEOF
21937rm -f conftest.$ac_objext conftest$ac_exeext
21938if { (ac_try="$ac_link"
21939case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942esac
21943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_link") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21952 { (case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955esac
21956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_try") 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965esac
21966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971
21972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21973}'`
21974# Check for a 64-bit object if we didn't find anything.
21975if 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; }
21976}'`; fi
21977else
21978 echo "$as_me: failed program was:" >&5
21979sed 's/^/| /' conftest.$ac_ext >&5
21980
21981
21982fi
21983
21984rm -f core conftest.err conftest.$ac_objext \
21985 conftest$ac_exeext conftest.$ac_ext
21986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21987
21988 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21989 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"
21990 else
21991 if test "$host_cpu" = ia64; then
21992 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21993 allow_undefined_flag_F77="-z nodefs"
21994 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"
21995 else
21996 # Determine the default libpath from the value encoded in an empty executable.
21997 cat >conftest.$ac_ext <<_ACEOF
21998 program main
21999
22000 end
22001_ACEOF
22002rm -f conftest.$ac_objext conftest$ac_exeext
22003if { (ac_try="$ac_link"
22004case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007esac
22008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030esac
22031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036
22037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22038}'`
22039# Check for a 64-bit object if we didn't find anything.
22040if 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; }
22041}'`; fi
22042else
22043 echo "$as_me: failed program was:" >&5
22044sed 's/^/| /' conftest.$ac_ext >&5
22045
22046
22047fi
22048
22049rm -f core conftest.err conftest.$ac_objext \
22050 conftest$ac_exeext conftest.$ac_ext
22051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22052
22053 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22054 # Warning - without using the other run time loading flags,
22055 # -berok will link without error, but may produce a broken library.
22056 no_undefined_flag_F77=' ${wl}-bernotok'
22057 allow_undefined_flag_F77=' ${wl}-berok'
22058 # Exported symbols can be pulled into shared objects from archives
22059 whole_archive_flag_spec_F77='$convenience'
22060 archive_cmds_need_lc_F77=yes
22061 # This is similar to how AIX traditionally builds its shared libraries.
22062 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'
22063 fi
22064 fi
22065 ;;
22066
22067 amigaos*)
22068 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)'
22069 hardcode_libdir_flag_spec_F77='-L$libdir'
22070 hardcode_minus_L_F77=yes
22071 # see comment about different semantics on the GNU ld section
22072 ld_shlibs_F77=no
22073 ;;
22074
22075 bsdi[45]*)
22076 export_dynamic_flag_spec_F77=-rdynamic
22077 ;;
22078
22079 cygwin* | mingw* | pw32*)
22080 # When not using gcc, we currently assume that we are using
22081 # Microsoft Visual C++.
22082 # hardcode_libdir_flag_spec is actually meaningless, as there is
22083 # no search path for DLLs.
22084 hardcode_libdir_flag_spec_F77=' '
22085 allow_undefined_flag_F77=unsupported
22086 # Tell ltmain to make .lib files, not .a files.
22087 libext=lib
22088 # Tell ltmain to make .dll files, not .so files.
22089 shrext_cmds=".dll"
22090 # FIXME: Setting linknames here is a bad hack.
22091 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22092 # The linker will automatically build a .lib file if we build a DLL.
22093 old_archive_From_new_cmds_F77='true'
22094 # FIXME: Should let the user specify the lib program.
22095 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22096 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22097 enable_shared_with_static_runtimes_F77=yes
22098 ;;
22099
22100 darwin* | rhapsody*)
22101 case $host_os in
22102 rhapsody* | darwin1.[012])
22103 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22104 ;;
22105 *) # Darwin 1.3 on
22106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22107 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22108 else
22109 case ${MACOSX_DEPLOYMENT_TARGET} in
22110 10.[012])
22111 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22112 ;;
22113 10.*)
22114 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22115 ;;
22116 esac
22117 fi
22118 ;;
22119 esac
22120 archive_cmds_need_lc_F77=no
22121 hardcode_direct_F77=no
22122 hardcode_automatic_F77=yes
22123 hardcode_shlibpath_var_F77=unsupported
22124 whole_archive_flag_spec_F77=''
22125 link_all_deplibs_F77=yes
22126 if test "$GCC" = yes ; then
22127 output_verbose_link_cmd='echo'
22128 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22129 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22131 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}'
22132 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}'
22133 else
22134 case $cc_basename in
22135 xlc*)
22136 output_verbose_link_cmd='echo'
22137 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22138 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22140 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}'
22141 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}'
22142 ;;
22143 *)
22144 ld_shlibs_F77=no
22145 ;;
22146 esac
22147 fi
22148 ;;
22149
22150 dgux*)
22151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22152 hardcode_libdir_flag_spec_F77='-L$libdir'
22153 hardcode_shlibpath_var_F77=no
22154 ;;
22155
22156 freebsd1*)
22157 ld_shlibs_F77=no
22158 ;;
22159
22160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22161 # support. Future versions do this automatically, but an explicit c++rt0.o
22162 # does not break anything, and helps significantly (at the cost of a little
22163 # extra space).
22164 freebsd2.2*)
22165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22166 hardcode_libdir_flag_spec_F77='-R$libdir'
22167 hardcode_direct_F77=yes
22168 hardcode_shlibpath_var_F77=no
22169 ;;
22170
22171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22172 freebsd2*)
22173 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22174 hardcode_direct_F77=yes
22175 hardcode_minus_L_F77=yes
22176 hardcode_shlibpath_var_F77=no
22177 ;;
22178
22179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22180 freebsd* | kfreebsd*-gnu | dragonfly*)
22181 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22182 hardcode_libdir_flag_spec_F77='-R$libdir'
22183 hardcode_direct_F77=yes
22184 hardcode_shlibpath_var_F77=no
22185 ;;
22186
22187 hpux9*)
22188 if test "$GCC" = yes; then
22189 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'
22190 else
22191 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'
22192 fi
22193 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22194 hardcode_libdir_separator_F77=:
22195 hardcode_direct_F77=yes
22196
22197 # hardcode_minus_L: Not really in the search PATH,
22198 # but as the default location of the library.
22199 hardcode_minus_L_F77=yes
22200 export_dynamic_flag_spec_F77='${wl}-E'
22201 ;;
22202
22203 hpux10*)
22204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22205 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22206 else
22207 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22208 fi
22209 if test "$with_gnu_ld" = no; then
22210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22211 hardcode_libdir_separator_F77=:
22212
22213 hardcode_direct_F77=yes
22214 export_dynamic_flag_spec_F77='${wl}-E'
22215
22216 # hardcode_minus_L: Not really in the search PATH,
22217 # but as the default location of the library.
22218 hardcode_minus_L_F77=yes
22219 fi
22220 ;;
22221
22222 hpux11*)
22223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22224 case $host_cpu in
22225 hppa*64*)
22226 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22227 ;;
22228 ia64*)
22229 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22230 ;;
22231 *)
22232 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22233 ;;
22234 esac
22235 else
22236 case $host_cpu in
22237 hppa*64*)
22238 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 ;;
22240 ia64*)
22241 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22242 ;;
22243 *)
22244 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22245 ;;
22246 esac
22247 fi
22248 if test "$with_gnu_ld" = no; then
22249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_separator_F77=:
22251
22252 case $host_cpu in
22253 hppa*64*|ia64*)
22254 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22255 hardcode_direct_F77=no
22256 hardcode_shlibpath_var_F77=no
22257 ;;
22258 *)
22259 hardcode_direct_F77=yes
22260 export_dynamic_flag_spec_F77='${wl}-E'
22261
22262 # hardcode_minus_L: Not really in the search PATH,
22263 # but as the default location of the library.
22264 hardcode_minus_L_F77=yes
22265 ;;
22266 esac
22267 fi
22268 ;;
22269
22270 irix5* | irix6* | nonstopux*)
22271 if test "$GCC" = yes; then
22272 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'
22273 else
22274 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'
22275 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22276 fi
22277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 link_all_deplibs_F77=yes
22280 ;;
22281
22282 netbsd*)
22283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22284 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22285 else
22286 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22287 fi
22288 hardcode_libdir_flag_spec_F77='-R$libdir'
22289 hardcode_direct_F77=yes
22290 hardcode_shlibpath_var_F77=no
22291 ;;
22292
22293 newsos6)
22294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295 hardcode_direct_F77=yes
22296 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22297 hardcode_libdir_separator_F77=:
22298 hardcode_shlibpath_var_F77=no
22299 ;;
22300
22301 openbsd*)
22302 hardcode_direct_F77=yes
22303 hardcode_shlibpath_var_F77=no
22304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22305 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22306 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22307 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22308 export_dynamic_flag_spec_F77='${wl}-E'
22309 else
22310 case $host_os in
22311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22314 ;;
22315 *)
22316 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22317 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22318 ;;
22319 esac
22320 fi
22321 ;;
22322
22323 os2*)
22324 hardcode_libdir_flag_spec_F77='-L$libdir'
22325 hardcode_minus_L_F77=yes
22326 allow_undefined_flag_F77=unsupported
22327 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'
22328 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22329 ;;
22330
22331 osf3*)
22332 if test "$GCC" = yes; then
22333 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22334 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'
22335 else
22336 allow_undefined_flag_F77=' -expect_unresolved \*'
22337 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'
22338 fi
22339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22340 hardcode_libdir_separator_F77=:
22341 ;;
22342
22343 osf4* | osf5*) # as osf3* with the addition of -msym flag
22344 if test "$GCC" = yes; then
22345 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22346 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'
22347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22348 else
22349 allow_undefined_flag_F77=' -expect_unresolved \*'
22350 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'
22351 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~
22352 $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'
22353
22354 # Both c and cxx compiler support -rpath directly
22355 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22356 fi
22357 hardcode_libdir_separator_F77=:
22358 ;;
22359
22360 solaris*)
22361 no_undefined_flag_F77=' -z text'
22362 if test "$GCC" = yes; then
22363 wlarc='${wl}'
22364 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22366 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22367 else
22368 wlarc=''
22369 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22371 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22372 fi
22373 hardcode_libdir_flag_spec_F77='-R$libdir'
22374 hardcode_shlibpath_var_F77=no
22375 case $host_os in
22376 solaris2.[0-5] | solaris2.[0-5].*) ;;
22377 *)
22378 # The compiler driver will combine linker options so we
22379 # cannot just pass the convience library names through
22380 # without $wl, iff we do not link with $LD.
22381 # Luckily, gcc supports the same syntax we need for Sun Studio.
22382 # Supported since Solaris 2.6 (maybe 2.5.1?)
22383 case $wlarc in
22384 '')
22385 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22386 *)
22387 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' ;;
22388 esac ;;
22389 esac
22390 link_all_deplibs_F77=yes
22391 ;;
22392
22393 sunos4*)
22394 if test "x$host_vendor" = xsequent; then
22395 # Use $CC to link under sequent, because it throws in some extra .o
22396 # files that make .init and .fini sections work.
22397 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22398 else
22399 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22400 fi
22401 hardcode_libdir_flag_spec_F77='-L$libdir'
22402 hardcode_direct_F77=yes
22403 hardcode_minus_L_F77=yes
22404 hardcode_shlibpath_var_F77=no
22405 ;;
22406
22407 sysv4)
22408 case $host_vendor in
22409 sni)
22410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22411 hardcode_direct_F77=yes # is this really true???
22412 ;;
22413 siemens)
22414 ## LD is ld it makes a PLAMLIB
22415 ## CC just makes a GrossModule.
22416 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22417 reload_cmds_F77='$CC -r -o $output$reload_objs'
22418 hardcode_direct_F77=no
22419 ;;
22420 motorola)
22421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22422 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22423 ;;
22424 esac
22425 runpath_var='LD_RUN_PATH'
22426 hardcode_shlibpath_var_F77=no
22427 ;;
22428
22429 sysv4.3*)
22430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22431 hardcode_shlibpath_var_F77=no
22432 export_dynamic_flag_spec_F77='-Bexport'
22433 ;;
22434
22435 sysv4*MP*)
22436 if test -d /usr/nec; then
22437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22438 hardcode_shlibpath_var_F77=no
22439 runpath_var=LD_RUN_PATH
22440 hardcode_runpath_var=yes
22441 ld_shlibs_F77=yes
22442 fi
22443 ;;
22444
22445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22446 no_undefined_flag_F77='${wl}-z,text'
22447 archive_cmds_need_lc_F77=no
22448 hardcode_shlibpath_var_F77=no
22449 runpath_var='LD_RUN_PATH'
22450
22451 if test "$GCC" = yes; then
22452 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22453 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22454 else
22455 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22456 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22457 fi
22458 ;;
22459
22460 sysv5* | sco3.2v5* | sco5v6*)
22461 # Note: We can NOT use -z defs as we might desire, because we do not
22462 # link with -lc, and that would cause any symbols used from libc to
22463 # always be unresolved, which means just about no library would
22464 # ever link correctly. If we're not using GNU ld we use -z text
22465 # though, which does catch some bad symbols but isn't as heavy-handed
22466 # as -z defs.
22467 no_undefined_flag_F77='${wl}-z,text'
22468 allow_undefined_flag_F77='${wl}-z,nodefs'
22469 archive_cmds_need_lc_F77=no
22470 hardcode_shlibpath_var_F77=no
22471 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22472 hardcode_libdir_separator_F77=':'
22473 link_all_deplibs_F77=yes
22474 export_dynamic_flag_spec_F77='${wl}-Bexport'
22475 runpath_var='LD_RUN_PATH'
22476
22477 if test "$GCC" = yes; then
22478 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 else
22481 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22483 fi
22484 ;;
22485
22486 uts4*)
22487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22488 hardcode_libdir_flag_spec_F77='-L$libdir'
22489 hardcode_shlibpath_var_F77=no
22490 ;;
22491
22492 *)
22493 ld_shlibs_F77=no
22494 ;;
22495 esac
22496 fi
22497
22498{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22499echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22500test "$ld_shlibs_F77" = no && can_build_shared=no
22501
22502#
22503# Do we need to explicitly link libc?
22504#
22505case "x$archive_cmds_need_lc_F77" in
22506x|xyes)
22507 # Assume -lc should be added
22508 archive_cmds_need_lc_F77=yes
22509
22510 if test "$enable_shared" = yes && test "$GCC" = yes; then
22511 case $archive_cmds_F77 in
22512 *'~'*)
22513 # FIXME: we may have to deal with multi-command sequences.
22514 ;;
22515 '$CC '*)
22516 # Test whether the compiler implicitly links with -lc since on some
22517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518 # to ld, don't add -lc before -lgcc.
22519 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22521 $rm conftest*
22522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22523
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } 2>conftest.err; then
22529 soname=conftest
22530 lib=conftest
22531 libobjs=conftest.$ac_objext
22532 deplibs=
22533 wl=$lt_prog_compiler_wl_F77
22534 pic_flag=$lt_prog_compiler_pic_F77
22535 compiler_flags=-v
22536 linker_flags=-v
22537 verstring=
22538 output_objdir=.
22539 libname=conftest
22540 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22541 allow_undefined_flag_F77=
22542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22543 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }
22547 then
22548 archive_cmds_need_lc_F77=no
22549 else
22550 archive_cmds_need_lc_F77=yes
22551 fi
22552 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22553 else
22554 cat conftest.err 1>&5
22555 fi
22556 $rm conftest*
22557 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22558echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22559 ;;
22560 esac
22561 fi
22562 ;;
22563esac
22564
22565{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22567library_names_spec=
22568libname_spec='lib$name'
22569soname_spec=
22570shrext_cmds=".so"
22571postinstall_cmds=
22572postuninstall_cmds=
22573finish_cmds=
22574finish_eval=
22575shlibpath_var=
22576shlibpath_overrides_runpath=unknown
22577version_type=none
22578dynamic_linker="$host_os ld.so"
22579sys_lib_dlsearch_path_spec="/lib /usr/lib"
22580if test "$GCC" = yes; then
22581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22583 # if the path contains ";" then we assume it to be the separator
22584 # otherwise default to the standard path separator (i.e. ":") - it is
22585 # assumed that no part of a normal pathname contains ";" but that should
22586 # okay in the real world where ";" in dirpaths is itself problematic.
22587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22588 else
22589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22590 fi
22591else
22592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22593fi
22594need_lib_prefix=unknown
22595hardcode_into_libs=no
22596
22597# when you set need_version to no, make sure it does not cause -set_version
22598# flags to be left without arguments
22599need_version=unknown
22600
22601case $host_os in
22602aix3*)
22603 version_type=linux
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22605 shlibpath_var=LIBPATH
22606
22607 # AIX 3 has no versioning support, so we append a major version to the name.
22608 soname_spec='${libname}${release}${shared_ext}$major'
22609 ;;
22610
22611aix4* | aix5*)
22612 version_type=linux
22613 need_lib_prefix=no
22614 need_version=no
22615 hardcode_into_libs=yes
22616 if test "$host_cpu" = ia64; then
22617 # AIX 5 supports IA64
22618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22619 shlibpath_var=LD_LIBRARY_PATH
22620 else
22621 # With GCC up to 2.95.x, collect2 would create an import file
22622 # for dependence libraries. The import file would start with
22623 # the line `#! .'. This would cause the generated library to
22624 # depend on `.', always an invalid library. This was fixed in
22625 # development snapshots of GCC prior to 3.0.
22626 case $host_os in
22627 aix4 | aix4.[01] | aix4.[01].*)
22628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22629 echo ' yes '
22630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22631 :
22632 else
22633 can_build_shared=no
22634 fi
22635 ;;
22636 esac
22637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22638 # soname into executable. Probably we can add versioning support to
22639 # collect2, so additional links can be useful in future.
22640 if test "$aix_use_runtimelinking" = yes; then
22641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22642 # instead of lib<name>.a to let people know that these are not
22643 # typical AIX shared libraries.
22644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22645 else
22646 # We preserve .a as extension for shared libraries through AIX4.2
22647 # and later when we are not doing run time linking.
22648 library_names_spec='${libname}${release}.a $libname.a'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 fi
22651 shlibpath_var=LIBPATH
22652 fi
22653 ;;
22654
22655amigaos*)
22656 library_names_spec='$libname.ixlibrary $libname.a'
22657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22658 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'
22659 ;;
22660
22661beos*)
22662 library_names_spec='${libname}${shared_ext}'
22663 dynamic_linker="$host_os ld.so"
22664 shlibpath_var=LIBRARY_PATH
22665 ;;
22666
22667bsdi[45]*)
22668 version_type=linux
22669 need_version=no
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22676 # the default ld.so.conf also contains /usr/contrib/lib and
22677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22678 # libtool to hard-code these into programs
22679 ;;
22680
22681cygwin* | mingw* | pw32*)
22682 version_type=windows
22683 shrext_cmds=".dll"
22684 need_version=no
22685 need_lib_prefix=no
22686
22687 case $GCC,$host_os in
22688 yes,cygwin* | yes,mingw* | yes,pw32*)
22689 library_names_spec='$libname.dll.a'
22690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22691 postinstall_cmds='base_file=`basename \${file}`~
22692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22693 dldir=$destdir/`dirname \$dlpath`~
22694 test -d \$dldir || mkdir -p \$dldir~
22695 $install_prog $dir/$dlname \$dldir/$dlname~
22696 chmod a+x \$dldir/$dlname'
22697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22698 dlpath=$dir/\$dldll~
22699 $rm \$dlpath'
22700 shlibpath_overrides_runpath=yes
22701
22702 case $host_os in
22703 cygwin*)
22704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22707 ;;
22708 mingw*)
22709 # MinGW DLLs use traditional 'lib' prefix
22710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22713 # It is most probably a Windows format PATH printed by
22714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22715 # path with ; separators, and with drive letters. We can handle the
22716 # drive letters (cygwin fileutils understands them), so leave them,
22717 # especially as we might pass files found there to a mingw objdump,
22718 # which wouldn't understand a cygwinified path. Ahh.
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22720 else
22721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22722 fi
22723 ;;
22724 pw32*)
22725 # pw32 DLLs use 'pw' prefix rather than 'lib'
22726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22727 ;;
22728 esac
22729 ;;
22730
22731 *)
22732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22733 ;;
22734 esac
22735 dynamic_linker='Win32 ld.exe'
22736 # FIXME: first we should search . and the directory the executable is in
22737 shlibpath_var=PATH
22738 ;;
22739
22740darwin* | rhapsody*)
22741 dynamic_linker="$host_os dyld"
22742 version_type=darwin
22743 need_lib_prefix=no
22744 need_version=no
22745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22746 soname_spec='${libname}${release}${major}$shared_ext'
22747 shlibpath_overrides_runpath=yes
22748 shlibpath_var=DYLD_LIBRARY_PATH
22749 shrext_cmds='.dylib'
22750 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22751 if test "$GCC" = yes; then
22752 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"`
22753 else
22754 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22755 fi
22756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22757 ;;
22758
22759dgux*)
22760 version_type=linux
22761 need_lib_prefix=no
22762 need_version=no
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 ;;
22767
22768freebsd1*)
22769 dynamic_linker=no
22770 ;;
22771
22772kfreebsd*-gnu)
22773 version_type=linux
22774 need_lib_prefix=no
22775 need_version=no
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 shlibpath_overrides_runpath=no
22780 hardcode_into_libs=yes
22781 dynamic_linker='GNU ld.so'
22782 ;;
22783
22784freebsd* | dragonfly*)
22785 # DragonFly does not have aout. When/if they implement a new
22786 # versioning mechanism, adjust this.
22787 if test -x /usr/bin/objformat; then
22788 objformat=`/usr/bin/objformat`
22789 else
22790 case $host_os in
22791 freebsd[123]*) objformat=aout ;;
22792 *) objformat=elf ;;
22793 esac
22794 fi
22795 version_type=freebsd-$objformat
22796 case $version_type in
22797 freebsd-elf*)
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22799 need_version=no
22800 need_lib_prefix=no
22801 ;;
22802 freebsd-*)
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22804 need_version=yes
22805 ;;
22806 esac
22807 shlibpath_var=LD_LIBRARY_PATH
22808 case $host_os in
22809 freebsd2*)
22810 shlibpath_overrides_runpath=yes
22811 ;;
22812 freebsd3.[01]* | freebsdelf3.[01]*)
22813 shlibpath_overrides_runpath=yes
22814 hardcode_into_libs=yes
22815 ;;
22816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22818 shlibpath_overrides_runpath=no
22819 hardcode_into_libs=yes
22820 ;;
22821 freebsd*) # from 4.6 on
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22824 ;;
22825 esac
22826 ;;
22827
22828gnu*)
22829 version_type=linux
22830 need_lib_prefix=no
22831 need_version=no
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 shlibpath_var=LD_LIBRARY_PATH
22835 hardcode_into_libs=yes
22836 ;;
22837
22838hpux9* | hpux10* | hpux11*)
22839 # Give a soname corresponding to the major version so that dld.sl refuses to
22840 # link against other versions.
22841 version_type=sunos
22842 need_lib_prefix=no
22843 need_version=no
22844 case $host_cpu in
22845 ia64*)
22846 shrext_cmds='.so'
22847 hardcode_into_libs=yes
22848 dynamic_linker="$host_os dld.so"
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 if test "X$HPUX_IA64_MODE" = X32; then
22854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22855 else
22856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22857 fi
22858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22859 ;;
22860 hppa*64*)
22861 shrext_cmds='.sl'
22862 hardcode_into_libs=yes
22863 dynamic_linker="$host_os dld.sl"
22864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22870 ;;
22871 *)
22872 shrext_cmds='.sl'
22873 dynamic_linker="$host_os dld.sl"
22874 shlibpath_var=SHLIB_PATH
22875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 ;;
22879 esac
22880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22881 postinstall_cmds='chmod 555 $lib'
22882 ;;
22883
22884interix3*)
22885 version_type=linux
22886 need_lib_prefix=no
22887 need_version=no
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=no
22893 hardcode_into_libs=yes
22894 ;;
22895
22896irix5* | irix6* | nonstopux*)
22897 case $host_os in
22898 nonstopux*) version_type=nonstopux ;;
22899 *)
22900 if test "$lt_cv_prog_gnu_ld" = yes; then
22901 version_type=linux
22902 else
22903 version_type=irix
22904 fi ;;
22905 esac
22906 need_lib_prefix=no
22907 need_version=no
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22910 case $host_os in
22911 irix5* | nonstopux*)
22912 libsuff= shlibsuff=
22913 ;;
22914 *)
22915 case $LD in # libtool.m4 will add one of these switches to LD
22916 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22917 libsuff= shlibsuff= libmagic=32-bit;;
22918 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22919 libsuff=32 shlibsuff=N32 libmagic=N32;;
22920 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22921 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22922 *) libsuff= shlibsuff= libmagic=never-match;;
22923 esac
22924 ;;
22925 esac
22926 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22927 shlibpath_overrides_runpath=no
22928 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22929 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22930 hardcode_into_libs=yes
22931 ;;
22932
22933# No shared lib support for Linux oldld, aout, or coff.
22934linux*oldld* | linux*aout* | linux*coff*)
22935 dynamic_linker=no
22936 ;;
22937
22938# This must be Linux ELF.
22939linux*)
22940 version_type=linux
22941 need_lib_prefix=no
22942 need_version=no
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 shlibpath_overrides_runpath=no
22948 # This implies no fast_install, which is unacceptable.
22949 # Some rework will be needed to allow for fast_install
22950 # before this can be enabled.
22951 hardcode_into_libs=yes
22952
22953 # Append ld.so.conf contents to the search path
22954 if test -f /etc/ld.so.conf; then
22955 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' ' '`
22956 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22957 fi
22958
22959 # We used to test for /lib/ld.so.1 and disable shared libraries on
22960 # powerpc, because MkLinux only supported shared libraries with the
22961 # GNU dynamic linker. Since this was broken with cross compilers,
22962 # most powerpc-linux boxes support dynamic linking these days and
22963 # people can always --disable-shared, the test was removed, and we
22964 # assume the GNU/Linux dynamic linker is in use.
22965 dynamic_linker='GNU/Linux ld.so'
22966 ;;
22967
22968knetbsd*-gnu)
22969 version_type=linux
22970 need_lib_prefix=no
22971 need_version=no
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22973 soname_spec='${libname}${release}${shared_ext}$major'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=no
22976 hardcode_into_libs=yes
22977 dynamic_linker='GNU ld.so'
22978 ;;
22979
22980netbsd*)
22981 version_type=sunos
22982 need_lib_prefix=no
22983 need_version=no
22984 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22987 dynamic_linker='NetBSD (a.out) ld.so'
22988 else
22989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22990 soname_spec='${libname}${release}${shared_ext}$major'
22991 dynamic_linker='NetBSD ld.elf_so'
22992 fi
22993 shlibpath_var=LD_LIBRARY_PATH
22994 shlibpath_overrides_runpath=yes
22995 hardcode_into_libs=yes
22996 ;;
22997
22998newsos6)
22999 version_type=linux
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23001 shlibpath_var=LD_LIBRARY_PATH
23002 shlibpath_overrides_runpath=yes
23003 ;;
23004
23005nto-qnx*)
23006 version_type=linux
23007 need_lib_prefix=no
23008 need_version=no
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010 soname_spec='${libname}${release}${shared_ext}$major'
23011 shlibpath_var=LD_LIBRARY_PATH
23012 shlibpath_overrides_runpath=yes
23013 ;;
23014
23015openbsd*)
23016 version_type=sunos
23017 sys_lib_dlsearch_path_spec="/usr/lib"
23018 need_lib_prefix=no
23019 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23020 case $host_os in
23021 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23022 *) need_version=no ;;
23023 esac
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23028 case $host_os in
23029 openbsd2.[89] | openbsd2.[89].*)
23030 shlibpath_overrides_runpath=no
23031 ;;
23032 *)
23033 shlibpath_overrides_runpath=yes
23034 ;;
23035 esac
23036 else
23037 shlibpath_overrides_runpath=yes
23038 fi
23039 ;;
23040
23041os2*)
23042 libname_spec='$name'
23043 shrext_cmds=".dll"
23044 need_lib_prefix=no
23045 library_names_spec='$libname${shared_ext} $libname.a'
23046 dynamic_linker='OS/2 ld.exe'
23047 shlibpath_var=LIBPATH
23048 ;;
23049
23050osf3* | osf4* | osf5*)
23051 version_type=osf
23052 need_lib_prefix=no
23053 need_version=no
23054 soname_spec='${libname}${release}${shared_ext}$major'
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056 shlibpath_var=LD_LIBRARY_PATH
23057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23059 ;;
23060
23061solaris*)
23062 version_type=linux
23063 need_lib_prefix=no
23064 need_version=no
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23067 shlibpath_var=LD_LIBRARY_PATH
23068 shlibpath_overrides_runpath=yes
23069 hardcode_into_libs=yes
23070 # ldd complains unless libraries are executable
23071 postinstall_cmds='chmod +x $lib'
23072 ;;
23073
23074sunos4*)
23075 version_type=sunos
23076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 if test "$with_gnu_ld" = yes; then
23081 need_lib_prefix=no
23082 fi
23083 need_version=yes
23084 ;;
23085
23086sysv4 | sysv4.3*)
23087 version_type=linux
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 soname_spec='${libname}${release}${shared_ext}$major'
23090 shlibpath_var=LD_LIBRARY_PATH
23091 case $host_vendor in
23092 sni)
23093 shlibpath_overrides_runpath=no
23094 need_lib_prefix=no
23095 export_dynamic_flag_spec='${wl}-Blargedynsym'
23096 runpath_var=LD_RUN_PATH
23097 ;;
23098 siemens)
23099 need_lib_prefix=no
23100 ;;
23101 motorola)
23102 need_lib_prefix=no
23103 need_version=no
23104 shlibpath_overrides_runpath=no
23105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23106 ;;
23107 esac
23108 ;;
23109
23110sysv4*MP*)
23111 if test -d /usr/nec ;then
23112 version_type=linux
23113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23114 soname_spec='$libname${shared_ext}.$major'
23115 shlibpath_var=LD_LIBRARY_PATH
23116 fi
23117 ;;
23118
23119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23120 version_type=freebsd-elf
23121 need_lib_prefix=no
23122 need_version=no
23123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23124 soname_spec='${libname}${release}${shared_ext}$major'
23125 shlibpath_var=LD_LIBRARY_PATH
23126 hardcode_into_libs=yes
23127 if test "$with_gnu_ld" = yes; then
23128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23129 shlibpath_overrides_runpath=no
23130 else
23131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23132 shlibpath_overrides_runpath=yes
23133 case $host_os in
23134 sco3.2v5*)
23135 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23136 ;;
23137 esac
23138 fi
23139 sys_lib_dlsearch_path_spec='/usr/lib'
23140 ;;
23141
23142uts4*)
23143 version_type=linux
23144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 shlibpath_var=LD_LIBRARY_PATH
23147 ;;
23148
23149*)
23150 dynamic_linker=no
23151 ;;
23152esac
23153{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23154echo "${ECHO_T}$dynamic_linker" >&6; }
23155test "$dynamic_linker" = no && can_build_shared=no
23156
23157variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23158if test "$GCC" = yes; then
23159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23160fi
23161
23162{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23163echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23164hardcode_action_F77=
23165if test -n "$hardcode_libdir_flag_spec_F77" || \
23166 test -n "$runpath_var_F77" || \
23167 test "X$hardcode_automatic_F77" = "Xyes" ; then
23168
23169 # We can hardcode non-existant directories.
23170 if test "$hardcode_direct_F77" != no &&
23171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23172 # have to relink, otherwise we might link with an installed library
23173 # when we should be linking with a yet-to-be-installed one
23174 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23175 test "$hardcode_minus_L_F77" != no; then
23176 # Linking always hardcodes the temporary library directory.
23177 hardcode_action_F77=relink
23178 else
23179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23180 hardcode_action_F77=immediate
23181 fi
23182else
23183 # We cannot hardcode anything, or else we can only hardcode existing
23184 # directories.
23185 hardcode_action_F77=unsupported
23186fi
23187{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23188echo "${ECHO_T}$hardcode_action_F77" >&6; }
23189
23190if test "$hardcode_action_F77" = relink; then
23191 # Fast installation is not supported
23192 enable_fast_install=no
23193elif test "$shlibpath_overrides_runpath" = yes ||
23194 test "$enable_shared" = no; then
23195 # Fast installation is not necessary
23196 enable_fast_install=needless
23197fi
23198
23199
23200# The else clause should only fire when bootstrapping the
23201# libtool distribution, otherwise you forgot to ship ltmain.sh
23202# with your package, and you will get complaints that there are
23203# no rules to generate ltmain.sh.
23204if test -f "$ltmain"; then
23205 # See if we are running on zsh, and set the options which allow our commands through
23206 # without removal of \ escapes.
23207 if test -n "${ZSH_VERSION+set}" ; then
23208 setopt NO_GLOB_SUBST
23209 fi
23210 # Now quote all the things that may contain metacharacters while being
23211 # careful not to overquote the AC_SUBSTed values. We take copies of the
23212 # variables and quote the copies for generation of the libtool script.
23213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23214 SED SHELL STRIP \
23215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23217 deplibs_check_method reload_flag reload_cmds need_locks \
23218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23219 lt_cv_sys_global_symbol_to_c_name_address \
23220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23221 old_postinstall_cmds old_postuninstall_cmds \
23222 compiler_F77 \
23223 CC_F77 \
23224 LD_F77 \
23225 lt_prog_compiler_wl_F77 \
23226 lt_prog_compiler_pic_F77 \
23227 lt_prog_compiler_static_F77 \
23228 lt_prog_compiler_no_builtin_flag_F77 \
23229 export_dynamic_flag_spec_F77 \
23230 thread_safe_flag_spec_F77 \
23231 whole_archive_flag_spec_F77 \
23232 enable_shared_with_static_runtimes_F77 \
23233 old_archive_cmds_F77 \
23234 old_archive_from_new_cmds_F77 \
23235 predep_objects_F77 \
23236 postdep_objects_F77 \
23237 predeps_F77 \
23238 postdeps_F77 \
23239 compiler_lib_search_path_F77 \
23240 archive_cmds_F77 \
23241 archive_expsym_cmds_F77 \
23242 postinstall_cmds_F77 \
23243 postuninstall_cmds_F77 \
23244 old_archive_from_expsyms_cmds_F77 \
23245 allow_undefined_flag_F77 \
23246 no_undefined_flag_F77 \
23247 export_symbols_cmds_F77 \
23248 hardcode_libdir_flag_spec_F77 \
23249 hardcode_libdir_flag_spec_ld_F77 \
23250 hardcode_libdir_separator_F77 \
23251 hardcode_automatic_F77 \
23252 module_cmds_F77 \
23253 module_expsym_cmds_F77 \
23254 lt_cv_prog_compiler_c_o_F77 \
23255 exclude_expsyms_F77 \
23256 include_expsyms_F77; do
23257
23258 case $var in
23259 old_archive_cmds_F77 | \
23260 old_archive_from_new_cmds_F77 | \
23261 archive_cmds_F77 | \
23262 archive_expsym_cmds_F77 | \
23263 module_cmds_F77 | \
23264 module_expsym_cmds_F77 | \
23265 old_archive_from_expsyms_cmds_F77 | \
23266 export_symbols_cmds_F77 | \
23267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23268 postinstall_cmds | postuninstall_cmds | \
23269 old_postinstall_cmds | old_postuninstall_cmds | \
23270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23271 # Double-quote double-evaled strings.
23272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23273 ;;
23274 *)
23275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23276 ;;
23277 esac
23278 done
23279
23280 case $lt_echo in
23281 *'\$0 --fallback-echo"')
23282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23283 ;;
23284 esac
23285
23286cfgfile="$ofile"
23287
23288 cat <<__EOF__ >> "$cfgfile"
23289# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23290
23291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23292
23293# Shell to use when invoking shell scripts.
23294SHELL=$lt_SHELL
23295
23296# Whether or not to build shared libraries.
23297build_libtool_libs=$enable_shared
23298
23299# Whether or not to build static libraries.
23300build_old_libs=$enable_static
23301
23302# Whether or not to add -lc for building shared libraries.
23303build_libtool_need_lc=$archive_cmds_need_lc_F77
23304
23305# Whether or not to disallow shared libs when runtime libs are static
23306allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23307
23308# Whether or not to optimize for fast installation.
23309fast_install=$enable_fast_install
23310
23311# The host system.
23312host_alias=$host_alias
23313host=$host
23314host_os=$host_os
23315
23316# The build system.
23317build_alias=$build_alias
23318build=$build
23319build_os=$build_os
23320
23321# An echo program that does not interpret backslashes.
23322echo=$lt_echo
23323
23324# The archiver.
23325AR=$lt_AR
23326AR_FLAGS=$lt_AR_FLAGS
23327
23328# A C compiler.
23329LTCC=$lt_LTCC
23330
23331# LTCC compiler flags.
23332LTCFLAGS=$lt_LTCFLAGS
23333
23334# A language-specific compiler.
23335CC=$lt_compiler_F77
23336
23337# Is the compiler the GNU C compiler?
23338with_gcc=$GCC_F77
23339
23340# An ERE matcher.
23341EGREP=$lt_EGREP
23342
23343# The linker used to build libraries.
23344LD=$lt_LD_F77
23345
23346# Whether we need hard or soft links.
23347LN_S=$lt_LN_S
23348
23349# A BSD-compatible nm program.
23350NM=$lt_NM
23351
23352# A symbol stripping program
23353STRIP=$lt_STRIP
23354
23355# Used to examine libraries when file_magic_cmd begins "file"
23356MAGIC_CMD=$MAGIC_CMD
23357
23358# Used on cygwin: DLL creation program.
23359DLLTOOL="$DLLTOOL"
23360
23361# Used on cygwin: object dumper.
23362OBJDUMP="$OBJDUMP"
23363
23364# Used on cygwin: assembler.
23365AS="$AS"
23366
23367# The name of the directory that contains temporary libtool files.
23368objdir=$objdir
23369
23370# How to create reloadable object files.
23371reload_flag=$lt_reload_flag
23372reload_cmds=$lt_reload_cmds
23373
23374# How to pass a linker flag through the compiler.
23375wl=$lt_lt_prog_compiler_wl_F77
23376
23377# Object file suffix (normally "o").
23378objext="$ac_objext"
23379
23380# Old archive suffix (normally "a").
23381libext="$libext"
23382
23383# Shared library suffix (normally ".so").
23384shrext_cmds='$shrext_cmds'
23385
23386# Executable file suffix (normally "").
23387exeext="$exeext"
23388
23389# Additional compiler flags for building library objects.
23390pic_flag=$lt_lt_prog_compiler_pic_F77
23391pic_mode=$pic_mode
23392
23393# What is the maximum length of a command?
23394max_cmd_len=$lt_cv_sys_max_cmd_len
23395
23396# Does compiler simultaneously support -c and -o options?
23397compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23398
23399# Must we lock files when doing compilation?
23400need_locks=$lt_need_locks
23401
23402# Do we need the lib prefix for modules?
23403need_lib_prefix=$need_lib_prefix
23404
23405# Do we need a version for libraries?
23406need_version=$need_version
23407
23408# Whether dlopen is supported.
23409dlopen_support=$enable_dlopen
23410
23411# Whether dlopen of programs is supported.
23412dlopen_self=$enable_dlopen_self
23413
23414# Whether dlopen of statically linked programs is supported.
23415dlopen_self_static=$enable_dlopen_self_static
23416
23417# Compiler flag to prevent dynamic linking.
23418link_static_flag=$lt_lt_prog_compiler_static_F77
23419
23420# Compiler flag to turn off builtin functions.
23421no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23422
23423# Compiler flag to allow reflexive dlopens.
23424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23425
23426# Compiler flag to generate shared objects directly from archives.
23427whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23428
23429# Compiler flag to generate thread-safe objects.
23430thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23431
23432# Library versioning type.
23433version_type=$version_type
23434
23435# Format of library name prefix.
23436libname_spec=$lt_libname_spec
23437
23438# List of archive names. First name is the real one, the rest are links.
23439# The last name is the one that the linker finds with -lNAME.
23440library_names_spec=$lt_library_names_spec
23441
23442# The coded name of the library, if different from the real name.
23443soname_spec=$lt_soname_spec
23444
23445# Commands used to build and install an old-style archive.
23446RANLIB=$lt_RANLIB
23447old_archive_cmds=$lt_old_archive_cmds_F77
23448old_postinstall_cmds=$lt_old_postinstall_cmds
23449old_postuninstall_cmds=$lt_old_postuninstall_cmds
23450
23451# Create an old-style archive from a shared archive.
23452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23453
23454# Create a temporary old-style archive to link instead of a shared archive.
23455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23456
23457# Commands used to build and install a shared archive.
23458archive_cmds=$lt_archive_cmds_F77
23459archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23460postinstall_cmds=$lt_postinstall_cmds
23461postuninstall_cmds=$lt_postuninstall_cmds
23462
23463# Commands used to build a loadable module (assumed same as above if empty)
23464module_cmds=$lt_module_cmds_F77
23465module_expsym_cmds=$lt_module_expsym_cmds_F77
23466
23467# Commands to strip libraries.
23468old_striplib=$lt_old_striplib
23469striplib=$lt_striplib
23470
23471# Dependencies to place before the objects being linked to create a
23472# shared library.
23473predep_objects=$lt_predep_objects_F77
23474
23475# Dependencies to place after the objects being linked to create a
23476# shared library.
23477postdep_objects=$lt_postdep_objects_F77
23478
23479# Dependencies to place before the objects being linked to create a
23480# shared library.
23481predeps=$lt_predeps_F77
23482
23483# Dependencies to place after the objects being linked to create a
23484# shared library.
23485postdeps=$lt_postdeps_F77
23486
23487# The library search path used internally by the compiler when linking
23488# a shared library.
23489compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23490
23491# Method to check whether dependent libraries are shared objects.
23492deplibs_check_method=$lt_deplibs_check_method
23493
23494# Command to use when deplibs_check_method == file_magic.
23495file_magic_cmd=$lt_file_magic_cmd
23496
23497# Flag that allows shared libraries with undefined symbols to be built.
23498allow_undefined_flag=$lt_allow_undefined_flag_F77
23499
23500# Flag that forces no undefined symbols.
23501no_undefined_flag=$lt_no_undefined_flag_F77
23502
23503# Commands used to finish a libtool library installation in a directory.
23504finish_cmds=$lt_finish_cmds
23505
23506# Same as above, but a single script fragment to be evaled but not shown.
23507finish_eval=$lt_finish_eval
23508
23509# Take the output of nm and produce a listing of raw symbols and C names.
23510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23511
23512# Transform the output of nm in a proper C declaration
23513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23514
23515# Transform the output of nm in a C name address pair
23516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23517
23518# This is the shared library runtime path variable.
23519runpath_var=$runpath_var
23520
23521# This is the shared library path variable.
23522shlibpath_var=$shlibpath_var
23523
23524# Is shlibpath searched before the hard-coded library search path?
23525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23526
23527# How to hardcode a shared library path into an executable.
23528hardcode_action=$hardcode_action_F77
23529
23530# Whether we should hardcode library paths into libraries.
23531hardcode_into_libs=$hardcode_into_libs
23532
23533# Flag to hardcode \$libdir into a binary during linking.
23534# This must work even if \$libdir does not exist.
23535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23536
23537# If ld is used when linking, flag to hardcode \$libdir into
23538# a binary during linking. This must work even if \$libdir does
23539# not exist.
23540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23541
23542# Whether we need a single -rpath flag with a separated argument.
23543hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23544
23545# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23546# resulting binary.
23547hardcode_direct=$hardcode_direct_F77
23548
23549# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23550# resulting binary.
23551hardcode_minus_L=$hardcode_minus_L_F77
23552
23553# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23554# the resulting binary.
23555hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23556
23557# Set to yes if building a shared library automatically hardcodes DIR into the library
23558# and all subsequent libraries and executables linked against it.
23559hardcode_automatic=$hardcode_automatic_F77
23560
23561# Variables whose values should be saved in libtool wrapper scripts and
23562# restored at relink time.
23563variables_saved_for_relink="$variables_saved_for_relink"
23564
23565# Whether libtool must link a program against all its dependency libraries.
23566link_all_deplibs=$link_all_deplibs_F77
23567
23568# Compile-time system search path for libraries
23569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23570
23571# Run-time system search path for libraries
23572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23573
23574# Fix the shell variable \$srcfile for the compiler.
23575fix_srcfile_path="$fix_srcfile_path_F77"
23576
23577# Set to yes if exported symbols are required.
23578always_export_symbols=$always_export_symbols_F77
23579
23580# The commands to list exported symbols.
23581export_symbols_cmds=$lt_export_symbols_cmds_F77
23582
23583# The commands to extract the exported symbol list from a shared archive.
23584extract_expsyms_cmds=$lt_extract_expsyms_cmds
23585
23586# Symbols that should not be listed in the preloaded symbols.
23587exclude_expsyms=$lt_exclude_expsyms_F77
23588
23589# Symbols that must always be exported.
23590include_expsyms=$lt_include_expsyms_F77
23591
23592# ### END LIBTOOL TAG CONFIG: $tagname
23593
23594__EOF__
23595
23596
23597else
23598 # If there is no Makefile yet, we rely on a make rule to execute
23599 # `config.status --recheck' to rerun these tests and create the
23600 # libtool script then.
23601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23602 if test -f "$ltmain_in"; then
23603 test -f Makefile && make "$ltmain"
23604 fi
23605fi
23606
23607
23608ac_ext=c
23609ac_cpp='$CPP $CPPFLAGS'
23610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23612ac_compiler_gnu=$ac_cv_c_compiler_gnu
23613
23614CC="$lt_save_CC"
23615
23616 else
23617 tagname=""
23618 fi
23619 ;;
23620
23621 GCJ)
23622 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23623 ac_ext=c
23624ac_cpp='$CPP $CPPFLAGS'
23625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627ac_compiler_gnu=$ac_cv_c_compiler_gnu
23628
23629
23630# Source file extension for Java test sources.
23631ac_ext=java
23632
23633# Object file extension for compiled Java test sources.
23634objext=o
23635objext_GCJ=$objext
23636
23637# Code to be used in simple compile tests
23638lt_simple_compile_test_code="class foo {}\n"
23639
23640# Code to be used in simple link tests
23641lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23642
23643# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23644
23645# If no C compiler was specified, use CC.
23646LTCC=${LTCC-"$CC"}
23647
23648# If no C compiler flags were specified, use CFLAGS.
23649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23650
23651# Allow CC to be a program name with arguments.
23652compiler=$CC
23653
23654
23655# save warnings/boilerplate of simple test code
23656ac_outfile=conftest.$ac_objext
23657printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23659_lt_compiler_boilerplate=`cat conftest.err`
23660$rm conftest*
23661
23662ac_outfile=conftest.$ac_objext
23663printf "$lt_simple_link_test_code" >conftest.$ac_ext
23664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23665_lt_linker_boilerplate=`cat conftest.err`
23666$rm conftest*
23667
23668
23669# Allow CC to be a program name with arguments.
23670lt_save_CC="$CC"
23671CC=${GCJ-"gcj"}
23672compiler=$CC
23673compiler_GCJ=$CC
23674for cc_temp in $compiler""; do
23675 case $cc_temp in
23676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23678 \-*) ;;
23679 *) break;;
23680 esac
23681done
23682cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23683
23684
23685# GCJ did not exist at the time GCC didn't implicitly link libc in.
23686archive_cmds_need_lc_GCJ=no
23687
23688old_archive_cmds_GCJ=$old_archive_cmds
23689
23690
23691lt_prog_compiler_no_builtin_flag_GCJ=
23692
23693if test "$GCC" = yes; then
23694 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23695
23696
23697{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23698echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23699if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23700 echo $ECHO_N "(cached) $ECHO_C" >&6
23701else
23702 lt_cv_prog_compiler_rtti_exceptions=no
23703 ac_outfile=conftest.$ac_objext
23704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23705 lt_compiler_flag="-fno-rtti -fno-exceptions"
23706 # Insert the option either (1) after the last *FLAGS variable, or
23707 # (2) before a word containing "conftest.", or (3) at the end.
23708 # Note that $ac_compile itself does not contain backslashes and begins
23709 # with a dollar sign (not a hyphen), so the echo should work correctly.
23710 # The option is referenced via a variable to avoid confusing sed.
23711 lt_compile=`echo "$ac_compile" | $SED \
23712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23714 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000023715 (eval echo "\"\$as_me:23715: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023716 (eval "$lt_compile" 2>conftest.err)
23717 ac_status=$?
23718 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000023719 echo "$as_me:23719: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023720 if (exit $ac_status) && test -s "$ac_outfile"; then
23721 # The compiler can only warn and ignore the option if not recognized
23722 # So say no if there are warnings other than the usual output.
23723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23726 lt_cv_prog_compiler_rtti_exceptions=yes
23727 fi
23728 fi
23729 $rm conftest*
23730
23731fi
23732{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23733echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23734
23735if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23736 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23737else
23738 :
23739fi
23740
23741fi
23742
23743lt_prog_compiler_wl_GCJ=
23744lt_prog_compiler_pic_GCJ=
23745lt_prog_compiler_static_GCJ=
23746
23747{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23748echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23749
23750 if test "$GCC" = yes; then
23751 lt_prog_compiler_wl_GCJ='-Wl,'
23752 lt_prog_compiler_static_GCJ='-static'
23753
23754 case $host_os in
23755 aix*)
23756 # All AIX code is PIC.
23757 if test "$host_cpu" = ia64; then
23758 # AIX 5 now supports IA64 processor
23759 lt_prog_compiler_static_GCJ='-Bstatic'
23760 fi
23761 ;;
23762
23763 amigaos*)
23764 # FIXME: we need at least 68020 code to build shared libraries, but
23765 # adding the `-m68020' flag to GCC prevents building anything better,
23766 # like `-m68040'.
23767 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23768 ;;
23769
23770 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23771 # PIC is the default for these OSes.
23772 ;;
23773
23774 mingw* | pw32* | os2*)
23775 # This hack is so that the source file can tell whether it is being
23776 # built for inclusion in a dll (and should export symbols for example).
23777 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23778 ;;
23779
23780 darwin* | rhapsody*)
23781 # PIC is the default on this platform
23782 # Common symbols not allowed in MH_DYLIB files
23783 lt_prog_compiler_pic_GCJ='-fno-common'
23784 ;;
23785
23786 interix3*)
23787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23788 # Instead, we relocate shared libraries at runtime.
23789 ;;
23790
23791 msdosdjgpp*)
23792 # Just because we use GCC doesn't mean we suddenly get shared libraries
23793 # on systems that don't support them.
23794 lt_prog_compiler_can_build_shared_GCJ=no
23795 enable_shared=no
23796 ;;
23797
23798 sysv4*MP*)
23799 if test -d /usr/nec; then
23800 lt_prog_compiler_pic_GCJ=-Kconform_pic
23801 fi
23802 ;;
23803
23804 hpux*)
23805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23806 # not for PA HP-UX.
23807 case $host_cpu in
23808 hppa*64*|ia64*)
23809 # +Z the default
23810 ;;
23811 *)
23812 lt_prog_compiler_pic_GCJ='-fPIC'
23813 ;;
23814 esac
23815 ;;
23816
23817 *)
23818 lt_prog_compiler_pic_GCJ='-fPIC'
23819 ;;
23820 esac
23821 else
23822 # PORTME Check for flag to pass linker flags through the system compiler.
23823 case $host_os in
23824 aix*)
23825 lt_prog_compiler_wl_GCJ='-Wl,'
23826 if test "$host_cpu" = ia64; then
23827 # AIX 5 now supports IA64 processor
23828 lt_prog_compiler_static_GCJ='-Bstatic'
23829 else
23830 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23831 fi
23832 ;;
23833 darwin*)
23834 # PIC is the default on this platform
23835 # Common symbols not allowed in MH_DYLIB files
23836 case $cc_basename in
23837 xlc*)
23838 lt_prog_compiler_pic_GCJ='-qnocommon'
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23840 ;;
23841 esac
23842 ;;
23843
23844 mingw* | pw32* | os2*)
23845 # This hack is so that the source file can tell whether it is being
23846 # built for inclusion in a dll (and should export symbols for example).
23847 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23848 ;;
23849
23850 hpux9* | hpux10* | hpux11*)
23851 lt_prog_compiler_wl_GCJ='-Wl,'
23852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23853 # not for PA HP-UX.
23854 case $host_cpu in
23855 hppa*64*|ia64*)
23856 # +Z the default
23857 ;;
23858 *)
23859 lt_prog_compiler_pic_GCJ='+Z'
23860 ;;
23861 esac
23862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23863 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23864 ;;
23865
23866 irix5* | irix6* | nonstopux*)
23867 lt_prog_compiler_wl_GCJ='-Wl,'
23868 # PIC (with -KPIC) is the default.
23869 lt_prog_compiler_static_GCJ='-non_shared'
23870 ;;
23871
23872 newsos6)
23873 lt_prog_compiler_pic_GCJ='-KPIC'
23874 lt_prog_compiler_static_GCJ='-Bstatic'
23875 ;;
23876
23877 linux*)
23878 case $cc_basename in
23879 icc* | ecc*)
23880 lt_prog_compiler_wl_GCJ='-Wl,'
23881 lt_prog_compiler_pic_GCJ='-KPIC'
23882 lt_prog_compiler_static_GCJ='-static'
23883 ;;
23884 pgcc* | pgf77* | pgf90* | pgf95*)
23885 # Portland Group compilers (*not* the Pentium gcc compiler,
23886 # which looks to be a dead project)
23887 lt_prog_compiler_wl_GCJ='-Wl,'
23888 lt_prog_compiler_pic_GCJ='-fpic'
23889 lt_prog_compiler_static_GCJ='-Bstatic'
23890 ;;
23891 ccc*)
23892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # All Alpha code is PIC.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23895 ;;
23896 esac
23897 ;;
23898
23899 osf3* | osf4* | osf5*)
23900 lt_prog_compiler_wl_GCJ='-Wl,'
23901 # All OSF/1 code is PIC.
23902 lt_prog_compiler_static_GCJ='-non_shared'
23903 ;;
23904
23905 solaris*)
23906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-Bstatic'
23908 case $cc_basename in
23909 f77* | f90* | f95*)
23910 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23911 *)
23912 lt_prog_compiler_wl_GCJ='-Wl,';;
23913 esac
23914 ;;
23915
23916 sunos4*)
23917 lt_prog_compiler_wl_GCJ='-Qoption ld '
23918 lt_prog_compiler_pic_GCJ='-PIC'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23920 ;;
23921
23922 sysv4 | sysv4.2uw2* | sysv4.3*)
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 lt_prog_compiler_pic_GCJ='-KPIC'
23925 lt_prog_compiler_static_GCJ='-Bstatic'
23926 ;;
23927
23928 sysv4*MP*)
23929 if test -d /usr/nec ;then
23930 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23931 lt_prog_compiler_static_GCJ='-Bstatic'
23932 fi
23933 ;;
23934
23935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 lt_prog_compiler_pic_GCJ='-KPIC'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23939 ;;
23940
23941 unicos*)
23942 lt_prog_compiler_wl_GCJ='-Wl,'
23943 lt_prog_compiler_can_build_shared_GCJ=no
23944 ;;
23945
23946 uts4*)
23947 lt_prog_compiler_pic_GCJ='-pic'
23948 lt_prog_compiler_static_GCJ='-Bstatic'
23949 ;;
23950
23951 *)
23952 lt_prog_compiler_can_build_shared_GCJ=no
23953 ;;
23954 esac
23955 fi
23956
23957{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23958echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23959
23960#
23961# Check to make sure the PIC flag actually works.
23962#
23963if test -n "$lt_prog_compiler_pic_GCJ"; then
23964
23965{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23966echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23967if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969else
23970 lt_prog_compiler_pic_works_GCJ=no
23971 ac_outfile=conftest.$ac_objext
23972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23973 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23974 # Insert the option either (1) after the last *FLAGS variable, or
23975 # (2) before a word containing "conftest.", or (3) at the end.
23976 # Note that $ac_compile itself does not contain backslashes and begins
23977 # with a dollar sign (not a hyphen), so the echo should work correctly.
23978 # The option is referenced via a variable to avoid confusing sed.
23979 lt_compile=`echo "$ac_compile" | $SED \
23980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23982 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000023983 (eval echo "\"\$as_me:23983: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023984 (eval "$lt_compile" 2>conftest.err)
23985 ac_status=$?
23986 cat conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000023987 echo "$as_me:23987: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023988 if (exit $ac_status) && test -s "$ac_outfile"; then
23989 # The compiler can only warn and ignore the option if not recognized
23990 # So say no if there are warnings other than the usual output.
23991 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23994 lt_prog_compiler_pic_works_GCJ=yes
23995 fi
23996 fi
23997 $rm conftest*
23998
23999fi
24000{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24001echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24002
24003if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24004 case $lt_prog_compiler_pic_GCJ in
24005 "" | " "*) ;;
24006 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24007 esac
24008else
24009 lt_prog_compiler_pic_GCJ=
24010 lt_prog_compiler_can_build_shared_GCJ=no
24011fi
24012
24013fi
24014case $host_os in
24015 # For platforms which do not support PIC, -DPIC is meaningless:
24016 *djgpp*)
24017 lt_prog_compiler_pic_GCJ=
24018 ;;
24019 *)
24020 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24021 ;;
24022esac
24023
24024#
24025# Check to make sure the static flag actually works.
24026#
24027wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24028{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24029echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24030if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24031 echo $ECHO_N "(cached) $ECHO_C" >&6
24032else
24033 lt_prog_compiler_static_works_GCJ=no
24034 save_LDFLAGS="$LDFLAGS"
24035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24036 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24038 # The linker can only warn and ignore the option if not recognized
24039 # So say no if there are warnings
24040 if test -s conftest.err; then
24041 # Append any errors to the config.log.
24042 cat conftest.err 1>&5
24043 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24045 if diff conftest.exp conftest.er2 >/dev/null; then
24046 lt_prog_compiler_static_works_GCJ=yes
24047 fi
24048 else
24049 lt_prog_compiler_static_works_GCJ=yes
24050 fi
24051 fi
24052 $rm conftest*
24053 LDFLAGS="$save_LDFLAGS"
24054
24055fi
24056{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24057echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24058
24059if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24060 :
24061else
24062 lt_prog_compiler_static_GCJ=
24063fi
24064
24065
24066{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24067echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24068if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24070else
24071 lt_cv_prog_compiler_c_o_GCJ=no
24072 $rm -r conftest 2>/dev/null
24073 mkdir conftest
24074 cd conftest
24075 mkdir out
24076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24077
24078 lt_compiler_flag="-o out/conftest2.$ac_objext"
24079 # Insert the option either (1) after the last *FLAGS variable, or
24080 # (2) before a word containing "conftest.", or (3) at the end.
24081 # Note that $ac_compile itself does not contain backslashes and begins
24082 # with a dollar sign (not a hyphen), so the echo should work correctly.
24083 lt_compile=`echo "$ac_compile" | $SED \
24084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24086 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen058a4c62007-10-02 16:42:22 +000024087 (eval echo "\"\$as_me:24087: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024088 (eval "$lt_compile" 2>out/conftest.err)
24089 ac_status=$?
24090 cat out/conftest.err >&5
Gordon Henriksen058a4c62007-10-02 16:42:22 +000024091 echo "$as_me:24091: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24093 then
24094 # The compiler can only warn and ignore the option if not recognized
24095 # So say no if there are warnings
24096 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24099 lt_cv_prog_compiler_c_o_GCJ=yes
24100 fi
24101 fi
24102 chmod u+w . 2>&5
24103 $rm conftest*
24104 # SGI C++ compiler will create directory out/ii_files/ for
24105 # template instantiation
24106 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24107 $rm out/* && rmdir out
24108 cd ..
24109 rmdir conftest
24110 $rm conftest*
24111
24112fi
24113{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24114echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24115
24116
24117hard_links="nottested"
24118if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24119 # do not overwrite the value of need_locks provided by the user
24120 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24121echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24122 hard_links=yes
24123 $rm conftest*
24124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24125 touch conftest.a
24126 ln conftest.a conftest.b 2>&5 || hard_links=no
24127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24128 { echo "$as_me:$LINENO: result: $hard_links" >&5
24129echo "${ECHO_T}$hard_links" >&6; }
24130 if test "$hard_links" = no; then
24131 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24132echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24133 need_locks=warn
24134 fi
24135else
24136 need_locks=no
24137fi
24138
24139{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24140echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24141
24142 runpath_var=
24143 allow_undefined_flag_GCJ=
24144 enable_shared_with_static_runtimes_GCJ=no
24145 archive_cmds_GCJ=
24146 archive_expsym_cmds_GCJ=
24147 old_archive_From_new_cmds_GCJ=
24148 old_archive_from_expsyms_cmds_GCJ=
24149 export_dynamic_flag_spec_GCJ=
24150 whole_archive_flag_spec_GCJ=
24151 thread_safe_flag_spec_GCJ=
24152 hardcode_libdir_flag_spec_GCJ=
24153 hardcode_libdir_flag_spec_ld_GCJ=
24154 hardcode_libdir_separator_GCJ=
24155 hardcode_direct_GCJ=no
24156 hardcode_minus_L_GCJ=no
24157 hardcode_shlibpath_var_GCJ=unsupported
24158 link_all_deplibs_GCJ=unknown
24159 hardcode_automatic_GCJ=no
24160 module_cmds_GCJ=
24161 module_expsym_cmds_GCJ=
24162 always_export_symbols_GCJ=no
24163 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24164 # include_expsyms should be a list of space-separated symbols to be *always*
24165 # included in the symbol list
24166 include_expsyms_GCJ=
24167 # exclude_expsyms can be an extended regexp of symbols to exclude
24168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24170 # as well as any symbol that contains `d'.
24171 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24173 # platforms (ab)use it in PIC code, but their linkers get confused if
24174 # the symbol is explicitly referenced. Since portable code cannot
24175 # rely on this symbol name, it's probably fine to never include it in
24176 # preloaded symbol tables.
24177 extract_expsyms_cmds=
24178 # Just being paranoid about ensuring that cc_basename is set.
24179 for cc_temp in $compiler""; do
24180 case $cc_temp in
24181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24183 \-*) ;;
24184 *) break;;
24185 esac
24186done
24187cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24188
24189 case $host_os in
24190 cygwin* | mingw* | pw32*)
24191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24192 # When not using gcc, we currently assume that we are using
24193 # Microsoft Visual C++.
24194 if test "$GCC" != yes; then
24195 with_gnu_ld=no
24196 fi
24197 ;;
24198 interix*)
24199 # we just hope/assume this is gcc and not c89 (= MSVC++)
24200 with_gnu_ld=yes
24201 ;;
24202 openbsd*)
24203 with_gnu_ld=no
24204 ;;
24205 esac
24206
24207 ld_shlibs_GCJ=yes
24208 if test "$with_gnu_ld" = yes; then
24209 # If archive_cmds runs LD, not CC, wlarc should be empty
24210 wlarc='${wl}'
24211
24212 # Set some defaults for GNU ld with shared library support. These
24213 # are reset later if shared libraries are not supported. Putting them
24214 # here allows them to be overridden if necessary.
24215 runpath_var=LD_RUN_PATH
24216 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24217 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24218 # ancient GNU ld didn't support --whole-archive et. al.
24219 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24220 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24221 else
24222 whole_archive_flag_spec_GCJ=
24223 fi
24224 supports_anon_versioning=no
24225 case `$LD -v 2>/dev/null` in
24226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24229 *\ 2.11.*) ;; # other 2.11 versions
24230 *) supports_anon_versioning=yes ;;
24231 esac
24232
24233 # See if GNU ld supports shared libraries.
24234 case $host_os in
24235 aix3* | aix4* | aix5*)
24236 # On AIX/PPC, the GNU linker is very broken
24237 if test "$host_cpu" != ia64; then
24238 ld_shlibs_GCJ=no
24239 cat <<EOF 1>&2
24240
24241*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24242*** to be unable to reliably create shared libraries on AIX.
24243*** Therefore, libtool is disabling shared libraries support. If you
24244*** really care for shared libraries, you may want to modify your PATH
24245*** so that a non-GNU linker is found, and then restart.
24246
24247EOF
24248 fi
24249 ;;
24250
24251 amigaos*)
24252 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)'
24253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24254 hardcode_minus_L_GCJ=yes
24255
24256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24257 # that the semantics of dynamic libraries on AmigaOS, at least up
24258 # to version 4, is to share data among multiple programs linked
24259 # with the same dynamic library. Since this doesn't match the
24260 # behavior of shared libraries on other platforms, we can't use
24261 # them.
24262 ld_shlibs_GCJ=no
24263 ;;
24264
24265 beos*)
24266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24267 allow_undefined_flag_GCJ=unsupported
24268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24269 # support --undefined. This deserves some investigation. FIXME
24270 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24271 else
24272 ld_shlibs_GCJ=no
24273 fi
24274 ;;
24275
24276 cygwin* | mingw* | pw32*)
24277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24278 # as there is no search path for DLLs.
24279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24280 allow_undefined_flag_GCJ=unsupported
24281 always_export_symbols_GCJ=no
24282 enable_shared_with_static_runtimes_GCJ=yes
24283 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24284
24285 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24286 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24287 # If the export-symbols file already is a .def file (1st line
24288 # is EXPORTS), use it as is; otherwise, prepend...
24289 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24290 cp $export_symbols $output_objdir/$soname.def;
24291 else
24292 echo EXPORTS > $output_objdir/$soname.def;
24293 cat $export_symbols >> $output_objdir/$soname.def;
24294 fi~
24295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24296 else
24297 ld_shlibs_GCJ=no
24298 fi
24299 ;;
24300
24301 interix3*)
24302 hardcode_direct_GCJ=no
24303 hardcode_shlibpath_var_GCJ=no
24304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}-E'
24306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24307 # Instead, shared libraries are loaded at an image base (0x10000000 by
24308 # default) and relocated if they conflict, which is a slow very memory
24309 # consuming and fragmenting process. To avoid this, we pick a random,
24310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24312 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'
24313 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'
24314 ;;
24315
24316 linux*)
24317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24318 tmp_addflag=
24319 case $cc_basename,$host_cpu in
24320 pgcc*) # Portland Group C compiler
24321 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'
24322 tmp_addflag=' $pic_flag'
24323 ;;
24324 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24325 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'
24326 tmp_addflag=' $pic_flag -Mnomain' ;;
24327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24328 tmp_addflag=' -i_dynamic' ;;
24329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24330 tmp_addflag=' -i_dynamic -nofor_main' ;;
24331 ifc* | ifort*) # Intel Fortran compiler
24332 tmp_addflag=' -nofor_main' ;;
24333 esac
24334 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335
24336 if test $supports_anon_versioning = yes; then
24337 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24339 $echo "local: *; };" >> $output_objdir/$libname.ver~
24340 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24341 fi
24342 else
24343 ld_shlibs_GCJ=no
24344 fi
24345 ;;
24346
24347 netbsd*)
24348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24349 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24350 wlarc=
24351 else
24352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24354 fi
24355 ;;
24356
24357 solaris*)
24358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24359 ld_shlibs_GCJ=no
24360 cat <<EOF 1>&2
24361
24362*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24363*** create shared libraries on Solaris systems. Therefore, libtool
24364*** is disabling shared libraries support. We urge you to upgrade GNU
24365*** binutils to release 2.9.1 or newer. Another option is to modify
24366*** your PATH or compiler configuration so that the native linker is
24367*** used, and then restart.
24368
24369EOF
24370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24372 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24373 else
24374 ld_shlibs_GCJ=no
24375 fi
24376 ;;
24377
24378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24379 case `$LD -v 2>&1` in
24380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24381 ld_shlibs_GCJ=no
24382 cat <<_LT_EOF 1>&2
24383
24384*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24385*** reliably create shared libraries on SCO systems. Therefore, libtool
24386*** is disabling shared libraries support. We urge you to upgrade GNU
24387*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24388*** your PATH or compiler configuration so that the native linker is
24389*** used, and then restart.
24390
24391_LT_EOF
24392 ;;
24393 *)
24394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24398 else
24399 ld_shlibs_GCJ=no
24400 fi
24401 ;;
24402 esac
24403 ;;
24404
24405 sunos4*)
24406 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24407 wlarc=
24408 hardcode_direct_GCJ=yes
24409 hardcode_shlibpath_var_GCJ=no
24410 ;;
24411
24412 *)
24413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24415 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24416 else
24417 ld_shlibs_GCJ=no
24418 fi
24419 ;;
24420 esac
24421
24422 if test "$ld_shlibs_GCJ" = no; then
24423 runpath_var=
24424 hardcode_libdir_flag_spec_GCJ=
24425 export_dynamic_flag_spec_GCJ=
24426 whole_archive_flag_spec_GCJ=
24427 fi
24428 else
24429 # PORTME fill in a description of your system's linker (not GNU ld)
24430 case $host_os in
24431 aix3*)
24432 allow_undefined_flag_GCJ=unsupported
24433 always_export_symbols_GCJ=yes
24434 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'
24435 # Note: this linker hardcodes the directories in LIBPATH if there
24436 # are no directories specified by -L.
24437 hardcode_minus_L_GCJ=yes
24438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24439 # Neither direct hardcoding nor static linking is supported with a
24440 # broken collect2.
24441 hardcode_direct_GCJ=unsupported
24442 fi
24443 ;;
24444
24445 aix4* | aix5*)
24446 if test "$host_cpu" = ia64; then
24447 # On IA64, the linker does run time linking by default, so we don't
24448 # have to do anything special.
24449 aix_use_runtimelinking=no
24450 exp_sym_flag='-Bexport'
24451 no_entry_flag=""
24452 else
24453 # If we're using GNU nm, then we don't want the "-C" option.
24454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24456 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'
24457 else
24458 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'
24459 fi
24460 aix_use_runtimelinking=no
24461
24462 # Test if we are trying to use run time linking or normal
24463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24464 # need to do runtime linking.
24465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24466 for ld_flag in $LDFLAGS; do
24467 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24468 aix_use_runtimelinking=yes
24469 break
24470 fi
24471 done
24472 ;;
24473 esac
24474
24475 exp_sym_flag='-bexport'
24476 no_entry_flag='-bnoentry'
24477 fi
24478
24479 # When large executables or shared objects are built, AIX ld can
24480 # have problems creating the table of contents. If linking a library
24481 # or program results in "error TOC overflow" add -mminimal-toc to
24482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24484
24485 archive_cmds_GCJ=''
24486 hardcode_direct_GCJ=yes
24487 hardcode_libdir_separator_GCJ=':'
24488 link_all_deplibs_GCJ=yes
24489
24490 if test "$GCC" = yes; then
24491 case $host_os in aix4.[012]|aix4.[012].*)
24492 # We only want to do this on AIX 4.2 and lower, the check
24493 # below for broken collect2 doesn't work under 4.3+
24494 collect2name=`${CC} -print-prog-name=collect2`
24495 if test -f "$collect2name" && \
24496 strings "$collect2name" | grep resolve_lib_name >/dev/null
24497 then
24498 # We have reworked collect2
24499 hardcode_direct_GCJ=yes
24500 else
24501 # We have old collect2
24502 hardcode_direct_GCJ=unsupported
24503 # It fails to find uninstalled libraries when the uninstalled
24504 # path is not listed in the libpath. Setting hardcode_minus_L
24505 # to unsupported forces relinking
24506 hardcode_minus_L_GCJ=yes
24507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24508 hardcode_libdir_separator_GCJ=
24509 fi
24510 ;;
24511 esac
24512 shared_flag='-shared'
24513 if test "$aix_use_runtimelinking" = yes; then
24514 shared_flag="$shared_flag "'${wl}-G'
24515 fi
24516 else
24517 # not using gcc
24518 if test "$host_cpu" = ia64; then
24519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24520 # chokes on -Wl,-G. The following line is correct:
24521 shared_flag='-G'
24522 else
24523 if test "$aix_use_runtimelinking" = yes; then
24524 shared_flag='${wl}-G'
24525 else
24526 shared_flag='${wl}-bM:SRE'
24527 fi
24528 fi
24529 fi
24530
24531 # It seems that -bexpall does not export symbols beginning with
24532 # underscore (_), so it is better to generate a list of symbols to export.
24533 always_export_symbols_GCJ=yes
24534 if test "$aix_use_runtimelinking" = yes; then
24535 # Warning - without using the other runtime loading flags (-brtl),
24536 # -berok will link without error, but may produce a broken library.
24537 allow_undefined_flag_GCJ='-berok'
24538 # Determine the default libpath from the value encoded in an empty executable.
24539 cat >conftest.$ac_ext <<_ACEOF
24540/* confdefs.h. */
24541_ACEOF
24542cat confdefs.h >>conftest.$ac_ext
24543cat >>conftest.$ac_ext <<_ACEOF
24544/* end confdefs.h. */
24545
24546int
24547main ()
24548{
24549
24550 ;
24551 return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
24555if { (ac_try="$ac_link"
24556case "(($ac_try" in
24557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558 *) ac_try_echo=$ac_try;;
24559esac
24560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561 (eval "$ac_link") 2>conftest.er1
24562 ac_status=$?
24563 grep -v '^ *+' conftest.er1 >conftest.err
24564 rm -f conftest.er1
24565 cat conftest.err >&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
24568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569 { (case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572esac
24573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_try") 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
24579 { (case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24582esac
24583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_try") 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; }; then
24588
24589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24590}'`
24591# Check for a 64-bit object if we didn't find anything.
24592if 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; }
24593}'`; fi
24594else
24595 echo "$as_me: failed program was:" >&5
24596sed 's/^/| /' conftest.$ac_ext >&5
24597
24598
24599fi
24600
24601rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24604
24605 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24606 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"
24607 else
24608 if test "$host_cpu" = ia64; then
24609 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24610 allow_undefined_flag_GCJ="-z nodefs"
24611 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"
24612 else
24613 # Determine the default libpath from the value encoded in an empty executable.
24614 cat >conftest.$ac_ext <<_ACEOF
24615/* confdefs.h. */
24616_ACEOF
24617cat confdefs.h >>conftest.$ac_ext
24618cat >>conftest.$ac_ext <<_ACEOF
24619/* end confdefs.h. */
24620
24621int
24622main ()
24623{
24624
24625 ;
24626 return 0;
24627}
24628_ACEOF
24629rm -f conftest.$ac_objext conftest$ac_exeext
24630if { (ac_try="$ac_link"
24631case "(($ac_try" in
24632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633 *) ac_try_echo=$ac_try;;
24634esac
24635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>conftest.er1
24637 ac_status=$?
24638 grep -v '^ *+' conftest.er1 >conftest.err
24639 rm -f conftest.er1
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } &&
24643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24644 { (case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647esac
24648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_try") 2>&5
24650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; } &&
24653 { ac_try='test -s conftest$ac_exeext'
24654 { (case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657esac
24658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_try") 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663
24664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24665}'`
24666# Check for a 64-bit object if we didn't find anything.
24667if 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; }
24668}'`; fi
24669else
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
24673
24674fi
24675
24676rm -f core conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
24678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24679
24680 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24681 # Warning - without using the other run time loading flags,
24682 # -berok will link without error, but may produce a broken library.
24683 no_undefined_flag_GCJ=' ${wl}-bernotok'
24684 allow_undefined_flag_GCJ=' ${wl}-berok'
24685 # Exported symbols can be pulled into shared objects from archives
24686 whole_archive_flag_spec_GCJ='$convenience'
24687 archive_cmds_need_lc_GCJ=yes
24688 # This is similar to how AIX traditionally builds its shared libraries.
24689 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'
24690 fi
24691 fi
24692 ;;
24693
24694 amigaos*)
24695 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)'
24696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24697 hardcode_minus_L_GCJ=yes
24698 # see comment about different semantics on the GNU ld section
24699 ld_shlibs_GCJ=no
24700 ;;
24701
24702 bsdi[45]*)
24703 export_dynamic_flag_spec_GCJ=-rdynamic
24704 ;;
24705
24706 cygwin* | mingw* | pw32*)
24707 # When not using gcc, we currently assume that we are using
24708 # Microsoft Visual C++.
24709 # hardcode_libdir_flag_spec is actually meaningless, as there is
24710 # no search path for DLLs.
24711 hardcode_libdir_flag_spec_GCJ=' '
24712 allow_undefined_flag_GCJ=unsupported
24713 # Tell ltmain to make .lib files, not .a files.
24714 libext=lib
24715 # Tell ltmain to make .dll files, not .so files.
24716 shrext_cmds=".dll"
24717 # FIXME: Setting linknames here is a bad hack.
24718 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24719 # The linker will automatically build a .lib file if we build a DLL.
24720 old_archive_From_new_cmds_GCJ='true'
24721 # FIXME: Should let the user specify the lib program.
24722 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24723 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24724 enable_shared_with_static_runtimes_GCJ=yes
24725 ;;
24726
24727 darwin* | rhapsody*)
24728 case $host_os in
24729 rhapsody* | darwin1.[012])
24730 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24731 ;;
24732 *) # Darwin 1.3 on
24733 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24734 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24735 else
24736 case ${MACOSX_DEPLOYMENT_TARGET} in
24737 10.[012])
24738 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24739 ;;
24740 10.*)
24741 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24742 ;;
24743 esac
24744 fi
24745 ;;
24746 esac
24747 archive_cmds_need_lc_GCJ=no
24748 hardcode_direct_GCJ=no
24749 hardcode_automatic_GCJ=yes
24750 hardcode_shlibpath_var_GCJ=unsupported
24751 whole_archive_flag_spec_GCJ=''
24752 link_all_deplibs_GCJ=yes
24753 if test "$GCC" = yes ; then
24754 output_verbose_link_cmd='echo'
24755 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24756 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24758 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}'
24759 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}'
24760 else
24761 case $cc_basename in
24762 xlc*)
24763 output_verbose_link_cmd='echo'
24764 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24765 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24767 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}'
24768 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}'
24769 ;;
24770 *)
24771 ld_shlibs_GCJ=no
24772 ;;
24773 esac
24774 fi
24775 ;;
24776
24777 dgux*)
24778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780 hardcode_shlibpath_var_GCJ=no
24781 ;;
24782
24783 freebsd1*)
24784 ld_shlibs_GCJ=no
24785 ;;
24786
24787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24788 # support. Future versions do this automatically, but an explicit c++rt0.o
24789 # does not break anything, and helps significantly (at the cost of a little
24790 # extra space).
24791 freebsd2.2*)
24792 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24794 hardcode_direct_GCJ=yes
24795 hardcode_shlibpath_var_GCJ=no
24796 ;;
24797
24798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24799 freebsd2*)
24800 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24801 hardcode_direct_GCJ=yes
24802 hardcode_minus_L_GCJ=yes
24803 hardcode_shlibpath_var_GCJ=no
24804 ;;
24805
24806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24807 freebsd* | kfreebsd*-gnu | dragonfly*)
24808 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24810 hardcode_direct_GCJ=yes
24811 hardcode_shlibpath_var_GCJ=no
24812 ;;
24813
24814 hpux9*)
24815 if test "$GCC" = yes; then
24816 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'
24817 else
24818 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'
24819 fi
24820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24821 hardcode_libdir_separator_GCJ=:
24822 hardcode_direct_GCJ=yes
24823
24824 # hardcode_minus_L: Not really in the search PATH,
24825 # but as the default location of the library.
24826 hardcode_minus_L_GCJ=yes
24827 export_dynamic_flag_spec_GCJ='${wl}-E'
24828 ;;
24829
24830 hpux10*)
24831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24832 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24833 else
24834 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24835 fi
24836 if test "$with_gnu_ld" = no; then
24837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24838 hardcode_libdir_separator_GCJ=:
24839
24840 hardcode_direct_GCJ=yes
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24842
24843 # hardcode_minus_L: Not really in the search PATH,
24844 # but as the default location of the library.
24845 hardcode_minus_L_GCJ=yes
24846 fi
24847 ;;
24848
24849 hpux11*)
24850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24851 case $host_cpu in
24852 hppa*64*)
24853 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24854 ;;
24855 ia64*)
24856 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24857 ;;
24858 *)
24859 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24860 ;;
24861 esac
24862 else
24863 case $host_cpu in
24864 hppa*64*)
24865 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 ;;
24867 ia64*)
24868 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24869 ;;
24870 *)
24871 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24872 ;;
24873 esac
24874 fi
24875 if test "$with_gnu_ld" = no; then
24876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877 hardcode_libdir_separator_GCJ=:
24878
24879 case $host_cpu in
24880 hppa*64*|ia64*)
24881 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24882 hardcode_direct_GCJ=no
24883 hardcode_shlibpath_var_GCJ=no
24884 ;;
24885 *)
24886 hardcode_direct_GCJ=yes
24887 export_dynamic_flag_spec_GCJ='${wl}-E'
24888
24889 # hardcode_minus_L: Not really in the search PATH,
24890 # but as the default location of the library.
24891 hardcode_minus_L_GCJ=yes
24892 ;;
24893 esac
24894 fi
24895 ;;
24896
24897 irix5* | irix6* | nonstopux*)
24898 if test "$GCC" = yes; then
24899 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'
24900 else
24901 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'
24902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24903 fi
24904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 link_all_deplibs_GCJ=yes
24907 ;;
24908
24909 netbsd*)
24910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24912 else
24913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24914 fi
24915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24916 hardcode_direct_GCJ=yes
24917 hardcode_shlibpath_var_GCJ=no
24918 ;;
24919
24920 newsos6)
24921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24922 hardcode_direct_GCJ=yes
24923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24924 hardcode_libdir_separator_GCJ=:
24925 hardcode_shlibpath_var_GCJ=no
24926 ;;
24927
24928 openbsd*)
24929 hardcode_direct_GCJ=yes
24930 hardcode_shlibpath_var_GCJ=no
24931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24932 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24933 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24935 export_dynamic_flag_spec_GCJ='${wl}-E'
24936 else
24937 case $host_os in
24938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941 ;;
24942 *)
24943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24945 ;;
24946 esac
24947 fi
24948 ;;
24949
24950 os2*)
24951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24952 hardcode_minus_L_GCJ=yes
24953 allow_undefined_flag_GCJ=unsupported
24954 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'
24955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24956 ;;
24957
24958 osf3*)
24959 if test "$GCC" = yes; then
24960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24961 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'
24962 else
24963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24964 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'
24965 fi
24966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24967 hardcode_libdir_separator_GCJ=:
24968 ;;
24969
24970 osf4* | osf5*) # as osf3* with the addition of -msym flag
24971 if test "$GCC" = yes; then
24972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24973 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'
24974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24975 else
24976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24977 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'
24978 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~
24979 $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'
24980
24981 # Both c and cxx compiler support -rpath directly
24982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24983 fi
24984 hardcode_libdir_separator_GCJ=:
24985 ;;
24986
24987 solaris*)
24988 no_undefined_flag_GCJ=' -z text'
24989 if test "$GCC" = yes; then
24990 wlarc='${wl}'
24991 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24992 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24993 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24994 else
24995 wlarc=''
24996 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24997 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24999 fi
25000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001 hardcode_shlibpath_var_GCJ=no
25002 case $host_os in
25003 solaris2.[0-5] | solaris2.[0-5].*) ;;
25004 *)
25005 # The compiler driver will combine linker options so we
25006 # cannot just pass the convience library names through
25007 # without $wl, iff we do not link with $LD.
25008 # Luckily, gcc supports the same syntax we need for Sun Studio.
25009 # Supported since Solaris 2.6 (maybe 2.5.1?)
25010 case $wlarc in
25011 '')
25012 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25013 *)
25014 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' ;;
25015 esac ;;
25016 esac
25017 link_all_deplibs_GCJ=yes
25018 ;;
25019
25020 sunos4*)
25021 if test "x$host_vendor" = xsequent; then
25022 # Use $CC to link under sequent, because it throws in some extra .o
25023 # files that make .init and .fini sections work.
25024 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25025 else
25026 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25027 fi
25028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25029 hardcode_direct_GCJ=yes
25030 hardcode_minus_L_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25032 ;;
25033
25034 sysv4)
25035 case $host_vendor in
25036 sni)
25037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25038 hardcode_direct_GCJ=yes # is this really true???
25039 ;;
25040 siemens)
25041 ## LD is ld it makes a PLAMLIB
25042 ## CC just makes a GrossModule.
25043 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25044 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25045 hardcode_direct_GCJ=no
25046 ;;
25047 motorola)
25048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25049 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25050 ;;
25051 esac
25052 runpath_var='LD_RUN_PATH'
25053 hardcode_shlibpath_var_GCJ=no
25054 ;;
25055
25056 sysv4.3*)
25057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25058 hardcode_shlibpath_var_GCJ=no
25059 export_dynamic_flag_spec_GCJ='-Bexport'
25060 ;;
25061
25062 sysv4*MP*)
25063 if test -d /usr/nec; then
25064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25065 hardcode_shlibpath_var_GCJ=no
25066 runpath_var=LD_RUN_PATH
25067 hardcode_runpath_var=yes
25068 ld_shlibs_GCJ=yes
25069 fi
25070 ;;
25071
25072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25073 no_undefined_flag_GCJ='${wl}-z,text'
25074 archive_cmds_need_lc_GCJ=no
25075 hardcode_shlibpath_var_GCJ=no
25076 runpath_var='LD_RUN_PATH'
25077
25078 if test "$GCC" = yes; then
25079 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25080 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25081 else
25082 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25083 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25084 fi
25085 ;;
25086
25087 sysv5* | sco3.2v5* | sco5v6*)
25088 # Note: We can NOT use -z defs as we might desire, because we do not
25089 # link with -lc, and that would cause any symbols used from libc to
25090 # always be unresolved, which means just about no library would
25091 # ever link correctly. If we're not using GNU ld we use -z text
25092 # though, which does catch some bad symbols but isn't as heavy-handed
25093 # as -z defs.
25094 no_undefined_flag_GCJ='${wl}-z,text'
25095 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25096 archive_cmds_need_lc_GCJ=no
25097 hardcode_shlibpath_var_GCJ=no
25098 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25099 hardcode_libdir_separator_GCJ=':'
25100 link_all_deplibs_GCJ=yes
25101 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25102 runpath_var='LD_RUN_PATH'
25103
25104 if test "$GCC" = yes; then
25105 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 else
25108 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25110 fi
25111 ;;
25112
25113 uts4*)
25114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25116 hardcode_shlibpath_var_GCJ=no
25117 ;;
25118
25119 *)
25120 ld_shlibs_GCJ=no
25121 ;;
25122 esac
25123 fi
25124
25125{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25126echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25127test "$ld_shlibs_GCJ" = no && can_build_shared=no
25128
25129#
25130# Do we need to explicitly link libc?
25131#
25132case "x$archive_cmds_need_lc_GCJ" in
25133x|xyes)
25134 # Assume -lc should be added
25135 archive_cmds_need_lc_GCJ=yes
25136
25137 if test "$enable_shared" = yes && test "$GCC" = yes; then
25138 case $archive_cmds_GCJ in
25139 *'~'*)
25140 # FIXME: we may have to deal with multi-command sequences.
25141 ;;
25142 '$CC '*)
25143 # Test whether the compiler implicitly links with -lc since on some
25144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25145 # to ld, don't add -lc before -lgcc.
25146 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25147echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25148 $rm conftest*
25149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25150
25151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25152 (eval $ac_compile) 2>&5
25153 ac_status=$?
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } 2>conftest.err; then
25156 soname=conftest
25157 lib=conftest
25158 libobjs=conftest.$ac_objext
25159 deplibs=
25160 wl=$lt_prog_compiler_wl_GCJ
25161 pic_flag=$lt_prog_compiler_pic_GCJ
25162 compiler_flags=-v
25163 linker_flags=-v
25164 verstring=
25165 output_objdir=.
25166 libname=conftest
25167 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25168 allow_undefined_flag_GCJ=
25169 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25170 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }
25174 then
25175 archive_cmds_need_lc_GCJ=no
25176 else
25177 archive_cmds_need_lc_GCJ=yes
25178 fi
25179 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25180 else
25181 cat conftest.err 1>&5
25182 fi
25183 $rm conftest*
25184 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25185echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25186 ;;
25187 esac
25188 fi
25189 ;;
25190esac
25191
25192{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25193echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25194library_names_spec=
25195libname_spec='lib$name'
25196soname_spec=
25197shrext_cmds=".so"
25198postinstall_cmds=
25199postuninstall_cmds=
25200finish_cmds=
25201finish_eval=
25202shlibpath_var=
25203shlibpath_overrides_runpath=unknown
25204version_type=none
25205dynamic_linker="$host_os ld.so"
25206sys_lib_dlsearch_path_spec="/lib /usr/lib"
25207if test "$GCC" = yes; then
25208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25209 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25210 # if the path contains ";" then we assume it to be the separator
25211 # otherwise default to the standard path separator (i.e. ":") - it is
25212 # assumed that no part of a normal pathname contains ";" but that should
25213 # okay in the real world where ";" in dirpaths is itself problematic.
25214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25215 else
25216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25217 fi
25218else
25219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25220fi
25221need_lib_prefix=unknown
25222hardcode_into_libs=no
25223
25224# when you set need_version to no, make sure it does not cause -set_version
25225# flags to be left without arguments
25226need_version=unknown
25227
25228case $host_os in
25229aix3*)
25230 version_type=linux
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25232 shlibpath_var=LIBPATH
25233
25234 # AIX 3 has no versioning support, so we append a major version to the name.
25235 soname_spec='${libname}${release}${shared_ext}$major'
25236 ;;
25237
25238aix4* | aix5*)
25239 version_type=linux
25240 need_lib_prefix=no
25241 need_version=no
25242 hardcode_into_libs=yes
25243 if test "$host_cpu" = ia64; then
25244 # AIX 5 supports IA64
25245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25246 shlibpath_var=LD_LIBRARY_PATH
25247 else
25248 # With GCC up to 2.95.x, collect2 would create an import file
25249 # for dependence libraries. The import file would start with
25250 # the line `#! .'. This would cause the generated library to
25251 # depend on `.', always an invalid library. This was fixed in
25252 # development snapshots of GCC prior to 3.0.
25253 case $host_os in
25254 aix4 | aix4.[01] | aix4.[01].*)
25255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25256 echo ' yes '
25257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25258 :
25259 else
25260 can_build_shared=no
25261 fi
25262 ;;
25263 esac
25264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25265 # soname into executable. Probably we can add versioning support to
25266 # collect2, so additional links can be useful in future.
25267 if test "$aix_use_runtimelinking" = yes; then
25268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25269 # instead of lib<name>.a to let people know that these are not
25270 # typical AIX shared libraries.
25271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25272 else
25273 # We preserve .a as extension for shared libraries through AIX4.2
25274 # and later when we are not doing run time linking.
25275 library_names_spec='${libname}${release}.a $libname.a'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25277 fi
25278 shlibpath_var=LIBPATH
25279 fi
25280 ;;
25281
25282amigaos*)
25283 library_names_spec='$libname.ixlibrary $libname.a'
25284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25285 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'
25286 ;;
25287
25288beos*)
25289 library_names_spec='${libname}${shared_ext}'
25290 dynamic_linker="$host_os ld.so"
25291 shlibpath_var=LIBRARY_PATH
25292 ;;
25293
25294bsdi[45]*)
25295 version_type=linux
25296 need_version=no
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25300 shlibpath_var=LD_LIBRARY_PATH
25301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25303 # the default ld.so.conf also contains /usr/contrib/lib and
25304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25305 # libtool to hard-code these into programs
25306 ;;
25307
25308cygwin* | mingw* | pw32*)
25309 version_type=windows
25310 shrext_cmds=".dll"
25311 need_version=no
25312 need_lib_prefix=no
25313
25314 case $GCC,$host_os in
25315 yes,cygwin* | yes,mingw* | yes,pw32*)
25316 library_names_spec='$libname.dll.a'
25317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25318 postinstall_cmds='base_file=`basename \${file}`~
25319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25320 dldir=$destdir/`dirname \$dlpath`~
25321 test -d \$dldir || mkdir -p \$dldir~
25322 $install_prog $dir/$dlname \$dldir/$dlname~
25323 chmod a+x \$dldir/$dlname'
25324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25325 dlpath=$dir/\$dldll~
25326 $rm \$dlpath'
25327 shlibpath_overrides_runpath=yes
25328
25329 case $host_os in
25330 cygwin*)
25331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25334 ;;
25335 mingw*)
25336 # MinGW DLLs use traditional 'lib' prefix
25337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25340 # It is most probably a Windows format PATH printed by
25341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25342 # path with ; separators, and with drive letters. We can handle the
25343 # drive letters (cygwin fileutils understands them), so leave them,
25344 # especially as we might pass files found there to a mingw objdump,
25345 # which wouldn't understand a cygwinified path. Ahh.
25346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25347 else
25348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25349 fi
25350 ;;
25351 pw32*)
25352 # pw32 DLLs use 'pw' prefix rather than 'lib'
25353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25354 ;;
25355 esac
25356 ;;
25357
25358 *)
25359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25360 ;;
25361 esac
25362 dynamic_linker='Win32 ld.exe'
25363 # FIXME: first we should search . and the directory the executable is in
25364 shlibpath_var=PATH
25365 ;;
25366
25367darwin* | rhapsody*)
25368 dynamic_linker="$host_os dyld"
25369 version_type=darwin
25370 need_lib_prefix=no
25371 need_version=no
25372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25373 soname_spec='${libname}${release}${major}$shared_ext'
25374 shlibpath_overrides_runpath=yes
25375 shlibpath_var=DYLD_LIBRARY_PATH
25376 shrext_cmds='.dylib'
25377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25378 if test "$GCC" = yes; then
25379 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"`
25380 else
25381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25382 fi
25383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25384 ;;
25385
25386dgux*)
25387 version_type=linux
25388 need_lib_prefix=no
25389 need_version=no
25390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25391 soname_spec='${libname}${release}${shared_ext}$major'
25392 shlibpath_var=LD_LIBRARY_PATH
25393 ;;
25394
25395freebsd1*)
25396 dynamic_linker=no
25397 ;;
25398
25399kfreebsd*-gnu)
25400 version_type=linux
25401 need_lib_prefix=no
25402 need_version=no
25403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25404 soname_spec='${libname}${release}${shared_ext}$major'
25405 shlibpath_var=LD_LIBRARY_PATH
25406 shlibpath_overrides_runpath=no
25407 hardcode_into_libs=yes
25408 dynamic_linker='GNU ld.so'
25409 ;;
25410
25411freebsd* | dragonfly*)
25412 # DragonFly does not have aout. When/if they implement a new
25413 # versioning mechanism, adjust this.
25414 if test -x /usr/bin/objformat; then
25415 objformat=`/usr/bin/objformat`
25416 else
25417 case $host_os in
25418 freebsd[123]*) objformat=aout ;;
25419 *) objformat=elf ;;
25420 esac
25421 fi
25422 version_type=freebsd-$objformat
25423 case $version_type in
25424 freebsd-elf*)
25425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25426 need_version=no
25427 need_lib_prefix=no
25428 ;;
25429 freebsd-*)
25430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25431 need_version=yes
25432 ;;
25433 esac
25434 shlibpath_var=LD_LIBRARY_PATH
25435 case $host_os in
25436 freebsd2*)
25437 shlibpath_overrides_runpath=yes
25438 ;;
25439 freebsd3.[01]* | freebsdelf3.[01]*)
25440 shlibpath_overrides_runpath=yes
25441 hardcode_into_libs=yes
25442 ;;
25443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25445 shlibpath_overrides_runpath=no
25446 hardcode_into_libs=yes
25447 ;;
25448 freebsd*) # from 4.6 on
25449 shlibpath_overrides_runpath=yes
25450 hardcode_into_libs=yes
25451 ;;
25452 esac
25453 ;;
25454
25455gnu*)
25456 version_type=linux
25457 need_lib_prefix=no
25458 need_version=no
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25460 soname_spec='${libname}${release}${shared_ext}$major'
25461 shlibpath_var=LD_LIBRARY_PATH
25462 hardcode_into_libs=yes
25463 ;;
25464
25465hpux9* | hpux10* | hpux11*)
25466 # Give a soname corresponding to the major version so that dld.sl refuses to
25467 # link against other versions.
25468 version_type=sunos
25469 need_lib_prefix=no
25470 need_version=no
25471 case $host_cpu in
25472 ia64*)
25473 shrext_cmds='.so'
25474 hardcode_into_libs=yes
25475 dynamic_linker="$host_os dld.so"
25476 shlibpath_var=LD_LIBRARY_PATH
25477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 if test "X$HPUX_IA64_MODE" = X32; then
25481 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25482 else
25483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25484 fi
25485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25486 ;;
25487 hppa*64*)
25488 shrext_cmds='.sl'
25489 hardcode_into_libs=yes
25490 dynamic_linker="$host_os dld.sl"
25491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 soname_spec='${libname}${release}${shared_ext}$major'
25495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25497 ;;
25498 *)
25499 shrext_cmds='.sl'
25500 dynamic_linker="$host_os dld.sl"
25501 shlibpath_var=SHLIB_PATH
25502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 ;;
25506 esac
25507 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25508 postinstall_cmds='chmod 555 $lib'
25509 ;;
25510
25511interix3*)
25512 version_type=linux
25513 need_lib_prefix=no
25514 need_version=no
25515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25516 soname_spec='${libname}${release}${shared_ext}$major'
25517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25518 shlibpath_var=LD_LIBRARY_PATH
25519 shlibpath_overrides_runpath=no
25520 hardcode_into_libs=yes
25521 ;;
25522
25523irix5* | irix6* | nonstopux*)
25524 case $host_os in
25525 nonstopux*) version_type=nonstopux ;;
25526 *)
25527 if test "$lt_cv_prog_gnu_ld" = yes; then
25528 version_type=linux
25529 else
25530 version_type=irix
25531 fi ;;
25532 esac
25533 need_lib_prefix=no
25534 need_version=no
25535 soname_spec='${libname}${release}${shared_ext}$major'
25536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25537 case $host_os in
25538 irix5* | nonstopux*)
25539 libsuff= shlibsuff=
25540 ;;
25541 *)
25542 case $LD in # libtool.m4 will add one of these switches to LD
25543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25544 libsuff= shlibsuff= libmagic=32-bit;;
25545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25546 libsuff=32 shlibsuff=N32 libmagic=N32;;
25547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25549 *) libsuff= shlibsuff= libmagic=never-match;;
25550 esac
25551 ;;
25552 esac
25553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25554 shlibpath_overrides_runpath=no
25555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25557 hardcode_into_libs=yes
25558 ;;
25559
25560# No shared lib support for Linux oldld, aout, or coff.
25561linux*oldld* | linux*aout* | linux*coff*)
25562 dynamic_linker=no
25563 ;;
25564
25565# This must be Linux ELF.
25566linux*)
25567 version_type=linux
25568 need_lib_prefix=no
25569 need_version=no
25570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25571 soname_spec='${libname}${release}${shared_ext}$major'
25572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25573 shlibpath_var=LD_LIBRARY_PATH
25574 shlibpath_overrides_runpath=no
25575 # This implies no fast_install, which is unacceptable.
25576 # Some rework will be needed to allow for fast_install
25577 # before this can be enabled.
25578 hardcode_into_libs=yes
25579
25580 # Append ld.so.conf contents to the search path
25581 if test -f /etc/ld.so.conf; then
25582 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' ' '`
25583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25584 fi
25585
25586 # We used to test for /lib/ld.so.1 and disable shared libraries on
25587 # powerpc, because MkLinux only supported shared libraries with the
25588 # GNU dynamic linker. Since this was broken with cross compilers,
25589 # most powerpc-linux boxes support dynamic linking these days and
25590 # people can always --disable-shared, the test was removed, and we
25591 # assume the GNU/Linux dynamic linker is in use.
25592 dynamic_linker='GNU/Linux ld.so'
25593 ;;
25594
25595knetbsd*-gnu)
25596 version_type=linux
25597 need_lib_prefix=no
25598 need_version=no
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25600 soname_spec='${libname}${release}${shared_ext}$major'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=no
25603 hardcode_into_libs=yes
25604 dynamic_linker='GNU ld.so'
25605 ;;
25606
25607netbsd*)
25608 version_type=sunos
25609 need_lib_prefix=no
25610 need_version=no
25611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25614 dynamic_linker='NetBSD (a.out) ld.so'
25615 else
25616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25617 soname_spec='${libname}${release}${shared_ext}$major'
25618 dynamic_linker='NetBSD ld.elf_so'
25619 fi
25620 shlibpath_var=LD_LIBRARY_PATH
25621 shlibpath_overrides_runpath=yes
25622 hardcode_into_libs=yes
25623 ;;
25624
25625newsos6)
25626 version_type=linux
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25628 shlibpath_var=LD_LIBRARY_PATH
25629 shlibpath_overrides_runpath=yes
25630 ;;
25631
25632nto-qnx*)
25633 version_type=linux
25634 need_lib_prefix=no
25635 need_version=no
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25637 soname_spec='${libname}${release}${shared_ext}$major'
25638 shlibpath_var=LD_LIBRARY_PATH
25639 shlibpath_overrides_runpath=yes
25640 ;;
25641
25642openbsd*)
25643 version_type=sunos
25644 sys_lib_dlsearch_path_spec="/usr/lib"
25645 need_lib_prefix=no
25646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25647 case $host_os in
25648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25649 *) need_version=no ;;
25650 esac
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25655 case $host_os in
25656 openbsd2.[89] | openbsd2.[89].*)
25657 shlibpath_overrides_runpath=no
25658 ;;
25659 *)
25660 shlibpath_overrides_runpath=yes
25661 ;;
25662 esac
25663 else
25664 shlibpath_overrides_runpath=yes
25665 fi
25666 ;;
25667
25668os2*)
25669 libname_spec='$name'
25670 shrext_cmds=".dll"
25671 need_lib_prefix=no
25672 library_names_spec='$libname${shared_ext} $libname.a'
25673 dynamic_linker='OS/2 ld.exe'
25674 shlibpath_var=LIBPATH
25675 ;;
25676
25677osf3* | osf4* | osf5*)
25678 version_type=osf
25679 need_lib_prefix=no
25680 need_version=no
25681 soname_spec='${libname}${release}${shared_ext}$major'
25682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25683 shlibpath_var=LD_LIBRARY_PATH
25684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25686 ;;
25687
25688solaris*)
25689 version_type=linux
25690 need_lib_prefix=no
25691 need_version=no
25692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25693 soname_spec='${libname}${release}${shared_ext}$major'
25694 shlibpath_var=LD_LIBRARY_PATH
25695 shlibpath_overrides_runpath=yes
25696 hardcode_into_libs=yes
25697 # ldd complains unless libraries are executable
25698 postinstall_cmds='chmod +x $lib'
25699 ;;
25700
25701sunos4*)
25702 version_type=sunos
25703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25705 shlibpath_var=LD_LIBRARY_PATH
25706 shlibpath_overrides_runpath=yes
25707 if test "$with_gnu_ld" = yes; then
25708 need_lib_prefix=no
25709 fi
25710 need_version=yes
25711 ;;
25712
25713sysv4 | sysv4.3*)
25714 version_type=linux
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 soname_spec='${libname}${release}${shared_ext}$major'
25717 shlibpath_var=LD_LIBRARY_PATH
25718 case $host_vendor in
25719 sni)
25720 shlibpath_overrides_runpath=no
25721 need_lib_prefix=no
25722 export_dynamic_flag_spec='${wl}-Blargedynsym'
25723 runpath_var=LD_RUN_PATH
25724 ;;
25725 siemens)
25726 need_lib_prefix=no
25727 ;;
25728 motorola)
25729 need_lib_prefix=no
25730 need_version=no
25731 shlibpath_overrides_runpath=no
25732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25733 ;;
25734 esac
25735 ;;
25736
25737sysv4*MP*)
25738 if test -d /usr/nec ;then
25739 version_type=linux
25740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25741 soname_spec='$libname${shared_ext}.$major'
25742 shlibpath_var=LD_LIBRARY_PATH
25743 fi
25744 ;;
25745
25746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25747 version_type=freebsd-elf
25748 need_lib_prefix=no
25749 need_version=no
25750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25751 soname_spec='${libname}${release}${shared_ext}$major'
25752 shlibpath_var=LD_LIBRARY_PATH
25753 hardcode_into_libs=yes
25754 if test "$with_gnu_ld" = yes; then
25755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25756 shlibpath_overrides_runpath=no
25757 else
25758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25759 shlibpath_overrides_runpath=yes
25760 case $host_os in
25761 sco3.2v5*)
25762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25763 ;;
25764 esac
25765 fi
25766 sys_lib_dlsearch_path_spec='/usr/lib'
25767 ;;
25768
25769uts4*)
25770 version_type=linux
25771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 shlibpath_var=LD_LIBRARY_PATH
25774 ;;
25775
25776*)
25777 dynamic_linker=no
25778 ;;
25779esac
25780{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25781echo "${ECHO_T}$dynamic_linker" >&6; }
25782test "$dynamic_linker" = no && can_build_shared=no
25783
25784variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25785if test "$GCC" = yes; then
25786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25787fi
25788
25789{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25790echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25791hardcode_action_GCJ=
25792if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25793 test -n "$runpath_var_GCJ" || \
25794 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25795
25796 # We can hardcode non-existant directories.
25797 if test "$hardcode_direct_GCJ" != no &&
25798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25799 # have to relink, otherwise we might link with an installed library
25800 # when we should be linking with a yet-to-be-installed one
25801 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25802 test "$hardcode_minus_L_GCJ" != no; then
25803 # Linking always hardcodes the temporary library directory.
25804 hardcode_action_GCJ=relink
25805 else
25806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25807 hardcode_action_GCJ=immediate
25808 fi
25809else
25810 # We cannot hardcode anything, or else we can only hardcode existing
25811 # directories.
25812 hardcode_action_GCJ=unsupported
25813fi
25814{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25815echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25816
25817if test "$hardcode_action_GCJ" = relink; then
25818 # Fast installation is not supported
25819 enable_fast_install=no
25820elif test "$shlibpath_overrides_runpath" = yes ||
25821 test "$enable_shared" = no; then
25822 # Fast installation is not necessary
25823 enable_fast_install=needless
25824fi
25825
25826
25827# The else clause should only fire when bootstrapping the
25828# libtool distribution, otherwise you forgot to ship ltmain.sh
25829# with your package, and you will get complaints that there are
25830# no rules to generate ltmain.sh.
25831if test -f "$ltmain"; then
25832 # See if we are running on zsh, and set the options which allow our commands through
25833 # without removal of \ escapes.
25834 if test -n "${ZSH_VERSION+set}" ; then
25835 setopt NO_GLOB_SUBST
25836 fi
25837 # Now quote all the things that may contain metacharacters while being
25838 # careful not to overquote the AC_SUBSTed values. We take copies of the
25839 # variables and quote the copies for generation of the libtool script.
25840 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25841 SED SHELL STRIP \
25842 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25843 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25844 deplibs_check_method reload_flag reload_cmds need_locks \
25845 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25846 lt_cv_sys_global_symbol_to_c_name_address \
25847 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25848 old_postinstall_cmds old_postuninstall_cmds \
25849 compiler_GCJ \
25850 CC_GCJ \
25851 LD_GCJ \
25852 lt_prog_compiler_wl_GCJ \
25853 lt_prog_compiler_pic_GCJ \
25854 lt_prog_compiler_static_GCJ \
25855 lt_prog_compiler_no_builtin_flag_GCJ \
25856 export_dynamic_flag_spec_GCJ \
25857 thread_safe_flag_spec_GCJ \
25858 whole_archive_flag_spec_GCJ \
25859 enable_shared_with_static_runtimes_GCJ \
25860 old_archive_cmds_GCJ \
25861 old_archive_from_new_cmds_GCJ \
25862 predep_objects_GCJ \
25863 postdep_objects_GCJ \
25864 predeps_GCJ \
25865 postdeps_GCJ \
25866 compiler_lib_search_path_GCJ \
25867 archive_cmds_GCJ \
25868 archive_expsym_cmds_GCJ \
25869 postinstall_cmds_GCJ \
25870 postuninstall_cmds_GCJ \
25871 old_archive_from_expsyms_cmds_GCJ \
25872 allow_undefined_flag_GCJ \
25873 no_undefined_flag_GCJ \
25874 export_symbols_cmds_GCJ \
25875 hardcode_libdir_flag_spec_GCJ \
25876 hardcode_libdir_flag_spec_ld_GCJ \
25877 hardcode_libdir_separator_GCJ \
25878 hardcode_automatic_GCJ \
25879 module_cmds_GCJ \
25880 module_expsym_cmds_GCJ \
25881 lt_cv_prog_compiler_c_o_GCJ \
25882 exclude_expsyms_GCJ \
25883 include_expsyms_GCJ; do
25884
25885 case $var in
25886 old_archive_cmds_GCJ | \
25887 old_archive_from_new_cmds_GCJ | \
25888 archive_cmds_GCJ | \
25889 archive_expsym_cmds_GCJ | \
25890 module_cmds_GCJ | \
25891 module_expsym_cmds_GCJ | \
25892 old_archive_from_expsyms_cmds_GCJ | \
25893 export_symbols_cmds_GCJ | \
25894 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25895 postinstall_cmds | postuninstall_cmds | \
25896 old_postinstall_cmds | old_postuninstall_cmds | \
25897 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25898 # Double-quote double-evaled strings.
25899 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25900 ;;
25901 *)
25902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25903 ;;
25904 esac
25905 done
25906
25907 case $lt_echo in
25908 *'\$0 --fallback-echo"')
25909 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25910 ;;
25911 esac
25912
25913cfgfile="$ofile"
25914
25915 cat <<__EOF__ >> "$cfgfile"
25916# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25917
25918# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25919
25920# Shell to use when invoking shell scripts.
25921SHELL=$lt_SHELL
25922
25923# Whether or not to build shared libraries.
25924build_libtool_libs=$enable_shared
25925
25926# Whether or not to build static libraries.
25927build_old_libs=$enable_static
25928
25929# Whether or not to add -lc for building shared libraries.
25930build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25931
25932# Whether or not to disallow shared libs when runtime libs are static
25933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25934
25935# Whether or not to optimize for fast installation.
25936fast_install=$enable_fast_install
25937
25938# The host system.
25939host_alias=$host_alias
25940host=$host
25941host_os=$host_os
25942
25943# The build system.
25944build_alias=$build_alias
25945build=$build
25946build_os=$build_os
25947
25948# An echo program that does not interpret backslashes.
25949echo=$lt_echo
25950
25951# The archiver.
25952AR=$lt_AR
25953AR_FLAGS=$lt_AR_FLAGS
25954
25955# A C compiler.
25956LTCC=$lt_LTCC
25957
25958# LTCC compiler flags.
25959LTCFLAGS=$lt_LTCFLAGS
25960
25961# A language-specific compiler.
25962CC=$lt_compiler_GCJ
25963
25964# Is the compiler the GNU C compiler?
25965with_gcc=$GCC_GCJ
25966
25967# An ERE matcher.
25968EGREP=$lt_EGREP
25969
25970# The linker used to build libraries.
25971LD=$lt_LD_GCJ
25972
25973# Whether we need hard or soft links.
25974LN_S=$lt_LN_S
25975
25976# A BSD-compatible nm program.
25977NM=$lt_NM
25978
25979# A symbol stripping program
25980STRIP=$lt_STRIP
25981
25982# Used to examine libraries when file_magic_cmd begins "file"
25983MAGIC_CMD=$MAGIC_CMD
25984
25985# Used on cygwin: DLL creation program.
25986DLLTOOL="$DLLTOOL"
25987
25988# Used on cygwin: object dumper.
25989OBJDUMP="$OBJDUMP"
25990
25991# Used on cygwin: assembler.
25992AS="$AS"
25993
25994# The name of the directory that contains temporary libtool files.
25995objdir=$objdir
25996
25997# How to create reloadable object files.
25998reload_flag=$lt_reload_flag
25999reload_cmds=$lt_reload_cmds
26000
26001# How to pass a linker flag through the compiler.
26002wl=$lt_lt_prog_compiler_wl_GCJ
26003
26004# Object file suffix (normally "o").
26005objext="$ac_objext"
26006
26007# Old archive suffix (normally "a").
26008libext="$libext"
26009
26010# Shared library suffix (normally ".so").
26011shrext_cmds='$shrext_cmds'
26012
26013# Executable file suffix (normally "").
26014exeext="$exeext"
26015
26016# Additional compiler flags for building library objects.
26017pic_flag=$lt_lt_prog_compiler_pic_GCJ
26018pic_mode=$pic_mode
26019
26020# What is the maximum length of a command?
26021max_cmd_len=$lt_cv_sys_max_cmd_len
26022
26023# Does compiler simultaneously support -c and -o options?
26024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26025
26026# Must we lock files when doing compilation?
26027need_locks=$lt_need_locks
26028
26029# Do we need the lib prefix for modules?
26030need_lib_prefix=$need_lib_prefix
26031
26032# Do we need a version for libraries?
26033need_version=$need_version
26034
26035# Whether dlopen is supported.
26036dlopen_support=$enable_dlopen
26037
26038# Whether dlopen of programs is supported.
26039dlopen_self=$enable_dlopen_self
26040
26041# Whether dlopen of statically linked programs is supported.
26042dlopen_self_static=$enable_dlopen_self_static
26043
26044# Compiler flag to prevent dynamic linking.
26045link_static_flag=$lt_lt_prog_compiler_static_GCJ
26046
26047# Compiler flag to turn off builtin functions.
26048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26049
26050# Compiler flag to allow reflexive dlopens.
26051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26052
26053# Compiler flag to generate shared objects directly from archives.
26054whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26055
26056# Compiler flag to generate thread-safe objects.
26057thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26058
26059# Library versioning type.
26060version_type=$version_type
26061
26062# Format of library name prefix.
26063libname_spec=$lt_libname_spec
26064
26065# List of archive names. First name is the real one, the rest are links.
26066# The last name is the one that the linker finds with -lNAME.
26067library_names_spec=$lt_library_names_spec
26068
26069# The coded name of the library, if different from the real name.
26070soname_spec=$lt_soname_spec
26071
26072# Commands used to build and install an old-style archive.
26073RANLIB=$lt_RANLIB
26074old_archive_cmds=$lt_old_archive_cmds_GCJ
26075old_postinstall_cmds=$lt_old_postinstall_cmds
26076old_postuninstall_cmds=$lt_old_postuninstall_cmds
26077
26078# Create an old-style archive from a shared archive.
26079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26080
26081# Create a temporary old-style archive to link instead of a shared archive.
26082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26083
26084# Commands used to build and install a shared archive.
26085archive_cmds=$lt_archive_cmds_GCJ
26086archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26087postinstall_cmds=$lt_postinstall_cmds
26088postuninstall_cmds=$lt_postuninstall_cmds
26089
26090# Commands used to build a loadable module (assumed same as above if empty)
26091module_cmds=$lt_module_cmds_GCJ
26092module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26093
26094# Commands to strip libraries.
26095old_striplib=$lt_old_striplib
26096striplib=$lt_striplib
26097
26098# Dependencies to place before the objects being linked to create a
26099# shared library.
26100predep_objects=$lt_predep_objects_GCJ
26101
26102# Dependencies to place after the objects being linked to create a
26103# shared library.
26104postdep_objects=$lt_postdep_objects_GCJ
26105
26106# Dependencies to place before the objects being linked to create a
26107# shared library.
26108predeps=$lt_predeps_GCJ
26109
26110# Dependencies to place after the objects being linked to create a
26111# shared library.
26112postdeps=$lt_postdeps_GCJ
26113
26114# The library search path used internally by the compiler when linking
26115# a shared library.
26116compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26117
26118# Method to check whether dependent libraries are shared objects.
26119deplibs_check_method=$lt_deplibs_check_method
26120
26121# Command to use when deplibs_check_method == file_magic.
26122file_magic_cmd=$lt_file_magic_cmd
26123
26124# Flag that allows shared libraries with undefined symbols to be built.
26125allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26126
26127# Flag that forces no undefined symbols.
26128no_undefined_flag=$lt_no_undefined_flag_GCJ
26129
26130# Commands used to finish a libtool library installation in a directory.
26131finish_cmds=$lt_finish_cmds
26132
26133# Same as above, but a single script fragment to be evaled but not shown.
26134finish_eval=$lt_finish_eval
26135
26136# Take the output of nm and produce a listing of raw symbols and C names.
26137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26138
26139# Transform the output of nm in a proper C declaration
26140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26141
26142# Transform the output of nm in a C name address pair
26143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26144
26145# This is the shared library runtime path variable.
26146runpath_var=$runpath_var
26147
26148# This is the shared library path variable.
26149shlibpath_var=$shlibpath_var
26150
26151# Is shlibpath searched before the hard-coded library search path?
26152shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26153
26154# How to hardcode a shared library path into an executable.
26155hardcode_action=$hardcode_action_GCJ
26156
26157# Whether we should hardcode library paths into libraries.
26158hardcode_into_libs=$hardcode_into_libs
26159
26160# Flag to hardcode \$libdir into a binary during linking.
26161# This must work even if \$libdir does not exist.
26162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26163
26164# If ld is used when linking, flag to hardcode \$libdir into
26165# a binary during linking. This must work even if \$libdir does
26166# not exist.
26167hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26168
26169# Whether we need a single -rpath flag with a separated argument.
26170hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26171
26172# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26173# resulting binary.
26174hardcode_direct=$hardcode_direct_GCJ
26175
26176# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26177# resulting binary.
26178hardcode_minus_L=$hardcode_minus_L_GCJ
26179
26180# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26181# the resulting binary.
26182hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26183
26184# Set to yes if building a shared library automatically hardcodes DIR into the library
26185# and all subsequent libraries and executables linked against it.
26186hardcode_automatic=$hardcode_automatic_GCJ
26187
26188# Variables whose values should be saved in libtool wrapper scripts and
26189# restored at relink time.
26190variables_saved_for_relink="$variables_saved_for_relink"
26191
26192# Whether libtool must link a program against all its dependency libraries.
26193link_all_deplibs=$link_all_deplibs_GCJ
26194
26195# Compile-time system search path for libraries
26196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26197
26198# Run-time system search path for libraries
26199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26200
26201# Fix the shell variable \$srcfile for the compiler.
26202fix_srcfile_path="$fix_srcfile_path_GCJ"
26203
26204# Set to yes if exported symbols are required.
26205always_export_symbols=$always_export_symbols_GCJ
26206
26207# The commands to list exported symbols.
26208export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26209
26210# The commands to extract the exported symbol list from a shared archive.
26211extract_expsyms_cmds=$lt_extract_expsyms_cmds
26212
26213# Symbols that should not be listed in the preloaded symbols.
26214exclude_expsyms=$lt_exclude_expsyms_GCJ
26215
26216# Symbols that must always be exported.
26217include_expsyms=$lt_include_expsyms_GCJ
26218
26219# ### END LIBTOOL TAG CONFIG: $tagname
26220
26221__EOF__
26222
26223
26224else
26225 # If there is no Makefile yet, we rely on a make rule to execute
26226 # `config.status --recheck' to rerun these tests and create the
26227 # libtool script then.
26228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26229 if test -f "$ltmain_in"; then
26230 test -f Makefile && make "$ltmain"
26231 fi
26232fi
26233
26234
26235ac_ext=c
26236ac_cpp='$CPP $CPPFLAGS'
26237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26239ac_compiler_gnu=$ac_cv_c_compiler_gnu
26240
26241CC="$lt_save_CC"
26242
26243 else
26244 tagname=""
26245 fi
26246 ;;
26247
26248 RC)
26249 ac_ext=c
26250ac_cpp='$CPP $CPPFLAGS'
26251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26253ac_compiler_gnu=$ac_cv_c_compiler_gnu
26254
26255
26256# Source file extension for RC test sources.
26257ac_ext=rc
26258
26259# Object file extension for compiled RC test sources.
26260objext=o
26261objext_RC=$objext
26262
26263# Code to be used in simple compile tests
26264lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26265
26266# Code to be used in simple link tests
26267lt_simple_link_test_code="$lt_simple_compile_test_code"
26268
26269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26270
26271# If no C compiler was specified, use CC.
26272LTCC=${LTCC-"$CC"}
26273
26274# If no C compiler flags were specified, use CFLAGS.
26275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26276
26277# Allow CC to be a program name with arguments.
26278compiler=$CC
26279
26280
26281# save warnings/boilerplate of simple test code
26282ac_outfile=conftest.$ac_objext
26283printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26285_lt_compiler_boilerplate=`cat conftest.err`
26286$rm conftest*
26287
26288ac_outfile=conftest.$ac_objext
26289printf "$lt_simple_link_test_code" >conftest.$ac_ext
26290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26291_lt_linker_boilerplate=`cat conftest.err`
26292$rm conftest*
26293
26294
26295# Allow CC to be a program name with arguments.
26296lt_save_CC="$CC"
26297CC=${RC-"windres"}
26298compiler=$CC
26299compiler_RC=$CC
26300for cc_temp in $compiler""; do
26301 case $cc_temp in
26302 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26303 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26304 \-*) ;;
26305 *) break;;
26306 esac
26307done
26308cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26309
26310lt_cv_prog_compiler_c_o_RC=yes
26311
26312# The else clause should only fire when bootstrapping the
26313# libtool distribution, otherwise you forgot to ship ltmain.sh
26314# with your package, and you will get complaints that there are
26315# no rules to generate ltmain.sh.
26316if test -f "$ltmain"; then
26317 # See if we are running on zsh, and set the options which allow our commands through
26318 # without removal of \ escapes.
26319 if test -n "${ZSH_VERSION+set}" ; then
26320 setopt NO_GLOB_SUBST
26321 fi
26322 # Now quote all the things that may contain metacharacters while being
26323 # careful not to overquote the AC_SUBSTed values. We take copies of the
26324 # variables and quote the copies for generation of the libtool script.
26325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26326 SED SHELL STRIP \
26327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26329 deplibs_check_method reload_flag reload_cmds need_locks \
26330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26331 lt_cv_sys_global_symbol_to_c_name_address \
26332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26333 old_postinstall_cmds old_postuninstall_cmds \
26334 compiler_RC \
26335 CC_RC \
26336 LD_RC \
26337 lt_prog_compiler_wl_RC \
26338 lt_prog_compiler_pic_RC \
26339 lt_prog_compiler_static_RC \
26340 lt_prog_compiler_no_builtin_flag_RC \
26341 export_dynamic_flag_spec_RC \
26342 thread_safe_flag_spec_RC \
26343 whole_archive_flag_spec_RC \
26344 enable_shared_with_static_runtimes_RC \
26345 old_archive_cmds_RC \
26346 old_archive_from_new_cmds_RC \
26347 predep_objects_RC \
26348 postdep_objects_RC \
26349 predeps_RC \
26350 postdeps_RC \
26351 compiler_lib_search_path_RC \
26352 archive_cmds_RC \
26353 archive_expsym_cmds_RC \
26354 postinstall_cmds_RC \
26355 postuninstall_cmds_RC \
26356 old_archive_from_expsyms_cmds_RC \
26357 allow_undefined_flag_RC \
26358 no_undefined_flag_RC \
26359 export_symbols_cmds_RC \
26360 hardcode_libdir_flag_spec_RC \
26361 hardcode_libdir_flag_spec_ld_RC \
26362 hardcode_libdir_separator_RC \
26363 hardcode_automatic_RC \
26364 module_cmds_RC \
26365 module_expsym_cmds_RC \
26366 lt_cv_prog_compiler_c_o_RC \
26367 exclude_expsyms_RC \
26368 include_expsyms_RC; do
26369
26370 case $var in
26371 old_archive_cmds_RC | \
26372 old_archive_from_new_cmds_RC | \
26373 archive_cmds_RC | \
26374 archive_expsym_cmds_RC | \
26375 module_cmds_RC | \
26376 module_expsym_cmds_RC | \
26377 old_archive_from_expsyms_cmds_RC | \
26378 export_symbols_cmds_RC | \
26379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26380 postinstall_cmds | postuninstall_cmds | \
26381 old_postinstall_cmds | old_postuninstall_cmds | \
26382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26383 # Double-quote double-evaled strings.
26384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26385 ;;
26386 *)
26387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26388 ;;
26389 esac
26390 done
26391
26392 case $lt_echo in
26393 *'\$0 --fallback-echo"')
26394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26395 ;;
26396 esac
26397
26398cfgfile="$ofile"
26399
26400 cat <<__EOF__ >> "$cfgfile"
26401# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26402
26403# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26404
26405# Shell to use when invoking shell scripts.
26406SHELL=$lt_SHELL
26407
26408# Whether or not to build shared libraries.
26409build_libtool_libs=$enable_shared
26410
26411# Whether or not to build static libraries.
26412build_old_libs=$enable_static
26413
26414# Whether or not to add -lc for building shared libraries.
26415build_libtool_need_lc=$archive_cmds_need_lc_RC
26416
26417# Whether or not to disallow shared libs when runtime libs are static
26418allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26419
26420# Whether or not to optimize for fast installation.
26421fast_install=$enable_fast_install
26422
26423# The host system.
26424host_alias=$host_alias
26425host=$host
26426host_os=$host_os
26427
26428# The build system.
26429build_alias=$build_alias
26430build=$build
26431build_os=$build_os
26432
26433# An echo program that does not interpret backslashes.
26434echo=$lt_echo
26435
26436# The archiver.
26437AR=$lt_AR
26438AR_FLAGS=$lt_AR_FLAGS
26439
26440# A C compiler.
26441LTCC=$lt_LTCC
26442
26443# LTCC compiler flags.
26444LTCFLAGS=$lt_LTCFLAGS
26445
26446# A language-specific compiler.
26447CC=$lt_compiler_RC
26448
26449# Is the compiler the GNU C compiler?
26450with_gcc=$GCC_RC
26451
26452# An ERE matcher.
26453EGREP=$lt_EGREP
26454
26455# The linker used to build libraries.
26456LD=$lt_LD_RC
26457
26458# Whether we need hard or soft links.
26459LN_S=$lt_LN_S
26460
26461# A BSD-compatible nm program.
26462NM=$lt_NM
26463
26464# A symbol stripping program
26465STRIP=$lt_STRIP
26466
26467# Used to examine libraries when file_magic_cmd begins "file"
26468MAGIC_CMD=$MAGIC_CMD
26469
26470# Used on cygwin: DLL creation program.
26471DLLTOOL="$DLLTOOL"
26472
26473# Used on cygwin: object dumper.
26474OBJDUMP="$OBJDUMP"
26475
26476# Used on cygwin: assembler.
26477AS="$AS"
26478
26479# The name of the directory that contains temporary libtool files.
26480objdir=$objdir
26481
26482# How to create reloadable object files.
26483reload_flag=$lt_reload_flag
26484reload_cmds=$lt_reload_cmds
26485
26486# How to pass a linker flag through the compiler.
26487wl=$lt_lt_prog_compiler_wl_RC
26488
26489# Object file suffix (normally "o").
26490objext="$ac_objext"
26491
26492# Old archive suffix (normally "a").
26493libext="$libext"
26494
26495# Shared library suffix (normally ".so").
26496shrext_cmds='$shrext_cmds'
26497
26498# Executable file suffix (normally "").
26499exeext="$exeext"
26500
26501# Additional compiler flags for building library objects.
26502pic_flag=$lt_lt_prog_compiler_pic_RC
26503pic_mode=$pic_mode
26504
26505# What is the maximum length of a command?
26506max_cmd_len=$lt_cv_sys_max_cmd_len
26507
26508# Does compiler simultaneously support -c and -o options?
26509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26510
26511# Must we lock files when doing compilation?
26512need_locks=$lt_need_locks
26513
26514# Do we need the lib prefix for modules?
26515need_lib_prefix=$need_lib_prefix
26516
26517# Do we need a version for libraries?
26518need_version=$need_version
26519
26520# Whether dlopen is supported.
26521dlopen_support=$enable_dlopen
26522
26523# Whether dlopen of programs is supported.
26524dlopen_self=$enable_dlopen_self
26525
26526# Whether dlopen of statically linked programs is supported.
26527dlopen_self_static=$enable_dlopen_self_static
26528
26529# Compiler flag to prevent dynamic linking.
26530link_static_flag=$lt_lt_prog_compiler_static_RC
26531
26532# Compiler flag to turn off builtin functions.
26533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26534
26535# Compiler flag to allow reflexive dlopens.
26536export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26537
26538# Compiler flag to generate shared objects directly from archives.
26539whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26540
26541# Compiler flag to generate thread-safe objects.
26542thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26543
26544# Library versioning type.
26545version_type=$version_type
26546
26547# Format of library name prefix.
26548libname_spec=$lt_libname_spec
26549
26550# List of archive names. First name is the real one, the rest are links.
26551# The last name is the one that the linker finds with -lNAME.
26552library_names_spec=$lt_library_names_spec
26553
26554# The coded name of the library, if different from the real name.
26555soname_spec=$lt_soname_spec
26556
26557# Commands used to build and install an old-style archive.
26558RANLIB=$lt_RANLIB
26559old_archive_cmds=$lt_old_archive_cmds_RC
26560old_postinstall_cmds=$lt_old_postinstall_cmds
26561old_postuninstall_cmds=$lt_old_postuninstall_cmds
26562
26563# Create an old-style archive from a shared archive.
26564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26565
26566# Create a temporary old-style archive to link instead of a shared archive.
26567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26568
26569# Commands used to build and install a shared archive.
26570archive_cmds=$lt_archive_cmds_RC
26571archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26572postinstall_cmds=$lt_postinstall_cmds
26573postuninstall_cmds=$lt_postuninstall_cmds
26574
26575# Commands used to build a loadable module (assumed same as above if empty)
26576module_cmds=$lt_module_cmds_RC
26577module_expsym_cmds=$lt_module_expsym_cmds_RC
26578
26579# Commands to strip libraries.
26580old_striplib=$lt_old_striplib
26581striplib=$lt_striplib
26582
26583# Dependencies to place before the objects being linked to create a
26584# shared library.
26585predep_objects=$lt_predep_objects_RC
26586
26587# Dependencies to place after the objects being linked to create a
26588# shared library.
26589postdep_objects=$lt_postdep_objects_RC
26590
26591# Dependencies to place before the objects being linked to create a
26592# shared library.
26593predeps=$lt_predeps_RC
26594
26595# Dependencies to place after the objects being linked to create a
26596# shared library.
26597postdeps=$lt_postdeps_RC
26598
26599# The library search path used internally by the compiler when linking
26600# a shared library.
26601compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26602
26603# Method to check whether dependent libraries are shared objects.
26604deplibs_check_method=$lt_deplibs_check_method
26605
26606# Command to use when deplibs_check_method == file_magic.
26607file_magic_cmd=$lt_file_magic_cmd
26608
26609# Flag that allows shared libraries with undefined symbols to be built.
26610allow_undefined_flag=$lt_allow_undefined_flag_RC
26611
26612# Flag that forces no undefined symbols.
26613no_undefined_flag=$lt_no_undefined_flag_RC
26614
26615# Commands used to finish a libtool library installation in a directory.
26616finish_cmds=$lt_finish_cmds
26617
26618# Same as above, but a single script fragment to be evaled but not shown.
26619finish_eval=$lt_finish_eval
26620
26621# Take the output of nm and produce a listing of raw symbols and C names.
26622global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26623
26624# Transform the output of nm in a proper C declaration
26625global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26626
26627# Transform the output of nm in a C name address pair
26628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26629
26630# This is the shared library runtime path variable.
26631runpath_var=$runpath_var
26632
26633# This is the shared library path variable.
26634shlibpath_var=$shlibpath_var
26635
26636# Is shlibpath searched before the hard-coded library search path?
26637shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26638
26639# How to hardcode a shared library path into an executable.
26640hardcode_action=$hardcode_action_RC
26641
26642# Whether we should hardcode library paths into libraries.
26643hardcode_into_libs=$hardcode_into_libs
26644
26645# Flag to hardcode \$libdir into a binary during linking.
26646# This must work even if \$libdir does not exist.
26647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26648
26649# If ld is used when linking, flag to hardcode \$libdir into
26650# a binary during linking. This must work even if \$libdir does
26651# not exist.
26652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26653
26654# Whether we need a single -rpath flag with a separated argument.
26655hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26656
26657# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26658# resulting binary.
26659hardcode_direct=$hardcode_direct_RC
26660
26661# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26662# resulting binary.
26663hardcode_minus_L=$hardcode_minus_L_RC
26664
26665# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26666# the resulting binary.
26667hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26668
26669# Set to yes if building a shared library automatically hardcodes DIR into the library
26670# and all subsequent libraries and executables linked against it.
26671hardcode_automatic=$hardcode_automatic_RC
26672
26673# Variables whose values should be saved in libtool wrapper scripts and
26674# restored at relink time.
26675variables_saved_for_relink="$variables_saved_for_relink"
26676
26677# Whether libtool must link a program against all its dependency libraries.
26678link_all_deplibs=$link_all_deplibs_RC
26679
26680# Compile-time system search path for libraries
26681sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26682
26683# Run-time system search path for libraries
26684sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26685
26686# Fix the shell variable \$srcfile for the compiler.
26687fix_srcfile_path="$fix_srcfile_path_RC"
26688
26689# Set to yes if exported symbols are required.
26690always_export_symbols=$always_export_symbols_RC
26691
26692# The commands to list exported symbols.
26693export_symbols_cmds=$lt_export_symbols_cmds_RC
26694
26695# The commands to extract the exported symbol list from a shared archive.
26696extract_expsyms_cmds=$lt_extract_expsyms_cmds
26697
26698# Symbols that should not be listed in the preloaded symbols.
26699exclude_expsyms=$lt_exclude_expsyms_RC
26700
26701# Symbols that must always be exported.
26702include_expsyms=$lt_include_expsyms_RC
26703
26704# ### END LIBTOOL TAG CONFIG: $tagname
26705
26706__EOF__
26707
26708
26709else
26710 # If there is no Makefile yet, we rely on a make rule to execute
26711 # `config.status --recheck' to rerun these tests and create the
26712 # libtool script then.
26713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26714 if test -f "$ltmain_in"; then
26715 test -f Makefile && make "$ltmain"
26716 fi
26717fi
26718
26719
26720ac_ext=c
26721ac_cpp='$CPP $CPPFLAGS'
26722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26724ac_compiler_gnu=$ac_cv_c_compiler_gnu
26725
26726CC="$lt_save_CC"
26727
26728 ;;
26729
26730 *)
26731 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26732echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26733 { (exit 1); exit 1; }; }
26734 ;;
26735 esac
26736
26737 # Append the new tag name to the list of available tags.
26738 if test -n "$tagname" ; then
26739 available_tags="$available_tags $tagname"
26740 fi
26741 fi
26742 done
26743 IFS="$lt_save_ifs"
26744
26745 # Now substitute the updated list of available tags.
26746 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26747 mv "${ofile}T" "$ofile"
26748 chmod +x "$ofile"
26749 else
26750 rm -f "${ofile}T"
26751 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26752echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26753 { (exit 1); exit 1; }; }
26754 fi
26755fi
26756
26757
26758
26759# This can be used to rebuild libtool when needed
26760LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26761
26762# Always use our own libtool.
26763LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26764
26765# Prevent multiple expansion
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787if test "$lt_cv_dlopen_self" = "yes" ; then
26788
26789cat >>confdefs.h <<\_ACEOF
26790#define CAN_DLOPEN_SELF 1
26791_ACEOF
26792
26793fi
26794
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026795if test "$WITH_LLVMGCCDIR" = "default" ; then
26796 LLVMGCC="llvm-gcc${EXEEXT}"
26797 LLVMGXX="llvm-g++${EXEEXT}"
26798 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26799set dummy $LLVMGCC; ac_word=$2
26800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26802if test "${ac_cv_path_LLVMGCC+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804else
26805 case $LLVMGCC in
26806 [\\/]* | ?:[\\/]*)
26807 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26808 ;;
26809 *)
26810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26811for as_dir in $PATH
26812do
26813 IFS=$as_save_IFS
26814 test -z "$as_dir" && as_dir=.
26815 for ac_exec_ext in '' $ac_executable_extensions; do
26816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26817 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26819 break 2
26820 fi
26821done
26822done
26823IFS=$as_save_IFS
26824
26825 ;;
26826esac
26827fi
26828LLVMGCC=$ac_cv_path_LLVMGCC
26829if test -n "$LLVMGCC"; then
26830 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26831echo "${ECHO_T}$LLVMGCC" >&6; }
26832else
26833 { echo "$as_me:$LINENO: result: no" >&5
26834echo "${ECHO_T}no" >&6; }
26835fi
26836
26837
26838 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26839set dummy $LLVMGXX; ac_word=$2
26840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26842if test "${ac_cv_path_LLVMGXX+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844else
26845 case $LLVMGXX in
26846 [\\/]* | ?:[\\/]*)
26847 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26848 ;;
26849 *)
26850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26851for as_dir in $PATH
26852do
26853 IFS=$as_save_IFS
26854 test -z "$as_dir" && as_dir=.
26855 for ac_exec_ext in '' $ac_executable_extensions; do
26856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26857 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26859 break 2
26860 fi
26861done
26862done
26863IFS=$as_save_IFS
26864
26865 ;;
26866esac
26867fi
26868LLVMGXX=$ac_cv_path_LLVMGXX
26869if test -n "$LLVMGXX"; then
26870 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26871echo "${ECHO_T}$LLVMGXX" >&6; }
26872else
26873 { echo "$as_me:$LINENO: result: no" >&5
26874echo "${ECHO_T}no" >&6; }
26875fi
26876
26877
26878else
26879 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26880 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26881 LLVMGCC=$LLVMGCC
26882
26883 LLVMGXX=$LLVMGXX
26884
26885fi
26886
26887{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26888echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26889
26890ICC=no
26891IXX=no
26892case $CC in
26893 icc*|icpc*)
26894 ICC=yes
26895 IXX=yes
26896 ;;
26897 *)
26898 ;;
26899esac
26900
26901if test "$GCC" != "yes" && test "$ICC" != "yes"
26902then
26903 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26904echo "$as_me: error: gcc|icc required but not found" >&2;}
26905 { (exit 1); exit 1; }; }
26906fi
26907
26908if test "$GXX" != "yes" && test "$IXX" != "yes"
26909then
26910 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26911echo "$as_me: error: g++|icc required but not found" >&2;}
26912 { (exit 1); exit 1; }; }
26913fi
26914
26915if test "$GCC" = "yes"
26916then
26917 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26918 if test "$gccmajor" -lt "3"
26919 then
26920 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26921echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26922 { (exit 1); exit 1; }; }
26923 fi
26924fi
26925
26926if test -z "$llvm_cv_gnu_make_command"
26927then
26928 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26929echo "$as_me: error: GNU Make required but not found" >&2;}
26930 { (exit 1); exit 1; }; }
26931fi
26932
26933{ echo "$as_me:$LINENO: result: ok" >&5
26934echo "${ECHO_T}ok" >&6; }
26935
26936
26937
26938{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26939echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26940if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943 ac_check_lib_save_LIBS=$LIBS
26944LIBS="-lelf $LIBS"
26945cat >conftest.$ac_ext <<_ACEOF
26946/* confdefs.h. */
26947_ACEOF
26948cat confdefs.h >>conftest.$ac_ext
26949cat >>conftest.$ac_ext <<_ACEOF
26950/* end confdefs.h. */
26951
26952/* Override any GCC internal prototype to avoid an error.
26953 Use char because int might match the return type of a GCC
26954 builtin and then its argument prototype would still apply. */
26955#ifdef __cplusplus
26956extern "C"
26957#endif
26958char elf_begin ();
26959int
26960main ()
26961{
26962return elf_begin ();
26963 ;
26964 return 0;
26965}
26966_ACEOF
26967rm -f conftest.$ac_objext conftest$ac_exeext
26968if { (ac_try="$ac_link"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_link") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest$ac_exeext'
26992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
27001 ac_cv_lib_elf_elf_begin=yes
27002else
27003 echo "$as_me: failed program was:" >&5
27004sed 's/^/| /' conftest.$ac_ext >&5
27005
27006 ac_cv_lib_elf_elf_begin=no
27007fi
27008
27009rm -f core conftest.err conftest.$ac_objext \
27010 conftest$ac_exeext conftest.$ac_ext
27011LIBS=$ac_check_lib_save_LIBS
27012fi
27013{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27014echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27015if test $ac_cv_lib_elf_elf_begin = yes; then
27016 cat >>confdefs.h <<_ACEOF
27017#define HAVE_LIBELF 1
27018_ACEOF
27019
27020 LIBS="-lelf $LIBS"
27021
27022fi
27023
27024
27025{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27026echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27027if test "${ac_cv_lib_m_sin+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 ac_check_lib_save_LIBS=$LIBS
27031LIBS="-lm $LIBS"
27032cat >conftest.$ac_ext <<_ACEOF
27033/* confdefs.h. */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h. */
27038
27039/* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
27042#ifdef __cplusplus
27043extern "C"
27044#endif
27045char sin ();
27046int
27047main ()
27048{
27049return sin ();
27050 ;
27051 return 0;
27052}
27053_ACEOF
27054rm -f conftest.$ac_objext conftest$ac_exeext
27055if { (ac_try="$ac_link"
27056case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27059esac
27060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_link") 2>conftest.er1
27062 ac_status=$?
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
27079 { (case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27082esac
27083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_try") 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_lib_m_sin=yes
27089else
27090 echo "$as_me: failed program was:" >&5
27091sed 's/^/| /' conftest.$ac_ext >&5
27092
27093 ac_cv_lib_m_sin=no
27094fi
27095
27096rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27098LIBS=$ac_check_lib_save_LIBS
27099fi
27100{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27101echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27102if test $ac_cv_lib_m_sin = yes; then
27103 cat >>confdefs.h <<_ACEOF
27104#define HAVE_LIBM 1
27105_ACEOF
27106
27107 LIBS="-lm $LIBS"
27108
27109fi
27110
27111if test "$llvm_cv_os_type" = "MingW" ; then
27112
27113{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27114echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27115if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-limagehlp $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
27127
27128int
27129main ()
27130{
27131return main ();
27132 ;
27133 return 0;
27134}
27135_ACEOF
27136rm -f conftest.$ac_objext conftest$ac_exeext
27137if { (ac_try="$ac_link"
27138case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27141esac
27142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_link") 2>conftest.er1
27144 ac_status=$?
27145 grep -v '^ *+' conftest.er1 >conftest.err
27146 rm -f conftest.er1
27147 cat conftest.err >&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
27150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27151 { (case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27154esac
27155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_try") 2>&5
27157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; } &&
27160 { ac_try='test -s conftest$ac_exeext'
27161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164esac
27165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
27167 ac_status=$?
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
27170 ac_cv_lib_imagehlp_main=yes
27171else
27172 echo "$as_me: failed program was:" >&5
27173sed 's/^/| /' conftest.$ac_ext >&5
27174
27175 ac_cv_lib_imagehlp_main=no
27176fi
27177
27178rm -f core conftest.err conftest.$ac_objext \
27179 conftest$ac_exeext conftest.$ac_ext
27180LIBS=$ac_check_lib_save_LIBS
27181fi
27182{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27183echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27184if test $ac_cv_lib_imagehlp_main = yes; then
27185 cat >>confdefs.h <<_ACEOF
27186#define HAVE_LIBIMAGEHLP 1
27187_ACEOF
27188
27189 LIBS="-limagehlp $LIBS"
27190
27191fi
27192
27193
27194{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27195echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27196if test "${ac_cv_lib_psapi_main+set}" = set; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199 ac_check_lib_save_LIBS=$LIBS
27200LIBS="-lpsapi $LIBS"
27201cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h. */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h. */
27207
27208
27209int
27210main ()
27211{
27212return main ();
27213 ;
27214 return 0;
27215}
27216_ACEOF
27217rm -f conftest.$ac_objext conftest$ac_exeext
27218if { (ac_try="$ac_link"
27219case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27222esac
27223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27224 (eval "$ac_link") 2>conftest.er1
27225 ac_status=$?
27226 grep -v '^ *+' conftest.er1 >conftest.err
27227 rm -f conftest.er1
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27232 { (case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27235esac
27236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_try") 2>&5
27238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest$ac_exeext'
27242 { (case "(($ac_try" in
27243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244 *) ac_try_echo=$ac_try;;
27245esac
27246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247 (eval "$ac_try") 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_lib_psapi_main=yes
27252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 ac_cv_lib_psapi_main=no
27257fi
27258
27259rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
27261LIBS=$ac_check_lib_save_LIBS
27262fi
27263{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27264echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27265if test $ac_cv_lib_psapi_main = yes; then
27266 cat >>confdefs.h <<_ACEOF
27267#define HAVE_LIBPSAPI 1
27268_ACEOF
27269
27270 LIBS="-lpsapi $LIBS"
27271
27272fi
27273
27274fi
27275
27276{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27277echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27278if test "${ac_cv_search_lt_dlopen+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280else
27281 ac_func_search_save_LIBS=$LIBS
27282cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h. */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h. */
27288
27289/* Override any GCC internal prototype to avoid an error.
27290 Use char because int might match the return type of a GCC
27291 builtin and then its argument prototype would still apply. */
27292#ifdef __cplusplus
27293extern "C"
27294#endif
27295char lt_dlopen ();
27296int
27297main ()
27298{
27299return lt_dlopen ();
27300 ;
27301 return 0;
27302}
27303_ACEOF
27304for ac_lib in '' ltdl; do
27305 if test -z "$ac_lib"; then
27306 ac_res="none required"
27307 else
27308 ac_res=-l$ac_lib
27309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27310 fi
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312if { (ac_try="$ac_link"
27313case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316esac
27317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_link") 2>conftest.er1
27319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27326 { (case "(($ac_try" in
27327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27329esac
27330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_try") 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; } &&
27335 { ac_try='test -s conftest$ac_exeext'
27336 { (case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339esac
27340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_try") 2>&5
27342 ac_status=$?
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
27345 ac_cv_search_lt_dlopen=$ac_res
27346else
27347 echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
27350
27351fi
27352
27353rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext
27355 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27356 break
27357fi
27358done
27359if test "${ac_cv_search_lt_dlopen+set}" = set; then
27360 :
27361else
27362 ac_cv_search_lt_dlopen=no
27363fi
27364rm conftest.$ac_ext
27365LIBS=$ac_func_search_save_LIBS
27366fi
27367{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27368echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27369ac_res=$ac_cv_search_lt_dlopen
27370if test "$ac_res" != no; then
27371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27372
27373cat >>confdefs.h <<\_ACEOF
27374#define HAVE_LT_DLOPEN 1
27375_ACEOF
27376
27377else
27378 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27379 not be available" >&5
27380echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27381 not be available" >&2;}
27382fi
27383
27384
27385{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27386echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27387if test "${ac_cv_search_dlopen+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389else
27390 ac_func_search_save_LIBS=$LIBS
27391cat >conftest.$ac_ext <<_ACEOF
27392/* confdefs.h. */
27393_ACEOF
27394cat confdefs.h >>conftest.$ac_ext
27395cat >>conftest.$ac_ext <<_ACEOF
27396/* end confdefs.h. */
27397
27398/* Override any GCC internal prototype to avoid an error.
27399 Use char because int might match the return type of a GCC
27400 builtin and then its argument prototype would still apply. */
27401#ifdef __cplusplus
27402extern "C"
27403#endif
27404char dlopen ();
27405int
27406main ()
27407{
27408return dlopen ();
27409 ;
27410 return 0;
27411}
27412_ACEOF
27413for ac_lib in '' dl; do
27414 if test -z "$ac_lib"; then
27415 ac_res="none required"
27416 else
27417 ac_res=-l$ac_lib
27418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27419 fi
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421if { (ac_try="$ac_link"
27422case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
27428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438esac
27439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_search_dlopen=$ac_res
27455else
27456 echo "$as_me: failed program was:" >&5
27457sed 's/^/| /' conftest.$ac_ext >&5
27458
27459
27460fi
27461
27462rm -f core conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext
27464 if test "${ac_cv_search_dlopen+set}" = set; then
27465 break
27466fi
27467done
27468if test "${ac_cv_search_dlopen+set}" = set; then
27469 :
27470else
27471 ac_cv_search_dlopen=no
27472fi
27473rm conftest.$ac_ext
27474LIBS=$ac_func_search_save_LIBS
27475fi
27476{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27477echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27478ac_res=$ac_cv_search_dlopen
27479if test "$ac_res" != no; then
27480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27481
27482cat >>confdefs.h <<\_ACEOF
27483#define HAVE_DLOPEN 1
27484_ACEOF
27485
27486else
27487 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27488echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27489fi
27490
27491
27492{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27493echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27494if test "${ac_cv_search_mallinfo+set}" = set; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27496else
27497 ac_func_search_save_LIBS=$LIBS
27498cat >conftest.$ac_ext <<_ACEOF
27499/* confdefs.h. */
27500_ACEOF
27501cat confdefs.h >>conftest.$ac_ext
27502cat >>conftest.$ac_ext <<_ACEOF
27503/* end confdefs.h. */
27504
27505/* Override any GCC internal prototype to avoid an error.
27506 Use char because int might match the return type of a GCC
27507 builtin and then its argument prototype would still apply. */
27508#ifdef __cplusplus
27509extern "C"
27510#endif
27511char mallinfo ();
27512int
27513main ()
27514{
27515return mallinfo ();
27516 ;
27517 return 0;
27518}
27519_ACEOF
27520for ac_lib in '' malloc; do
27521 if test -z "$ac_lib"; then
27522 ac_res="none required"
27523 else
27524 ac_res=-l$ac_lib
27525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27526 fi
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528if { (ac_try="$ac_link"
27529case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532esac
27533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534 (eval "$ac_link") 2>conftest.er1
27535 ac_status=$?
27536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
27541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; } &&
27551 { ac_try='test -s conftest$ac_exeext'
27552 { (case "(($ac_try" in
27553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554 *) ac_try_echo=$ac_try;;
27555esac
27556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557 (eval "$ac_try") 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 ac_cv_search_mallinfo=$ac_res
27562else
27563 echo "$as_me: failed program was:" >&5
27564sed 's/^/| /' conftest.$ac_ext >&5
27565
27566
27567fi
27568
27569rm -f core conftest.err conftest.$ac_objext \
27570 conftest$ac_exeext
27571 if test "${ac_cv_search_mallinfo+set}" = set; then
27572 break
27573fi
27574done
27575if test "${ac_cv_search_mallinfo+set}" = set; then
27576 :
27577else
27578 ac_cv_search_mallinfo=no
27579fi
27580rm conftest.$ac_ext
27581LIBS=$ac_func_search_save_LIBS
27582fi
27583{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27584echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27585ac_res=$ac_cv_search_mallinfo
27586if test "$ac_res" != no; then
27587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27588
27589cat >>confdefs.h <<\_ACEOF
27590#define HAVE_MALLINFO 1
27591_ACEOF
27592
27593fi
27594
27595
27596if test "$ENABLE_THREADS" -eq 1 ; then
27597
27598{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27599echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27600if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27602else
27603 ac_check_lib_save_LIBS=$LIBS
27604LIBS="-lpthread $LIBS"
27605cat >conftest.$ac_ext <<_ACEOF
27606/* confdefs.h. */
27607_ACEOF
27608cat confdefs.h >>conftest.$ac_ext
27609cat >>conftest.$ac_ext <<_ACEOF
27610/* end confdefs.h. */
27611
27612/* Override any GCC internal prototype to avoid an error.
27613 Use char because int might match the return type of a GCC
27614 builtin and then its argument prototype would still apply. */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char pthread_mutex_init ();
27619int
27620main ()
27621{
27622return pthread_mutex_init ();
27623 ;
27624 return 0;
27625}
27626_ACEOF
27627rm -f conftest.$ac_objext conftest$ac_exeext
27628if { (ac_try="$ac_link"
27629case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632esac
27633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_link") 2>conftest.er1
27635 ac_status=$?
27636 grep -v '^ *+' conftest.er1 >conftest.err
27637 rm -f conftest.er1
27638 cat conftest.err >&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } &&
27641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27645esac
27646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest$ac_exeext'
27652 { (case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_try") 2>&5
27658 ac_status=$?
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; }; then
27661 ac_cv_lib_pthread_pthread_mutex_init=yes
27662else
27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 ac_cv_lib_pthread_pthread_mutex_init=no
27667fi
27668
27669rm -f core conftest.err conftest.$ac_objext \
27670 conftest$ac_exeext conftest.$ac_ext
27671LIBS=$ac_check_lib_save_LIBS
27672fi
27673{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27674echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27675if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27676 cat >>confdefs.h <<_ACEOF
27677#define HAVE_LIBPTHREAD 1
27678_ACEOF
27679
27680 LIBS="-lpthread $LIBS"
27681
27682fi
27683
27684 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27685echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27686if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689 ac_func_search_save_LIBS=$LIBS
27690cat >conftest.$ac_ext <<_ACEOF
27691/* confdefs.h. */
27692_ACEOF
27693cat confdefs.h >>conftest.$ac_ext
27694cat >>conftest.$ac_ext <<_ACEOF
27695/* end confdefs.h. */
27696
27697/* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
27700#ifdef __cplusplus
27701extern "C"
27702#endif
27703char pthread_mutex_lock ();
27704int
27705main ()
27706{
27707return pthread_mutex_lock ();
27708 ;
27709 return 0;
27710}
27711_ACEOF
27712for ac_lib in '' pthread; do
27713 if test -z "$ac_lib"; then
27714 ac_res="none required"
27715 else
27716 ac_res=-l$ac_lib
27717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27718 fi
27719 rm -f conftest.$ac_objext conftest$ac_exeext
27720if { (ac_try="$ac_link"
27721case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_link") 2>conftest.er1
27727 ac_status=$?
27728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
27733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27734 { (case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737esac
27738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_try") 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; } &&
27743 { ac_try='test -s conftest$ac_exeext'
27744 { (case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27747esac
27748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_try") 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
27753 ac_cv_search_pthread_mutex_lock=$ac_res
27754else
27755 echo "$as_me: failed program was:" >&5
27756sed 's/^/| /' conftest.$ac_ext >&5
27757
27758
27759fi
27760
27761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext
27763 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27764 break
27765fi
27766done
27767if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27768 :
27769else
27770 ac_cv_search_pthread_mutex_lock=no
27771fi
27772rm conftest.$ac_ext
27773LIBS=$ac_func_search_save_LIBS
27774fi
27775{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27776echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27777ac_res=$ac_cv_search_pthread_mutex_lock
27778if test "$ac_res" != no; then
27779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27780
27781cat >>confdefs.h <<\_ACEOF
27782#define HAVE_PTHREAD_MUTEX_LOCK 1
27783_ACEOF
27784
27785fi
27786
27787fi
27788
27789
27790# Check whether --with-udis86 was given.
27791if test "${with_udis86+set}" = set; then
27792 withval=$with_udis86;
27793 USE_UDIS86=1
27794
27795 case "$withval" in
27796 /usr/lib|yes) ;;
27797 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27798 esac
27799
27800{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27801echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27802if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804else
27805 ac_check_lib_save_LIBS=$LIBS
27806LIBS="-ludis86 $LIBS"
27807cat >conftest.$ac_ext <<_ACEOF
27808/* confdefs.h. */
27809_ACEOF
27810cat confdefs.h >>conftest.$ac_ext
27811cat >>conftest.$ac_ext <<_ACEOF
27812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char ud_init ();
27821int
27822main ()
27823{
27824return ud_init ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
27829rm -f conftest.$ac_objext conftest$ac_exeext
27830if { (ac_try="$ac_link"
27831case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27834esac
27835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_link") 2>conftest.er1
27837 ac_status=$?
27838 grep -v '^ *+' conftest.er1 >conftest.err
27839 rm -f conftest.er1
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } &&
27843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27844 { (case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27847esac
27848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849 (eval "$ac_try") 2>&5
27850 ac_status=$?
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); }; } &&
27853 { ac_try='test -s conftest$ac_exeext'
27854 { (case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_try") 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; }; then
27863 ac_cv_lib_udis86_ud_init=yes
27864else
27865 echo "$as_me: failed program was:" >&5
27866sed 's/^/| /' conftest.$ac_ext >&5
27867
27868 ac_cv_lib_udis86_ud_init=no
27869fi
27870
27871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
27873LIBS=$ac_check_lib_save_LIBS
27874fi
27875{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27876echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27877if test $ac_cv_lib_udis86_ud_init = yes; then
27878 cat >>confdefs.h <<_ACEOF
27879#define HAVE_LIBUDIS86 1
27880_ACEOF
27881
27882 LIBS="-ludis86 $LIBS"
27883
27884else
27885
27886 echo "Error! You need to have libudis86 around."
27887 exit -1
27888
27889fi
27890
27891
27892else
27893 USE_UDIS86=0
27894
27895fi
27896
27897
27898cat >>confdefs.h <<_ACEOF
27899#define USE_UDIS86 $USE_UDIS86
27900_ACEOF
27901
27902
27903
27904
27905
27906
27907
27908
27909ac_header_dirent=no
27910for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27911 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27912{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27913echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 cat >conftest.$ac_ext <<_ACEOF
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
27923#include <sys/types.h>
27924#include <$ac_hdr>
27925
27926int
27927main ()
27928{
27929if ((DIR *) 0)
27930return 0;
27931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext
27936if { (ac_try="$ac_compile"
27937case "(($ac_try" in
27938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939 *) ac_try_echo=$ac_try;;
27940esac
27941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27942 (eval "$ac_compile") 2>conftest.er1
27943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
27949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27950 { (case "(($ac_try" in
27951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27953esac
27954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27955 (eval "$ac_try") 2>&5
27956 ac_status=$?
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; } &&
27959 { ac_try='test -s conftest.$ac_objext'
27960 { (case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969 eval "$as_ac_Header=yes"
27970else
27971 echo "$as_me: failed program was:" >&5
27972sed 's/^/| /' conftest.$ac_ext >&5
27973
27974 eval "$as_ac_Header=no"
27975fi
27976
27977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978fi
27979ac_res=`eval echo '${'$as_ac_Header'}'`
27980 { echo "$as_me:$LINENO: result: $ac_res" >&5
27981echo "${ECHO_T}$ac_res" >&6; }
27982if test `eval echo '${'$as_ac_Header'}'` = yes; then
27983 cat >>confdefs.h <<_ACEOF
27984#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27985_ACEOF
27986
27987ac_header_dirent=$ac_hdr; break
27988fi
27989
27990done
27991# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27992if test $ac_header_dirent = dirent.h; then
27993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27994echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27995if test "${ac_cv_search_opendir+set}" = set; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27997else
27998 ac_func_search_save_LIBS=$LIBS
27999cat >conftest.$ac_ext <<_ACEOF
28000/* confdefs.h. */
28001_ACEOF
28002cat confdefs.h >>conftest.$ac_ext
28003cat >>conftest.$ac_ext <<_ACEOF
28004/* end confdefs.h. */
28005
28006/* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012char opendir ();
28013int
28014main ()
28015{
28016return opendir ();
28017 ;
28018 return 0;
28019}
28020_ACEOF
28021for ac_lib in '' dir; do
28022 if test -z "$ac_lib"; then
28023 ac_res="none required"
28024 else
28025 ac_res=-l$ac_lib
28026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28027 fi
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029if { (ac_try="$ac_link"
28030case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033esac
28034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_link") 2>conftest.er1
28036 ac_status=$?
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
28042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28043 { (case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_try") 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest$ac_exeext'
28053 { (case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28056esac
28057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_try") 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; }; then
28062 ac_cv_search_opendir=$ac_res
28063else
28064 echo "$as_me: failed program was:" >&5
28065sed 's/^/| /' conftest.$ac_ext >&5
28066
28067
28068fi
28069
28070rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext
28072 if test "${ac_cv_search_opendir+set}" = set; then
28073 break
28074fi
28075done
28076if test "${ac_cv_search_opendir+set}" = set; then
28077 :
28078else
28079 ac_cv_search_opendir=no
28080fi
28081rm conftest.$ac_ext
28082LIBS=$ac_func_search_save_LIBS
28083fi
28084{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28085echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28086ac_res=$ac_cv_search_opendir
28087if test "$ac_res" != no; then
28088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28089
28090fi
28091
28092else
28093 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28094echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28095if test "${ac_cv_search_opendir+set}" = set; then
28096 echo $ECHO_N "(cached) $ECHO_C" >&6
28097else
28098 ac_func_search_save_LIBS=$LIBS
28099cat >conftest.$ac_ext <<_ACEOF
28100/* confdefs.h. */
28101_ACEOF
28102cat confdefs.h >>conftest.$ac_ext
28103cat >>conftest.$ac_ext <<_ACEOF
28104/* end confdefs.h. */
28105
28106/* Override any GCC internal prototype to avoid an error.
28107 Use char because int might match the return type of a GCC
28108 builtin and then its argument prototype would still apply. */
28109#ifdef __cplusplus
28110extern "C"
28111#endif
28112char opendir ();
28113int
28114main ()
28115{
28116return opendir ();
28117 ;
28118 return 0;
28119}
28120_ACEOF
28121for ac_lib in '' x; do
28122 if test -z "$ac_lib"; then
28123 ac_res="none required"
28124 else
28125 ac_res=-l$ac_lib
28126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28127 fi
28128 rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (ac_try="$ac_link"
28130case "(($ac_try" in
28131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28133esac
28134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135 (eval "$ac_link") 2>conftest.er1
28136 ac_status=$?
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
28142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28143 { (case "(($ac_try" in
28144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145 *) ac_try_echo=$ac_try;;
28146esac
28147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148 (eval "$ac_try") 2>&5
28149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; } &&
28152 { ac_try='test -s conftest$ac_exeext'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 ac_cv_search_opendir=$ac_res
28163else
28164 echo "$as_me: failed program was:" >&5
28165sed 's/^/| /' conftest.$ac_ext >&5
28166
28167
28168fi
28169
28170rm -f core conftest.err conftest.$ac_objext \
28171 conftest$ac_exeext
28172 if test "${ac_cv_search_opendir+set}" = set; then
28173 break
28174fi
28175done
28176if test "${ac_cv_search_opendir+set}" = set; then
28177 :
28178else
28179 ac_cv_search_opendir=no
28180fi
28181rm conftest.$ac_ext
28182LIBS=$ac_func_search_save_LIBS
28183fi
28184{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28185echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28186ac_res=$ac_cv_search_opendir
28187if test "$ac_res" != no; then
28188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28189
28190fi
28191
28192fi
28193
28194{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28195echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28196if test "${ac_cv_header_mmap_anon+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198else
28199 ac_ext=c
28200ac_cpp='$CPP $CPPFLAGS'
28201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28203ac_compiler_gnu=$ac_cv_c_compiler_gnu
28204
28205 cat >conftest.$ac_ext <<_ACEOF
28206/* confdefs.h. */
28207_ACEOF
28208cat confdefs.h >>conftest.$ac_ext
28209cat >>conftest.$ac_ext <<_ACEOF
28210/* end confdefs.h. */
28211#include <sys/mman.h>
28212#include <unistd.h>
28213#include <fcntl.h>
28214int
28215main ()
28216{
28217mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28218 ;
28219 return 0;
28220}
28221_ACEOF
28222rm -f conftest.$ac_objext
28223if { (ac_try="$ac_compile"
28224case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227esac
28228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_compile") 2>conftest.er1
28230 ac_status=$?
28231 grep -v '^ *+' conftest.er1 >conftest.err
28232 rm -f conftest.er1
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
28236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28237 { (case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28240esac
28241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_try") 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; } &&
28246 { ac_try='test -s conftest.$ac_objext'
28247 { (case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250esac
28251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_try") 2>&5
28253 ac_status=$?
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; }; then
28256 ac_cv_header_mmap_anon=yes
28257else
28258 echo "$as_me: failed program was:" >&5
28259sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 ac_cv_header_mmap_anon=no
28262fi
28263
28264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28265 ac_ext=c
28266ac_cpp='$CPP $CPPFLAGS'
28267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269ac_compiler_gnu=$ac_cv_c_compiler_gnu
28270
28271
28272fi
28273{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28274echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28275if test "$ac_cv_header_mmap_anon" = yes; then
28276
28277cat >>confdefs.h <<\_ACEOF
28278#define HAVE_MMAP_ANONYMOUS 1
28279_ACEOF
28280
28281fi
28282
28283{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28284echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28285if test "${ac_cv_header_stat_broken+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287else
28288 cat >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 <sys/types.h>
28295#include <sys/stat.h>
28296
28297#if defined S_ISBLK && defined S_IFDIR
28298# if S_ISBLK (S_IFDIR)
28299You lose.
28300# endif
28301#endif
28302
28303#if defined S_ISBLK && defined S_IFCHR
28304# if S_ISBLK (S_IFCHR)
28305You lose.
28306# endif
28307#endif
28308
28309#if defined S_ISLNK && defined S_IFREG
28310# if S_ISLNK (S_IFREG)
28311You lose.
28312# endif
28313#endif
28314
28315#if defined S_ISSOCK && defined S_IFREG
28316# if S_ISSOCK (S_IFREG)
28317You lose.
28318# endif
28319#endif
28320
28321_ACEOF
28322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28323 $EGREP "You lose" >/dev/null 2>&1; then
28324 ac_cv_header_stat_broken=yes
28325else
28326 ac_cv_header_stat_broken=no
28327fi
28328rm -f conftest*
28329
28330fi
28331{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28332echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28333if test $ac_cv_header_stat_broken = yes; then
28334
28335cat >>confdefs.h <<\_ACEOF
28336#define STAT_MACROS_BROKEN 1
28337_ACEOF
28338
28339fi
28340
28341{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28342echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28343if test "${ac_cv_header_stdc+set}" = set; then
28344 echo $ECHO_N "(cached) $ECHO_C" >&6
28345else
28346 cat >conftest.$ac_ext <<_ACEOF
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
28352#include <stdlib.h>
28353#include <stdarg.h>
28354#include <string.h>
28355#include <float.h>
28356
28357int
28358main ()
28359{
28360
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext
28366if { (ac_try="$ac_compile"
28367case "(($ac_try" in
28368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369 *) ac_try_echo=$ac_try;;
28370esac
28371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372 (eval "$ac_compile") 2>conftest.er1
28373 ac_status=$?
28374 grep -v '^ *+' conftest.er1 >conftest.err
28375 rm -f conftest.er1
28376 cat conftest.err >&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); } &&
28379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; } &&
28389 { ac_try='test -s conftest.$ac_objext'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; }; then
28399 ac_cv_header_stdc=yes
28400else
28401 echo "$as_me: failed program was:" >&5
28402sed 's/^/| /' conftest.$ac_ext >&5
28403
28404 ac_cv_header_stdc=no
28405fi
28406
28407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28408
28409if test $ac_cv_header_stdc = yes; then
28410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28411 cat >conftest.$ac_ext <<_ACEOF
28412/* confdefs.h. */
28413_ACEOF
28414cat confdefs.h >>conftest.$ac_ext
28415cat >>conftest.$ac_ext <<_ACEOF
28416/* end confdefs.h. */
28417#include <string.h>
28418
28419_ACEOF
28420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28421 $EGREP "memchr" >/dev/null 2>&1; then
28422 :
28423else
28424 ac_cv_header_stdc=no
28425fi
28426rm -f conftest*
28427
28428fi
28429
28430if test $ac_cv_header_stdc = yes; then
28431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28432 cat >conftest.$ac_ext <<_ACEOF
28433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
28438#include <stdlib.h>
28439
28440_ACEOF
28441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28442 $EGREP "free" >/dev/null 2>&1; then
28443 :
28444else
28445 ac_cv_header_stdc=no
28446fi
28447rm -f conftest*
28448
28449fi
28450
28451if test $ac_cv_header_stdc = yes; then
28452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28453 if test "$cross_compiling" = yes; then
28454 :
28455else
28456 cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462#include <ctype.h>
28463#include <stdlib.h>
28464#if ((' ' & 0x0FF) == 0x020)
28465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28467#else
28468# define ISLOWER(c) \
28469 (('a' <= (c) && (c) <= 'i') \
28470 || ('j' <= (c) && (c) <= 'r') \
28471 || ('s' <= (c) && (c) <= 'z'))
28472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28473#endif
28474
28475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28476int
28477main ()
28478{
28479 int i;
28480 for (i = 0; i < 256; i++)
28481 if (XOR (islower (i), ISLOWER (i))
28482 || toupper (i) != TOUPPER (i))
28483 return 2;
28484 return 0;
28485}
28486_ACEOF
28487rm -f conftest$ac_exeext
28488if { (ac_try="$ac_link"
28489case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28492esac
28493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_link") 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28498 { (case "(($ac_try" in
28499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28500 *) ac_try_echo=$ac_try;;
28501esac
28502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28503 (eval "$ac_try") 2>&5
28504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; }; then
28507 :
28508else
28509 echo "$as_me: program exited with status $ac_status" >&5
28510echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513( exit $ac_status )
28514ac_cv_header_stdc=no
28515fi
28516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28517fi
28518
28519
28520fi
28521fi
28522{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28523echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28524if test $ac_cv_header_stdc = yes; then
28525
28526cat >>confdefs.h <<\_ACEOF
28527#define STDC_HEADERS 1
28528_ACEOF
28529
28530fi
28531
28532{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28533echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28534if test "${ac_cv_header_sys_wait_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28536else
28537 cat >conftest.$ac_ext <<_ACEOF
28538/* confdefs.h. */
28539_ACEOF
28540cat confdefs.h >>conftest.$ac_ext
28541cat >>conftest.$ac_ext <<_ACEOF
28542/* end confdefs.h. */
28543#include <sys/types.h>
28544#include <sys/wait.h>
28545#ifndef WEXITSTATUS
28546# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28547#endif
28548#ifndef WIFEXITED
28549# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28550#endif
28551
28552int
28553main ()
28554{
28555 int s;
28556 wait (&s);
28557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28558 ;
28559 return 0;
28560}
28561_ACEOF
28562rm -f conftest.$ac_objext
28563if { (ac_try="$ac_compile"
28564case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567esac
28568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_compile") 2>conftest.er1
28570 ac_status=$?
28571 grep -v '^ *+' conftest.er1 >conftest.err
28572 rm -f conftest.er1
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
28583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
28587 { (case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_try") 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 ac_cv_header_sys_wait_h=yes
28597else
28598 echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_cv_header_sys_wait_h=no
28602fi
28603
28604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605fi
28606{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28607echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28608if test $ac_cv_header_sys_wait_h = yes; then
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define HAVE_SYS_WAIT_H 1
28612_ACEOF
28613
28614fi
28615
28616{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28617echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28618if test "${ac_cv_header_time+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620else
28621 cat >conftest.$ac_ext <<_ACEOF
28622/* confdefs.h. */
28623_ACEOF
28624cat confdefs.h >>conftest.$ac_ext
28625cat >>conftest.$ac_ext <<_ACEOF
28626/* end confdefs.h. */
28627#include <sys/types.h>
28628#include <sys/time.h>
28629#include <time.h>
28630
28631int
28632main ()
28633{
28634if ((struct tm *) 0)
28635return 0;
28636 ;
28637 return 0;
28638}
28639_ACEOF
28640rm -f conftest.$ac_objext
28641if { (ac_try="$ac_compile"
28642case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645esac
28646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_compile") 2>conftest.er1
28648 ac_status=$?
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } &&
28654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28655 { (case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658esac
28659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_try") 2>&5
28661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; } &&
28664 { ac_try='test -s conftest.$ac_objext'
28665 { (case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_try") 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 ac_cv_header_time=yes
28675else
28676 echo "$as_me: failed program was:" >&5
28677sed 's/^/| /' conftest.$ac_ext >&5
28678
28679 ac_cv_header_time=no
28680fi
28681
28682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28683fi
28684{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28685echo "${ECHO_T}$ac_cv_header_time" >&6; }
28686if test $ac_cv_header_time = yes; then
28687
28688cat >>confdefs.h <<\_ACEOF
28689#define TIME_WITH_SYS_TIME 1
28690_ACEOF
28691
28692fi
28693
28694
28695
28696
28697
28698
28699
28700
28701for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28702do
28703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709fi
28710ac_res=`eval echo '${'$as_ac_Header'}'`
28711 { echo "$as_me:$LINENO: result: $ac_res" >&5
28712echo "${ECHO_T}$ac_res" >&6; }
28713else
28714 # Is the header compilable?
28715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28717cat >conftest.$ac_ext <<_ACEOF
28718/* confdefs.h. */
28719_ACEOF
28720cat confdefs.h >>conftest.$ac_ext
28721cat >>conftest.$ac_ext <<_ACEOF
28722/* end confdefs.h. */
28723$ac_includes_default
28724#include <$ac_header>
28725_ACEOF
28726rm -f conftest.$ac_objext
28727if { (ac_try="$ac_compile"
28728case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
28734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28744esac
28745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_try") 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 ac_header_compiler=yes
28761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
28765 ac_header_compiler=no
28766fi
28767
28768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28770echo "${ECHO_T}$ac_header_compiler" >&6; }
28771
28772# Is the header present?
28773{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28775cat >conftest.$ac_ext <<_ACEOF
28776/* confdefs.h. */
28777_ACEOF
28778cat confdefs.h >>conftest.$ac_ext
28779cat >>conftest.$ac_ext <<_ACEOF
28780/* end confdefs.h. */
28781#include <$ac_header>
28782_ACEOF
28783if { (ac_try="$ac_cpp conftest.$ac_ext"
28784case "(($ac_try" in
28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786 *) ac_try_echo=$ac_try;;
28787esac
28788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28790 ac_status=$?
28791 grep -v '^ *+' conftest.er1 >conftest.err
28792 rm -f conftest.er1
28793 cat conftest.err >&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); } >/dev/null; then
28796 if test -s conftest.err; then
28797 ac_cpp_err=$ac_c_preproc_warn_flag
28798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28799 else
28800 ac_cpp_err=
28801 fi
28802else
28803 ac_cpp_err=yes
28804fi
28805if test -z "$ac_cpp_err"; then
28806 ac_header_preproc=yes
28807else
28808 echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 ac_header_preproc=no
28812fi
28813
28814rm -f conftest.err conftest.$ac_ext
28815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28816echo "${ECHO_T}$ac_header_preproc" >&6; }
28817
28818# So? What about this header?
28819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28820 yes:no: )
28821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28825 ac_header_preproc=yes
28826 ;;
28827 no:yes:* )
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28840 ( cat <<\_ASBOX
28841## ----------------------------------- ##
28842## Report this to llvmbugs@cs.uiuc.edu ##
28843## ----------------------------------- ##
28844_ASBOX
28845 ) | sed "s/^/$as_me: WARNING: /" >&2
28846 ;;
28847esac
28848{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28852else
28853 eval "$as_ac_Header=\$ac_header_preproc"
28854fi
28855ac_res=`eval echo '${'$as_ac_Header'}'`
28856 { echo "$as_me:$LINENO: result: $ac_res" >&5
28857echo "${ECHO_T}$ac_res" >&6; }
28858
28859fi
28860if test `eval echo '${'$as_ac_Header'}'` = yes; then
28861 cat >>confdefs.h <<_ACEOF
28862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28863_ACEOF
28864
28865fi
28866
28867done
28868
28869
28870
28871
28872
28873
28874
28875for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28876do
28877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883fi
28884ac_res=`eval echo '${'$as_ac_Header'}'`
28885 { echo "$as_me:$LINENO: result: $ac_res" >&5
28886echo "${ECHO_T}$ac_res" >&6; }
28887else
28888 # Is the header compilable?
28889{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28891cat >conftest.$ac_ext <<_ACEOF
28892/* confdefs.h. */
28893_ACEOF
28894cat confdefs.h >>conftest.$ac_ext
28895cat >>conftest.$ac_ext <<_ACEOF
28896/* end confdefs.h. */
28897$ac_includes_default
28898#include <$ac_header>
28899_ACEOF
28900rm -f conftest.$ac_objext
28901if { (ac_try="$ac_compile"
28902case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905esac
28906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_compile") 2>conftest.er1
28908 ac_status=$?
28909 grep -v '^ *+' conftest.er1 >conftest.err
28910 rm -f conftest.er1
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
28914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28915 { (case "(($ac_try" in
28916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28917 *) ac_try_echo=$ac_try;;
28918esac
28919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28920 (eval "$ac_try") 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest.$ac_objext'
28925 { (case "(($ac_try" in
28926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927 *) ac_try_echo=$ac_try;;
28928esac
28929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930 (eval "$ac_try") 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
28934 ac_header_compiler=yes
28935else
28936 echo "$as_me: failed program was:" >&5
28937sed 's/^/| /' conftest.$ac_ext >&5
28938
28939 ac_header_compiler=no
28940fi
28941
28942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28944echo "${ECHO_T}$ac_header_compiler" >&6; }
28945
28946# Is the header present?
28947{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28949cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955#include <$ac_header>
28956_ACEOF
28957if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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
28969 (exit $ac_status); } >/dev/null; then
28970 if test -s conftest.err; then
28971 ac_cpp_err=$ac_c_preproc_warn_flag
28972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28973 else
28974 ac_cpp_err=
28975 fi
28976else
28977 ac_cpp_err=yes
28978fi
28979if test -z "$ac_cpp_err"; then
28980 ac_header_preproc=yes
28981else
28982 echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ac_header_preproc=no
28986fi
28987
28988rm -f conftest.err conftest.$ac_ext
28989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28990echo "${ECHO_T}$ac_header_preproc" >&6; }
28991
28992# So? What about this header?
28993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28994 yes:no: )
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28999 ac_header_preproc=yes
29000 ;;
29001 no:yes:* )
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29014 ( cat <<\_ASBOX
29015## ----------------------------------- ##
29016## Report this to llvmbugs@cs.uiuc.edu ##
29017## ----------------------------------- ##
29018_ASBOX
29019 ) | sed "s/^/$as_me: WARNING: /" >&2
29020 ;;
29021esac
29022{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29026else
29027 eval "$as_ac_Header=\$ac_header_preproc"
29028fi
29029ac_res=`eval echo '${'$as_ac_Header'}'`
29030 { echo "$as_me:$LINENO: result: $ac_res" >&5
29031echo "${ECHO_T}$ac_res" >&6; }
29032
29033fi
29034if test `eval echo '${'$as_ac_Header'}'` = yes; then
29035 cat >>confdefs.h <<_ACEOF
29036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29037_ACEOF
29038
29039fi
29040
29041done
29042
29043
Reid Spencer096a8142007-08-17 05:45:26 +000029044for ac_header in windows.h
29045do
29046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052fi
29053ac_res=`eval echo '${'$as_ac_Header'}'`
29054 { echo "$as_me:$LINENO: result: $ac_res" >&5
29055echo "${ECHO_T}$ac_res" >&6; }
29056else
29057 # Is the header compilable?
29058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29060cat >conftest.$ac_ext <<_ACEOF
29061/* confdefs.h. */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h. */
29066$ac_includes_default
29067#include <$ac_header>
29068_ACEOF
29069rm -f conftest.$ac_objext
29070if { (ac_try="$ac_compile"
29071case "(($ac_try" in
29072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29073 *) ac_try_echo=$ac_try;;
29074esac
29075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29076 (eval "$ac_compile") 2>conftest.er1
29077 ac_status=$?
29078 grep -v '^ *+' conftest.er1 >conftest.err
29079 rm -f conftest.er1
29080 cat conftest.err >&5
29081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082 (exit $ac_status); } &&
29083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087esac
29088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_try") 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest.$ac_objext'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_try") 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_header_compiler=yes
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ac_header_compiler=no
29109fi
29110
29111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29113echo "${ECHO_T}$ac_header_compiler" >&6; }
29114
29115# Is the header present?
29116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29118cat >conftest.$ac_ext <<_ACEOF
29119/* confdefs.h. */
29120_ACEOF
29121cat confdefs.h >>conftest.$ac_ext
29122cat >>conftest.$ac_ext <<_ACEOF
29123/* end confdefs.h. */
29124#include <$ac_header>
29125_ACEOF
29126if { (ac_try="$ac_cpp conftest.$ac_ext"
29127case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130esac
29131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29133 ac_status=$?
29134 grep -v '^ *+' conftest.er1 >conftest.err
29135 rm -f conftest.er1
29136 cat conftest.err >&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } >/dev/null; then
29139 if test -s conftest.err; then
29140 ac_cpp_err=$ac_c_preproc_warn_flag
29141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29142 else
29143 ac_cpp_err=
29144 fi
29145else
29146 ac_cpp_err=yes
29147fi
29148if test -z "$ac_cpp_err"; then
29149 ac_header_preproc=yes
29150else
29151 echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154 ac_header_preproc=no
29155fi
29156
29157rm -f conftest.err conftest.$ac_ext
29158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29159echo "${ECHO_T}$ac_header_preproc" >&6; }
29160
29161# So? What about this header?
29162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29163 yes:no: )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29168 ac_header_preproc=yes
29169 ;;
29170 no:yes:* )
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29183 ( cat <<\_ASBOX
29184## ----------------------------------- ##
29185## Report this to llvmbugs@cs.uiuc.edu ##
29186## ----------------------------------- ##
29187_ASBOX
29188 ) | sed "s/^/$as_me: WARNING: /" >&2
29189 ;;
29190esac
29191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195else
29196 eval "$as_ac_Header=\$ac_header_preproc"
29197fi
29198ac_res=`eval echo '${'$as_ac_Header'}'`
29199 { echo "$as_me:$LINENO: result: $ac_res" >&5
29200echo "${ECHO_T}$ac_res" >&6; }
29201
29202fi
29203if test `eval echo '${'$as_ac_Header'}'` = yes; then
29204 cat >>confdefs.h <<_ACEOF
29205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29206_ACEOF
29207
29208fi
29209
29210done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029211
29212
29213
29214
Reid Spencer096a8142007-08-17 05:45:26 +000029215
29216for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029217do
29218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223 echo $ECHO_N "(cached) $ECHO_C" >&6
29224fi
29225ac_res=`eval echo '${'$as_ac_Header'}'`
29226 { echo "$as_me:$LINENO: result: $ac_res" >&5
29227echo "${ECHO_T}$ac_res" >&6; }
29228else
29229 # Is the header compilable?
29230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29232cat >conftest.$ac_ext <<_ACEOF
29233/* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
29238$ac_includes_default
29239#include <$ac_header>
29240_ACEOF
29241rm -f conftest.$ac_objext
29242if { (ac_try="$ac_compile"
29243case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
29249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_header_compiler=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
29280 ac_header_compiler=no
29281fi
29282
29283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285echo "${ECHO_T}$ac_header_compiler" >&6; }
29286
29287# Is the header present?
29288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290cat >conftest.$ac_ext <<_ACEOF
29291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
29296#include <$ac_header>
29297_ACEOF
29298if { (ac_try="$ac_cpp conftest.$ac_ext"
29299case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null; then
29311 if test -s conftest.err; then
29312 ac_cpp_err=$ac_c_preproc_warn_flag
29313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29314 else
29315 ac_cpp_err=
29316 fi
29317else
29318 ac_cpp_err=yes
29319fi
29320if test -z "$ac_cpp_err"; then
29321 ac_header_preproc=yes
29322else
29323 echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ac_header_preproc=no
29327fi
29328
29329rm -f conftest.err conftest.$ac_ext
29330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331echo "${ECHO_T}$ac_header_preproc" >&6; }
29332
29333# So? What about this header?
29334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 yes:no: )
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340 ac_header_preproc=yes
29341 ;;
29342 no:yes:* )
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29355 ( cat <<\_ASBOX
29356## ----------------------------------- ##
29357## Report this to llvmbugs@cs.uiuc.edu ##
29358## ----------------------------------- ##
29359_ASBOX
29360 ) | sed "s/^/$as_me: WARNING: /" >&2
29361 ;;
29362esac
29363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368 eval "$as_ac_Header=\$ac_header_preproc"
29369fi
29370ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372echo "${ECHO_T}$ac_res" >&6; }
29373
29374fi
29375if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29378_ACEOF
29379
29380fi
29381
29382done
29383
29384
29385
29386
29387for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29388do
29389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395fi
29396ac_res=`eval echo '${'$as_ac_Header'}'`
29397 { echo "$as_me:$LINENO: result: $ac_res" >&5
29398echo "${ECHO_T}$ac_res" >&6; }
29399else
29400 # Is the header compilable?
29401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29403cat >conftest.$ac_ext <<_ACEOF
29404/* confdefs.h. */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h. */
29409$ac_includes_default
29410#include <$ac_header>
29411_ACEOF
29412rm -f conftest.$ac_objext
29413if { (ac_try="$ac_compile"
29414case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417esac
29418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
29420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
29426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29427 { (case "(($ac_try" in
29428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429 *) ac_try_echo=$ac_try;;
29430esac
29431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432 (eval "$ac_try") 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
29437 { (case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_try") 2>&5
29443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_header_compiler=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ac_header_compiler=no
29452fi
29453
29454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29456echo "${ECHO_T}$ac_header_compiler" >&6; }
29457
29458# Is the header present?
29459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29461cat >conftest.$ac_ext <<_ACEOF
29462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
29467#include <$ac_header>
29468_ACEOF
29469if { (ac_try="$ac_cpp conftest.$ac_ext"
29470case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473esac
29474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29476 ac_status=$?
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } >/dev/null; then
29482 if test -s conftest.err; then
29483 ac_cpp_err=$ac_c_preproc_warn_flag
29484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29485 else
29486 ac_cpp_err=
29487 fi
29488else
29489 ac_cpp_err=yes
29490fi
29491if test -z "$ac_cpp_err"; then
29492 ac_header_preproc=yes
29493else
29494 echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497 ac_header_preproc=no
29498fi
29499
29500rm -f conftest.err conftest.$ac_ext
29501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29502echo "${ECHO_T}$ac_header_preproc" >&6; }
29503
29504# So? What about this header?
29505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29506 yes:no: )
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29511 ac_header_preproc=yes
29512 ;;
29513 no:yes:* )
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29526 ( cat <<\_ASBOX
29527## ----------------------------------- ##
29528## Report this to llvmbugs@cs.uiuc.edu ##
29529## ----------------------------------- ##
29530_ASBOX
29531 ) | sed "s/^/$as_me: WARNING: /" >&2
29532 ;;
29533esac
29534{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29537 echo $ECHO_N "(cached) $ECHO_C" >&6
29538else
29539 eval "$as_ac_Header=\$ac_header_preproc"
29540fi
29541ac_res=`eval echo '${'$as_ac_Header'}'`
29542 { echo "$as_me:$LINENO: result: $ac_res" >&5
29543echo "${ECHO_T}$ac_res" >&6; }
29544
29545fi
29546if test `eval echo '${'$as_ac_Header'}'` = yes; then
29547 cat >>confdefs.h <<_ACEOF
29548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29549_ACEOF
29550
29551fi
29552
29553done
29554
29555if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029556
29557for ac_header in pthread.h
29558do
29559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565fi
Reid Spencer096a8142007-08-17 05:45:26 +000029566ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029569else
29570 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029571{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029580#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029581_ACEOF
29582rm -f conftest.$ac_objext
29583if { (ac_try="$ac_compile"
29584case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
29590 ac_status=$?
29591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
29607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_header_compiler=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621 ac_header_compiler=no
29622fi
29623
29624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626echo "${ECHO_T}$ac_header_compiler" >&6; }
29627
29628# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029629{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029631cat >conftest.$ac_ext <<_ACEOF
29632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029637#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029638_ACEOF
29639if { (ac_try="$ac_cpp conftest.$ac_ext"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } >/dev/null; then
29652 if test -s conftest.err; then
29653 ac_cpp_err=$ac_c_preproc_warn_flag
29654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655 else
29656 ac_cpp_err=
29657 fi
29658else
29659 ac_cpp_err=yes
29660fi
29661if test -z "$ac_cpp_err"; then
29662 ac_header_preproc=yes
29663else
29664 echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
29667 ac_header_preproc=no
29668fi
29669
29670rm -f conftest.err conftest.$ac_ext
29671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672echo "${ECHO_T}$ac_header_preproc" >&6; }
29673
29674# So? What about this header?
29675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029681 ac_header_preproc=yes
29682 ;;
29683 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029696 ( cat <<\_ASBOX
29697## ----------------------------------- ##
29698## Report this to llvmbugs@cs.uiuc.edu ##
29699## ----------------------------------- ##
29700_ASBOX
29701 ) | sed "s/^/$as_me: WARNING: /" >&2
29702 ;;
29703esac
Reid Spencer096a8142007-08-17 05:45:26 +000029704{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
Reid Spencer096a8142007-08-17 05:45:26 +000029709 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029710fi
Reid Spencer096a8142007-08-17 05:45:26 +000029711ac_res=`eval echo '${'$as_ac_Header'}'`
29712 { echo "$as_me:$LINENO: result: $ac_res" >&5
29713echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029714
29715fi
Reid Spencer096a8142007-08-17 05:45:26 +000029716if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719_ACEOF
29720 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029721
29722else
29723 HAVE_PTHREAD=0
29724
29725fi
29726
Reid Spencer096a8142007-08-17 05:45:26 +000029727done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029728
29729else
29730 HAVE_PTHREAD=0
29731
29732fi
29733
29734
29735
29736 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29737echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29738if test "${ac_cv_huge_val_sanity+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740else
29741
29742 ac_ext=cpp
29743ac_cpp='$CXXCPP $CPPFLAGS'
29744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29747
29748 CXXFLAGS=-pedantic
29749 if test "$cross_compiling" = yes; then
29750 ac_cv_huge_val_sanity=yes
29751else
29752 cat >conftest.$ac_ext <<_ACEOF
29753/* confdefs.h. */
29754_ACEOF
29755cat confdefs.h >>conftest.$ac_ext
29756cat >>conftest.$ac_ext <<_ACEOF
29757/* end confdefs.h. */
29758#include <math.h>
29759int
29760main ()
29761{
29762double x = HUGE_VAL; return x != x;
29763 ;
29764 return 0;
29765}
29766_ACEOF
29767rm -f conftest$ac_exeext
29768if { (ac_try="$ac_link"
29769case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29772esac
29773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_link") 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_huge_val_sanity=yes
29788else
29789 echo "$as_me: program exited with status $ac_status" >&5
29790echo "$as_me: failed program was:" >&5
29791sed 's/^/| /' conftest.$ac_ext >&5
29792
29793( exit $ac_status )
29794ac_cv_huge_val_sanity=no
29795fi
29796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29797fi
29798
29799
29800 ac_ext=c
29801ac_cpp='$CPP $CPPFLAGS'
29802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804ac_compiler_gnu=$ac_cv_c_compiler_gnu
29805
29806
29807fi
29808{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29809echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29810 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29811
29812
29813{ echo "$as_me:$LINENO: checking for pid_t" >&5
29814echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29815if test "${ac_cv_type_pid_t+set}" = set; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817else
29818 cat >conftest.$ac_ext <<_ACEOF
29819/* confdefs.h. */
29820_ACEOF
29821cat confdefs.h >>conftest.$ac_ext
29822cat >>conftest.$ac_ext <<_ACEOF
29823/* end confdefs.h. */
29824$ac_includes_default
29825typedef pid_t ac__type_new_;
29826int
29827main ()
29828{
29829if ((ac__type_new_ *) 0)
29830 return 0;
29831if (sizeof (ac__type_new_))
29832 return 0;
29833 ;
29834 return 0;
29835}
29836_ACEOF
29837rm -f conftest.$ac_objext
29838if { (ac_try="$ac_compile"
29839case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842esac
29843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_compile") 2>conftest.er1
29845 ac_status=$?
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
29851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852 { (case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855esac
29856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_try") 2>&5
29858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest.$ac_objext'
29862 { (case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865esac
29866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_type_pid_t=yes
29872else
29873 echo "$as_me: failed program was:" >&5
29874sed 's/^/| /' conftest.$ac_ext >&5
29875
29876 ac_cv_type_pid_t=no
29877fi
29878
29879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29880fi
29881{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29882echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29883if test $ac_cv_type_pid_t = yes; then
29884 :
29885else
29886
29887cat >>confdefs.h <<_ACEOF
29888#define pid_t int
29889_ACEOF
29890
29891fi
29892
29893{ echo "$as_me:$LINENO: checking for size_t" >&5
29894echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29895if test "${ac_cv_type_size_t+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
29904$ac_includes_default
29905typedef size_t ac__type_new_;
29906int
29907main ()
29908{
29909if ((ac__type_new_ *) 0)
29910 return 0;
29911if (sizeof (ac__type_new_))
29912 return 0;
29913 ;
29914 return 0;
29915}
29916_ACEOF
29917rm -f conftest.$ac_objext
29918if { (ac_try="$ac_compile"
29919case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922esac
29923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_compile") 2>conftest.er1
29925 ac_status=$?
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
29931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29932 { (case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_try") 2>&5
29938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); }; } &&
29941 { ac_try='test -s conftest.$ac_objext'
29942 { (case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945esac
29946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_try") 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_cv_type_size_t=yes
29952else
29953 echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956 ac_cv_type_size_t=no
29957fi
29958
29959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29960fi
29961{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29962echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29963if test $ac_cv_type_size_t = yes; then
29964 :
29965else
29966
29967cat >>confdefs.h <<_ACEOF
29968#define size_t unsigned int
29969_ACEOF
29970
29971fi
29972
29973{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29974echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29975if test "${ac_cv_type_signal+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977else
29978 cat >conftest.$ac_ext <<_ACEOF
29979/* confdefs.h. */
29980_ACEOF
29981cat confdefs.h >>conftest.$ac_ext
29982cat >>conftest.$ac_ext <<_ACEOF
29983/* end confdefs.h. */
29984#include <sys/types.h>
29985#include <signal.h>
29986
29987int
29988main ()
29989{
29990return *(signal (0, 0)) (0) == 1;
29991 ;
29992 return 0;
29993}
29994_ACEOF
29995rm -f conftest.$ac_objext
29996if { (ac_try="$ac_compile"
29997case "(($ac_try" in
29998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999 *) ac_try_echo=$ac_try;;
30000esac
30001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002 (eval "$ac_compile") 2>conftest.er1
30003 ac_status=$?
30004 grep -v '^ *+' conftest.er1 >conftest.err
30005 rm -f conftest.er1
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
30009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30013esac
30014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; } &&
30019 { ac_try='test -s conftest.$ac_objext'
30020 { (case "(($ac_try" in
30021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30023esac
30024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 ac_cv_type_signal=int
30030else
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
30034 ac_cv_type_signal=void
30035fi
30036
30037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038fi
30039{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30040echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30041
30042cat >>confdefs.h <<_ACEOF
30043#define RETSIGTYPE $ac_cv_type_signal
30044_ACEOF
30045
30046
30047{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30048echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30049if test "${ac_cv_struct_tm+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051else
30052 cat >conftest.$ac_ext <<_ACEOF
30053/* confdefs.h. */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h. */
30058#include <sys/types.h>
30059#include <time.h>
30060
30061int
30062main ()
30063{
30064struct tm *tp; tp->tm_sec;
30065 ;
30066 return 0;
30067}
30068_ACEOF
30069rm -f conftest.$ac_objext
30070if { (ac_try="$ac_compile"
30071case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_compile") 2>conftest.er1
30077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30087esac
30088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_struct_tm=time.h
30104else
30105 echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
30108 ac_cv_struct_tm=sys/time.h
30109fi
30110
30111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112fi
30113{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30114echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30115if test $ac_cv_struct_tm = sys/time.h; then
30116
30117cat >>confdefs.h <<\_ACEOF
30118#define TM_IN_SYS_TIME 1
30119_ACEOF
30120
30121fi
30122
30123{ echo "$as_me:$LINENO: checking for int64_t" >&5
30124echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30125if test "${ac_cv_type_int64_t+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30127else
30128 cat >conftest.$ac_ext <<_ACEOF
30129/* confdefs.h. */
30130_ACEOF
30131cat confdefs.h >>conftest.$ac_ext
30132cat >>conftest.$ac_ext <<_ACEOF
30133/* end confdefs.h. */
30134$ac_includes_default
30135typedef int64_t ac__type_new_;
30136int
30137main ()
30138{
30139if ((ac__type_new_ *) 0)
30140 return 0;
30141if (sizeof (ac__type_new_))
30142 return 0;
30143 ;
30144 return 0;
30145}
30146_ACEOF
30147rm -f conftest.$ac_objext
30148if { (ac_try="$ac_compile"
30149case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152esac
30153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_compile") 2>conftest.er1
30155 ac_status=$?
30156 grep -v '^ *+' conftest.er1 >conftest.err
30157 rm -f conftest.er1
30158 cat conftest.err >&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
30161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162 { (case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30165esac
30166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167 (eval "$ac_try") 2>&5
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
30172 { (case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175esac
30176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_try") 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 ac_cv_type_int64_t=yes
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 ac_cv_type_int64_t=no
30187fi
30188
30189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30190fi
30191{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30192echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30193if test $ac_cv_type_int64_t = yes; then
30194
30195cat >>confdefs.h <<_ACEOF
30196#define HAVE_INT64_T 1
30197_ACEOF
30198
30199
30200else
30201 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30202echo "$as_me: error: Type int64_t required but not found" >&2;}
30203 { (exit 1); exit 1; }; }
30204fi
30205
30206{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30207echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30208if test "${ac_cv_type_uint64_t+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30210else
30211 cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h. */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h. */
30217$ac_includes_default
30218typedef uint64_t ac__type_new_;
30219int
30220main ()
30221{
30222if ((ac__type_new_ *) 0)
30223 return 0;
30224if (sizeof (ac__type_new_))
30225 return 0;
30226 ;
30227 return 0;
30228}
30229_ACEOF
30230rm -f conftest.$ac_objext
30231if { (ac_try="$ac_compile"
30232case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30235esac
30236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30237 (eval "$ac_compile") 2>conftest.er1
30238 ac_status=$?
30239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
30244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30245 { (case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30248esac
30249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_try") 2>&5
30251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; } &&
30254 { ac_try='test -s conftest.$ac_objext'
30255 { (case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258esac
30259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_try") 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
30264 ac_cv_type_uint64_t=yes
30265else
30266 echo "$as_me: failed program was:" >&5
30267sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 ac_cv_type_uint64_t=no
30270fi
30271
30272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30273fi
30274{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30275echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30276if test $ac_cv_type_uint64_t = yes; then
30277
30278cat >>confdefs.h <<_ACEOF
30279#define HAVE_UINT64_T 1
30280_ACEOF
30281
30282
30283else
30284 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30285echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30286if test "${ac_cv_type_u_int64_t+set}" = set; then
30287 echo $ECHO_N "(cached) $ECHO_C" >&6
30288else
30289 cat >conftest.$ac_ext <<_ACEOF
30290/* confdefs.h. */
30291_ACEOF
30292cat confdefs.h >>conftest.$ac_ext
30293cat >>conftest.$ac_ext <<_ACEOF
30294/* end confdefs.h. */
30295$ac_includes_default
30296typedef u_int64_t ac__type_new_;
30297int
30298main ()
30299{
30300if ((ac__type_new_ *) 0)
30301 return 0;
30302if (sizeof (ac__type_new_))
30303 return 0;
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext
30309if { (ac_try="$ac_compile"
30310case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313esac
30314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_compile") 2>conftest.er1
30316 ac_status=$?
30317 grep -v '^ *+' conftest.er1 >conftest.err
30318 rm -f conftest.er1
30319 cat conftest.err >&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
30322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30323 { (case "(($ac_try" in
30324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325 *) ac_try_echo=$ac_try;;
30326esac
30327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328 (eval "$ac_try") 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
30333 { (case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30336esac
30337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_try") 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; }; then
30342 ac_cv_type_u_int64_t=yes
30343else
30344 echo "$as_me: failed program was:" >&5
30345sed 's/^/| /' conftest.$ac_ext >&5
30346
30347 ac_cv_type_u_int64_t=no
30348fi
30349
30350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30351fi
30352{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30353echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30354if test $ac_cv_type_u_int64_t = yes; then
30355
30356cat >>confdefs.h <<_ACEOF
30357#define HAVE_U_INT64_T 1
30358_ACEOF
30359
30360
30361else
30362 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30363echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30364 { (exit 1); exit 1; }; }
30365fi
30366
30367fi
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30379do
30380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
30386 cat >conftest.$ac_ext <<_ACEOF
30387/* confdefs.h. */
30388_ACEOF
30389cat confdefs.h >>conftest.$ac_ext
30390cat >>conftest.$ac_ext <<_ACEOF
30391/* end confdefs.h. */
30392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30394#define $ac_func innocuous_$ac_func
30395
30396/* System header to define __stub macros and hopefully few prototypes,
30397 which can conflict with char $ac_func (); below.
30398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30399 <limits.h> exists even on freestanding compilers. */
30400
30401#ifdef __STDC__
30402# include <limits.h>
30403#else
30404# include <assert.h>
30405#endif
30406
30407#undef $ac_func
30408
30409/* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
30412#ifdef __cplusplus
30413extern "C"
30414#endif
30415char $ac_func ();
30416/* The GNU C library defines this for functions which it implements
30417 to always fail with ENOSYS. Some functions are actually named
30418 something starting with __ and the normal name is an alias. */
30419#if defined __stub_$ac_func || defined __stub___$ac_func
30420choke me
30421#endif
30422
30423int
30424main ()
30425{
30426return $ac_func ();
30427 ;
30428 return 0;
30429}
30430_ACEOF
30431rm -f conftest.$ac_objext conftest$ac_exeext
30432if { (ac_try="$ac_link"
30433case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_link") 2>conftest.er1
30439 ac_status=$?
30440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
30445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30446 { (case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30449esac
30450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_try") 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); }; } &&
30455 { ac_try='test -s conftest$ac_exeext'
30456 { (case "(($ac_try" in
30457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458 *) ac_try_echo=$ac_try;;
30459esac
30460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461 (eval "$ac_try") 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 eval "$as_ac_var=yes"
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470 eval "$as_ac_var=no"
30471fi
30472
30473rm -f core conftest.err conftest.$ac_objext \
30474 conftest$ac_exeext conftest.$ac_ext
30475fi
30476ac_res=`eval echo '${'$as_ac_var'}'`
30477 { echo "$as_me:$LINENO: result: $ac_res" >&5
30478echo "${ECHO_T}$ac_res" >&6; }
30479if test `eval echo '${'$as_ac_var'}'` = yes; then
30480 cat >>confdefs.h <<_ACEOF
30481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30482_ACEOF
30483
30484fi
30485done
30486
30487
30488
30489
30490
30491for ac_func in powf fmodf strtof round
30492do
30493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30498else
30499 cat >conftest.$ac_ext <<_ACEOF
30500/* confdefs.h. */
30501_ACEOF
30502cat confdefs.h >>conftest.$ac_ext
30503cat >>conftest.$ac_ext <<_ACEOF
30504/* end confdefs.h. */
30505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30507#define $ac_func innocuous_$ac_func
30508
30509/* System header to define __stub macros and hopefully few prototypes,
30510 which can conflict with char $ac_func (); below.
30511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30512 <limits.h> exists even on freestanding compilers. */
30513
30514#ifdef __STDC__
30515# include <limits.h>
30516#else
30517# include <assert.h>
30518#endif
30519
30520#undef $ac_func
30521
30522/* Override any GCC internal prototype to avoid an error.
30523 Use char because int might match the return type of a GCC
30524 builtin and then its argument prototype would still apply. */
30525#ifdef __cplusplus
30526extern "C"
30527#endif
30528char $ac_func ();
30529/* The GNU C library defines this for functions which it implements
30530 to always fail with ENOSYS. Some functions are actually named
30531 something starting with __ and the normal name is an alias. */
30532#if defined __stub_$ac_func || defined __stub___$ac_func
30533choke me
30534#endif
30535
30536int
30537main ()
30538{
30539return $ac_func ();
30540 ;
30541 return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext conftest$ac_exeext
30545if { (ac_try="$ac_link"
30546case "(($ac_try" in
30547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548 *) ac_try_echo=$ac_try;;
30549esac
30550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30551 (eval "$ac_link") 2>conftest.er1
30552 ac_status=$?
30553 grep -v '^ *+' conftest.er1 >conftest.err
30554 rm -f conftest.er1
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562esac
30563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; } &&
30568 { ac_try='test -s conftest$ac_exeext'
30569 { (case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30572esac
30573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_try") 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 eval "$as_ac_var=yes"
30579else
30580 echo "$as_me: failed program was:" >&5
30581sed 's/^/| /' conftest.$ac_ext >&5
30582
30583 eval "$as_ac_var=no"
30584fi
30585
30586rm -f core conftest.err conftest.$ac_objext \
30587 conftest$ac_exeext conftest.$ac_ext
30588fi
30589ac_res=`eval echo '${'$as_ac_var'}'`
30590 { echo "$as_me:$LINENO: result: $ac_res" >&5
30591echo "${ECHO_T}$ac_res" >&6; }
30592if test `eval echo '${'$as_ac_var'}'` = yes; then
30593 cat >>confdefs.h <<_ACEOF
30594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30595_ACEOF
30596
30597fi
30598done
30599
30600
30601
30602
30603
30604
30605for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30606do
30607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 cat >conftest.$ac_ext <<_ACEOF
30614/* confdefs.h. */
30615_ACEOF
30616cat confdefs.h >>conftest.$ac_ext
30617cat >>conftest.$ac_ext <<_ACEOF
30618/* end confdefs.h. */
30619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30621#define $ac_func innocuous_$ac_func
30622
30623/* System header to define __stub macros and hopefully few prototypes,
30624 which can conflict with char $ac_func (); below.
30625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30626 <limits.h> exists even on freestanding compilers. */
30627
30628#ifdef __STDC__
30629# include <limits.h>
30630#else
30631# include <assert.h>
30632#endif
30633
30634#undef $ac_func
30635
30636/* Override any GCC internal prototype to avoid an error.
30637 Use char because int might match the return type of a GCC
30638 builtin and then its argument prototype would still apply. */
30639#ifdef __cplusplus
30640extern "C"
30641#endif
30642char $ac_func ();
30643/* The GNU C library defines this for functions which it implements
30644 to always fail with ENOSYS. Some functions are actually named
30645 something starting with __ and the normal name is an alias. */
30646#if defined __stub_$ac_func || defined __stub___$ac_func
30647choke me
30648#endif
30649
30650int
30651main ()
30652{
30653return $ac_func ();
30654 ;
30655 return 0;
30656}
30657_ACEOF
30658rm -f conftest.$ac_objext conftest$ac_exeext
30659if { (ac_try="$ac_link"
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_link") 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
30671 (exit $ac_status); } &&
30672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30673 { (case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676esac
30677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_try") 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; } &&
30682 { ac_try='test -s conftest$ac_exeext'
30683 { (case "(($ac_try" in
30684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30685 *) ac_try_echo=$ac_try;;
30686esac
30687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30688 (eval "$ac_try") 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692 eval "$as_ac_var=yes"
30693else
30694 echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
30697 eval "$as_ac_var=no"
30698fi
30699
30700rm -f core conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
30702fi
30703ac_res=`eval echo '${'$as_ac_var'}'`
30704 { echo "$as_me:$LINENO: result: $ac_res" >&5
30705echo "${ECHO_T}$ac_res" >&6; }
30706if test `eval echo '${'$as_ac_var'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709_ACEOF
30710
30711fi
30712done
30713
30714
30715
30716
30717for ac_func in isatty mkdtemp mkstemp
30718do
30719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724else
30725 cat >conftest.$ac_ext <<_ACEOF
30726/* confdefs.h. */
30727_ACEOF
30728cat confdefs.h >>conftest.$ac_ext
30729cat >>conftest.$ac_ext <<_ACEOF
30730/* end confdefs.h. */
30731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733#define $ac_func innocuous_$ac_func
30734
30735/* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30739
30740#ifdef __STDC__
30741# include <limits.h>
30742#else
30743# include <assert.h>
30744#endif
30745
30746#undef $ac_func
30747
30748/* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30751#ifdef __cplusplus
30752extern "C"
30753#endif
30754char $ac_func ();
30755/* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758#if defined __stub_$ac_func || defined __stub___$ac_func
30759choke me
30760#endif
30761
30762int
30763main ()
30764{
30765return $ac_func ();
30766 ;
30767 return 0;
30768}
30769_ACEOF
30770rm -f conftest.$ac_objext conftest$ac_exeext
30771if { (ac_try="$ac_link"
30772case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775esac
30776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
30778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
30784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788esac
30789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30805else
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809 eval "$as_ac_var=no"
30810fi
30811
30812rm -f core conftest.err conftest.$ac_objext \
30813 conftest$ac_exeext conftest.$ac_ext
30814fi
30815ac_res=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817echo "${ECHO_T}$ac_res" >&6; }
30818if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821_ACEOF
30822
30823fi
30824done
30825
30826
30827
30828
30829
30830
30831
30832
30833for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30834do
30835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30840else
30841 cat >conftest.$ac_ext <<_ACEOF
30842/* confdefs.h. */
30843_ACEOF
30844cat confdefs.h >>conftest.$ac_ext
30845cat >>conftest.$ac_ext <<_ACEOF
30846/* end confdefs.h. */
30847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30849#define $ac_func innocuous_$ac_func
30850
30851/* System header to define __stub macros and hopefully few prototypes,
30852 which can conflict with char $ac_func (); below.
30853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30854 <limits.h> exists even on freestanding compilers. */
30855
30856#ifdef __STDC__
30857# include <limits.h>
30858#else
30859# include <assert.h>
30860#endif
30861
30862#undef $ac_func
30863
30864/* Override any GCC internal prototype to avoid an error.
30865 Use char because int might match the return type of a GCC
30866 builtin and then its argument prototype would still apply. */
30867#ifdef __cplusplus
30868extern "C"
30869#endif
30870char $ac_func ();
30871/* The GNU C library defines this for functions which it implements
30872 to always fail with ENOSYS. Some functions are actually named
30873 something starting with __ and the normal name is an alias. */
30874#if defined __stub_$ac_func || defined __stub___$ac_func
30875choke me
30876#endif
30877
30878int
30879main ()
30880{
30881return $ac_func ();
30882 ;
30883 return 0;
30884}
30885_ACEOF
30886rm -f conftest.$ac_objext conftest$ac_exeext
30887if { (ac_try="$ac_link"
30888case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891esac
30892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_link") 2>conftest.er1
30894 ac_status=$?
30895 grep -v '^ *+' conftest.er1 >conftest.err
30896 rm -f conftest.er1
30897 cat conftest.err >&5
30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899 (exit $ac_status); } &&
30900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30901 { (case "(($ac_try" in
30902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903 *) ac_try_echo=$ac_try;;
30904esac
30905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906 (eval "$ac_try") 2>&5
30907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; } &&
30910 { ac_try='test -s conftest$ac_exeext'
30911 { (case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30914esac
30915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_try") 2>&5
30917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
30920 eval "$as_ac_var=yes"
30921else
30922 echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925 eval "$as_ac_var=no"
30926fi
30927
30928rm -f core conftest.err conftest.$ac_objext \
30929 conftest$ac_exeext conftest.$ac_ext
30930fi
30931ac_res=`eval echo '${'$as_ac_var'}'`
30932 { echo "$as_me:$LINENO: result: $ac_res" >&5
30933echo "${ECHO_T}$ac_res" >&6; }
30934if test `eval echo '${'$as_ac_var'}'` = yes; then
30935 cat >>confdefs.h <<_ACEOF
30936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30937_ACEOF
30938
30939fi
30940done
30941
30942
30943
30944
30945
30946for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30947do
30948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30953else
30954 cat >conftest.$ac_ext <<_ACEOF
30955/* confdefs.h. */
30956_ACEOF
30957cat confdefs.h >>conftest.$ac_ext
30958cat >>conftest.$ac_ext <<_ACEOF
30959/* end confdefs.h. */
30960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30962#define $ac_func innocuous_$ac_func
30963
30964/* System header to define __stub macros and hopefully few prototypes,
30965 which can conflict with char $ac_func (); below.
30966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30967 <limits.h> exists even on freestanding compilers. */
30968
30969#ifdef __STDC__
30970# include <limits.h>
30971#else
30972# include <assert.h>
30973#endif
30974
30975#undef $ac_func
30976
30977/* Override any GCC internal prototype to avoid an error.
30978 Use char because int might match the return type of a GCC
30979 builtin and then its argument prototype would still apply. */
30980#ifdef __cplusplus
30981extern "C"
30982#endif
30983char $ac_func ();
30984/* The GNU C library defines this for functions which it implements
30985 to always fail with ENOSYS. Some functions are actually named
30986 something starting with __ and the normal name is an alias. */
30987#if defined __stub_$ac_func || defined __stub___$ac_func
30988choke me
30989#endif
30990
30991int
30992main ()
30993{
30994return $ac_func ();
30995 ;
30996 return 0;
30997}
30998_ACEOF
30999rm -f conftest.$ac_objext conftest$ac_exeext
31000if { (ac_try="$ac_link"
31001case "(($ac_try" in
31002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003 *) ac_try_echo=$ac_try;;
31004esac
31005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006 (eval "$ac_link") 2>conftest.er1
31007 ac_status=$?
31008 grep -v '^ *+' conftest.er1 >conftest.err
31009 rm -f conftest.er1
31010 cat conftest.err >&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
31013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017esac
31018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; } &&
31023 { ac_try='test -s conftest$ac_exeext'
31024 { (case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31027esac
31028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_try") 2>&5
31030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 eval "$as_ac_var=yes"
31034else
31035 echo "$as_me: failed program was:" >&5
31036sed 's/^/| /' conftest.$ac_ext >&5
31037
31038 eval "$as_ac_var=no"
31039fi
31040
31041rm -f core conftest.err conftest.$ac_objext \
31042 conftest$ac_exeext conftest.$ac_ext
31043fi
31044ac_res=`eval echo '${'$as_ac_var'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046echo "${ECHO_T}$ac_res" >&6; }
31047if test `eval echo '${'$as_ac_var'}'` = yes; then
31048 cat >>confdefs.h <<_ACEOF
31049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31050_ACEOF
31051
31052fi
31053done
31054
31055
31056
31057
31058
31059for ac_func in setjmp longjmp sigsetjmp siglongjmp
31060do
31061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 cat >conftest.$ac_ext <<_ACEOF
31068/* confdefs.h. */
31069_ACEOF
31070cat confdefs.h >>conftest.$ac_ext
31071cat >>conftest.$ac_ext <<_ACEOF
31072/* end confdefs.h. */
31073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075#define $ac_func innocuous_$ac_func
31076
31077/* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31081
31082#ifdef __STDC__
31083# include <limits.h>
31084#else
31085# include <assert.h>
31086#endif
31087
31088#undef $ac_func
31089
31090/* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
31093#ifdef __cplusplus
31094extern "C"
31095#endif
31096char $ac_func ();
31097/* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
31100#if defined __stub_$ac_func || defined __stub___$ac_func
31101choke me
31102#endif
31103
31104int
31105main ()
31106{
31107return $ac_func ();
31108 ;
31109 return 0;
31110}
31111_ACEOF
31112rm -f conftest.$ac_objext conftest$ac_exeext
31113if { (ac_try="$ac_link"
31114case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117esac
31118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
31120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest$ac_exeext'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
31151 eval "$as_ac_var=no"
31152fi
31153
31154rm -f core conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
31156fi
31157ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159echo "${ECHO_T}$ac_res" >&6; }
31160if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163_ACEOF
31164
31165fi
31166done
31167
31168{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31169echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31170if test "${llvm_cv_c_printf_a+set}" = set; then
31171 echo $ECHO_N "(cached) $ECHO_C" >&6
31172else
31173 ac_ext=c
31174ac_cpp='$CPP $CPPFLAGS'
31175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31177ac_compiler_gnu=$ac_cv_c_compiler_gnu
31178
31179 if test "$cross_compiling" = yes; then
31180 llvmac_cv_c_printf_a=no
31181else
31182 cat >conftest.$ac_ext <<_ACEOF
31183
31184 /* confdefs.h. */
31185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
31189
31190#include <stdio.h>
31191#include <stdlib.h>
31192
31193int
31194main ()
31195{
31196
31197volatile double A, B;
31198char Buffer[100];
31199A = 1;
31200A /= 10.0;
31201sprintf(Buffer, "%a", A);
31202B = atof(Buffer);
31203if (A != B)
31204 return (1);
31205if (A != 0x1.999999999999ap-4)
31206 return (1);
31207return (0);
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212rm -f conftest$ac_exeext
31213if { (ac_try="$ac_link"
31214case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_link") 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31223 { (case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31228 (eval "$ac_try") 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 llvm_cv_c_printf_a=yes
31233else
31234 echo "$as_me: program exited with status $ac_status" >&5
31235echo "$as_me: failed program was:" >&5
31236sed 's/^/| /' conftest.$ac_ext >&5
31237
31238( exit $ac_status )
31239llvmac_cv_c_printf_a=no
31240fi
31241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31242fi
31243
31244
31245 ac_ext=c
31246ac_cpp='$CPP $CPPFLAGS'
31247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31249ac_compiler_gnu=$ac_cv_c_compiler_gnu
31250
31251fi
31252{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31253echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31254 if test "$llvm_cv_c_printf_a" = "yes"; then
31255
31256cat >>confdefs.h <<\_ACEOF
31257#define HAVE_PRINTF_A 1
31258_ACEOF
31259
31260 fi
31261
31262# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31263# for constant arguments. Useless!
31264{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31265echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31266if test "${ac_cv_working_alloca_h+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268else
31269 cat >conftest.$ac_ext <<_ACEOF
31270/* confdefs.h. */
31271_ACEOF
31272cat confdefs.h >>conftest.$ac_ext
31273cat >>conftest.$ac_ext <<_ACEOF
31274/* end confdefs.h. */
31275#include <alloca.h>
31276int
31277main ()
31278{
31279char *p = (char *) alloca (2 * sizeof (int));
31280 if (p) return 0;
31281 ;
31282 return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
31286if { (ac_try="$ac_link"
31287case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290esac
31291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
31293 ac_status=$?
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313esac
31314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 ac_cv_working_alloca_h=yes
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324 ac_cv_working_alloca_h=no
31325fi
31326
31327rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31329fi
31330{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31331echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31332if test $ac_cv_working_alloca_h = yes; then
31333
31334cat >>confdefs.h <<\_ACEOF
31335#define HAVE_ALLOCA_H 1
31336_ACEOF
31337
31338fi
31339
31340{ echo "$as_me:$LINENO: checking for alloca" >&5
31341echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31342if test "${ac_cv_func_alloca_works+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344else
31345 cat >conftest.$ac_ext <<_ACEOF
31346/* confdefs.h. */
31347_ACEOF
31348cat confdefs.h >>conftest.$ac_ext
31349cat >>conftest.$ac_ext <<_ACEOF
31350/* end confdefs.h. */
31351#ifdef __GNUC__
31352# define alloca __builtin_alloca
31353#else
31354# ifdef _MSC_VER
31355# include <malloc.h>
31356# define alloca _alloca
31357# else
31358# if HAVE_ALLOCA_H
31359# include <alloca.h>
31360# else
31361# ifdef _AIX
31362 #pragma alloca
31363# else
31364# ifndef alloca /* predefined by HP cc +Olibcalls */
31365char *alloca ();
31366# endif
31367# endif
31368# endif
31369# endif
31370#endif
31371
31372int
31373main ()
31374{
31375char *p = (char *) alloca (1);
31376 if (p) return 0;
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext conftest$ac_exeext
31382if { (ac_try="$ac_link"
31383case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_link") 2>conftest.er1
31389 ac_status=$?
31390 grep -v '^ *+' conftest.er1 >conftest.err
31391 rm -f conftest.er1
31392 cat conftest.err >&5
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399esac
31400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest$ac_exeext'
31406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409esac
31410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
31412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
31415 ac_cv_func_alloca_works=yes
31416else
31417 echo "$as_me: failed program was:" >&5
31418sed 's/^/| /' conftest.$ac_ext >&5
31419
31420 ac_cv_func_alloca_works=no
31421fi
31422
31423rm -f core conftest.err conftest.$ac_objext \
31424 conftest$ac_exeext conftest.$ac_ext
31425fi
31426{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31427echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31428
31429if test $ac_cv_func_alloca_works = yes; then
31430
31431cat >>confdefs.h <<\_ACEOF
31432#define HAVE_ALLOCA 1
31433_ACEOF
31434
31435else
31436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31437# that cause trouble. Some versions do not even contain alloca or
31438# contain a buggy version. If you still want to use their alloca,
31439# use ar to extract alloca.o from them instead of compiling alloca.c.
31440
31441ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31442
31443cat >>confdefs.h <<\_ACEOF
31444#define C_ALLOCA 1
31445_ACEOF
31446
31447
31448{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31449echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31450if test "${ac_cv_os_cray+set}" = set; then
31451 echo $ECHO_N "(cached) $ECHO_C" >&6
31452else
31453 cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
31459#if defined CRAY && ! defined CRAY2
31460webecray
31461#else
31462wenotbecray
31463#endif
31464
31465_ACEOF
31466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31467 $EGREP "webecray" >/dev/null 2>&1; then
31468 ac_cv_os_cray=yes
31469else
31470 ac_cv_os_cray=no
31471fi
31472rm -f conftest*
31473
31474fi
31475{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31476echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31477if test $ac_cv_os_cray = yes; then
31478 for ac_func in _getb67 GETB67 getb67; do
31479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31483 echo $ECHO_N "(cached) $ECHO_C" >&6
31484else
31485 cat >conftest.$ac_ext <<_ACEOF
31486/* confdefs.h. */
31487_ACEOF
31488cat confdefs.h >>conftest.$ac_ext
31489cat >>conftest.$ac_ext <<_ACEOF
31490/* end confdefs.h. */
31491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31493#define $ac_func innocuous_$ac_func
31494
31495/* System header to define __stub macros and hopefully few prototypes,
31496 which can conflict with char $ac_func (); below.
31497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31498 <limits.h> exists even on freestanding compilers. */
31499
31500#ifdef __STDC__
31501# include <limits.h>
31502#else
31503# include <assert.h>
31504#endif
31505
31506#undef $ac_func
31507
31508/* Override any GCC internal prototype to avoid an error.
31509 Use char because int might match the return type of a GCC
31510 builtin and then its argument prototype would still apply. */
31511#ifdef __cplusplus
31512extern "C"
31513#endif
31514char $ac_func ();
31515/* The GNU C library defines this for functions which it implements
31516 to always fail with ENOSYS. Some functions are actually named
31517 something starting with __ and the normal name is an alias. */
31518#if defined __stub_$ac_func || defined __stub___$ac_func
31519choke me
31520#endif
31521
31522int
31523main ()
31524{
31525return $ac_func ();
31526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext conftest$ac_exeext
31531if { (ac_try="$ac_link"
31532case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_link") 2>conftest.er1
31538 ac_status=$?
31539 grep -v '^ *+' conftest.er1 >conftest.err
31540 rm -f conftest.er1
31541 cat conftest.err >&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); } &&
31544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31545 { (case "(($ac_try" in
31546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547 *) ac_try_echo=$ac_try;;
31548esac
31549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550 (eval "$ac_try") 2>&5
31551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; } &&
31554 { ac_try='test -s conftest$ac_exeext'
31555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558esac
31559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
31564 eval "$as_ac_var=yes"
31565else
31566 echo "$as_me: failed program was:" >&5
31567sed 's/^/| /' conftest.$ac_ext >&5
31568
31569 eval "$as_ac_var=no"
31570fi
31571
31572rm -f core conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
31574fi
31575ac_res=`eval echo '${'$as_ac_var'}'`
31576 { echo "$as_me:$LINENO: result: $ac_res" >&5
31577echo "${ECHO_T}$ac_res" >&6; }
31578if test `eval echo '${'$as_ac_var'}'` = yes; then
31579
31580cat >>confdefs.h <<_ACEOF
31581#define CRAY_STACKSEG_END $ac_func
31582_ACEOF
31583
31584 break
31585fi
31586
31587 done
31588fi
31589
31590{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31591echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31592if test "${ac_cv_c_stack_direction+set}" = set; then
31593 echo $ECHO_N "(cached) $ECHO_C" >&6
31594else
31595 if test "$cross_compiling" = yes; then
31596 ac_cv_c_stack_direction=0
31597else
31598 cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
31604$ac_includes_default
31605int
31606find_stack_direction ()
31607{
31608 static char *addr = 0;
31609 auto char dummy;
31610 if (addr == 0)
31611 {
31612 addr = &dummy;
31613 return find_stack_direction ();
31614 }
31615 else
31616 return (&dummy > addr) ? 1 : -1;
31617}
31618
31619int
31620main ()
31621{
31622 return find_stack_direction () < 0;
31623}
31624_ACEOF
31625rm -f conftest$ac_exeext
31626if { (ac_try="$ac_link"
31627case "(($ac_try" in
31628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629 *) ac_try_echo=$ac_try;;
31630esac
31631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632 (eval "$ac_link") 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31636 { (case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639esac
31640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_try") 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645 ac_cv_c_stack_direction=1
31646else
31647 echo "$as_me: program exited with status $ac_status" >&5
31648echo "$as_me: failed program was:" >&5
31649sed 's/^/| /' conftest.$ac_ext >&5
31650
31651( exit $ac_status )
31652ac_cv_c_stack_direction=-1
31653fi
31654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31655fi
31656
31657
31658fi
31659{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31660echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31661
31662cat >>confdefs.h <<_ACEOF
31663#define STACK_DIRECTION $ac_cv_c_stack_direction
31664_ACEOF
31665
31666
31667fi
31668
31669
31670{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31671echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31672if test "${ac_cv_func_rand48+set}" = set; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674else
31675 ac_ext=cpp
31676ac_cpp='$CXXCPP $CPPFLAGS'
31677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31680
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687#include <stdlib.h>
31688int
31689main ()
31690{
31691srand48(0);lrand48();drand48();
31692 ;
31693 return 0;
31694}
31695_ACEOF
31696rm -f conftest.$ac_objext
31697if { (ac_try="$ac_compile"
31698case "(($ac_try" in
31699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700 *) ac_try_echo=$ac_try;;
31701esac
31702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703 (eval "$ac_compile") 2>conftest.er1
31704 ac_status=$?
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } &&
31710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31711 { (case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31714esac
31715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_try") 2>&5
31717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; } &&
31720 { ac_try='test -s conftest.$ac_objext'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_rand48=yes
31731else
31732 echo "$as_me: failed program was:" >&5
31733sed 's/^/| /' conftest.$ac_ext >&5
31734
31735 ac_cv_func_rand48=no
31736fi
31737
31738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31739 ac_ext=c
31740ac_cpp='$CPP $CPPFLAGS'
31741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31743ac_compiler_gnu=$ac_cv_c_compiler_gnu
31744
31745fi
31746{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31747echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31748
31749if test "$ac_cv_func_rand48" = "yes" ; then
31750
31751cat >>confdefs.h <<\_ACEOF
31752#define HAVE_RAND48 1
31753_ACEOF
31754
31755fi
31756
31757
31758{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31759echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31760if test "${ac_cv_cxx_namespaces+set}" = set; then
31761 echo $ECHO_N "(cached) $ECHO_C" >&6
31762else
31763 ac_ext=cpp
31764ac_cpp='$CXXCPP $CPPFLAGS'
31765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31768
31769 cat >conftest.$ac_ext <<_ACEOF
31770/* confdefs.h. */
31771_ACEOF
31772cat confdefs.h >>conftest.$ac_ext
31773cat >>conftest.$ac_ext <<_ACEOF
31774/* end confdefs.h. */
31775namespace Outer { namespace Inner { int i = 0; }}
31776int
31777main ()
31778{
31779using namespace Outer::Inner; return i;
31780 ;
31781 return 0;
31782}
31783_ACEOF
31784rm -f conftest.$ac_objext
31785if { (ac_try="$ac_compile"
31786case "(($ac_try" in
31787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788 *) ac_try_echo=$ac_try;;
31789esac
31790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31791 (eval "$ac_compile") 2>conftest.er1
31792 ac_status=$?
31793 grep -v '^ *+' conftest.er1 >conftest.err
31794 rm -f conftest.er1
31795 cat conftest.err >&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } &&
31798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31799 { (case "(($ac_try" in
31800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31801 *) ac_try_echo=$ac_try;;
31802esac
31803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31804 (eval "$ac_try") 2>&5
31805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; } &&
31808 { ac_try='test -s conftest.$ac_objext'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812esac
31813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; }; then
31818 ac_cv_cxx_namespaces=yes
31819else
31820 echo "$as_me: failed program was:" >&5
31821sed 's/^/| /' conftest.$ac_ext >&5
31822
31823 ac_cv_cxx_namespaces=no
31824fi
31825
31826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827 ac_ext=c
31828ac_cpp='$CPP $CPPFLAGS'
31829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831ac_compiler_gnu=$ac_cv_c_compiler_gnu
31832
31833
31834fi
31835{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31836echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31837if test "$ac_cv_cxx_namespaces" = yes; then
31838
31839cat >>confdefs.h <<\_ACEOF
31840#define HAVE_NAMESPACES
31841_ACEOF
31842
31843fi
31844
31845{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31846echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31847if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850
31851 ac_ext=cpp
31852ac_cpp='$CXXCPP $CPPFLAGS'
31853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31856
31857 cat >conftest.$ac_ext <<_ACEOF
31858/* confdefs.h. */
31859_ACEOF
31860cat confdefs.h >>conftest.$ac_ext
31861cat >>conftest.$ac_ext <<_ACEOF
31862/* end confdefs.h. */
31863#include <ext/hash_map>
31864#ifdef HAVE_NAMESPACES
31865using namespace std;
31866#endif
31867int
31868main ()
31869{
31870hash_map<int, int> t;
31871 ;
31872 return 0;
31873}
31874_ACEOF
31875rm -f conftest.$ac_objext
31876if { (ac_try="$ac_compile"
31877case "(($ac_try" in
31878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31879 *) ac_try_echo=$ac_try;;
31880esac
31881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31882 (eval "$ac_compile") 2>conftest.er1
31883 ac_status=$?
31884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } &&
31889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31890 { (case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893esac
31894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_try") 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; } &&
31899 { ac_try='test -s conftest.$ac_objext'
31900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903esac
31904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; }; then
31909 ac_cv_cxx_have_std_ext_hash_map=yes
31910else
31911 echo "$as_me: failed program was:" >&5
31912sed 's/^/| /' conftest.$ac_ext >&5
31913
31914 ac_cv_cxx_have_std_ext_hash_map=no
31915fi
31916
31917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31918 ac_ext=c
31919ac_cpp='$CPP $CPPFLAGS'
31920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31922ac_compiler_gnu=$ac_cv_c_compiler_gnu
31923
31924fi
31925{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31926echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31927 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31928 then
31929
31930cat >>confdefs.h <<\_ACEOF
31931#define HAVE_STD_EXT_HASH_MAP 1
31932_ACEOF
31933
31934 else
31935
31936cat >>confdefs.h <<\_ACEOF
31937#define HAVE_STD_EXT_HASH_MAP 0
31938_ACEOF
31939
31940 fi
31941
31942 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31943echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31944if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31946else
31947
31948 ac_ext=cpp
31949ac_cpp='$CXXCPP $CPPFLAGS'
31950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31953
31954 cat >conftest.$ac_ext <<_ACEOF
31955/* confdefs.h. */
31956_ACEOF
31957cat confdefs.h >>conftest.$ac_ext
31958cat >>conftest.$ac_ext <<_ACEOF
31959/* end confdefs.h. */
31960#include <ext/hash_map>
31961#ifdef HAVE_NAMESPACES
31962using namespace __gnu_cxx;
31963#endif
31964int
31965main ()
31966{
31967hash_map<int,int> t;
31968 ;
31969 return 0;
31970}
31971_ACEOF
31972rm -f conftest.$ac_objext
31973if { (ac_try="$ac_compile"
31974case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31977esac
31978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_compile") 2>conftest.er1
31980 ac_status=$?
31981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
31986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31987 { (case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31990esac
31991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_try") 2>&5
31993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; } &&
31996 { ac_try='test -s conftest.$ac_objext'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_cxx_have_gnu_ext_hash_map=yes
32007else
32008 echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
32011 ac_cv_cxx_have_gnu_ext_hash_map=no
32012fi
32013
32014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32015 ac_ext=c
32016ac_cpp='$CPP $CPPFLAGS'
32017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019ac_compiler_gnu=$ac_cv_c_compiler_gnu
32020
32021fi
32022{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32023echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32024 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32025 then
32026
32027cat >>confdefs.h <<\_ACEOF
32028#define HAVE_GNU_EXT_HASH_MAP 1
32029_ACEOF
32030
32031 else
32032
32033cat >>confdefs.h <<\_ACEOF
32034#define HAVE_GNU_EXT_HASH_MAP 0
32035_ACEOF
32036
32037 fi
32038
32039 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32040echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32041if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32042 echo $ECHO_N "(cached) $ECHO_C" >&6
32043else
32044
32045 ac_ext=cpp
32046ac_cpp='$CXXCPP $CPPFLAGS'
32047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32050
32051 cat >conftest.$ac_ext <<_ACEOF
32052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
32057#include <hash_map>
32058int
32059main ()
32060{
32061hash_map<int,int> t;
32062 ;
32063 return 0;
32064}
32065_ACEOF
32066rm -f conftest.$ac_objext
32067if { (ac_try="$ac_compile"
32068case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_compile") 2>conftest.er1
32074 ac_status=$?
32075 grep -v '^ *+' conftest.er1 >conftest.err
32076 rm -f conftest.er1
32077 cat conftest.err >&5
32078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } &&
32080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32081 { (case "(($ac_try" in
32082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083 *) ac_try_echo=$ac_try;;
32084esac
32085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086 (eval "$ac_try") 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest.$ac_objext'
32091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32094esac
32095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
32097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; }; then
32100 ac_cv_cxx_have_global_hash_map=yes
32101else
32102 echo "$as_me: failed program was:" >&5
32103sed 's/^/| /' conftest.$ac_ext >&5
32104
32105 ac_cv_cxx_have_global_hash_map=no
32106fi
32107
32108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32109 ac_ext=c
32110ac_cpp='$CPP $CPPFLAGS'
32111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32113ac_compiler_gnu=$ac_cv_c_compiler_gnu
32114
32115fi
32116{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32117echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32118 if test "$ac_cv_cxx_have_global_hash_map" = yes
32119 then
32120
32121cat >>confdefs.h <<\_ACEOF
32122#define HAVE_GLOBAL_HASH_MAP 1
32123_ACEOF
32124
32125 else
32126
32127cat >>confdefs.h <<\_ACEOF
32128#define HAVE_GLOBAL_HASH_MAP 0
32129_ACEOF
32130
32131 fi
32132
32133{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32134echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32135if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32136 echo $ECHO_N "(cached) $ECHO_C" >&6
32137else
32138
32139 ac_ext=cpp
32140ac_cpp='$CXXCPP $CPPFLAGS'
32141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145 cat >conftest.$ac_ext <<_ACEOF
32146/* confdefs.h. */
32147_ACEOF
32148cat confdefs.h >>conftest.$ac_ext
32149cat >>conftest.$ac_ext <<_ACEOF
32150/* end confdefs.h. */
32151#include <ext/hash_set>
32152#ifdef HAVE_NAMESPACES
32153using namespace std;
32154#endif
32155int
32156main ()
32157{
32158hash_set<int> t;
32159 ;
32160 return 0;
32161}
32162_ACEOF
32163rm -f conftest.$ac_objext
32164if { (ac_try="$ac_compile"
32165case "(($ac_try" in
32166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32167 *) ac_try_echo=$ac_try;;
32168esac
32169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32170 (eval "$ac_compile") 2>conftest.er1
32171 ac_status=$?
32172 grep -v '^ *+' conftest.er1 >conftest.err
32173 rm -f conftest.er1
32174 cat conftest.err >&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
32177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32178 { (case "(($ac_try" in
32179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180 *) ac_try_echo=$ac_try;;
32181esac
32182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32183 (eval "$ac_try") 2>&5
32184 ac_status=$?
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); }; } &&
32187 { ac_try='test -s conftest.$ac_objext'
32188 { (case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32191esac
32192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_try") 2>&5
32194 ac_status=$?
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; }; then
32197 ac_cv_cxx_have_std_ext_hash_set=yes
32198else
32199 echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202 ac_cv_cxx_have_std_ext_hash_set=no
32203fi
32204
32205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 ac_ext=c
32207ac_cpp='$CPP $CPPFLAGS'
32208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32210ac_compiler_gnu=$ac_cv_c_compiler_gnu
32211
32212fi
32213{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32214echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32215 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32216 then
32217
32218cat >>confdefs.h <<\_ACEOF
32219#define HAVE_STD_EXT_HASH_SET 1
32220_ACEOF
32221
32222 else
32223
32224cat >>confdefs.h <<\_ACEOF
32225#define HAVE_STD_EXT_HASH_SET 0
32226_ACEOF
32227
32228 fi
32229
32230 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32231echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32232if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234else
32235
32236 ac_ext=cpp
32237ac_cpp='$CXXCPP $CPPFLAGS'
32238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241
32242 cat >conftest.$ac_ext <<_ACEOF
32243/* confdefs.h. */
32244_ACEOF
32245cat confdefs.h >>conftest.$ac_ext
32246cat >>conftest.$ac_ext <<_ACEOF
32247/* end confdefs.h. */
32248#include <ext/hash_set>
32249#ifdef HAVE_NAMESPACES
32250using namespace __gnu_cxx;
32251#endif
32252int
32253main ()
32254{
32255hash_set<int> t;
32256 ;
32257 return 0;
32258}
32259_ACEOF
32260rm -f conftest.$ac_objext
32261if { (ac_try="$ac_compile"
32262case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265esac
32266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_compile") 2>conftest.er1
32268 ac_status=$?
32269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
32274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32275 { (case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32278esac
32279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_try") 2>&5
32281 ac_status=$?
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); }; } &&
32284 { ac_try='test -s conftest.$ac_objext'
32285 { (case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32288esac
32289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_try") 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 ac_cv_cxx_have_gnu_ext_hash_set=yes
32295else
32296 echo "$as_me: failed program was:" >&5
32297sed 's/^/| /' conftest.$ac_ext >&5
32298
32299 ac_cv_cxx_have_gnu_ext_hash_set=no
32300fi
32301
32302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32303 ac_ext=c
32304ac_cpp='$CPP $CPPFLAGS'
32305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32307ac_compiler_gnu=$ac_cv_c_compiler_gnu
32308
32309fi
32310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32311echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32312 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32313 then
32314
32315cat >>confdefs.h <<\_ACEOF
32316#define HAVE_GNU_EXT_HASH_SET 1
32317_ACEOF
32318
32319 else
32320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_GNU_EXT_HASH_SET 0
32323_ACEOF
32324
32325 fi
32326
32327 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32328echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32329if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332
32333 ac_ext=cpp
32334ac_cpp='$CXXCPP $CPPFLAGS'
32335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32338
32339 cat >conftest.$ac_ext <<_ACEOF
32340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
32345#include <hash_set>
32346int
32347main ()
32348{
32349hash_set<int> t; return 0;
32350 ;
32351 return 0;
32352}
32353_ACEOF
32354rm -f conftest.$ac_objext
32355if { (ac_try="$ac_compile"
32356case "(($ac_try" in
32357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358 *) ac_try_echo=$ac_try;;
32359esac
32360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361 (eval "$ac_compile") 2>conftest.er1
32362 ac_status=$?
32363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } &&
32368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32369 { (case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372esac
32373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_try") 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; } &&
32378 { ac_try='test -s conftest.$ac_objext'
32379 { (case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32382esac
32383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_try") 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 ac_cv_cxx_have_global_hash_set=yes
32389else
32390 echo "$as_me: failed program was:" >&5
32391sed 's/^/| /' conftest.$ac_ext >&5
32392
32393 ac_cv_cxx_have_global_hash_set=no
32394fi
32395
32396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32397 ac_ext=c
32398ac_cpp='$CPP $CPPFLAGS'
32399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32401ac_compiler_gnu=$ac_cv_c_compiler_gnu
32402
32403fi
32404{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32405echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32406 if test "$ac_cv_cxx_have_global_hash_set" = yes
32407 then
32408
32409cat >>confdefs.h <<\_ACEOF
32410#define HAVE_GLOBAL_HASH_SET 1
32411_ACEOF
32412
32413 else
32414
32415cat >>confdefs.h <<\_ACEOF
32416#define HAVE_GLOBAL_HASH_SET 0
32417_ACEOF
32418
32419 fi
32420
32421{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32422echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32423if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32424 echo $ECHO_N "(cached) $ECHO_C" >&6
32425else
32426
32427 ac_ext=cpp
32428ac_cpp='$CXXCPP $CPPFLAGS'
32429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32432
32433 cat >conftest.$ac_ext <<_ACEOF
32434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
32439#include <iterator>
32440#ifdef HAVE_NAMESPACES
32441using namespace std;
32442#endif
32443int
32444main ()
32445{
32446iterator<int,int,int> t; return 0;
32447 ;
32448 return 0;
32449}
32450_ACEOF
32451rm -f conftest.$ac_objext
32452if { (ac_try="$ac_compile"
32453case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456esac
32457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
32459 ac_status=$?
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
32465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32466 { (case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_try") 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
32476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479esac
32480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 ac_cv_cxx_have_std_iterator=yes
32486else
32487 echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
32490 ac_cv_cxx_have_std_iterator=no
32491fi
32492
32493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32494 ac_ext=c
32495ac_cpp='$CPP $CPPFLAGS'
32496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498ac_compiler_gnu=$ac_cv_c_compiler_gnu
32499
32500
32501fi
32502{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32503echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32504if test "$ac_cv_cxx_have_std_iterator" = yes
32505then
32506
32507cat >>confdefs.h <<\_ACEOF
32508#define HAVE_STD_ITERATOR 1
32509_ACEOF
32510
32511else
32512
32513cat >>confdefs.h <<\_ACEOF
32514#define HAVE_STD_ITERATOR 0
32515_ACEOF
32516
32517fi
32518
32519{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32520echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32521if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32523else
32524
32525 ac_ext=cpp
32526ac_cpp='$CXXCPP $CPPFLAGS'
32527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32530
32531 cat >conftest.$ac_ext <<_ACEOF
32532/* confdefs.h. */
32533_ACEOF
32534cat confdefs.h >>conftest.$ac_ext
32535cat >>conftest.$ac_ext <<_ACEOF
32536/* end confdefs.h. */
32537#include <iterator>
32538#ifdef HAVE_NAMESPACES
32539using namespace std;
32540#endif
32541int
32542main ()
32543{
32544bidirectional_iterator<int,int> t; return 0;
32545 ;
32546 return 0;
32547}
32548_ACEOF
32549rm -f conftest.$ac_objext
32550if { (ac_try="$ac_compile"
32551case "(($ac_try" in
32552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553 *) ac_try_echo=$ac_try;;
32554esac
32555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_compile") 2>conftest.er1
32557 ac_status=$?
32558 grep -v '^ *+' conftest.er1 >conftest.err
32559 rm -f conftest.er1
32560 cat conftest.err >&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } &&
32563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32564 { (case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32567esac
32568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569 (eval "$ac_try") 2>&5
32570 ac_status=$?
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; } &&
32573 { ac_try='test -s conftest.$ac_objext'
32574 { (case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32577esac
32578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_try") 2>&5
32580 ac_status=$?
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; }; then
32583 ac_cv_cxx_have_bi_iterator=yes
32584else
32585 echo "$as_me: failed program was:" >&5
32586sed 's/^/| /' conftest.$ac_ext >&5
32587
32588 ac_cv_cxx_have_bi_iterator=no
32589fi
32590
32591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32592 ac_ext=c
32593ac_cpp='$CPP $CPPFLAGS'
32594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32596ac_compiler_gnu=$ac_cv_c_compiler_gnu
32597
32598
32599fi
32600{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32601echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32602if test "$ac_cv_cxx_have_bi_iterator" = yes
32603then
32604
32605cat >>confdefs.h <<\_ACEOF
32606#define HAVE_BI_ITERATOR 1
32607_ACEOF
32608
32609else
32610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_BI_ITERATOR 0
32613_ACEOF
32614
32615fi
32616
32617{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32618echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32619if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32620 echo $ECHO_N "(cached) $ECHO_C" >&6
32621else
32622
32623 ac_ext=cpp
32624ac_cpp='$CXXCPP $CPPFLAGS'
32625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
32629 cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635#include <iterator>
32636#ifdef HAVE_NAMESPACES
32637using namespace std;
32638#endif
32639int
32640main ()
32641{
32642forward_iterator<int,int> t; return 0;
32643 ;
32644 return 0;
32645}
32646_ACEOF
32647rm -f conftest.$ac_objext
32648if { (ac_try="$ac_compile"
32649case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32652esac
32653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
32655 ac_status=$?
32656 grep -v '^ *+' conftest.er1 >conftest.err
32657 rm -f conftest.er1
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } &&
32661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32662 { (case "(($ac_try" in
32663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32664 *) ac_try_echo=$ac_try;;
32665esac
32666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32667 (eval "$ac_try") 2>&5
32668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; } &&
32671 { ac_try='test -s conftest.$ac_objext'
32672 { (case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32675esac
32676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_try") 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 ac_cv_cxx_have_fwd_iterator=yes
32682else
32683 echo "$as_me: failed program was:" >&5
32684sed 's/^/| /' conftest.$ac_ext >&5
32685
32686 ac_cv_cxx_have_fwd_iterator=no
32687fi
32688
32689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32690 ac_ext=c
32691ac_cpp='$CPP $CPPFLAGS'
32692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32694ac_compiler_gnu=$ac_cv_c_compiler_gnu
32695
32696
32697fi
32698{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32699echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32700if test "$ac_cv_cxx_have_fwd_iterator" = yes
32701then
32702
32703cat >>confdefs.h <<\_ACEOF
32704#define HAVE_FWD_ITERATOR 1
32705_ACEOF
32706
32707else
32708
32709cat >>confdefs.h <<\_ACEOF
32710#define HAVE_FWD_ITERATOR 0
32711_ACEOF
32712
32713fi
32714
32715
32716{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32717echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32718if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32720else
32721 ac_ext=cpp
32722ac_cpp='$CXXCPP $CPPFLAGS'
32723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32726
32727 cat >conftest.$ac_ext <<_ACEOF
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733#include <math.h>
32734int
32735main ()
32736{
32737float f; isnan(f);
32738 ;
32739 return 0;
32740}
32741_ACEOF
32742rm -f conftest.$ac_objext
32743if { (ac_try="$ac_compile"
32744case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747esac
32748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749 (eval "$ac_compile") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
32756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32757 { (case "(($ac_try" in
32758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32759 *) ac_try_echo=$ac_try;;
32760esac
32761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32762 (eval "$ac_try") 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest.$ac_objext'
32767 { (case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_try") 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_func_isnan_in_math_h=yes
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
32781 ac_cv_func_isnan_in_math_h=no
32782fi
32783
32784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32785 ac_ext=c
32786ac_cpp='$CPP $CPPFLAGS'
32787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32789ac_compiler_gnu=$ac_cv_c_compiler_gnu
32790
32791fi
32792{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32793echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32794
32795
32796if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32797
32798cat >>confdefs.h <<\_ACEOF
32799#define HAVE_ISNAN_IN_MATH_H 1
32800_ACEOF
32801
32802fi
32803
32804{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32805echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32806if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808else
32809 ac_ext=cpp
32810ac_cpp='$CXXCPP $CPPFLAGS'
32811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32814
32815 cat >conftest.$ac_ext <<_ACEOF
32816/* confdefs.h. */
32817_ACEOF
32818cat confdefs.h >>conftest.$ac_ext
32819cat >>conftest.$ac_ext <<_ACEOF
32820/* end confdefs.h. */
32821#include <cmath>
32822int
32823main ()
32824{
32825float f; isnan(f);
32826 ;
32827 return 0;
32828}
32829_ACEOF
32830rm -f conftest.$ac_objext
32831if { (ac_try="$ac_compile"
32832case "(($ac_try" in
32833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834 *) ac_try_echo=$ac_try;;
32835esac
32836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32837 (eval "$ac_compile") 2>conftest.er1
32838 ac_status=$?
32839 grep -v '^ *+' conftest.er1 >conftest.err
32840 rm -f conftest.er1
32841 cat conftest.err >&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); } &&
32844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32845 { (case "(($ac_try" in
32846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847 *) ac_try_echo=$ac_try;;
32848esac
32849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850 (eval "$ac_try") 2>&5
32851 ac_status=$?
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); }; } &&
32854 { ac_try='test -s conftest.$ac_objext'
32855 { (case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32858esac
32859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_try") 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ac_cv_func_isnan_in_cmath=yes
32865else
32866 echo "$as_me: failed program was:" >&5
32867sed 's/^/| /' conftest.$ac_ext >&5
32868
32869 ac_cv_func_isnan_in_cmath=no
32870fi
32871
32872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32873 ac_ext=c
32874ac_cpp='$CPP $CPPFLAGS'
32875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32877ac_compiler_gnu=$ac_cv_c_compiler_gnu
32878
32879fi
32880{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32881echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32882
32883if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32884
32885cat >>confdefs.h <<\_ACEOF
32886#define HAVE_ISNAN_IN_CMATH 1
32887_ACEOF
32888
32889fi
32890
32891{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32892echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32893if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895else
32896 ac_ext=cpp
32897ac_cpp='$CXXCPP $CPPFLAGS'
32898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32901
32902 cat >conftest.$ac_ext <<_ACEOF
32903/* confdefs.h. */
32904_ACEOF
32905cat confdefs.h >>conftest.$ac_ext
32906cat >>conftest.$ac_ext <<_ACEOF
32907/* end confdefs.h. */
32908#include <cmath>
32909int
32910main ()
32911{
32912float f; std::isnan(f);
32913 ;
32914 return 0;
32915}
32916_ACEOF
32917rm -f conftest.$ac_objext
32918if { (ac_try="$ac_compile"
32919case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32922esac
32923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924 (eval "$ac_compile") 2>conftest.er1
32925 ac_status=$?
32926 grep -v '^ *+' conftest.er1 >conftest.err
32927 rm -f conftest.er1
32928 cat conftest.err >&5
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
32931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932 { (case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32935esac
32936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_try") 2>&5
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest.$ac_objext'
32942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_func_std_isnan_in_cmath=yes
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956 ac_cv_func_std_isnan_in_cmath=no
32957fi
32958
32959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960 ac_ext=c
32961ac_cpp='$CPP $CPPFLAGS'
32962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964ac_compiler_gnu=$ac_cv_c_compiler_gnu
32965
32966fi
32967{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32968echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32969
32970if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32971
32972cat >>confdefs.h <<\_ACEOF
32973#define HAVE_STD_ISNAN_IN_CMATH 1
32974_ACEOF
32975
32976fi
32977
32978
32979{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32980echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32981if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983else
32984 ac_ext=cpp
32985ac_cpp='$CXXCPP $CPPFLAGS'
32986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32989
32990 cat >conftest.$ac_ext <<_ACEOF
32991/* confdefs.h. */
32992_ACEOF
32993cat confdefs.h >>conftest.$ac_ext
32994cat >>conftest.$ac_ext <<_ACEOF
32995/* end confdefs.h. */
32996#include <math.h>
32997int
32998main ()
32999{
33000float f; isinf(f);
33001 ;
33002 return 0;
33003}
33004_ACEOF
33005rm -f conftest.$ac_objext
33006if { (ac_try="$ac_compile"
33007case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33010esac
33011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_compile") 2>conftest.er1
33013 ac_status=$?
33014 grep -v '^ *+' conftest.er1 >conftest.err
33015 rm -f conftest.er1
33016 cat conftest.err >&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } &&
33019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020 { (case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023esac
33024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_try") 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest.$ac_objext'
33030 { (case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033esac
33034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_try") 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
33039 ac_cv_func_isinf_in_math_h=yes
33040else
33041 echo "$as_me: failed program was:" >&5
33042sed 's/^/| /' conftest.$ac_ext >&5
33043
33044 ac_cv_func_isinf_in_math_h=no
33045fi
33046
33047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33048 ac_ext=c
33049ac_cpp='$CPP $CPPFLAGS'
33050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052ac_compiler_gnu=$ac_cv_c_compiler_gnu
33053
33054fi
33055{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33056echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33057
33058if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33059
33060cat >>confdefs.h <<\_ACEOF
33061#define HAVE_ISINF_IN_MATH_H 1
33062_ACEOF
33063
33064fi
33065
33066{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33067echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33068if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33070else
33071 ac_ext=cpp
33072ac_cpp='$CXXCPP $CPPFLAGS'
33073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33076
33077 cat >conftest.$ac_ext <<_ACEOF
33078/* confdefs.h. */
33079_ACEOF
33080cat confdefs.h >>conftest.$ac_ext
33081cat >>conftest.$ac_ext <<_ACEOF
33082/* end confdefs.h. */
33083#include <cmath>
33084int
33085main ()
33086{
33087float f; isinf(f);
33088 ;
33089 return 0;
33090}
33091_ACEOF
33092rm -f conftest.$ac_objext
33093if { (ac_try="$ac_compile"
33094case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33097esac
33098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_compile") 2>conftest.er1
33100 ac_status=$?
33101 grep -v '^ *+' conftest.er1 >conftest.err
33102 rm -f conftest.er1
33103 cat conftest.err >&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); } &&
33106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107 { (case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110esac
33111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_try") 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
33117 { (case "(($ac_try" in
33118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119 *) ac_try_echo=$ac_try;;
33120esac
33121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122 (eval "$ac_try") 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126 ac_cv_func_isinf_in_cmath=yes
33127else
33128 echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
33131 ac_cv_func_isinf_in_cmath=no
33132fi
33133
33134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33135 ac_ext=c
33136ac_cpp='$CPP $CPPFLAGS'
33137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139ac_compiler_gnu=$ac_cv_c_compiler_gnu
33140
33141fi
33142{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33143echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33144
33145if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33146
33147cat >>confdefs.h <<\_ACEOF
33148#define HAVE_ISINF_IN_CMATH 1
33149_ACEOF
33150
33151fi
33152
33153{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33154echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33155if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33156 echo $ECHO_N "(cached) $ECHO_C" >&6
33157else
33158 ac_ext=cpp
33159ac_cpp='$CXXCPP $CPPFLAGS'
33160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33163
33164 cat >conftest.$ac_ext <<_ACEOF
33165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
33170#include <cmath>
33171int
33172main ()
33173{
33174float f; std::isinf(f)}
33175 ;
33176 return 0;
33177}
33178_ACEOF
33179rm -f conftest.$ac_objext
33180if { (ac_try="$ac_compile"
33181case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33184esac
33185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_compile") 2>conftest.er1
33187 ac_status=$?
33188 grep -v '^ *+' conftest.er1 >conftest.err
33189 rm -f conftest.er1
33190 cat conftest.err >&5
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); } &&
33193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197esac
33198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; } &&
33203 { ac_try='test -s conftest.$ac_objext'
33204 { (case "(($ac_try" in
33205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33206 *) ac_try_echo=$ac_try;;
33207esac
33208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33209 (eval "$ac_try") 2>&5
33210 ac_status=$?
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; }; then
33213 ac_cv_func_std_isinf_in_cmath=yes
33214else
33215 echo "$as_me: failed program was:" >&5
33216sed 's/^/| /' conftest.$ac_ext >&5
33217
33218 ac_cv_func_std_isinf_in_cmath=no
33219fi
33220
33221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33222 ac_ext=c
33223ac_cpp='$CPP $CPPFLAGS'
33224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33226ac_compiler_gnu=$ac_cv_c_compiler_gnu
33227
33228fi
33229{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33230echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33231
33232if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33233
33234cat >>confdefs.h <<\_ACEOF
33235#define HAVE_STD_ISINF_IN_CMATH 1
33236_ACEOF
33237
33238fi
33239
33240{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33241echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33242if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33244else
33245 ac_ext=cpp
33246ac_cpp='$CXXCPP $CPPFLAGS'
33247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33250
33251 cat >conftest.$ac_ext <<_ACEOF
33252/* confdefs.h. */
33253_ACEOF
33254cat confdefs.h >>conftest.$ac_ext
33255cat >>conftest.$ac_ext <<_ACEOF
33256/* end confdefs.h. */
33257#include <ieeefp.h>
33258int
33259main ()
33260{
33261float f; finite(f);
33262 ;
33263 return 0;
33264}
33265_ACEOF
33266rm -f conftest.$ac_objext
33267if { (ac_try="$ac_compile"
33268case "(($ac_try" in
33269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270 *) ac_try_echo=$ac_try;;
33271esac
33272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33273 (eval "$ac_compile") 2>conftest.er1
33274 ac_status=$?
33275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
33280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33281 { (case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33284esac
33285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286 (eval "$ac_try") 2>&5
33287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest.$ac_objext'
33291 { (case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33294esac
33295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_try") 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 ac_cv_func_finite_in_ieeefp_h=yes
33301else
33302 echo "$as_me: failed program was:" >&5
33303sed 's/^/| /' conftest.$ac_ext >&5
33304
33305 ac_cv_func_finite_in_ieeefp_h=no
33306fi
33307
33308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33309 ac_ext=c
33310ac_cpp='$CPP $CPPFLAGS'
33311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33313ac_compiler_gnu=$ac_cv_c_compiler_gnu
33314
33315fi
33316{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33317echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33318
33319if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33320
33321cat >>confdefs.h <<\_ACEOF
33322#define HAVE_FINITE_IN_IEEEFP_H 1
33323_ACEOF
33324
33325fi
33326
33327
33328
33329if test "$llvm_cv_platform_type" = "Unix" ; then
33330
33331
33332for ac_header in stdlib.h unistd.h
33333do
33334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33340fi
33341ac_res=`eval echo '${'$as_ac_Header'}'`
33342 { echo "$as_me:$LINENO: result: $ac_res" >&5
33343echo "${ECHO_T}$ac_res" >&6; }
33344else
33345 # Is the header compilable?
33346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33348cat >conftest.$ac_ext <<_ACEOF
33349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
33354$ac_includes_default
33355#include <$ac_header>
33356_ACEOF
33357rm -f conftest.$ac_objext
33358if { (ac_try="$ac_compile"
33359case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33362esac
33363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_compile") 2>conftest.er1
33365 ac_status=$?
33366 grep -v '^ *+' conftest.er1 >conftest.err
33367 rm -f conftest.er1
33368 cat conftest.err >&5
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
33371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
33378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; } &&
33381 { ac_try='test -s conftest.$ac_objext'
33382 { (case "(($ac_try" in
33383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33384 *) ac_try_echo=$ac_try;;
33385esac
33386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33387 (eval "$ac_try") 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; }; then
33391 ac_header_compiler=yes
33392else
33393 echo "$as_me: failed program was:" >&5
33394sed 's/^/| /' conftest.$ac_ext >&5
33395
33396 ac_header_compiler=no
33397fi
33398
33399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33401echo "${ECHO_T}$ac_header_compiler" >&6; }
33402
33403# Is the header present?
33404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33406cat >conftest.$ac_ext <<_ACEOF
33407/* confdefs.h. */
33408_ACEOF
33409cat confdefs.h >>conftest.$ac_ext
33410cat >>conftest.$ac_ext <<_ACEOF
33411/* end confdefs.h. */
33412#include <$ac_header>
33413_ACEOF
33414if { (ac_try="$ac_cpp conftest.$ac_ext"
33415case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33418esac
33419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33421 ac_status=$?
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } >/dev/null; then
33427 if test -s conftest.err; then
33428 ac_cpp_err=$ac_c_preproc_warn_flag
33429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33430 else
33431 ac_cpp_err=
33432 fi
33433else
33434 ac_cpp_err=yes
33435fi
33436if test -z "$ac_cpp_err"; then
33437 ac_header_preproc=yes
33438else
33439 echo "$as_me: failed program was:" >&5
33440sed 's/^/| /' conftest.$ac_ext >&5
33441
33442 ac_header_preproc=no
33443fi
33444
33445rm -f conftest.err conftest.$ac_ext
33446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33447echo "${ECHO_T}$ac_header_preproc" >&6; }
33448
33449# So? What about this header?
33450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33451 yes:no: )
33452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33456 ac_header_preproc=yes
33457 ;;
33458 no:yes:* )
33459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33471 ( cat <<\_ASBOX
33472## ----------------------------------- ##
33473## Report this to llvmbugs@cs.uiuc.edu ##
33474## ----------------------------------- ##
33475_ASBOX
33476 ) | sed "s/^/$as_me: WARNING: /" >&2
33477 ;;
33478esac
33479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
33484 eval "$as_ac_Header=\$ac_header_preproc"
33485fi
33486ac_res=`eval echo '${'$as_ac_Header'}'`
33487 { echo "$as_me:$LINENO: result: $ac_res" >&5
33488echo "${ECHO_T}$ac_res" >&6; }
33489
33490fi
33491if test `eval echo '${'$as_ac_Header'}'` = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33494_ACEOF
33495
33496fi
33497
33498done
33499
33500
33501for ac_func in getpagesize
33502do
33503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509 cat >conftest.$ac_ext <<_ACEOF
33510/* confdefs.h. */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h. */
33515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33517#define $ac_func innocuous_$ac_func
33518
33519/* System header to define __stub macros and hopefully few prototypes,
33520 which can conflict with char $ac_func (); below.
33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522 <limits.h> exists even on freestanding compilers. */
33523
33524#ifdef __STDC__
33525# include <limits.h>
33526#else
33527# include <assert.h>
33528#endif
33529
33530#undef $ac_func
33531
33532/* Override any GCC internal prototype to avoid an error.
33533 Use char because int might match the return type of a GCC
33534 builtin and then its argument prototype would still apply. */
33535#ifdef __cplusplus
33536extern "C"
33537#endif
33538char $ac_func ();
33539/* The GNU C library defines this for functions which it implements
33540 to always fail with ENOSYS. Some functions are actually named
33541 something starting with __ and the normal name is an alias. */
33542#if defined __stub_$ac_func || defined __stub___$ac_func
33543choke me
33544#endif
33545
33546int
33547main ()
33548{
33549return $ac_func ();
33550 ;
33551 return 0;
33552}
33553_ACEOF
33554rm -f conftest.$ac_objext conftest$ac_exeext
33555if { (ac_try="$ac_link"
33556case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33559esac
33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_link") 2>conftest.er1
33562 ac_status=$?
33563 grep -v '^ *+' conftest.er1 >conftest.err
33564 rm -f conftest.er1
33565 cat conftest.err >&5
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } &&
33568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572esac
33573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
33575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; } &&
33578 { ac_try='test -s conftest$ac_exeext'
33579 { (case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33582esac
33583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_try") 2>&5
33585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 eval "$as_ac_var=yes"
33589else
33590 echo "$as_me: failed program was:" >&5
33591sed 's/^/| /' conftest.$ac_ext >&5
33592
33593 eval "$as_ac_var=no"
33594fi
33595
33596rm -f core conftest.err conftest.$ac_objext \
33597 conftest$ac_exeext conftest.$ac_ext
33598fi
33599ac_res=`eval echo '${'$as_ac_var'}'`
33600 { echo "$as_me:$LINENO: result: $ac_res" >&5
33601echo "${ECHO_T}$ac_res" >&6; }
33602if test `eval echo '${'$as_ac_var'}'` = yes; then
33603 cat >>confdefs.h <<_ACEOF
33604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33605_ACEOF
33606
33607fi
33608done
33609
33610{ echo "$as_me:$LINENO: checking for working mmap" >&5
33611echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33612if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
33615 if test "$cross_compiling" = yes; then
33616 ac_cv_func_mmap_fixed_mapped=no
33617else
33618 cat >conftest.$ac_ext <<_ACEOF
33619/* confdefs.h. */
33620_ACEOF
33621cat confdefs.h >>conftest.$ac_ext
33622cat >>conftest.$ac_ext <<_ACEOF
33623/* end confdefs.h. */
33624$ac_includes_default
33625/* malloc might have been renamed as rpl_malloc. */
33626#undef malloc
33627
33628/* Thanks to Mike Haertel and Jim Avera for this test.
33629 Here is a matrix of mmap possibilities:
33630 mmap private not fixed
33631 mmap private fixed at somewhere currently unmapped
33632 mmap private fixed at somewhere already mapped
33633 mmap shared not fixed
33634 mmap shared fixed at somewhere currently unmapped
33635 mmap shared fixed at somewhere already mapped
33636 For private mappings, we should verify that changes cannot be read()
33637 back from the file, nor mmap's back from the file at a different
33638 address. (There have been systems where private was not correctly
33639 implemented like the infamous i386 svr4.0, and systems where the
33640 VM page cache was not coherent with the file system buffer cache
33641 like early versions of FreeBSD and possibly contemporary NetBSD.)
33642 For shared mappings, we should conversely verify that changes get
33643 propagated back to all the places they're supposed to be.
33644
33645 Grep wants private fixed already mapped.
33646 The main things grep needs to know about mmap are:
33647 * does it exist and is it safe to write into the mmap'd area
33648 * how to use it (BSD variants) */
33649
33650#include <fcntl.h>
33651#include <sys/mman.h>
33652
33653#if !STDC_HEADERS && !HAVE_STDLIB_H
33654char *malloc ();
33655#endif
33656
33657/* This mess was copied from the GNU getpagesize.h. */
33658#if !HAVE_GETPAGESIZE
33659/* Assume that all systems that can run configure have sys/param.h. */
33660# if !HAVE_SYS_PARAM_H
33661# define HAVE_SYS_PARAM_H 1
33662# endif
33663
33664# ifdef _SC_PAGESIZE
33665# define getpagesize() sysconf(_SC_PAGESIZE)
33666# else /* no _SC_PAGESIZE */
33667# if HAVE_SYS_PARAM_H
33668# include <sys/param.h>
33669# ifdef EXEC_PAGESIZE
33670# define getpagesize() EXEC_PAGESIZE
33671# else /* no EXEC_PAGESIZE */
33672# ifdef NBPG
33673# define getpagesize() NBPG * CLSIZE
33674# ifndef CLSIZE
33675# define CLSIZE 1
33676# endif /* no CLSIZE */
33677# else /* no NBPG */
33678# ifdef NBPC
33679# define getpagesize() NBPC
33680# else /* no NBPC */
33681# ifdef PAGESIZE
33682# define getpagesize() PAGESIZE
33683# endif /* PAGESIZE */
33684# endif /* no NBPC */
33685# endif /* no NBPG */
33686# endif /* no EXEC_PAGESIZE */
33687# else /* no HAVE_SYS_PARAM_H */
33688# define getpagesize() 8192 /* punt totally */
33689# endif /* no HAVE_SYS_PARAM_H */
33690# endif /* no _SC_PAGESIZE */
33691
33692#endif /* no HAVE_GETPAGESIZE */
33693
33694int
33695main ()
33696{
33697 char *data, *data2, *data3;
33698 int i, pagesize;
33699 int fd;
33700
33701 pagesize = getpagesize ();
33702
33703 /* First, make a file with some known garbage in it. */
33704 data = (char *) malloc (pagesize);
33705 if (!data)
33706 return 1;
33707 for (i = 0; i < pagesize; ++i)
33708 *(data + i) = rand ();
33709 umask (0);
33710 fd = creat ("conftest.mmap", 0600);
33711 if (fd < 0)
33712 return 1;
33713 if (write (fd, data, pagesize) != pagesize)
33714 return 1;
33715 close (fd);
33716
33717 /* Next, try to mmap the file at a fixed address which already has
33718 something else allocated at it. If we can, also make sure that
33719 we see the same garbage. */
33720 fd = open ("conftest.mmap", O_RDWR);
33721 if (fd < 0)
33722 return 1;
33723 data2 = (char *) malloc (2 * pagesize);
33724 if (!data2)
33725 return 1;
33726 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33727 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33728 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33729 return 1;
33730 for (i = 0; i < pagesize; ++i)
33731 if (*(data + i) != *(data2 + i))
33732 return 1;
33733
33734 /* Finally, make sure that changes to the mapped area do not
33735 percolate back to the file as seen by read(). (This is a bug on
33736 some variants of i386 svr4.0.) */
33737 for (i = 0; i < pagesize; ++i)
33738 *(data2 + i) = *(data2 + i) + 1;
33739 data3 = (char *) malloc (pagesize);
33740 if (!data3)
33741 return 1;
33742 if (read (fd, data3, pagesize) != pagesize)
33743 return 1;
33744 for (i = 0; i < pagesize; ++i)
33745 if (*(data + i) != *(data3 + i))
33746 return 1;
33747 close (fd);
33748 return 0;
33749}
33750_ACEOF
33751rm -f conftest$ac_exeext
33752if { (ac_try="$ac_link"
33753case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33756esac
33757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_link") 2>&5
33759 ac_status=$?
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33762 { (case "(($ac_try" in
33763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764 *) ac_try_echo=$ac_try;;
33765esac
33766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767 (eval "$ac_try") 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 ac_cv_func_mmap_fixed_mapped=yes
33772else
33773 echo "$as_me: program exited with status $ac_status" >&5
33774echo "$as_me: failed program was:" >&5
33775sed 's/^/| /' conftest.$ac_ext >&5
33776
33777( exit $ac_status )
33778ac_cv_func_mmap_fixed_mapped=no
33779fi
33780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33781fi
33782
33783
33784fi
33785{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33786echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33787if test $ac_cv_func_mmap_fixed_mapped = yes; then
33788
33789cat >>confdefs.h <<\_ACEOF
33790#define HAVE_MMAP 1
33791_ACEOF
33792
33793fi
33794rm -f conftest.mmap
33795
33796 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33797echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33798if test "${ac_cv_func_mmap_file+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800else
33801 ac_ext=c
33802ac_cpp='$CPP $CPPFLAGS'
33803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805ac_compiler_gnu=$ac_cv_c_compiler_gnu
33806
33807 if test "$cross_compiling" = yes; then
33808 ac_cv_func_mmap_file=no
33809else
33810 cat >conftest.$ac_ext <<_ACEOF
33811
33812 /* confdefs.h. */
33813_ACEOF
33814cat confdefs.h >>conftest.$ac_ext
33815cat >>conftest.$ac_ext <<_ACEOF
33816/* end confdefs.h. */
33817
33818#include <sys/types.h>
33819#include <sys/mman.h>
33820#include <fcntl.h>
33821
33822int
33823main ()
33824{
33825
33826 int fd;
33827 fd = creat ("foo",0777);
33828 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33829 unlink ("foo");
33830 return (fd != (int) MAP_FAILED);
33831 ;
33832 return 0;
33833}
33834_ACEOF
33835rm -f conftest$ac_exeext
33836if { (ac_try="$ac_link"
33837case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840esac
33841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_link") 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849esac
33850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
33855 ac_cv_func_mmap_file=yes
33856else
33857 echo "$as_me: program exited with status $ac_status" >&5
33858echo "$as_me: failed program was:" >&5
33859sed 's/^/| /' conftest.$ac_ext >&5
33860
33861( exit $ac_status )
33862ac_cv_func_mmap_file=no
33863fi
33864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33865fi
33866
33867
33868 ac_ext=c
33869ac_cpp='$CPP $CPPFLAGS'
33870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33872ac_compiler_gnu=$ac_cv_c_compiler_gnu
33873
33874
33875fi
33876{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33877echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33878if test "$ac_cv_func_mmap_file" = yes; then
33879
33880cat >>confdefs.h <<\_ACEOF
33881#define HAVE_MMAP_FILE
33882_ACEOF
33883
33884 MMAP_FILE=yes
33885
33886fi
33887
33888 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33889echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33890if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33892else
33893 if test "$llvm_cv_os_type" = "Interix" ; then
33894 ac_cv_need_dev_zero_for_mmap=yes
33895 else
33896 ac_cv_need_dev_zero_for_mmap=no
33897 fi
33898
33899fi
33900{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33901echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33902if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33903
33904cat >>confdefs.h <<\_ACEOF
33905#define NEED_DEV_ZERO_FOR_MMAP 1
33906_ACEOF
33907
33908fi
33909
33910 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33911 then
33912 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33913echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33914 fi
33915 if test "$ac_cv_func_mmap_file" = "no"
33916 then
33917 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33918echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33919 fi
33920fi
33921
33922
Reid Spencer59c09b32007-07-30 20:13:24 +000033923
33924for ac_func in __dso_handle
33925do
33926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931else
33932 cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h. */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h. */
33938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33940#define $ac_func innocuous_$ac_func
33941
33942/* System header to define __stub macros and hopefully few prototypes,
33943 which can conflict with char $ac_func (); below.
33944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33945 <limits.h> exists even on freestanding compilers. */
33946
33947#ifdef __STDC__
33948# include <limits.h>
33949#else
33950# include <assert.h>
33951#endif
33952
33953#undef $ac_func
33954
33955/* Override any GCC internal prototype to avoid an error.
33956 Use char because int might match the return type of a GCC
33957 builtin and then its argument prototype would still apply. */
33958#ifdef __cplusplus
33959extern "C"
33960#endif
33961char $ac_func ();
33962/* The GNU C library defines this for functions which it implements
33963 to always fail with ENOSYS. Some functions are actually named
33964 something starting with __ and the normal name is an alias. */
33965#if defined __stub_$ac_func || defined __stub___$ac_func
33966choke me
33967#endif
33968
33969int
33970main ()
33971{
33972return $ac_func ();
33973 ;
33974 return 0;
33975}
33976_ACEOF
33977rm -f conftest.$ac_objext conftest$ac_exeext
33978if { (ac_try="$ac_link"
33979case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982esac
33983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>conftest.er1
33985 ac_status=$?
33986 grep -v '^ *+' conftest.er1 >conftest.err
33987 rm -f conftest.er1
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33992 { (case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995esac
33996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_try") 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest$ac_exeext'
34002 { (case "(($ac_try" in
34003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004 *) ac_try_echo=$ac_try;;
34005esac
34006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007 (eval "$ac_try") 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
34011 eval "$as_ac_var=yes"
34012else
34013 echo "$as_me: failed program was:" >&5
34014sed 's/^/| /' conftest.$ac_ext >&5
34015
34016 eval "$as_ac_var=no"
34017fi
34018
34019rm -f core conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34021fi
34022ac_res=`eval echo '${'$as_ac_var'}'`
34023 { echo "$as_me:$LINENO: result: $ac_res" >&5
34024echo "${ECHO_T}$ac_res" >&6; }
34025if test `eval echo '${'$as_ac_var'}'` = yes; then
34026 cat >>confdefs.h <<_ACEOF
34027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34028_ACEOF
34029
34030fi
34031done
34032
34033
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034034{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34035echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34036if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34038else
34039 llvm_cv_llvmgcc_sanity="no"
34040if test -x "$LLVMGCC" ; then
34041 cp /dev/null conftest.c
34042 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34043 grep 'target datalayout =' > /dev/null 2>&1
34044 if test $? -eq 0 ; then
34045 llvm_cv_llvmgcc_sanity="yes"
34046 fi
34047 rm conftest.c
34048fi
34049fi
34050{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34051echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34052
34053if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34054 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34055echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34056 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34057 LLVMCC1=$llvmcc1path
34058
34059 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34060 LLVMCC1PLUS=$llvmcc1pluspath
34061
34062 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34063 LLVMGCCDIR=$llvmgccdir
34064
34065 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34066 LLVMGCCLIBEXEC=$llvmgcclibexec
34067
34068 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34069 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34070 LLVMGCC_VERSION=$llvmgccversion
34071
34072 LLVMGCC_MAJVERS=$llvmgccmajvers
34073
34074 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34075 LLVMGCC_LANGS=$llvmgcclangs
34076
34077 { echo "$as_me:$LINENO: result: ok" >&5
34078echo "${ECHO_T}ok" >&6; }
34079fi
34080
34081SHLIBEXT=$libltdl_cv_shlibext
34082
34083
34084# Translate the various configuration directories and other basic
34085# information into substitutions that will end up in Makefile.config.in
34086# that these configured values can be used by the makefiles
34087if test "${prefix}" = "NONE" ; then
34088 prefix="/usr/local"
34089fi
34090eval LLVM_PREFIX="${prefix}";
34091eval LLVM_BINDIR="${prefix}/bin";
34092eval LLVM_LIBDIR="${prefix}/lib";
34093eval LLVM_DATADIR="${prefix}/share/llvm";
34094eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34095eval LLVM_ETCDIR="${prefix}/etc/llvm";
34096eval LLVM_INCLUDEDIR="${prefix}/include";
34097eval LLVM_INFODIR="${prefix}/info";
34098eval LLVM_MANDIR="${prefix}/man";
34099LLVM_CONFIGTIME=`date`
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111# Place the various directores into the config.h file as #defines so that we
34112# can know about the installation paths within LLVM.
34113
34114cat >>confdefs.h <<_ACEOF
34115#define LLVM_PREFIX "$LLVM_PREFIX"
34116_ACEOF
34117
34118
34119cat >>confdefs.h <<_ACEOF
34120#define LLVM_BINDIR "$LLVM_BINDIR"
34121_ACEOF
34122
34123
34124cat >>confdefs.h <<_ACEOF
34125#define LLVM_LIBDIR "$LLVM_LIBDIR"
34126_ACEOF
34127
34128
34129cat >>confdefs.h <<_ACEOF
34130#define LLVM_DATADIR "$LLVM_DATADIR"
34131_ACEOF
34132
34133
34134cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000034135#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034136_ACEOF
34137
34138
34139cat >>confdefs.h <<_ACEOF
34140#define LLVM_ETCDIR "$LLVM_ETCDIR"
34141_ACEOF
34142
34143
34144cat >>confdefs.h <<_ACEOF
34145#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34146_ACEOF
34147
34148
34149cat >>confdefs.h <<_ACEOF
34150#define LLVM_INFODIR "$LLVM_INFODIR"
34151_ACEOF
34152
34153
34154cat >>confdefs.h <<_ACEOF
34155#define LLVM_MANDIR "$LLVM_MANDIR"
34156_ACEOF
34157
34158
34159cat >>confdefs.h <<_ACEOF
34160#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34161_ACEOF
34162
34163
Gordon Henriksen016ec472007-10-02 09:50:32 +000034164# Determine which bindings to build.
34165if test "$BINDINGS_TO_BUILD" = auto ; then
34166 BINDINGS_TO_BUILD=""
34167 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34168 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34169 fi
34170fi
34171BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34172
34173
34174# This isn't really configurey, but it avoids having to repeat the list in
34175# other files.
34176ALL_BINDINGS=ocaml
34177
34178
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034179# Do any work necessary to ensure that bindings have what they need.
34180binding_prereqs_failed=0
34181for a_binding in $BINDINGS_TO_BUILD ; do
34182 case "$a_binding" in
34183 ocaml)
34184 if test "x$OCAMLC" = x ; then
34185 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34186echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34187 binding_prereqs_failed=1
34188 fi
34189 if test "x$OCAMLDEP" = x ; then
34190 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34191echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34192 binding_prereqs_failed=1
34193 fi
34194 if test "x$OCAMLOPT" = x ; then
34195 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34196echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34197 fi
34198 if test "x$with_ocaml_libdir" != xauto ; then
34199 OCAML_LIBDIR=$with_ocaml_libdir
34200
34201 else
34202 ocaml_stdlib="`"$OCAMLC" -where`"
34203 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34204 then
34205 # ocaml stdlib is beneath our prefix; use stdlib
34206 OCAML_LIBDIR=$ocaml_stdlib
34207
34208 else
34209 # ocaml stdlib is outside our prefix; use libdir/ocaml
34210 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34211
34212 fi
34213 fi
34214 ;;
34215 esac
34216done
34217if test "$binding_prereqs_failed" = 1 ; then
34218 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34219echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34220 { (exit 1); exit 1; }; }
34221fi
34222
34223
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034224
34225ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34226
34227ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34228
34229ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34230
34231ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34232
34233ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34234
34235
34236ac_config_files="$ac_config_files Makefile.config"
34237
34238
34239ac_config_files="$ac_config_files llvm.spec"
34240
34241
34242ac_config_files="$ac_config_files docs/doxygen.cfg"
34243
34244
34245ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34246
34247
34248ac_config_commands="$ac_config_commands setup"
34249
34250ac_config_commands="$ac_config_commands Makefile"
34251
34252
34253ac_config_commands="$ac_config_commands Makefile.common"
34254
34255
34256ac_config_commands="$ac_config_commands examples/Makefile"
34257
34258
34259ac_config_commands="$ac_config_commands lib/Makefile"
34260
34261
34262ac_config_commands="$ac_config_commands runtime/Makefile"
34263
34264
34265ac_config_commands="$ac_config_commands test/Makefile"
34266
34267
34268ac_config_commands="$ac_config_commands test/Makefile.tests"
34269
34270
34271ac_config_commands="$ac_config_commands tools/Makefile"
34272
34273
34274ac_config_commands="$ac_config_commands utils/Makefile"
34275
34276
34277ac_config_commands="$ac_config_commands projects/Makefile"
34278
34279
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034280ac_config_commands="$ac_config_commands bindings/Makefile"
34281
34282
34283ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34284
34285
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034286
34287cat >confcache <<\_ACEOF
34288# This file is a shell script that caches the results of configure
34289# tests run on this system so they can be shared between configure
34290# scripts and configure runs, see configure's option --config-cache.
34291# It is not useful on other systems. If it contains results you don't
34292# want to keep, you may remove or edit it.
34293#
34294# config.status only pays attention to the cache file if you give it
34295# the --recheck option to rerun configure.
34296#
34297# `ac_cv_env_foo' variables (set or unset) will be overridden when
34298# loading this file, other *unset* `ac_cv_foo' will be assigned the
34299# following values.
34300
34301_ACEOF
34302
34303# The following way of writing the cache mishandles newlines in values,
34304# but we know of no workaround that is simple, portable, and efficient.
34305# So, we kill variables containing newlines.
34306# Ultrix sh set writes to stderr and can't be redirected directly,
34307# and sets the high bit in the cache file unless we assign to the vars.
34308(
34309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34310 eval ac_val=\$$ac_var
34311 case $ac_val in #(
34312 *${as_nl}*)
34313 case $ac_var in #(
34314 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34315echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34316 esac
34317 case $ac_var in #(
34318 _ | IFS | as_nl) ;; #(
34319 *) $as_unset $ac_var ;;
34320 esac ;;
34321 esac
34322 done
34323
34324 (set) 2>&1 |
34325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34326 *${as_nl}ac_space=\ *)
34327 # `set' does not quote correctly, so add quotes (double-quote
34328 # substitution turns \\\\ into \\, and sed turns \\ into \).
34329 sed -n \
34330 "s/'/'\\\\''/g;
34331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34332 ;; #(
34333 *)
34334 # `set' quotes correctly as required by POSIX, so do not add quotes.
34335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34336 ;;
34337 esac |
34338 sort
34339) |
34340 sed '
34341 /^ac_cv_env_/b end
34342 t clear
34343 :clear
34344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34345 t end
34346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34347 :end' >>confcache
34348if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34349 if test -w "$cache_file"; then
34350 test "x$cache_file" != "x/dev/null" &&
34351 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34352echo "$as_me: updating cache $cache_file" >&6;}
34353 cat confcache >$cache_file
34354 else
34355 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34356echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34357 fi
34358fi
34359rm -f confcache
34360
34361test "x$prefix" = xNONE && prefix=$ac_default_prefix
34362# Let make expand exec_prefix.
34363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34364
34365DEFS=-DHAVE_CONFIG_H
34366
34367ac_libobjs=
34368ac_ltlibobjs=
34369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34370 # 1. Remove the extension, and $U if already installed.
34371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34372 ac_i=`echo "$ac_i" | sed "$ac_script"`
34373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34374 # will be set to the directory where LIBOBJS objects are built.
34375 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34376 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34377done
34378LIBOBJS=$ac_libobjs
34379
34380LTLIBOBJS=$ac_ltlibobjs
34381
34382
34383if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34384 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34385Usually this means the macro was only invoked conditionally." >&5
34386echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34387Usually this means the macro was only invoked conditionally." >&2;}
34388 { (exit 1); exit 1; }; }
34389fi
34390if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34391 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34392Usually this means the macro was only invoked conditionally." >&5
34393echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34394Usually this means the macro was only invoked conditionally." >&2;}
34395 { (exit 1); exit 1; }; }
34396fi
34397
34398: ${CONFIG_STATUS=./config.status}
34399ac_clean_files_save=$ac_clean_files
34400ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34401{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34402echo "$as_me: creating $CONFIG_STATUS" >&6;}
34403cat >$CONFIG_STATUS <<_ACEOF
34404#! $SHELL
34405# Generated by $as_me.
34406# Run this file to recreate the current configuration.
34407# Compiler output produced by configure, useful for debugging
34408# configure, is in config.log if it exists.
34409
34410debug=false
34411ac_cs_recheck=false
34412ac_cs_silent=false
34413SHELL=\${CONFIG_SHELL-$SHELL}
34414_ACEOF
34415
34416cat >>$CONFIG_STATUS <<\_ACEOF
34417## --------------------- ##
34418## M4sh Initialization. ##
34419## --------------------- ##
34420
34421# Be Bourne compatible
34422if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34423 emulate sh
34424 NULLCMD=:
34425 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34426 # is contrary to our usage. Disable this feature.
34427 alias -g '${1+"$@"}'='"$@"'
34428 setopt NO_GLOB_SUBST
34429else
34430 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34431fi
34432BIN_SH=xpg4; export BIN_SH # for Tru64
34433DUALCASE=1; export DUALCASE # for MKS sh
34434
34435
34436# PATH needs CR
34437# Avoid depending upon Character Ranges.
34438as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34439as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34440as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34441as_cr_digits='0123456789'
34442as_cr_alnum=$as_cr_Letters$as_cr_digits
34443
34444# The user is always right.
34445if test "${PATH_SEPARATOR+set}" != set; then
34446 echo "#! /bin/sh" >conf$$.sh
34447 echo "exit 0" >>conf$$.sh
34448 chmod +x conf$$.sh
34449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34450 PATH_SEPARATOR=';'
34451 else
34452 PATH_SEPARATOR=:
34453 fi
34454 rm -f conf$$.sh
34455fi
34456
34457# Support unset when possible.
34458if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34459 as_unset=unset
34460else
34461 as_unset=false
34462fi
34463
34464
34465# IFS
34466# We need space, tab and new line, in precisely that order. Quoting is
34467# there to prevent editors from complaining about space-tab.
34468# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34469# splitting by setting IFS to empty value.)
34470as_nl='
34471'
34472IFS=" "" $as_nl"
34473
34474# Find who we are. Look in the path if we contain no directory separator.
34475case $0 in
34476 *[\\/]* ) as_myself=$0 ;;
34477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34478for as_dir in $PATH
34479do
34480 IFS=$as_save_IFS
34481 test -z "$as_dir" && as_dir=.
34482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34483done
34484IFS=$as_save_IFS
34485
34486 ;;
34487esac
34488# We did not find ourselves, most probably we were run as `sh COMMAND'
34489# in which case we are not to be found in the path.
34490if test "x$as_myself" = x; then
34491 as_myself=$0
34492fi
34493if test ! -f "$as_myself"; then
34494 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34495 { (exit 1); exit 1; }
34496fi
34497
34498# Work around bugs in pre-3.0 UWIN ksh.
34499for as_var in ENV MAIL MAILPATH
34500do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34501done
34502PS1='$ '
34503PS2='> '
34504PS4='+ '
34505
34506# NLS nuisances.
34507for as_var in \
34508 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34509 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34510 LC_TELEPHONE LC_TIME
34511do
34512 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34513 eval $as_var=C; export $as_var
34514 else
34515 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34516 fi
34517done
34518
34519# Required to use basename.
34520if expr a : '\(a\)' >/dev/null 2>&1 &&
34521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34522 as_expr=expr
34523else
34524 as_expr=false
34525fi
34526
34527if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34528 as_basename=basename
34529else
34530 as_basename=false
34531fi
34532
34533
34534# Name of the executable.
34535as_me=`$as_basename -- "$0" ||
34536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34537 X"$0" : 'X\(//\)$' \| \
34538 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34539echo X/"$0" |
34540 sed '/^.*\/\([^/][^/]*\)\/*$/{
34541 s//\1/
34542 q
34543 }
34544 /^X\/\(\/\/\)$/{
34545 s//\1/
34546 q
34547 }
34548 /^X\/\(\/\).*/{
34549 s//\1/
34550 q
34551 }
34552 s/.*/./; q'`
34553
34554# CDPATH.
34555$as_unset CDPATH
34556
34557
34558
34559 as_lineno_1=$LINENO
34560 as_lineno_2=$LINENO
34561 test "x$as_lineno_1" != "x$as_lineno_2" &&
34562 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34563
34564 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34565 # uniformly replaced by the line number. The first 'sed' inserts a
34566 # line-number line after each line using $LINENO; the second 'sed'
34567 # does the real work. The second script uses 'N' to pair each
34568 # line-number line with the line containing $LINENO, and appends
34569 # trailing '-' during substitution so that $LINENO is not a special
34570 # case at line end.
34571 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34572 # scripts with optimization help from Paolo Bonzini. Blame Lee
34573 # E. McMahon (1931-1989) for sed's syntax. :-)
34574 sed -n '
34575 p
34576 /[$]LINENO/=
34577 ' <$as_myself |
34578 sed '
34579 s/[$]LINENO.*/&-/
34580 t lineno
34581 b
34582 :lineno
34583 N
34584 :loop
34585 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34586 t loop
34587 s/-\n.*//
34588 ' >$as_me.lineno &&
34589 chmod +x "$as_me.lineno" ||
34590 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34591 { (exit 1); exit 1; }; }
34592
34593 # Don't try to exec as it changes $[0], causing all sort of problems
34594 # (the dirname of $[0] is not the place where we might find the
34595 # original and so on. Autoconf is especially sensitive to this).
34596 . "./$as_me.lineno"
34597 # Exit status is that of the last command.
34598 exit
34599}
34600
34601
34602if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34603 as_dirname=dirname
34604else
34605 as_dirname=false
34606fi
34607
34608ECHO_C= ECHO_N= ECHO_T=
34609case `echo -n x` in
34610-n*)
34611 case `echo 'x\c'` in
34612 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34613 *) ECHO_C='\c';;
34614 esac;;
34615*)
34616 ECHO_N='-n';;
34617esac
34618
34619if expr a : '\(a\)' >/dev/null 2>&1 &&
34620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34621 as_expr=expr
34622else
34623 as_expr=false
34624fi
34625
34626rm -f conf$$ conf$$.exe conf$$.file
34627if test -d conf$$.dir; then
34628 rm -f conf$$.dir/conf$$.file
34629else
34630 rm -f conf$$.dir
34631 mkdir conf$$.dir
34632fi
34633echo >conf$$.file
34634if ln -s conf$$.file conf$$ 2>/dev/null; then
34635 as_ln_s='ln -s'
34636 # ... but there are two gotchas:
34637 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34638 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34639 # In both cases, we have to default to `cp -p'.
34640 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34641 as_ln_s='cp -p'
34642elif ln conf$$.file conf$$ 2>/dev/null; then
34643 as_ln_s=ln
34644else
34645 as_ln_s='cp -p'
34646fi
34647rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34648rmdir conf$$.dir 2>/dev/null
34649
34650if mkdir -p . 2>/dev/null; then
34651 as_mkdir_p=:
34652else
34653 test -d ./-p && rmdir ./-p
34654 as_mkdir_p=false
34655fi
34656
34657# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34658# systems may use methods other than mode bits to determine executability.
34659cat >conf$$.file <<_ASEOF
34660#! /bin/sh
34661exit 0
34662_ASEOF
34663chmod +x conf$$.file
34664if test -x conf$$.file >/dev/null 2>&1; then
34665 as_executable_p="test -x"
34666else
34667 as_executable_p=:
34668fi
34669rm -f conf$$.file
34670
34671# Sed expression to map a string onto a valid CPP name.
34672as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34673
34674# Sed expression to map a string onto a valid variable name.
34675as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34676
34677
34678exec 6>&1
34679
34680# Save the log message, to keep $[0] and so on meaningful, and to
34681# report actual input values of CONFIG_FILES etc. instead of their
34682# values after options handling.
34683ac_log="
Tanya Lattnerd08ddae2007-09-14 01:24:13 +000034684This file was extended by llvm $as_me 2.2svn, which was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034685generated by GNU Autoconf 2.60. Invocation command line was
34686
34687 CONFIG_FILES = $CONFIG_FILES
34688 CONFIG_HEADERS = $CONFIG_HEADERS
34689 CONFIG_LINKS = $CONFIG_LINKS
34690 CONFIG_COMMANDS = $CONFIG_COMMANDS
34691 $ $0 $@
34692
34693on `(hostname || uname -n) 2>/dev/null | sed 1q`
34694"
34695
34696_ACEOF
34697
34698cat >>$CONFIG_STATUS <<_ACEOF
34699# Files that config.status was made for.
34700config_files="$ac_config_files"
34701config_headers="$ac_config_headers"
34702config_commands="$ac_config_commands"
34703
34704_ACEOF
34705
34706cat >>$CONFIG_STATUS <<\_ACEOF
34707ac_cs_usage="\
34708\`$as_me' instantiates files from templates according to the
34709current configuration.
34710
34711Usage: $0 [OPTIONS] [FILE]...
34712
34713 -h, --help print this help, then exit
34714 -V, --version print version number, then exit
34715 -q, --quiet do not print progress messages
34716 -d, --debug don't remove temporary files
34717 --recheck update $as_me by reconfiguring in the same conditions
34718 --file=FILE[:TEMPLATE]
34719 instantiate the configuration file FILE
34720 --header=FILE[:TEMPLATE]
34721 instantiate the configuration header FILE
34722
34723Configuration files:
34724$config_files
34725
34726Configuration headers:
34727$config_headers
34728
34729Configuration commands:
34730$config_commands
34731
34732Report bugs to <bug-autoconf@gnu.org>."
34733
34734_ACEOF
34735cat >>$CONFIG_STATUS <<_ACEOF
34736ac_cs_version="\\
Tanya Lattnerd08ddae2007-09-14 01:24:13 +000034737llvm config.status 2.2svn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034738configured by $0, generated by GNU Autoconf 2.60,
34739 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34740
34741Copyright (C) 2006 Free Software Foundation, Inc.
34742This config.status script is free software; the Free Software Foundation
34743gives unlimited permission to copy, distribute and modify it."
34744
34745ac_pwd='$ac_pwd'
34746srcdir='$srcdir'
34747INSTALL='$INSTALL'
34748_ACEOF
34749
34750cat >>$CONFIG_STATUS <<\_ACEOF
34751# If no file are specified by the user, then we need to provide default
34752# value. By we need to know if files were specified by the user.
34753ac_need_defaults=:
34754while test $# != 0
34755do
34756 case $1 in
34757 --*=*)
34758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34760 ac_shift=:
34761 ;;
34762 *)
34763 ac_option=$1
34764 ac_optarg=$2
34765 ac_shift=shift
34766 ;;
34767 esac
34768
34769 case $ac_option in
34770 # Handling of the options.
34771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34772 ac_cs_recheck=: ;;
34773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34774 echo "$ac_cs_version"; exit ;;
34775 --debug | --debu | --deb | --de | --d | -d )
34776 debug=: ;;
34777 --file | --fil | --fi | --f )
34778 $ac_shift
34779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34780 ac_need_defaults=false;;
34781 --header | --heade | --head | --hea )
34782 $ac_shift
34783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34784 ac_need_defaults=false;;
34785 --he | --h)
34786 # Conflict between --help and --header
34787 { echo "$as_me: error: ambiguous option: $1
34788Try \`$0 --help' for more information." >&2
34789 { (exit 1); exit 1; }; };;
34790 --help | --hel | -h )
34791 echo "$ac_cs_usage"; exit ;;
34792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34793 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34794 ac_cs_silent=: ;;
34795
34796 # This is an error.
34797 -*) { echo "$as_me: error: unrecognized option: $1
34798Try \`$0 --help' for more information." >&2
34799 { (exit 1); exit 1; }; } ;;
34800
34801 *) ac_config_targets="$ac_config_targets $1"
34802 ac_need_defaults=false ;;
34803
34804 esac
34805 shift
34806done
34807
34808ac_configure_extra_args=
34809
34810if $ac_cs_silent; then
34811 exec 6>/dev/null
34812 ac_configure_extra_args="$ac_configure_extra_args --silent"
34813fi
34814
34815_ACEOF
34816cat >>$CONFIG_STATUS <<_ACEOF
34817if \$ac_cs_recheck; then
34818 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34819 CONFIG_SHELL=$SHELL
34820 export CONFIG_SHELL
34821 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34822fi
34823
34824_ACEOF
34825cat >>$CONFIG_STATUS <<\_ACEOF
34826exec 5>>config.log
34827{
34828 echo
34829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34830## Running $as_me. ##
34831_ASBOX
34832 echo "$ac_log"
34833} >&5
34834
34835_ACEOF
34836cat >>$CONFIG_STATUS <<_ACEOF
34837#
34838# INIT-COMMANDS
34839#
34840llvm_src="${srcdir}"
34841
34842_ACEOF
34843
34844cat >>$CONFIG_STATUS <<\_ACEOF
34845
34846# Handling of arguments.
34847for ac_config_target in $ac_config_targets
34848do
34849 case $ac_config_target in
34850 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34851 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34852 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34853 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34854 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34855 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34856 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34857 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34858 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34859 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34860 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34861 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34862 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34863 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34864 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34865 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34866 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34867 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34868 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34869 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034870 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34871 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034872
34873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34874echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34875 { (exit 1); exit 1; }; };;
34876 esac
34877done
34878
34879
34880# If the user did not use the arguments to specify the items to instantiate,
34881# then the envvar interface is used. Set only those that are not.
34882# We use the long form for the default assignment because of an extremely
34883# bizarre bug on SunOS 4.1.3.
34884if $ac_need_defaults; then
34885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34886 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34888fi
34889
34890# Have a temporary directory for convenience. Make it in the build tree
34891# simply because there is no reason against having it here, and in addition,
34892# creating and moving files from /tmp can sometimes cause problems.
34893# Hook for its removal unless debugging.
34894# Note that there is a small window in which the directory will not be cleaned:
34895# after its creation but before its name has been assigned to `$tmp'.
34896$debug ||
34897{
34898 tmp=
34899 trap 'exit_status=$?
34900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34901' 0
34902 trap '{ (exit 1); exit 1; }' 1 2 13 15
34903}
34904# Create a (secure) tmp directory for tmp files.
34905
34906{
34907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34908 test -n "$tmp" && test -d "$tmp"
34909} ||
34910{
34911 tmp=./conf$$-$RANDOM
34912 (umask 077 && mkdir "$tmp")
34913} ||
34914{
34915 echo "$me: cannot create a temporary directory in ." >&2
34916 { (exit 1); exit 1; }
34917}
34918
34919#
34920# Set up the sed scripts for CONFIG_FILES section.
34921#
34922
34923# No need to generate the scripts if there are no CONFIG_FILES.
34924# This happens for instance when ./config.status config.h
34925if test -n "$CONFIG_FILES"; then
34926
34927_ACEOF
34928
34929
34930
34931ac_delim='%!_!# '
34932for ac_last_try in false false false false false :; do
34933 cat >conf$$subs.sed <<_ACEOF
34934SHELL!$SHELL$ac_delim
34935PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34936PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34937PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34938PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34939PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34940PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34941exec_prefix!$exec_prefix$ac_delim
34942prefix!$prefix$ac_delim
34943program_transform_name!$program_transform_name$ac_delim
34944bindir!$bindir$ac_delim
34945sbindir!$sbindir$ac_delim
34946libexecdir!$libexecdir$ac_delim
34947datarootdir!$datarootdir$ac_delim
34948datadir!$datadir$ac_delim
34949sysconfdir!$sysconfdir$ac_delim
34950sharedstatedir!$sharedstatedir$ac_delim
34951localstatedir!$localstatedir$ac_delim
34952includedir!$includedir$ac_delim
34953oldincludedir!$oldincludedir$ac_delim
34954docdir!$docdir$ac_delim
34955infodir!$infodir$ac_delim
34956htmldir!$htmldir$ac_delim
34957dvidir!$dvidir$ac_delim
34958pdfdir!$pdfdir$ac_delim
34959psdir!$psdir$ac_delim
34960libdir!$libdir$ac_delim
34961localedir!$localedir$ac_delim
34962mandir!$mandir$ac_delim
34963DEFS!$DEFS$ac_delim
34964ECHO_C!$ECHO_C$ac_delim
34965ECHO_N!$ECHO_N$ac_delim
34966ECHO_T!$ECHO_T$ac_delim
34967LIBS!$LIBS$ac_delim
34968build_alias!$build_alias$ac_delim
34969host_alias!$host_alias$ac_delim
34970target_alias!$target_alias$ac_delim
34971LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34972subdirs!$subdirs$ac_delim
34973build!$build$ac_delim
34974build_cpu!$build_cpu$ac_delim
34975build_vendor!$build_vendor$ac_delim
34976build_os!$build_os$ac_delim
34977host!$host$ac_delim
34978host_cpu!$host_cpu$ac_delim
34979host_vendor!$host_vendor$ac_delim
34980host_os!$host_os$ac_delim
34981target!$target$ac_delim
34982target_cpu!$target_cpu$ac_delim
34983target_vendor!$target_vendor$ac_delim
34984target_os!$target_os$ac_delim
34985OS!$OS$ac_delim
34986LINKALL!$LINKALL$ac_delim
34987NOLINKALL!$NOLINKALL$ac_delim
34988LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34989LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34990ARCH!$ARCH$ac_delim
34991ENDIAN!$ENDIAN$ac_delim
34992CC!$CC$ac_delim
34993CFLAGS!$CFLAGS$ac_delim
34994LDFLAGS!$LDFLAGS$ac_delim
34995CPPFLAGS!$CPPFLAGS$ac_delim
34996ac_ct_CC!$ac_ct_CC$ac_delim
34997EXEEXT!$EXEEXT$ac_delim
34998OBJEXT!$OBJEXT$ac_delim
34999CPP!$CPP$ac_delim
35000GREP!$GREP$ac_delim
35001EGREP!$EGREP$ac_delim
35002LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35003BUILD_CC!$BUILD_CC$ac_delim
35004BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35005CVSBUILD!$CVSBUILD$ac_delim
35006ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35007DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35008ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35009EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35010DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35011JIT!$JIT$ac_delim
35012TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35013ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35014ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35015ENABLE_PIC!$ENABLE_PIC$ac_delim
35016TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35017ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35018EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35019CXX!$CXX$ac_delim
35020CXXFLAGS!$CXXFLAGS$ac_delim
35021ac_ct_CXX!$ac_ct_CXX$ac_delim
35022LEX!$LEX$ac_delim
35023LEXLIB!$LEXLIB$ac_delim
35024LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35025FLEX!$FLEX$ac_delim
35026YACC!$YACC$ac_delim
35027YFLAGS!$YFLAGS$ac_delim
35028BISON!$BISON$ac_delim
35029NM!$NM$ac_delim
35030ifGNUmake!$ifGNUmake$ac_delim
35031_ACEOF
35032
35033 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35034 break
35035 elif $ac_last_try; then
35036 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35037echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35038 { (exit 1); exit 1; }; }
35039 else
35040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35041 fi
35042done
35043
35044ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35045if test -n "$ac_eof"; then
35046 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35047 ac_eof=`expr $ac_eof + 1`
35048fi
35049
35050cat >>$CONFIG_STATUS <<_ACEOF
35051cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35053_ACEOF
35054sed '
35055s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35056s/^/s,@/; s/!/@,|#_!!_#|/
35057:n
35058t n
35059s/'"$ac_delim"'$/,g/; t
35060s/$/\\/; p
35061N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35062' >>$CONFIG_STATUS <conf$$subs.sed
35063rm -f conf$$subs.sed
35064cat >>$CONFIG_STATUS <<_ACEOF
35065CEOF$ac_eof
35066_ACEOF
35067
35068
35069ac_delim='%!_!# '
35070for ac_last_try in false false false false false :; do
35071 cat >conf$$subs.sed <<_ACEOF
35072LN_S!$LN_S$ac_delim
35073CMP!$CMP$ac_delim
35074CP!$CP$ac_delim
35075DATE!$DATE$ac_delim
35076FIND!$FIND$ac_delim
35077MKDIR!$MKDIR$ac_delim
35078MV!$MV$ac_delim
35079RANLIB!$RANLIB$ac_delim
35080RM!$RM$ac_delim
35081SED!$SED$ac_delim
35082TAR!$TAR$ac_delim
35083BINPWD!$BINPWD$ac_delim
35084GRAPHVIZ!$GRAPHVIZ$ac_delim
35085DOT!$DOT$ac_delim
35086GV!$GV$ac_delim
35087DOTTY!$DOTTY$ac_delim
35088PERL!$PERL$ac_delim
35089HAVE_PERL!$HAVE_PERL$ac_delim
35090INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35091INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35092INSTALL_DATA!$INSTALL_DATA$ac_delim
35093BZIP2!$BZIP2$ac_delim
35094DOXYGEN!$DOXYGEN$ac_delim
35095GROFF!$GROFF$ac_delim
35096GZIP!$GZIP$ac_delim
35097POD2HTML!$POD2HTML$ac_delim
35098POD2MAN!$POD2MAN$ac_delim
35099RUNTEST!$RUNTEST$ac_delim
35100TCLSH!$TCLSH$ac_delim
35101ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000035102OCAMLC!$OCAMLC$ac_delim
35103OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000035104OCAMLDEP!$OCAMLDEP$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035105INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35106INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35107CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35108CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35109LIBADD_DL!$LIBADD_DL$ac_delim
35110ECHO!$ECHO$ac_delim
35111AR!$AR$ac_delim
35112STRIP!$STRIP$ac_delim
35113CXXCPP!$CXXCPP$ac_delim
35114F77!$F77$ac_delim
35115FFLAGS!$FFLAGS$ac_delim
35116ac_ct_F77!$ac_ct_F77$ac_delim
35117LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035118LLVMGCC!$LLVMGCC$ac_delim
35119LLVMGXX!$LLVMGXX$ac_delim
35120USE_UDIS86!$USE_UDIS86$ac_delim
35121HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35122HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35123ALLOCA!$ALLOCA$ac_delim
35124MMAP_FILE!$MMAP_FILE$ac_delim
35125LLVMCC1!$LLVMCC1$ac_delim
35126LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35127LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35128LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35129LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35130LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35131LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35132SHLIBEXT!$SHLIBEXT$ac_delim
35133LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35134LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35135LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35136LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35137LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35138LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35139LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35140LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35141LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35142LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000035143BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35144ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035145OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035146LIBOBJS!$LIBOBJS$ac_delim
35147LTLIBOBJS!$LTLIBOBJS$ac_delim
35148_ACEOF
35149
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035150 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035151 break
35152 elif $ac_last_try; then
35153 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35154echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35155 { (exit 1); exit 1; }; }
35156 else
35157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35158 fi
35159done
35160
35161ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35162if test -n "$ac_eof"; then
35163 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35164 ac_eof=`expr $ac_eof + 1`
35165fi
35166
35167cat >>$CONFIG_STATUS <<_ACEOF
35168cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35170_ACEOF
35171sed '
35172s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35173s/^/s,@/; s/!/@,|#_!!_#|/
35174:n
35175t n
35176s/'"$ac_delim"'$/,g/; t
35177s/$/\\/; p
35178N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35179' >>$CONFIG_STATUS <conf$$subs.sed
35180rm -f conf$$subs.sed
35181cat >>$CONFIG_STATUS <<_ACEOF
35182:end
35183s/|#_!!_#|//g
35184CEOF$ac_eof
35185_ACEOF
35186
35187
35188# VPATH may cause trouble with some makes, so we remove $(srcdir),
35189# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35190# trailing colons and then remove the whole line if VPATH becomes empty
35191# (actually we leave an empty line to preserve line numbers).
35192if test "x$srcdir" = x.; then
35193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35194s/:*\$(srcdir):*/:/
35195s/:*\${srcdir}:*/:/
35196s/:*@srcdir@:*/:/
35197s/^\([^=]*=[ ]*\):*/\1/
35198s/:*$//
35199s/^[^=]*=[ ]*$//
35200}'
35201fi
35202
35203cat >>$CONFIG_STATUS <<\_ACEOF
35204fi # test -n "$CONFIG_FILES"
35205
35206
35207for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35208do
35209 case $ac_tag in
35210 :[FHLC]) ac_mode=$ac_tag; continue;;
35211 esac
35212 case $ac_mode$ac_tag in
35213 :[FHL]*:*);;
35214 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35215echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35216 { (exit 1); exit 1; }; };;
35217 :[FH]-) ac_tag=-:-;;
35218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35219 esac
35220 ac_save_IFS=$IFS
35221 IFS=:
35222 set x $ac_tag
35223 IFS=$ac_save_IFS
35224 shift
35225 ac_file=$1
35226 shift
35227
35228 case $ac_mode in
35229 :L) ac_source=$1;;
35230 :[FH])
35231 ac_file_inputs=
35232 for ac_f
35233 do
35234 case $ac_f in
35235 -) ac_f="$tmp/stdin";;
35236 *) # Look for the file first in the build tree, then in the source tree
35237 # (if the path is not absolute). The absolute path cannot be DOS-style,
35238 # because $ac_f cannot contain `:'.
35239 test -f "$ac_f" ||
35240 case $ac_f in
35241 [\\/$]*) false;;
35242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35243 esac ||
35244 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35245echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35246 { (exit 1); exit 1; }; };;
35247 esac
35248 ac_file_inputs="$ac_file_inputs $ac_f"
35249 done
35250
35251 # Let's still pretend it is `configure' which instantiates (i.e., don't
35252 # use $as_me), people would be surprised to read:
35253 # /* config.h. Generated by config.status. */
35254 configure_input="Generated from "`IFS=:
35255 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35256 if test x"$ac_file" != x-; then
35257 configure_input="$ac_file. $configure_input"
35258 { echo "$as_me:$LINENO: creating $ac_file" >&5
35259echo "$as_me: creating $ac_file" >&6;}
35260 fi
35261
35262 case $ac_tag in
35263 *:-:* | *:-) cat >"$tmp/stdin";;
35264 esac
35265 ;;
35266 esac
35267
35268 ac_dir=`$as_dirname -- "$ac_file" ||
35269$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35270 X"$ac_file" : 'X\(//\)[^/]' \| \
35271 X"$ac_file" : 'X\(//\)$' \| \
35272 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35273echo X"$ac_file" |
35274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35275 s//\1/
35276 q
35277 }
35278 /^X\(\/\/\)[^/].*/{
35279 s//\1/
35280 q
35281 }
35282 /^X\(\/\/\)$/{
35283 s//\1/
35284 q
35285 }
35286 /^X\(\/\).*/{
35287 s//\1/
35288 q
35289 }
35290 s/.*/./; q'`
35291 { as_dir="$ac_dir"
35292 case $as_dir in #(
35293 -*) as_dir=./$as_dir;;
35294 esac
35295 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35296 as_dirs=
35297 while :; do
35298 case $as_dir in #(
35299 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35300 *) as_qdir=$as_dir;;
35301 esac
35302 as_dirs="'$as_qdir' $as_dirs"
35303 as_dir=`$as_dirname -- "$as_dir" ||
35304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35305 X"$as_dir" : 'X\(//\)[^/]' \| \
35306 X"$as_dir" : 'X\(//\)$' \| \
35307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35308echo X"$as_dir" |
35309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35310 s//\1/
35311 q
35312 }
35313 /^X\(\/\/\)[^/].*/{
35314 s//\1/
35315 q
35316 }
35317 /^X\(\/\/\)$/{
35318 s//\1/
35319 q
35320 }
35321 /^X\(\/\).*/{
35322 s//\1/
35323 q
35324 }
35325 s/.*/./; q'`
35326 test -d "$as_dir" && break
35327 done
35328 test -z "$as_dirs" || eval "mkdir $as_dirs"
35329 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35330echo "$as_me: error: cannot create directory $as_dir" >&2;}
35331 { (exit 1); exit 1; }; }; }
35332 ac_builddir=.
35333
35334case "$ac_dir" in
35335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35336*)
35337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35338 # A ".." for each directory in $ac_dir_suffix.
35339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35340 case $ac_top_builddir_sub in
35341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35343 esac ;;
35344esac
35345ac_abs_top_builddir=$ac_pwd
35346ac_abs_builddir=$ac_pwd$ac_dir_suffix
35347# for backward compatibility:
35348ac_top_builddir=$ac_top_build_prefix
35349
35350case $srcdir in
35351 .) # We are building in place.
35352 ac_srcdir=.
35353 ac_top_srcdir=$ac_top_builddir_sub
35354 ac_abs_top_srcdir=$ac_pwd ;;
35355 [\\/]* | ?:[\\/]* ) # Absolute name.
35356 ac_srcdir=$srcdir$ac_dir_suffix;
35357 ac_top_srcdir=$srcdir
35358 ac_abs_top_srcdir=$srcdir ;;
35359 *) # Relative name.
35360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35361 ac_top_srcdir=$ac_top_build_prefix$srcdir
35362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35363esac
35364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35365
35366
35367 case $ac_mode in
35368 :F)
35369 #
35370 # CONFIG_FILE
35371 #
35372
35373 case $INSTALL in
35374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35376 esac
35377_ACEOF
35378
35379cat >>$CONFIG_STATUS <<\_ACEOF
35380# If the template does not know about datarootdir, expand it.
35381# FIXME: This hack should be removed a few years after 2.60.
35382ac_datarootdir_hack=; ac_datarootdir_seen=
35383
35384case `sed -n '/datarootdir/ {
35385 p
35386 q
35387}
35388/@datadir@/p
35389/@docdir@/p
35390/@infodir@/p
35391/@localedir@/p
35392/@mandir@/p
35393' $ac_file_inputs` in
35394*datarootdir*) ac_datarootdir_seen=yes;;
35395*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35396 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35397echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35398_ACEOF
35399cat >>$CONFIG_STATUS <<_ACEOF
35400 ac_datarootdir_hack='
35401 s&@datadir@&$datadir&g
35402 s&@docdir@&$docdir&g
35403 s&@infodir@&$infodir&g
35404 s&@localedir@&$localedir&g
35405 s&@mandir@&$mandir&g
35406 s&\\\${datarootdir}&$datarootdir&g' ;;
35407esac
35408_ACEOF
35409
35410# Neutralize VPATH when `$srcdir' = `.'.
35411# Shell code in configure.ac might set extrasub.
35412# FIXME: do we really want to maintain this feature?
35413cat >>$CONFIG_STATUS <<_ACEOF
35414 sed "$ac_vpsub
35415$extrasub
35416_ACEOF
35417cat >>$CONFIG_STATUS <<\_ACEOF
35418:t
35419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35420s&@configure_input@&$configure_input&;t t
35421s&@top_builddir@&$ac_top_builddir_sub&;t t
35422s&@srcdir@&$ac_srcdir&;t t
35423s&@abs_srcdir@&$ac_abs_srcdir&;t t
35424s&@top_srcdir@&$ac_top_srcdir&;t t
35425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35426s&@builddir@&$ac_builddir&;t t
35427s&@abs_builddir@&$ac_abs_builddir&;t t
35428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35429s&@INSTALL@&$ac_INSTALL&;t t
35430$ac_datarootdir_hack
35431" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35432
35433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35434 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35436 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35437which seems to be undefined. Please make sure it is defined." >&5
35438echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35439which seems to be undefined. Please make sure it is defined." >&2;}
35440
35441 rm -f "$tmp/stdin"
35442 case $ac_file in
35443 -) cat "$tmp/out"; rm -f "$tmp/out";;
35444 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35445 esac
35446 ;;
35447 :H)
35448 #
35449 # CONFIG_HEADER
35450 #
35451_ACEOF
35452
35453# Transform confdefs.h into a sed script `conftest.defines', that
35454# substitutes the proper values into config.h.in to produce config.h.
35455rm -f conftest.defines conftest.tail
35456# First, append a space to every undef/define line, to ease matching.
35457echo 's/$/ /' >conftest.defines
35458# Then, protect against being on the right side of a sed subst, or in
35459# an unquoted here document, in config.status. If some macros were
35460# called several times there might be several #defines for the same
35461# symbol, which is useless. But do not sort them, since the last
35462# AC_DEFINE must be honored.
35463ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35464# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35465# NAME is the cpp macro being defined, VALUE is the value it is being given.
35466# PARAMS is the parameter list in the macro definition--in most cases, it's
35467# just an empty string.
35468ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35469ac_dB='\\)[ (].*,\\1define\\2'
35470ac_dC=' '
35471ac_dD=' ,'
35472
35473uniq confdefs.h |
35474 sed -n '
35475 t rset
35476 :rset
35477 s/^[ ]*#[ ]*define[ ][ ]*//
35478 t ok
35479 d
35480 :ok
35481 s/[\\&,]/\\&/g
35482 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35483 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35484 ' >>conftest.defines
35485
35486# Remove the space that was appended to ease matching.
35487# Then replace #undef with comments. This is necessary, for
35488# example, in the case of _POSIX_SOURCE, which is predefined and required
35489# on some systems where configure will not decide to define it.
35490# (The regexp can be short, since the line contains either #define or #undef.)
35491echo 's/ $//
35492s,^[ #]*u.*,/* & */,' >>conftest.defines
35493
35494# Break up conftest.defines:
35495ac_max_sed_lines=50
35496
35497# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35498# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35499# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35500# et cetera.
35501ac_in='$ac_file_inputs'
35502ac_out='"$tmp/out1"'
35503ac_nxt='"$tmp/out2"'
35504
35505while :
35506do
35507 # Write a here document:
35508 cat >>$CONFIG_STATUS <<_ACEOF
35509 # First, check the format of the line:
35510 cat >"\$tmp/defines.sed" <<\\CEOF
35511/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35512/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35513b
35514:def
35515_ACEOF
35516 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35517 echo 'CEOF
35518 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35519 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35520 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35521 grep . conftest.tail >/dev/null || break
35522 rm -f conftest.defines
35523 mv conftest.tail conftest.defines
35524done
35525rm -f conftest.defines conftest.tail
35526
35527echo "ac_result=$ac_in" >>$CONFIG_STATUS
35528cat >>$CONFIG_STATUS <<\_ACEOF
35529 if test x"$ac_file" != x-; then
35530 echo "/* $configure_input */" >"$tmp/config.h"
35531 cat "$ac_result" >>"$tmp/config.h"
35532 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35534echo "$as_me: $ac_file is unchanged" >&6;}
35535 else
35536 rm -f $ac_file
35537 mv "$tmp/config.h" $ac_file
35538 fi
35539 else
35540 echo "/* $configure_input */"
35541 cat "$ac_result"
35542 fi
35543 rm -f "$tmp/out12"
35544 ;;
35545
35546 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35547echo "$as_me: executing $ac_file commands" >&6;}
35548 ;;
35549 esac
35550
35551
35552 case $ac_file$ac_mode in
35553 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35554 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35555 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35556 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35557 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35559 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35561 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35563 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35565 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35567 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35569 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35571 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035573 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35575 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035577
35578 esac
35579done # for ac_tag
35580
35581
35582{ (exit 0); exit 0; }
35583_ACEOF
35584chmod +x $CONFIG_STATUS
35585ac_clean_files=$ac_clean_files_save
35586
35587
35588# configure is writing to config.log, and then calls config.status.
35589# config.status does its own redirection, appending to config.log.
35590# Unfortunately, on DOS this fails, as config.log is still kept open
35591# by configure, so config.status won't be able to write to it; its
35592# output is simply discarded. So we exec the FD to /dev/null,
35593# effectively closing config.log, so it can be properly (re)opened and
35594# appended to by config.status. When coming back to configure, we
35595# need to make the FD available again.
35596if test "$no_create" != yes; then
35597 ac_cs_success=:
35598 ac_config_status_args=
35599 test "$silent" = yes &&
35600 ac_config_status_args="$ac_config_status_args --quiet"
35601 exec 5>/dev/null
35602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35603 exec 5>>config.log
35604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35605 # would make configure fail if this is the last instruction.
35606 $ac_cs_success || { (exit 1); exit 1; }
35607fi
35608
35609#
35610# CONFIG_SUBDIRS section.
35611#
35612if test "$no_recursion" != yes; then
35613
35614 # Remove --cache-file and --srcdir arguments so they do not pile up.
35615 ac_sub_configure_args=
35616 ac_prev=
35617 eval "set x $ac_configure_args"
35618 shift
35619 for ac_arg
35620 do
35621 if test -n "$ac_prev"; then
35622 ac_prev=
35623 continue
35624 fi
35625 case $ac_arg in
35626 -cache-file | --cache-file | --cache-fil | --cache-fi \
35627 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35628 ac_prev=cache_file ;;
35629 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35630 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35631 | --c=*)
35632 ;;
35633 --config-cache | -C)
35634 ;;
35635 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35636 ac_prev=srcdir ;;
35637 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35638 ;;
35639 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35640 ac_prev=prefix ;;
35641 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35642 ;;
35643 *)
35644 case $ac_arg in
35645 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35646 esac
35647 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35648 esac
35649 done
35650
35651 # Always prepend --prefix to ensure using the same prefix
35652 # in subdir configurations.
35653 ac_arg="--prefix=$prefix"
35654 case $ac_arg in
35655 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35656 esac
35657 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35658
35659 ac_popdir=`pwd`
35660 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35661
35662 # Do not complain, so a configure script can configure whichever
35663 # parts of a large source tree are present.
35664 test -d "$srcdir/$ac_dir" || continue
35665
35666 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35667 echo "$as_me:$LINENO: $ac_msg" >&5
35668 echo "$ac_msg" >&6
35669 { as_dir="$ac_dir"
35670 case $as_dir in #(
35671 -*) as_dir=./$as_dir;;
35672 esac
35673 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35674 as_dirs=
35675 while :; do
35676 case $as_dir in #(
35677 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35678 *) as_qdir=$as_dir;;
35679 esac
35680 as_dirs="'$as_qdir' $as_dirs"
35681 as_dir=`$as_dirname -- "$as_dir" ||
35682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683 X"$as_dir" : 'X\(//\)[^/]' \| \
35684 X"$as_dir" : 'X\(//\)$' \| \
35685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35686echo X"$as_dir" |
35687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35688 s//\1/
35689 q
35690 }
35691 /^X\(\/\/\)[^/].*/{
35692 s//\1/
35693 q
35694 }
35695 /^X\(\/\/\)$/{
35696 s//\1/
35697 q
35698 }
35699 /^X\(\/\).*/{
35700 s//\1/
35701 q
35702 }
35703 s/.*/./; q'`
35704 test -d "$as_dir" && break
35705 done
35706 test -z "$as_dirs" || eval "mkdir $as_dirs"
35707 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35708echo "$as_me: error: cannot create directory $as_dir" >&2;}
35709 { (exit 1); exit 1; }; }; }
35710 ac_builddir=.
35711
35712case "$ac_dir" in
35713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35714*)
35715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35716 # A ".." for each directory in $ac_dir_suffix.
35717 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35718 case $ac_top_builddir_sub in
35719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35721 esac ;;
35722esac
35723ac_abs_top_builddir=$ac_pwd
35724ac_abs_builddir=$ac_pwd$ac_dir_suffix
35725# for backward compatibility:
35726ac_top_builddir=$ac_top_build_prefix
35727
35728case $srcdir in
35729 .) # We are building in place.
35730 ac_srcdir=.
35731 ac_top_srcdir=$ac_top_builddir_sub
35732 ac_abs_top_srcdir=$ac_pwd ;;
35733 [\\/]* | ?:[\\/]* ) # Absolute name.
35734 ac_srcdir=$srcdir$ac_dir_suffix;
35735 ac_top_srcdir=$srcdir
35736 ac_abs_top_srcdir=$srcdir ;;
35737 *) # Relative name.
35738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35739 ac_top_srcdir=$ac_top_build_prefix$srcdir
35740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35741esac
35742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35743
35744
35745 cd "$ac_dir"
35746
35747 # Check for guested configure; otherwise get Cygnus style configure.
35748 if test -f "$ac_srcdir/configure.gnu"; then
35749 ac_sub_configure=$ac_srcdir/configure.gnu
35750 elif test -f "$ac_srcdir/configure"; then
35751 ac_sub_configure=$ac_srcdir/configure
35752 elif test -f "$ac_srcdir/configure.in"; then
35753 # This should be Cygnus configure.
35754 ac_sub_configure=$ac_aux_dir/configure
35755 else
35756 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35757echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35758 ac_sub_configure=
35759 fi
35760
35761 # The recursion is here.
35762 if test -n "$ac_sub_configure"; then
35763 # Make the cache file name correct relative to the subdirectory.
35764 case $cache_file in
35765 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35766 *) # Relative name.
35767 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35768 esac
35769
35770 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35771echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35772 # The eval makes quoting arguments work.
35773 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35774 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35775 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35776echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35777 { (exit 1); exit 1; }; }
35778 fi
35779
35780 cd "$ac_popdir"
35781 done
35782fi
35783
35784